Skip to content
v2.278.0

SAMLOptionsProperty Struct ​

Container for information about the SAML configuration for OpenSearch Dashboards.

Example ​

ts
const domain = new Domain(this, 'Domain', {
  version: EngineVersion.OPENSEARCH_1_0,
  enforceHttps: true,
  nodeToNodeEncryption: true,
  encryptionAtRest: {
    enabled: true,
  },
  fineGrainedAccessControl: {
    masterUserName: 'master-user',
    samlAuthenticationEnabled: true,
    samlAuthenticationOptions: {
      idpEntityId: 'entity-id',
      idpMetadataContent: 'metadata-content-with-quotes-escaped',
    },
  },
});
python
from aws_cdk.aws_opensearchservice import EncryptionAtRestOptions, AdvancedSecurityOptions, SAMLOptionsProperty
domain = Domain(self, "Domain",
    version=EngineVersion.OPENSEARCH_1_0,
    enforce_https=True,
    node_to_node_encryption=True,
    encryption_at_rest=EncryptionAtRestOptions(
        enabled=True
    ),
    fine_grained_access_control=AdvancedSecurityOptions(
        master_user_name="master-user",
        saml_authentication_enabled=True,
        saml_authentication_options=SAMLOptionsProperty(
            idp_entity_id="entity-id",
            idp_metadata_content="metadata-content-with-quotes-escaped"
        )
    )
)
java
Domain domain = Domain.Builder.create(this, "Domain")
        .version(EngineVersion.OPENSEARCH_1_0)
        .enforceHttps(true)
        .nodeToNodeEncryption(true)
        .encryptionAtRest(EncryptionAtRestOptions.builder()
                .enabled(true)
                .build())
        .fineGrainedAccessControl(AdvancedSecurityOptions.builder()
                .masterUserName("master-user")
                .samlAuthenticationEnabled(true)
                .samlAuthenticationOptions(SAMLOptionsProperty.builder()
                        .idpEntityId("entity-id")
                        .idpMetadataContent("metadata-content-with-quotes-escaped")
                        .build())
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
var domain = new Domain(this, "Domain", new DomainProps {
    Version = EngineVersion.OPENSEARCH_1_0,
    EnforceHttps = true,
    NodeToNodeEncryption = true,
    EncryptionAtRest = new EncryptionAtRestOptions {
        Enabled = true
    },
    FineGrainedAccessControl = new AdvancedSecurityOptions {
        MasterUserName = "master-user",
        SamlAuthenticationEnabled = true,
        SamlAuthenticationOptions = new SAMLOptionsProperty {
            IdpEntityId = "entity-id",
            IdpMetadataContent = "metadata-content-with-quotes-escaped"
        }
    }
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
domain := awscdk.NewDomain(this, jsii.String("Domain"), &DomainProps{
	Version: awscdk.EngineVersion_OPENSEARCH_1_0(),
	EnforceHttps: jsii.Boolean(true),
	NodeToNodeEncryption: jsii.Boolean(true),
	EncryptionAtRest: &EncryptionAtRestOptions{
		Enabled: jsii.Boolean(true),
	},
	FineGrainedAccessControl: &AdvancedSecurityOptions{
		MasterUserName: jsii.String("master-user"),
		SamlAuthenticationEnabled: jsii.Boolean(true),
		SamlAuthenticationOptions: &SAMLOptionsProperty{
			IdpEntityId: jsii.String("entity-id"),
			IdpMetadataContent: jsii.String("metadata-content-with-quotes-escaped"),
		},
	},
})

Properties ​

idpEntityIdstringidp_entity_idstridpEntityIdStringIdpEntityIdstringIdpEntityId*string required #
The unique entity ID of the application in the SAML identity provider.
idpMetadataContentstringidp_metadata_contentstridpMetadataContentStringIdpMetadataContentstringIdpMetadataContent*string required #
The metadata of the SAML application, in XML format.
masterBackendRoleoptionalstringmaster_backend_roleoptionalstrmasterBackendRoleoptionalStringMasterBackendRoleoptionalstringMasterBackendRoleoptional*string #
The backend role that the SAML master user is mapped to.

Default: The master user is not mapped to a backend role

Any users with this backend role receives full permission in OpenSearch Dashboards/Kibana. To use a SAML master backend role, configure the rolesKey property.

masterUserNameoptionalstringmaster_user_nameoptionalstrmasterUserNameoptionalStringMasterUserNameoptionalstringMasterUserNameoptional*string #
The SAML master username, which is stored in the domain's internal user database.

Default: No master user name is configured

This SAML user receives full permission in OpenSearch Dashboards/Kibana. Creating a new master username does not delete any existing master usernames.

rolesKeyoptionalstringroles_keyoptionalstrrolesKeyoptionalStringRolesKeyoptionalstringRolesKeyoptional*string = roles #
Element of the SAML assertion to use for backend roles.
sessionTimeoutMinutesoptionalnumbersession_timeout_minutesoptionalint | floatsessionTimeoutMinutesoptionalNumberSessionTimeoutMinutesoptionaldoubleSessionTimeoutMinutesoptional*float64 = 60 #
The duration, in minutes, after which a user session becomes inactive.
subjectKeyoptionalstringsubject_keyoptionalstrsubjectKeyoptionalStringSubjectKeyoptionalstringSubjectKeyoptional*string #
Element of the SAML assertion to use for the user name.

Default: NameID element of the SAML assertion fot the user name