aws_ddk_core.stages.DMSS3ToS3Stage¶
- class aws_ddk_core.stages.DMSS3ToS3Stage(*args: Any, **kwargs)¶
Class that represents a DMS to S3 to S3 Replication DDK Stage.
- __init__(scope: constructs.Construct, id: str, environment_id: str, source_bucket: aws_cdk.aws_s3.IBucket, target_bucket: aws_cdk.aws_s3.IBucket, external_table_definition: str, table_mappings: Optional[str] = None, replication_instance_class: str = 'dms.c5.large', source_bucket_prefix: Optional[str] = None, target_bucket_prefix: Optional[str] = None, **kwargs: Any) None ¶
DDK DMS S3 to S3 replication stage
- Parameters
scope (Construct) – Scope within which this construct is defined
id (str) – Identifier of the stage
environment_id (str) – Identifier of the environment
source_bucket (IBucket) – Source S3 Bucket
source_bucket_prefix (Optional[str]) – Optional s3 prefix
target_bucket (IBucket) – Target/Destination S3 Bucket
target_bucket_prefix (Optional[str]) – Optional s3 prefix
external_table_definition (str) – An external table definition is a JSON document that describes how AWS DMS should interpret the data from Amazon S3. See: https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.S3.html#CHAP_Source.S3.ExternalTableDef
table_mappings (str) – The table mappings for the task, in JSON format. For more information see: https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html
Methods
__init__
(scope, id, environment_id, ...[, ...])DDK DMS S3 to S3 replication stage
add_alarm
(alarm_id, alarm_metric[, ...])Add a CloudWatch alarm for the Data Stage
Get output event pattern of the stage.
Get input targets of the stage.
is_construct
(x)Checks if
x
is a construct.to_string
()Returns a string representation of this construct.
Attributes
cloudwatch_alarms
List[Alarm] List of CloudWatch Alarms linked to the stage
EventPattern The S3 event pattern
node
The tree node.
- property event_pattern: aws_cdk.aws_events.EventPattern¶
EventPattern The S3 event pattern
- Type
Return
- get_event_pattern() Optional[aws_cdk.aws_events.EventPattern] ¶
Get output event pattern of the stage.
Event pattern describes the structure of output event(s) produced by this stage. Event Rules use event patterns to select events and route them to targets.
- Returns
event_pattern – Event pattern
- Return type
Optional[EventPattern]
- get_targets() Optional[List[aws_cdk.aws_events.IRuleTarget]] ¶
Get input targets of the stage.
Targets are used by Event Rules to describe what should be invoked when a rule matches an event.
- Returns
targets – List of targets
- Return type
Optional[List[IRuleTarget]]