DocDbSettingsProperty Struct
Provides information that defines a DocumentDB endpoint.
This information includes the output format of records applied to the endpoint and details of transaction and control table data information. For more information about other available settings, see Using extra connections attributes with Amazon DocumentDB as a source and Using Amazon DocumentDB as a target for AWS Database Migration Service in the AWS Database Migration Service User Guide .
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dms as dms } from 'aws-cdk-lib';
const docDbSettingsProperty: dms.CfnEndpoint.DocDbSettingsProperty = {
docsToInvestigate: 123,
extractDocId: false,
nestingLevel: 'nestingLevel',
secretsManagerAccessRoleArn: 'secretsManagerAccessRoleArn',
secretsManagerSecretId: 'secretsManagerSecretId',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dms as dms
doc_db_settings_property = dms.CfnEndpoint.DocDbSettingsProperty(
docs_to_investigate=123,
extract_doc_id=False,
nesting_level="nestingLevel",
secrets_manager_access_role_arn="secretsManagerAccessRoleArn",
secrets_manager_secret_id="secretsManagerSecretId"
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dms.*;
DocDbSettingsProperty docDbSettingsProperty = DocDbSettingsProperty.builder()
.docsToInvestigate(123)
.extractDocId(false)
.nestingLevel("nestingLevel")
.secretsManagerAccessRoleArn("secretsManagerAccessRoleArn")
.secretsManagerSecretId("secretsManagerSecretId")
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DMS;
var docDbSettingsProperty = new DocDbSettingsProperty {
DocsToInvestigate = 123,
ExtractDocId = false,
NestingLevel = "nestingLevel",
SecretsManagerAccessRoleArn = "secretsManagerAccessRoleArn",
SecretsManagerSecretId = "secretsManagerSecretId"
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
docDbSettingsProperty := &DocDbSettingsProperty{
DocsToInvestigate: jsii.Number(123),
ExtractDocId: jsii.Boolean(false),
NestingLevel: jsii.String("nestingLevel"),
SecretsManagerAccessRoleArn: jsii.String("secretsManagerAccessRoleArn"),
SecretsManagerSecretId: jsii.String("secretsManagerSecretId"),
}
Properties
docsToInvestigateoptionalnumberdocs_to_investigateoptionalint | floatdocsToInvestigateoptionalNumberDocsToInvestigateoptionaldoubleDocsToInvestigateoptional*float64 #Use this setting when NestingLevel is set to "one" .
Must be a positive value greater than 0 . Default value is 1000 .
extractDocIdoptionalboolean | IResolvableextract_doc_idoptionaltyping.Union[bool, IResolvable]extractDocIdoptionalBooleanExtractDocIdoptionalboolExtractDocIdoptionalinterface{} #Default value is "false" .
nestingLeveloptionalstringnesting_leveloptionalstrnestingLeveloptionalStringNestingLeveloptionalstringNestingLeveloptional*string #Default value is "none" . Specify "none" to use document mode. Specify "one" to use table mode.
secretsManagerAccessRoleArnoptionalstringsecrets_manager_access_role_arnoptionalstrsecretsManagerAccessRoleArnoptionalStringSecretsManagerAccessRoleArnoptionalstringSecretsManagerAccessRoleArnoptional*string #notes
The role must allow the iam: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 theSecretsManagerSecretIdthat is required to access it, see Using secrets to access AWS Database Migration Service resources in the AWS Database Migration Service User Guide .
secretsManagerSecretIdoptionalstringsecrets_manager_secret_idoptionalstrsecretsManagerSecretIdoptionalStringSecretsManagerSecretIdoptionalstringSecretsManagerSecretIdoptional*string #