Class CfnEndpoint.DocDbSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpoint.DocDbSettingsProperty>
- Enclosing interface:
CfnEndpoint.DocDbSettingsProperty
CfnEndpoint.DocDbSettingsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.docsToInvestigate
(Number docsToInvestigate) Sets the value ofCfnEndpoint.DocDbSettingsProperty.getDocsToInvestigate()
extractDocId
(Boolean extractDocId) Sets the value ofCfnEndpoint.DocDbSettingsProperty.getExtractDocId()
extractDocId
(IResolvable extractDocId) Sets the value ofCfnEndpoint.DocDbSettingsProperty.getExtractDocId()
nestingLevel
(String nestingLevel) Sets the value ofCfnEndpoint.DocDbSettingsProperty.getNestingLevel()
secretsManagerAccessRoleArn
(String secretsManagerAccessRoleArn) Sets the value ofCfnEndpoint.DocDbSettingsProperty.getSecretsManagerAccessRoleArn()
secretsManagerSecretId
(String secretsManagerSecretId) Sets the value ofCfnEndpoint.DocDbSettingsProperty.getSecretsManagerSecretId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
docsToInvestigate
@Stability(Stable) public CfnEndpoint.DocDbSettingsProperty.Builder docsToInvestigate(Number docsToInvestigate) Sets the value ofCfnEndpoint.DocDbSettingsProperty.getDocsToInvestigate()
- Parameters:
docsToInvestigate
- Indicates the number of documents to preview to determine the document organization. Use this setting whenNestingLevel
is set to"one"
.Must be a positive value greater than
0
. Default value is1000
.- Returns:
this
-
extractDocId
@Stability(Stable) public CfnEndpoint.DocDbSettingsProperty.Builder extractDocId(Boolean extractDocId) Sets the value ofCfnEndpoint.DocDbSettingsProperty.getExtractDocId()
- Parameters:
extractDocId
- Specifies the document ID. Use this setting whenNestingLevel
is set to"none"
. Default value is"false"
.- Returns:
this
-
extractDocId
@Stability(Stable) public CfnEndpoint.DocDbSettingsProperty.Builder extractDocId(IResolvable extractDocId) Sets the value ofCfnEndpoint.DocDbSettingsProperty.getExtractDocId()
- Parameters:
extractDocId
- Specifies the document ID. Use this setting whenNestingLevel
is set to"none"
. Default value is"false"
.- Returns:
this
-
nestingLevel
@Stability(Stable) public CfnEndpoint.DocDbSettingsProperty.Builder nestingLevel(String nestingLevel) Sets the value ofCfnEndpoint.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 CfnEndpoint.DocDbSettingsProperty.Builder secretsManagerAccessRoleArn(String secretsManagerAccessRoleArn) Sets the value ofCfnEndpoint.DocDbSettingsProperty.getSecretsManagerAccessRoleArn()
- 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:PassRole
action.SecretsManagerSecret
has 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 theSecretsManagerSecretId
that 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 CfnEndpoint.DocDbSettingsProperty.Builder secretsManagerSecretId(String secretsManagerSecretId) Sets the value ofCfnEndpoint.DocDbSettingsProperty.getSecretsManagerSecretId()
- Parameters:
secretsManagerSecretId
- The full ARN, partial ARN, or display name of theSecretsManagerSecret
that contains the DocumentDB endpoint connection details.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEndpoint.DocDbSettingsProperty>
- Returns:
- a new instance of
CfnEndpoint.DocDbSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-