Class CfnResourceDataSyncProps.Builder
java.lang.Object
software.amazon.awscdk.services.ssm.CfnResourceDataSyncProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceDataSyncProps>
- Enclosing interface:
- CfnResourceDataSyncProps
@Stability(Stable)
public static final class CfnResourceDataSyncProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceDataSyncProps>
A builder for
CfnResourceDataSyncProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbucketName
(String bucketName) Sets the value ofCfnResourceDataSyncProps.getBucketName()
bucketPrefix
(String bucketPrefix) Sets the value ofCfnResourceDataSyncProps.getBucketPrefix()
bucketRegion
(String bucketRegion) Sets the value ofCfnResourceDataSyncProps.getBucketRegion()
build()
Builds the configured instance.Sets the value ofCfnResourceDataSyncProps.getKmsKeyArn()
s3Destination
(IResolvable s3Destination) Sets the value ofCfnResourceDataSyncProps.getS3Destination()
s3Destination
(CfnResourceDataSync.S3DestinationProperty s3Destination) Sets the value ofCfnResourceDataSyncProps.getS3Destination()
syncFormat
(String syncFormat) Sets the value ofCfnResourceDataSyncProps.getSyncFormat()
Sets the value ofCfnResourceDataSyncProps.getSyncName()
syncSource
(IResolvable syncSource) Sets the value ofCfnResourceDataSyncProps.getSyncSource()
syncSource
(CfnResourceDataSync.SyncSourceProperty syncSource) Sets the value ofCfnResourceDataSyncProps.getSyncSource()
Sets the value ofCfnResourceDataSyncProps.getSyncType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
syncName
Sets the value ofCfnResourceDataSyncProps.getSyncName()
- Parameters:
syncName
- A name for the resource data sync. This parameter is required.- Returns:
this
-
bucketName
Sets the value ofCfnResourceDataSyncProps.getBucketName()
- Parameters:
bucketName
- The name of the S3 bucket where the aggregated data is stored.- Returns:
this
-
bucketPrefix
Sets the value ofCfnResourceDataSyncProps.getBucketPrefix()
- Parameters:
bucketPrefix
- An Amazon S3 prefix for the bucket.- Returns:
this
-
bucketRegion
Sets the value ofCfnResourceDataSyncProps.getBucketRegion()
- Parameters:
bucketRegion
- The AWS Region with the S3 bucket targeted by the resource data sync.- Returns:
this
-
kmsKeyArn
Sets the value ofCfnResourceDataSyncProps.getKmsKeyArn()
- Parameters:
kmsKeyArn
- The ARN of an encryption key for a destination in Amazon S3 . You can use a KMS key to encrypt inventory data in Amazon S3 . You must specify a key that exist in the same region as the destination Amazon S3 bucket.- Returns:
this
-
s3Destination
Sets the value ofCfnResourceDataSyncProps.getS3Destination()
- Parameters:
s3Destination
- Configuration information for the target S3 bucket.- Returns:
this
-
s3Destination
@Stability(Stable) public CfnResourceDataSyncProps.Builder s3Destination(CfnResourceDataSync.S3DestinationProperty s3Destination) Sets the value ofCfnResourceDataSyncProps.getS3Destination()
- Parameters:
s3Destination
- Configuration information for the target S3 bucket.- Returns:
this
-
syncFormat
Sets the value ofCfnResourceDataSyncProps.getSyncFormat()
- Parameters:
syncFormat
- A supported sync format. The following format is currently supported: JsonSerDe- Returns:
this
-
syncSource
Sets the value ofCfnResourceDataSyncProps.getSyncSource()
- Parameters:
syncSource
- Information about the source where the data was synchronized.- Returns:
this
-
syncSource
@Stability(Stable) public CfnResourceDataSyncProps.Builder syncSource(CfnResourceDataSync.SyncSourceProperty syncSource) Sets the value ofCfnResourceDataSyncProps.getSyncSource()
- Parameters:
syncSource
- Information about the source where the data was synchronized.- Returns:
this
-
syncType
Sets the value ofCfnResourceDataSyncProps.getSyncType()
- Parameters:
syncType
- The type of resource data sync. IfSyncType
isSyncToDestination
, then the resource data sync synchronizes data to an S3 bucket. If theSyncType
isSyncFromSource
then the resource data sync synchronizes data from AWS Organizations or from multiple AWS Regions .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourceDataSyncProps>
- Returns:
- a new instance of
CfnResourceDataSyncProps
- Throws:
NullPointerException
- if any required attribute was not provided
-