com.pulumi.aws.opensearch.outputs.DomainAdvancedSecurityOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.opensearch.outputs;
import com.pulumi.aws.opensearch.outputs.DomainAdvancedSecurityOptionsMasterUserOptions;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DomainAdvancedSecurityOptions {
/**
* @return Whether Anonymous auth is enabled. Enables fine-grained access control on an existing domain. Ignored unless `advanced_security_options` are enabled. _Can only be enabled on an existing domain._
*
*/
private @Nullable Boolean anonymousAuthEnabled;
/**
* @return Whether advanced security is enabled.
*
*/
private Boolean enabled;
/**
* @return Whether the internal user database is enabled. Default is `false`.
*
*/
private @Nullable Boolean internalUserDatabaseEnabled;
/**
* @return Configuration block for the main user. Detailed below.
*
*/
private @Nullable DomainAdvancedSecurityOptionsMasterUserOptions masterUserOptions;
private DomainAdvancedSecurityOptions() {}
/**
* @return Whether Anonymous auth is enabled. Enables fine-grained access control on an existing domain. Ignored unless `advanced_security_options` are enabled. _Can only be enabled on an existing domain._
*
*/
public Optional anonymousAuthEnabled() {
return Optional.ofNullable(this.anonymousAuthEnabled);
}
/**
* @return Whether advanced security is enabled.
*
*/
public Boolean enabled() {
return this.enabled;
}
/**
* @return Whether the internal user database is enabled. Default is `false`.
*
*/
public Optional internalUserDatabaseEnabled() {
return Optional.ofNullable(this.internalUserDatabaseEnabled);
}
/**
* @return Configuration block for the main user. Detailed below.
*
*/
public Optional masterUserOptions() {
return Optional.ofNullable(this.masterUserOptions);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DomainAdvancedSecurityOptions defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean anonymousAuthEnabled;
private Boolean enabled;
private @Nullable Boolean internalUserDatabaseEnabled;
private @Nullable DomainAdvancedSecurityOptionsMasterUserOptions masterUserOptions;
public Builder() {}
public Builder(DomainAdvancedSecurityOptions defaults) {
Objects.requireNonNull(defaults);
this.anonymousAuthEnabled = defaults.anonymousAuthEnabled;
this.enabled = defaults.enabled;
this.internalUserDatabaseEnabled = defaults.internalUserDatabaseEnabled;
this.masterUserOptions = defaults.masterUserOptions;
}
@CustomType.Setter
public Builder anonymousAuthEnabled(@Nullable Boolean anonymousAuthEnabled) {
this.anonymousAuthEnabled = anonymousAuthEnabled;
return this;
}
@CustomType.Setter
public Builder enabled(Boolean enabled) {
if (enabled == null) {
throw new MissingRequiredPropertyException("DomainAdvancedSecurityOptions", "enabled");
}
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder internalUserDatabaseEnabled(@Nullable Boolean internalUserDatabaseEnabled) {
this.internalUserDatabaseEnabled = internalUserDatabaseEnabled;
return this;
}
@CustomType.Setter
public Builder masterUserOptions(@Nullable DomainAdvancedSecurityOptionsMasterUserOptions masterUserOptions) {
this.masterUserOptions = masterUserOptions;
return this;
}
public DomainAdvancedSecurityOptions build() {
final var _resultValue = new DomainAdvancedSecurityOptions();
_resultValue.anonymousAuthEnabled = anonymousAuthEnabled;
_resultValue.enabled = enabled;
_resultValue.internalUserDatabaseEnabled = internalUserDatabaseEnabled;
_resultValue.masterUserOptions = masterUserOptions;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy