CfnDomainProps
- class aws_cdk.aws_elasticsearch.CfnDomainProps(*, access_policies=None, advanced_options=None, advanced_security_options=None, cognito_options=None, domain_arn=None, domain_endpoint_options=None, domain_name=None, ebs_options=None, elasticsearch_cluster_config=None, elasticsearch_version=None, encryption_at_rest_options=None, log_publishing_options=None, node_to_node_encryption_options=None, snapshot_options=None, tags=None, vpc_options=None)
Bases:
object
Properties for defining a
CfnDomain
.- Parameters:
access_policies (
Any
) – An AWS Identity and Access Management ( IAM ) policy document that specifies who can access the OpenSearch Service domain and their permissions. For more information, see Configuring access policies in the Amazon OpenSearch Service Developer Guid e.advanced_options (
Union
[IResolvable
,Mapping
[str
,str
],None
]) – Additional options to specify for the OpenSearch Service domain. For more information, see Advanced cluster parameters in the Amazon OpenSearch Service Developer Guide .advanced_security_options (
Union
[IResolvable
,AdvancedSecurityOptionsInputProperty
,Dict
[str
,Any
],None
]) – Specifies options for fine-grained access control.cognito_options (
Union
[IResolvable
,CognitoOptionsProperty
,Dict
[str
,Any
],None
]) – Configures OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards.domain_arn (
Optional
[str
]) –domain_endpoint_options (
Union
[IResolvable
,DomainEndpointOptionsProperty
,Dict
[str
,Any
],None
]) – Specifies additional options for the domain endpoint, such as whether to require HTTPS for all traffic or whether to use a custom endpoint rather than the default endpoint.domain_name (
Optional
[str
]) – A name for the OpenSearch Service domain. For valid values, see the DomainName data type in the Amazon OpenSearch Service Developer Guide . If you don’t specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the domain name. For more information, see Name Type . .. epigraph:: If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.ebs_options (
Union
[IResolvable
,EBSOptionsProperty
,Dict
[str
,Any
],None
]) – The configurations of Amazon Elastic Block Store (Amazon EBS) volumes that are attached to data nodes in the OpenSearch Service domain. For more information, see EBS volume size limits in the Amazon OpenSearch Service Developer Guide .elasticsearch_cluster_config (
Union
[IResolvable
,ElasticsearchClusterConfigProperty
,Dict
[str
,Any
],None
]) – ElasticsearchClusterConfig is a property of the AWS::Elasticsearch::Domain resource that configures the cluster of an Amazon OpenSearch Service domain.elasticsearch_version (
Optional
[str
]) – The version of Elasticsearch to use, such as 2.3. If not specified, 1.5 is used as the default. For information about the versions that OpenSearch Service supports, see Supported versions of OpenSearch and Elasticsearch in the Amazon OpenSearch Service Developer Guide . If you set the EnableVersionUpgrade update policy totrue
, you can updateElasticsearchVersion
without interruption. WhenEnableVersionUpgrade
is set tofalse
, or is not specified, updatingElasticsearchVersion
results in replacement .encryption_at_rest_options (
Union
[IResolvable
,EncryptionAtRestOptionsProperty
,Dict
[str
,Any
],None
]) – Whether the domain should encrypt data at rest, and if so, the AWS Key Management Service key to use. See Encryption of data at rest for Amazon OpenSearch Service .log_publishing_options (
Union
[IResolvable
,Mapping
[str
,Union
[IResolvable
,LogPublishingOptionProperty
,Dict
[str
,Any
]]],None
]) – An object with one or more of the following keys:SEARCH_SLOW_LOGS
,ES_APPLICATION_LOGS
,INDEX_SLOW_LOGS
,AUDIT_LOGS
, depending on the types of logs you want to publish. Each key needs a validLogPublishingOption
value.node_to_node_encryption_options (
Union
[IResolvable
,NodeToNodeEncryptionOptionsProperty
,Dict
[str
,Any
],None
]) – Specifies whether node-to-node encryption is enabled. See Node-to-node encryption for Amazon OpenSearch Service .snapshot_options (
Union
[IResolvable
,SnapshotOptionsProperty
,Dict
[str
,Any
],None
]) – DEPRECATED . The automated snapshot configuration for the OpenSearch Service domain indices.tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Service domain.vpc_options (
Union
[IResolvable
,VPCOptionsProperty
,Dict
[str
,Any
],None
]) – The virtual private cloud (VPC) configuration for the OpenSearch Service domain. For more information, see Launching your Amazon OpenSearch Service domains within a VPC in the Amazon OpenSearch Service Developer Guide .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_elasticsearch as elasticsearch # access_policies: Any cfn_domain_props = elasticsearch.CfnDomainProps( access_policies=access_policies, advanced_options={ "advanced_options_key": "advancedOptions" }, advanced_security_options=elasticsearch.CfnDomain.AdvancedSecurityOptionsInputProperty( anonymous_auth_enabled=False, enabled=False, internal_user_database_enabled=False, master_user_options=elasticsearch.CfnDomain.MasterUserOptionsProperty( master_user_arn="masterUserArn", master_user_name="masterUserName", master_user_password="masterUserPassword" ) ), cognito_options=elasticsearch.CfnDomain.CognitoOptionsProperty( enabled=False, identity_pool_id="identityPoolId", role_arn="roleArn", user_pool_id="userPoolId" ), domain_arn="domainArn", domain_endpoint_options=elasticsearch.CfnDomain.DomainEndpointOptionsProperty( custom_endpoint="customEndpoint", custom_endpoint_certificate_arn="customEndpointCertificateArn", custom_endpoint_enabled=False, enforce_https=False, tls_security_policy="tlsSecurityPolicy" ), domain_name="domainName", ebs_options=elasticsearch.CfnDomain.EBSOptionsProperty( ebs_enabled=False, iops=123, volume_size=123, volume_type="volumeType" ), elasticsearch_cluster_config=elasticsearch.CfnDomain.ElasticsearchClusterConfigProperty( cold_storage_options=elasticsearch.CfnDomain.ColdStorageOptionsProperty( enabled=False ), dedicated_master_count=123, dedicated_master_enabled=False, dedicated_master_type="dedicatedMasterType", instance_count=123, instance_type="instanceType", warm_count=123, warm_enabled=False, warm_type="warmType", zone_awareness_config=elasticsearch.CfnDomain.ZoneAwarenessConfigProperty( availability_zone_count=123 ), zone_awareness_enabled=False ), elasticsearch_version="elasticsearchVersion", encryption_at_rest_options=elasticsearch.CfnDomain.EncryptionAtRestOptionsProperty( enabled=False, kms_key_id="kmsKeyId" ), log_publishing_options={ "log_publishing_options_key": elasticsearch.CfnDomain.LogPublishingOptionProperty( cloud_watch_logs_log_group_arn="cloudWatchLogsLogGroupArn", enabled=False ) }, node_to_node_encryption_options=elasticsearch.CfnDomain.NodeToNodeEncryptionOptionsProperty( enabled=False ), snapshot_options=elasticsearch.CfnDomain.SnapshotOptionsProperty( automated_snapshot_start_hour=123 ), tags=[CfnTag( key="key", value="value" )], vpc_options=elasticsearch.CfnDomain.VPCOptionsProperty( security_group_ids=["securityGroupIds"], subnet_ids=["subnetIds"] ) )
Attributes
- access_policies
An AWS Identity and Access Management ( IAM ) policy document that specifies who can access the OpenSearch Service domain and their permissions.
For more information, see Configuring access policies in the Amazon OpenSearch Service Developer Guid e.
- advanced_options
Additional options to specify for the OpenSearch Service domain.
For more information, see Advanced cluster parameters in the Amazon OpenSearch Service Developer Guide .
- advanced_security_options
Specifies options for fine-grained access control.
- cognito_options
Configures OpenSearch Service to use Amazon Cognito authentication for OpenSearch Dashboards.
- domain_arn
-
- Type:
see
- domain_endpoint_options
Specifies additional options for the domain endpoint, such as whether to require HTTPS for all traffic or whether to use a custom endpoint rather than the default endpoint.
- domain_name
A name for the OpenSearch Service domain.
For valid values, see the DomainName data type in the Amazon OpenSearch Service Developer Guide . If you don’t specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the domain name. For more information, see Name Type . .. epigraph:
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
- ebs_options
The configurations of Amazon Elastic Block Store (Amazon EBS) volumes that are attached to data nodes in the OpenSearch Service domain.
For more information, see EBS volume size limits in the Amazon OpenSearch Service Developer Guide .
- elasticsearch_cluster_config
ElasticsearchClusterConfig is a property of the AWS::Elasticsearch::Domain resource that configures the cluster of an Amazon OpenSearch Service domain.
- elasticsearch_version
//docs.aws.amazon.com/opensearch-service/latest/developerguide/what-is.html#choosing-version>`_ in the Amazon OpenSearch Service Developer Guide .
If you set the EnableVersionUpgrade update policy to
true
, you can updateElasticsearchVersion
without interruption. WhenEnableVersionUpgrade
is set tofalse
, or is not specified, updatingElasticsearchVersion
results in replacement .- See:
- Type:
The version of Elasticsearch to use, such as 2.3. If not specified, 1.5 is used as the default. For information about the versions that OpenSearch Service supports, see `Supported versions of OpenSearch and Elasticsearch <https
- encryption_at_rest_options
Whether the domain should encrypt data at rest, and if so, the AWS Key Management Service key to use.
See Encryption of data at rest for Amazon OpenSearch Service .
- log_publishing_options
SEARCH_SLOW_LOGS
,ES_APPLICATION_LOGS
,INDEX_SLOW_LOGS
,AUDIT_LOGS
, depending on the types of logs you want to publish.Each key needs a valid
LogPublishingOption
value.- See:
- Type:
An object with one or more of the following keys
- node_to_node_encryption_options
Specifies whether node-to-node encryption is enabled.
- snapshot_options
DEPRECATED .
The automated snapshot configuration for the OpenSearch Service domain indices.
- tags
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Service domain.
- vpc_options
The virtual private cloud (VPC) configuration for the OpenSearch Service domain.
For more information, see Launching your Amazon OpenSearch Service domains within a VPC in the Amazon OpenSearch Service Developer Guide .