Class CfnEndpointPropsMixin.DocDbSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointPropsMixin.DocDbSettingsProperty>
- Enclosing interface:
CfnEndpointPropsMixin.DocDbSettingsProperty
CfnEndpointPropsMixin.DocDbSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.docsToInvestigate(Number docsToInvestigate) Sets the value ofCfnEndpointPropsMixin.DocDbSettingsProperty.getDocsToInvestigate()extractDocId(Boolean extractDocId) Sets the value ofCfnEndpointPropsMixin.DocDbSettingsProperty.getExtractDocId()extractDocId(IResolvable extractDocId) Sets the value ofCfnEndpointPropsMixin.DocDbSettingsProperty.getExtractDocId()nestingLevel(String nestingLevel) Sets the value ofCfnEndpointPropsMixin.DocDbSettingsProperty.getNestingLevel()secretsManagerAccessRoleArn(String secretsManagerAccessRoleArn) secretsManagerSecretId(String secretsManagerSecretId) Sets the value ofCfnEndpointPropsMixin.DocDbSettingsProperty.getSecretsManagerSecretId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
docsToInvestigate
@Stability(Stable) public CfnEndpointPropsMixin.DocDbSettingsProperty.Builder docsToInvestigate(Number docsToInvestigate) Sets the value ofCfnEndpointPropsMixin.DocDbSettingsProperty.getDocsToInvestigate()- Parameters:
docsToInvestigate- Indicates the number of documents to preview to determine the document organization. Use this setting whenNestingLevelis set to"one".Must be a positive value greater than
0. Default value is1000.- Returns:
this
-
extractDocId
@Stability(Stable) public CfnEndpointPropsMixin.DocDbSettingsProperty.Builder extractDocId(Boolean extractDocId) Sets the value ofCfnEndpointPropsMixin.DocDbSettingsProperty.getExtractDocId()- Parameters:
extractDocId- Specifies the document ID. Use this setting whenNestingLevelis set to"none". Default value is"false".- Returns:
this
-
extractDocId
@Stability(Stable) public CfnEndpointPropsMixin.DocDbSettingsProperty.Builder extractDocId(IResolvable extractDocId) Sets the value ofCfnEndpointPropsMixin.DocDbSettingsProperty.getExtractDocId()- Parameters:
extractDocId- Specifies the document ID. Use this setting whenNestingLevelis set to"none". Default value is"false".- Returns:
this
-
nestingLevel
@Stability(Stable) public CfnEndpointPropsMixin.DocDbSettingsProperty.Builder nestingLevel(String nestingLevel) Sets the value ofCfnEndpointPropsMixin.DocDbSettingsProperty.getNestingLevel()- Parameters:
nestingLevel- Specifies either document or table mode. Default value is"none". Specify"none"to use document mode. Specify"one"to use table mode.- Returns:
this
-
secretsManagerAccessRoleArn
@Stability(Stable) public CfnEndpointPropsMixin.DocDbSettingsProperty.Builder secretsManagerAccessRoleArn(String secretsManagerAccessRoleArn) - Parameters:
secretsManagerAccessRoleArn- The full Amazon Resource Name (ARN) of the IAM role that specifies AWS DMS as the trusted entity and grants the required permissions to access the value inSecretsManagerSecret. The role must allow theiam:PassRoleaction.SecretsManagerSecrethas the value of the AWS Secrets Manager secret that allows access to the DocumentDB endpoint.You can specify one of two sets of values for these permissions. You can specify the values for this setting and
SecretsManagerSecretId. Or you can specify clear-text values forUserName,Password,ServerName, andPort. You can't specify both.For more information on creating this
SecretsManagerSecret, the correspondingSecretsManagerAccessRoleArn, and theSecretsManagerSecretIdthat is required to access it, see Using secrets to access AWS Database Migration Service resources in the AWS Database Migration Service User Guide .- Returns:
this
-
secretsManagerSecretId
@Stability(Stable) public CfnEndpointPropsMixin.DocDbSettingsProperty.Builder secretsManagerSecretId(String secretsManagerSecretId) Sets the value ofCfnEndpointPropsMixin.DocDbSettingsProperty.getSecretsManagerSecretId()- Parameters:
secretsManagerSecretId- The full ARN, partial ARN, or display name of theSecretsManagerSecretthat contains the DocumentDB endpoint connection details.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointPropsMixin.DocDbSettingsProperty>- Returns:
- a new instance of
CfnEndpointPropsMixin.DocDbSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-