How to use the @aws-cdk/aws-ssm.ParameterType function in @aws-cdk/aws-ssm

To help you get started, we’ve selected a few @aws-cdk/aws-ssm examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws / aws-cdk / packages / @aws-cdk / aws-ecs / lib / cluster.ts View on Github external
public getImage(scope: Construct): ec2.MachineImageConfig {
    const ami = ssm.StringParameter.valueForTypedStringParameter(scope, this.amiParameterName, ssm.ParameterType.AWS_EC2_IMAGE_ID);
    return {
      imageId: ami,
      osType: this.windowsVersion ? ec2.OperatingSystemType.WINDOWS : ec2.OperatingSystemType.LINUX
    };
  }
}

@aws-cdk/aws-ssm

The CDK Construct Library for AWS::SSM

Apache-2.0
Latest version published 1 year ago

Package Health Score

70 / 100
Full package analysis