Skip to content
v2.278.0

PostLaunchActionsProperty Struct ​

Post launch actions to execute on the Test or Cutover instance.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mgn as mgn } from 'aws-cdk-lib';
const postLaunchActionsProperty: mgn.CfnLaunchConfigurationTemplate.PostLaunchActionsProperty = {
  cloudWatchLogGroupName: 'cloudWatchLogGroupName',
  deployment: 'deployment',
  s3LogBucket: 's3LogBucket',
  s3OutputKeyPrefix: 's3OutputKeyPrefix',
  ssmDocuments: [{
    actionName: 'actionName',
    ssmDocumentName: 'ssmDocumentName',

    // the properties below are optional
    externalParameters: {
      externalParametersKey: {
        dynamicPath: 'dynamicPath',
      },
    },
    mustSucceedForCutover: false,
    parameters: {
      parametersKey: [{
        parameterName: 'parameterName',
        parameterType: 'parameterType',
      }],
    },
    timeoutSeconds: 123,
  }],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mgn as mgn

post_launch_actions_property = mgn.CfnLaunchConfigurationTemplate.PostLaunchActionsProperty(
    cloud_watch_log_group_name="cloudWatchLogGroupName",
    deployment="deployment",
    s3_log_bucket="s3LogBucket",
    s3_output_key_prefix="s3OutputKeyPrefix",
    ssm_documents=[mgn.CfnLaunchConfigurationTemplate.SsmDocumentProperty(
        action_name="actionName",
        ssm_document_name="ssmDocumentName",

        # the properties below are optional
        external_parameters={
            "external_parameters_key": mgn.CfnLaunchConfigurationTemplate.SsmExternalParameterProperty(
                dynamic_path="dynamicPath"
            )
        },
        must_succeed_for_cutover=False,
        parameters={
            "parameters_key": [mgn.CfnLaunchConfigurationTemplate.SsmParameterStoreParameterProperty(
                parameter_name="parameterName",
                parameter_type="parameterType"
            )]
        },
        timeout_seconds=123
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mgn.*;

PostLaunchActionsProperty postLaunchActionsProperty = PostLaunchActionsProperty.builder()
        .cloudWatchLogGroupName("cloudWatchLogGroupName")
        .deployment("deployment")
        .s3LogBucket("s3LogBucket")
        .s3OutputKeyPrefix("s3OutputKeyPrefix")
        .ssmDocuments(List.of(SsmDocumentProperty.builder()
                .actionName("actionName")
                .ssmDocumentName("ssmDocumentName")

                // the properties below are optional
                .externalParameters(Map.of(
                        "externalParametersKey", SsmExternalParameterProperty.builder()
                                .dynamicPath("dynamicPath")
                                .build()))
                .mustSucceedForCutover(false)
                .parameters(Map.of(
                        "parametersKey", List.of(SsmParameterStoreParameterProperty.builder()
                                .parameterName("parameterName")
                                .parameterType("parameterType")
                                .build())))
                .timeoutSeconds(123)
                .build()))
        .build();
csharp
// 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.MGN;

var postLaunchActionsProperty = new PostLaunchActionsProperty {
    CloudWatchLogGroupName = "cloudWatchLogGroupName",
    Deployment = "deployment",
    S3LogBucket = "s3LogBucket",
    S3OutputKeyPrefix = "s3OutputKeyPrefix",
    SsmDocuments = new [] { new SsmDocumentProperty {
        ActionName = "actionName",
        SsmDocumentName = "ssmDocumentName",

        // the properties below are optional
        ExternalParameters = new Dictionary<string, object> {
            { "externalParametersKey", new SsmExternalParameterProperty {
                DynamicPath = "dynamicPath"
            } }
        },
        MustSucceedForCutover = false,
        Parameters = new Dictionary<string, object> {
            { "parametersKey", new [] { new SsmParameterStoreParameterProperty {
                ParameterName = "parameterName",
                ParameterType = "parameterType"
            } } }
        },
        TimeoutSeconds = 123
    } }
};
go
// 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"

postLaunchActionsProperty := &PostLaunchActionsProperty{
	CloudWatchLogGroupName: jsii.String("cloudWatchLogGroupName"),
	Deployment: jsii.String("deployment"),
	S3LogBucket: jsii.String("s3LogBucket"),
	S3OutputKeyPrefix: jsii.String("s3OutputKeyPrefix"),
	SsmDocuments: []interface{}{
		&SsmDocumentProperty{
			ActionName: jsii.String("actionName"),
			SsmDocumentName: jsii.String("ssmDocumentName"),

			// the properties below are optional
			ExternalParameters: map[string]interface{}{
				"externalParametersKey": &SsmExternalParameterProperty{
					"dynamicPath": jsii.String("dynamicPath"),
				},
			},
			MustSucceedForCutover: jsii.Boolean(false),
			Parameters: map[string]interface{}{
				"parametersKey": []interface{}{
					&SsmParameterStoreParameterProperty{
						"parameterName": jsii.String("parameterName"),
						"parameterType": jsii.String("parameterType"),
					},
				},
			},
			TimeoutSeconds: jsii.Number(123),
		},
	},
}

Properties ​

cloudWatchLogGroupNameoptionalstringcloud_watch_log_group_nameoptionalstrcloudWatchLogGroupNameoptionalStringCloudWatchLogGroupNameoptionalstringCloudWatchLogGroupNameoptional*string #
AWS Systems Manager Command's CloudWatch log group name.
deploymentoptionalstringdeploymentoptionalstrdeploymentoptionalStringDeploymentoptionalstringDeploymentoptional*string #
Deployment type in which AWS Systems Manager Documents will be executed.
s3LogBucketoptionalstrings3_log_bucketoptionalstrs3LogBucketoptionalStringS3LogBucketoptionalstringS3LogBucketoptional*string #
AWS Systems Manager Command's logs S3 log bucket.
s3OutputKeyPrefixoptionalstrings3_output_key_prefixoptionalstrs3OutputKeyPrefixoptionalStringS3OutputKeyPrefixoptionalstringS3OutputKeyPrefixoptional*string #
AWS Systems Manager Command's logs S3 output key prefix.
ssmDocumentsoptionalIResolvable | IResolvable | CfnLaunchConfigurationTemplate.SsmDocumentProperty[]ssm_documentsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SsmDocumentProperty]]]ssmDocumentsoptionalIResolvableSsmDocumentsoptionalIResolvableSsmDocumentsoptionalinterface{} #
AWS Systems Manager Documents to execute, in order.