import { ImagePipeline } from 'cdk-image-pipeline'
new ImagePipeline(scope: Construct, id: string, props: ImagePipelineProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
ImagePipelineProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: ImagePipelineProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { ImagePipeline } from 'cdk-image-pipeline'
ImagePipeline.isConstruct(x: any)
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
imageRecipeComponents |
aws-cdk-lib.aws_imagebuilder.CfnImageRecipe.ComponentConfigurationProperty[] |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly imageRecipeComponents: ComponentConfigurationProperty[];
- Type: aws-cdk-lib.aws_imagebuilder.CfnImageRecipe.ComponentConfigurationProperty[]
import { ComponentProps } from 'cdk-image-pipeline'
const componentProps: ComponentProps = { ... }
Name | Type | Description |
---|---|---|
document |
string |
Relative path to Image Builder component document. |
name |
string |
Name of the Component Document. |
version |
string |
Version for each component document. |
public readonly document: string;
- Type: string
Relative path to Image Builder component document.
public readonly name: string;
- Type: string
Name of the Component Document.
public readonly version: string;
- Type: string
Version for each component document.
import { ImagePipelineProps } from 'cdk-image-pipeline'
const imagePipelineProps: ImagePipelineProps = { ... }
Name | Type | Description |
---|---|---|
components |
ComponentProps[] |
List of component props. |
imageRecipe |
string |
Name of the Image Recipe. |
infraConfigName |
string |
Name of the Infrastructure Configuration for Image Builder. |
kmsKeyAlias |
string |
KMS Key used to encrypt the SNS topic. |
parentImage |
string |
The source (parent) image that the image recipe uses as its base environment. |
pipelineName |
string |
Name of the Image Pipeline. |
profileName |
string |
Name of the instance profile that will be associated with the Instance Configuration. |
additionalPolicies |
aws-cdk-lib.aws_iam.ManagedPolicy[] |
Additional policies to add to the instance profile associated with the Instance Configurations. |
amiIdSsmAccountId |
string |
Account ID for Parameter Store path above. |
amiIdSsmPath |
string |
Parameter Store path to store latest AMI ID under. |
amiIdSsmRegion |
string |
Region for Parameter Store path above. |
distributionAccountIDs |
string[] |
List of accounts to copy this AMI to, if the option to do so is enabled. |
distributionRegions |
string[] |
List of regions to copy this AMI to, if the option to do so is enabled. |
ebsVolumeConfigurations |
VolumeProps[] |
Configuration for the AMI's EBS volumes. |
email |
string |
Email used to receive Image Builder Pipeline Notifications via SNS. |
enableCrossAccountDistribution |
boolean |
Set to true if you want to copy this AMI to other accounts using a Distribution Configuration. |
enableVulnScans |
boolean |
Set to true if you want to enable continuous vulnerability scans through AWS Inpector. |
imageRecipeVersion |
string |
Image recipe version (Default: 0.0.1). |
instanceTypes |
string[] |
List of instance types used in the Instance Configuration (Default: [ 't3.medium', 'm5.large', 'm5.xlarge' ]). |
platform |
string |
Platform type Linux or Windows (Default: Linux). |
securityGroups |
string[] |
List of security group IDs for the Infrastructure Configuration. |
subnetId |
string |
Subnet ID for the Infrastructure Configuration. |
userDataScript |
string |
UserData script that will override default one (if specified). |
vulnScansRepoName |
string |
Store vulnerability scans through AWS Inpsector in ECR using this repo name (if option is enabled). |
vulnScansRepoTags |
string[] |
Store vulnerability scans through AWS Inpsector in ECR using these image tags (if option is enabled). |
public readonly components: ComponentProps[];
- Type: ComponentProps[]
List of component props.
public readonly imageRecipe: string;
- Type: string
Name of the Image Recipe.
public readonly infraConfigName: string;
- Type: string
Name of the Infrastructure Configuration for Image Builder.
public readonly kmsKeyAlias: string;
- Type: string
KMS Key used to encrypt the SNS topic.
Enter an existing KMS Key Alias in your target account/region.
public readonly parentImage: string;
- Type: string
The source (parent) image that the image recipe uses as its base environment.
The value can be the parent image ARN or an Image Builder AMI ID
public readonly pipelineName: string;
- Type: string
Name of the Image Pipeline.
public readonly profileName: string;
- Type: string
Name of the instance profile that will be associated with the Instance Configuration.
public readonly additionalPolicies: ManagedPolicy[];
- Type: aws-cdk-lib.aws_iam.ManagedPolicy[]
Additional policies to add to the instance profile associated with the Instance Configurations.
public readonly amiIdSsmAccountId: string;
- Type: string
Account ID for Parameter Store path above.
public readonly amiIdSsmPath: string;
- Type: string
Parameter Store path to store latest AMI ID under.
public readonly amiIdSsmRegion: string;
- Type: string
Region for Parameter Store path above.
public readonly distributionAccountIDs: string[];
- Type: string[]
List of accounts to copy this AMI to, if the option to do so is enabled.
public readonly distributionRegions: string[];
- Type: string[]
List of regions to copy this AMI to, if the option to do so is enabled.
public readonly ebsVolumeConfigurations: VolumeProps[];
- Type: VolumeProps[]
Configuration for the AMI's EBS volumes.
public readonly email: string;
- Type: string
Email used to receive Image Builder Pipeline Notifications via SNS.
public readonly enableCrossAccountDistribution: boolean;
- Type: boolean
Set to true if you want to copy this AMI to other accounts using a Distribution Configuration.
public readonly enableVulnScans: boolean;
- Type: boolean
Set to true if you want to enable continuous vulnerability scans through AWS Inpector.
public readonly imageRecipeVersion: string;
- Type: string
Image recipe version (Default: 0.0.1).
public readonly instanceTypes: string[];
- Type: string[]
List of instance types used in the Instance Configuration (Default: [ 't3.medium', 'm5.large', 'm5.xlarge' ]).
public readonly platform: string;
- Type: string
Platform type Linux or Windows (Default: Linux).
public readonly securityGroups: string[];
- Type: string[]
List of security group IDs for the Infrastructure Configuration.
public readonly subnetId: string;
- Type: string
Subnet ID for the Infrastructure Configuration.
public readonly userDataScript: string;
- Type: string
- Default: none
UserData script that will override default one (if specified).
public readonly vulnScansRepoName: string;
- Type: string
Store vulnerability scans through AWS Inpsector in ECR using this repo name (if option is enabled).
public readonly vulnScansRepoTags: string[];
- Type: string[]
Store vulnerability scans through AWS Inpsector in ECR using these image tags (if option is enabled).
import { VolumeProps } from 'cdk-image-pipeline'
const volumeProps: VolumeProps = { ... }
Name | Type | Description |
---|---|---|
deviceName |
string |
Name of the volume. |
ebs |
aws-cdk-lib.aws_imagebuilder.CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty |
EBS Block Store Parameters. |
public readonly deviceName: string;
- Type: string
Name of the volume.
public readonly ebs: EbsInstanceBlockDeviceSpecificationProperty;
- Type: aws-cdk-lib.aws_imagebuilder.CfnImageRecipe.EbsInstanceBlockDeviceSpecificationProperty
EBS Block Store Parameters.