Documentation ¶
Index ¶
- func CfnComponent_CFN_RESOURCE_TYPE_NAME() *string
- func CfnComponent_IsCfnElement(x interface{}) *bool
- func CfnComponent_IsCfnResource(x interface{}) *bool
- func CfnComponent_IsConstruct(x interface{}) *bool
- func CfnContainerRecipe_CFN_RESOURCE_TYPE_NAME() *string
- func CfnContainerRecipe_IsCfnElement(x interface{}) *bool
- func CfnContainerRecipe_IsCfnResource(x interface{}) *bool
- func CfnContainerRecipe_IsConstruct(x interface{}) *bool
- func CfnDistributionConfiguration_CFN_RESOURCE_TYPE_NAME() *string
- func CfnDistributionConfiguration_IsCfnElement(x interface{}) *bool
- func CfnDistributionConfiguration_IsCfnResource(x interface{}) *bool
- func CfnDistributionConfiguration_IsConstruct(x interface{}) *bool
- func CfnImagePipeline_CFN_RESOURCE_TYPE_NAME() *string
- func CfnImagePipeline_IsCfnElement(x interface{}) *bool
- func CfnImagePipeline_IsCfnResource(x interface{}) *bool
- func CfnImagePipeline_IsConstruct(x interface{}) *bool
- func CfnImageRecipe_CFN_RESOURCE_TYPE_NAME() *string
- func CfnImageRecipe_IsCfnElement(x interface{}) *bool
- func CfnImageRecipe_IsCfnResource(x interface{}) *bool
- func CfnImageRecipe_IsConstruct(x interface{}) *bool
- func CfnImage_CFN_RESOURCE_TYPE_NAME() *string
- func CfnImage_IsCfnElement(x interface{}) *bool
- func CfnImage_IsCfnResource(x interface{}) *bool
- func CfnImage_IsConstruct(x interface{}) *bool
- func CfnInfrastructureConfiguration_CFN_RESOURCE_TYPE_NAME() *string
- func CfnInfrastructureConfiguration_IsCfnElement(x interface{}) *bool
- func CfnInfrastructureConfiguration_IsCfnResource(x interface{}) *bool
- func CfnInfrastructureConfiguration_IsConstruct(x interface{}) *bool
- func CfnLifecyclePolicy_CFN_RESOURCE_TYPE_NAME() *string
- func CfnLifecyclePolicy_IsCfnElement(x interface{}) *bool
- func CfnLifecyclePolicy_IsCfnResource(x interface{}) *bool
- func CfnLifecyclePolicy_IsConstruct(x interface{}) *bool
- func NewCfnComponent_Override(c CfnComponent, scope constructs.Construct, id *string, ...)
- func NewCfnContainerRecipe_Override(c CfnContainerRecipe, scope constructs.Construct, id *string, ...)
- func NewCfnDistributionConfiguration_Override(c CfnDistributionConfiguration, scope constructs.Construct, id *string, ...)
- func NewCfnImagePipeline_Override(c CfnImagePipeline, scope constructs.Construct, id *string, ...)
- func NewCfnImageRecipe_Override(c CfnImageRecipe, scope constructs.Construct, id *string, ...)
- func NewCfnImage_Override(c CfnImage, scope constructs.Construct, id *string, props *CfnImageProps)
- func NewCfnInfrastructureConfiguration_Override(c CfnInfrastructureConfiguration, scope constructs.Construct, id *string, ...)
- func NewCfnLifecyclePolicy_Override(c CfnLifecyclePolicy, scope constructs.Construct, id *string, ...)
- type CfnComponent
- type CfnComponentProps
- type CfnContainerRecipe
- type CfnContainerRecipeProps
- type CfnContainerRecipe_ComponentConfigurationProperty
- type CfnContainerRecipe_ComponentParameterProperty
- type CfnContainerRecipe_EbsInstanceBlockDeviceSpecificationProperty
- type CfnContainerRecipe_InstanceBlockDeviceMappingProperty
- type CfnContainerRecipe_InstanceConfigurationProperty
- type CfnContainerRecipe_TargetContainerRepositoryProperty
- type CfnDistributionConfiguration
- type CfnDistributionConfigurationProps
- type CfnDistributionConfiguration_AmiDistributionConfigurationProperty
- type CfnDistributionConfiguration_ContainerDistributionConfigurationProperty
- type CfnDistributionConfiguration_DistributionProperty
- type CfnDistributionConfiguration_FastLaunchConfigurationProperty
- type CfnDistributionConfiguration_FastLaunchLaunchTemplateSpecificationProperty
- type CfnDistributionConfiguration_FastLaunchSnapshotConfigurationProperty
- type CfnDistributionConfiguration_LaunchPermissionConfigurationProperty
- type CfnDistributionConfiguration_LaunchTemplateConfigurationProperty
- type CfnDistributionConfiguration_TargetContainerRepositoryProperty
- type CfnImage
- type CfnImagePipeline
- type CfnImagePipelineProps
- type CfnImagePipeline_EcrConfigurationProperty
- type CfnImagePipeline_ImageScanningConfigurationProperty
- type CfnImagePipeline_ImageTestsConfigurationProperty
- type CfnImagePipeline_ScheduleProperty
- type CfnImageProps
- type CfnImageRecipe
- type CfnImageRecipeProps
- type CfnImageRecipe_AdditionalInstanceConfigurationProperty
- type CfnImageRecipe_ComponentConfigurationProperty
- type CfnImageRecipe_ComponentParameterProperty
- type CfnImageRecipe_EbsInstanceBlockDeviceSpecificationProperty
- type CfnImageRecipe_InstanceBlockDeviceMappingProperty
- type CfnImageRecipe_SystemsManagerAgentProperty
- type CfnImage_EcrConfigurationProperty
- type CfnImage_ImageScanningConfigurationProperty
- type CfnImage_ImageTestsConfigurationProperty
- type CfnInfrastructureConfiguration
- type CfnInfrastructureConfigurationProps
- type CfnInfrastructureConfiguration_InstanceMetadataOptionsProperty
- type CfnInfrastructureConfiguration_LoggingProperty
- type CfnInfrastructureConfiguration_S3LogsProperty
- type CfnLifecyclePolicy
- type CfnLifecyclePolicyProps
- type CfnLifecyclePolicy_ActionProperty
- type CfnLifecyclePolicy_AmiExclusionRulesProperty
- type CfnLifecyclePolicy_ExclusionRulesProperty
- type CfnLifecyclePolicy_FilterProperty
- type CfnLifecyclePolicy_IncludeResourcesProperty
- type CfnLifecyclePolicy_LastLaunchedProperty
- type CfnLifecyclePolicy_PolicyDetailProperty
- type CfnLifecyclePolicy_RecipeSelectionProperty
- type CfnLifecyclePolicy_ResourceSelectionProperty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CfnComponent_CFN_RESOURCE_TYPE_NAME ¶
func CfnComponent_CFN_RESOURCE_TYPE_NAME() *string
func CfnComponent_IsCfnElement ¶
func CfnComponent_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnComponent_IsCfnResource ¶
func CfnComponent_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnComponent_IsConstruct ¶
func CfnComponent_IsConstruct(x interface{}) *bool
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnContainerRecipe_CFN_RESOURCE_TYPE_NAME ¶
func CfnContainerRecipe_CFN_RESOURCE_TYPE_NAME() *string
func CfnContainerRecipe_IsCfnElement ¶
func CfnContainerRecipe_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnContainerRecipe_IsCfnResource ¶
func CfnContainerRecipe_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnContainerRecipe_IsConstruct ¶
func CfnContainerRecipe_IsConstruct(x interface{}) *bool
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnDistributionConfiguration_CFN_RESOURCE_TYPE_NAME ¶
func CfnDistributionConfiguration_CFN_RESOURCE_TYPE_NAME() *string
func CfnDistributionConfiguration_IsCfnElement ¶
func CfnDistributionConfiguration_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnDistributionConfiguration_IsCfnResource ¶
func CfnDistributionConfiguration_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnDistributionConfiguration_IsConstruct ¶
func CfnDistributionConfiguration_IsConstruct(x interface{}) *bool
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnImagePipeline_CFN_RESOURCE_TYPE_NAME ¶
func CfnImagePipeline_CFN_RESOURCE_TYPE_NAME() *string
func CfnImagePipeline_IsCfnElement ¶
func CfnImagePipeline_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnImagePipeline_IsCfnResource ¶
func CfnImagePipeline_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnImagePipeline_IsConstruct ¶
func CfnImagePipeline_IsConstruct(x interface{}) *bool
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnImageRecipe_CFN_RESOURCE_TYPE_NAME ¶
func CfnImageRecipe_CFN_RESOURCE_TYPE_NAME() *string
func CfnImageRecipe_IsCfnElement ¶
func CfnImageRecipe_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnImageRecipe_IsCfnResource ¶
func CfnImageRecipe_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnImageRecipe_IsConstruct ¶
func CfnImageRecipe_IsConstruct(x interface{}) *bool
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnImage_CFN_RESOURCE_TYPE_NAME ¶
func CfnImage_CFN_RESOURCE_TYPE_NAME() *string
func CfnImage_IsCfnElement ¶
func CfnImage_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnImage_IsCfnResource ¶
func CfnImage_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnImage_IsConstruct ¶
func CfnImage_IsConstruct(x interface{}) *bool
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnInfrastructureConfiguration_CFN_RESOURCE_TYPE_NAME ¶
func CfnInfrastructureConfiguration_CFN_RESOURCE_TYPE_NAME() *string
func CfnInfrastructureConfiguration_IsCfnElement ¶
func CfnInfrastructureConfiguration_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnInfrastructureConfiguration_IsCfnResource ¶
func CfnInfrastructureConfiguration_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnInfrastructureConfiguration_IsConstruct ¶
func CfnInfrastructureConfiguration_IsConstruct(x interface{}) *bool
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnLifecyclePolicy_CFN_RESOURCE_TYPE_NAME ¶ added in v2.110.0
func CfnLifecyclePolicy_CFN_RESOURCE_TYPE_NAME() *string
func CfnLifecyclePolicy_IsCfnElement ¶ added in v2.110.0
func CfnLifecyclePolicy_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnLifecyclePolicy_IsCfnResource ¶ added in v2.110.0
func CfnLifecyclePolicy_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnLifecyclePolicy_IsConstruct ¶ added in v2.110.0
func CfnLifecyclePolicy_IsConstruct(x interface{}) *bool
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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func NewCfnComponent_Override ¶
func NewCfnComponent_Override(c CfnComponent, scope constructs.Construct, id *string, props *CfnComponentProps)
func NewCfnContainerRecipe_Override ¶
func NewCfnContainerRecipe_Override(c CfnContainerRecipe, scope constructs.Construct, id *string, props *CfnContainerRecipeProps)
func NewCfnDistributionConfiguration_Override ¶
func NewCfnDistributionConfiguration_Override(c CfnDistributionConfiguration, scope constructs.Construct, id *string, props *CfnDistributionConfigurationProps)
func NewCfnImagePipeline_Override ¶
func NewCfnImagePipeline_Override(c CfnImagePipeline, scope constructs.Construct, id *string, props *CfnImagePipelineProps)
func NewCfnImageRecipe_Override ¶
func NewCfnImageRecipe_Override(c CfnImageRecipe, scope constructs.Construct, id *string, props *CfnImageRecipeProps)
func NewCfnImage_Override ¶
func NewCfnImage_Override(c CfnImage, scope constructs.Construct, id *string, props *CfnImageProps)
func NewCfnInfrastructureConfiguration_Override ¶
func NewCfnInfrastructureConfiguration_Override(c CfnInfrastructureConfiguration, scope constructs.Construct, id *string, props *CfnInfrastructureConfigurationProps)
func NewCfnLifecyclePolicy_Override ¶ added in v2.110.0
func NewCfnLifecyclePolicy_Override(c CfnLifecyclePolicy, scope constructs.Construct, id *string, props *CfnLifecyclePolicyProps)
Types ¶
type CfnComponent ¶
type CfnComponent interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // Returns the Amazon Resource Name (ARN) of the component. // // The following pattern is applied: `^arn:aws[^:]*:imagebuilder:[^:]+:(?:\d{12}|aws):(?:image-recipe|infrastructure-configuration|distribution-configuration|component|image|image-pipeline)/[a-z0-9-_]+(?:/(?:(?:x|\d+)\.(?:x|\d+)\.(?:x|\d+))(?:/\d+)?)?$` . AttrArn() *string // Returns the encryption status of the component. // // For example `true` or `false` . AttrEncrypted() awscdk.IResolvable // Returns the name of the component. AttrName() *string // Image Builder determines the component type based on the phases that are defined in the component document. // // If there is only one phase, and its name is "test", then the type is `TEST` . For all other components, the type is `BUILD` . AttrType() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // The change description of the component. ChangeDescription() *string SetChangeDescription(val *string) // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // Component `data` contains inline YAML document content for the component. Data() *string SetData(val *string) // Describes the contents of the component. Description() *string SetDescription(val *string) // The ID of the KMS key that is used to encrypt this component. KmsKeyId() *string SetKmsKeyId(val *string) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name of the component. Name() *string SetName(val *string) // The tree node. Node() constructs.Node // The operating system platform of the component. Platform() *string SetPlatform(val *string) // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // The operating system (OS) version supported by the component. SupportedOsVersions() *[]*string SetSupportedOsVersions(val *[]*string) // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // The tags that apply to the component. TagsRaw() *map[string]*string SetTagsRaw(val *map[string]*string) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // The `uri` of a YAML component document file. Uri() *string SetUri(val *string) // The component version. Version() *string SetVersion(val *string) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
Creates a new component that can be used to build, validate, test, and assess your image.
The component is based on a YAML document that you specify using exactly one of the following methods:
- Inline, using the `data` property in the request body. - A URL that points to a YAML document file stored in Amazon S3, using the `uri` property in the request body.
Example:
// 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" cfnComponent := awscdk.Aws_imagebuilder.NewCfnComponent(this, jsii.String("MyCfnComponent"), &CfnComponentProps{ Name: jsii.String("name"), Platform: jsii.String("platform"), Version: jsii.String("version"), // the properties below are optional ChangeDescription: jsii.String("changeDescription"), Data: jsii.String("data"), Description: jsii.String("description"), KmsKeyId: jsii.String("kmsKeyId"), SupportedOsVersions: []*string{ jsii.String("supportedOsVersions"), }, Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, Uri: jsii.String("uri"), })
func NewCfnComponent ¶
func NewCfnComponent(scope constructs.Construct, id *string, props *CfnComponentProps) CfnComponent
type CfnComponentProps ¶
type CfnComponentProps struct { // The name of the component. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-component.html#cfn-imagebuilder-component-name // Name *string `field:"required" json:"name" yaml:"name"` // The operating system platform of the component. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-component.html#cfn-imagebuilder-component-platform // Platform *string `field:"required" json:"platform" yaml:"platform"` // The component version. // // For example, `1.0.0` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-component.html#cfn-imagebuilder-component-version // Version *string `field:"required" json:"version" yaml:"version"` // The change description of the component. // // Describes what change has been made in this version, or what makes this version different from other versions of this component. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-component.html#cfn-imagebuilder-component-changedescription // ChangeDescription *string `field:"optional" json:"changeDescription" yaml:"changeDescription"` // Component `data` contains inline YAML document content for the component. // // Alternatively, you can specify the `uri` of a YAML document file stored in Amazon S3. However, you cannot specify both properties. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-component.html#cfn-imagebuilder-component-data // Data *string `field:"optional" json:"data" yaml:"data"` // Describes the contents of the component. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-component.html#cfn-imagebuilder-component-description // Description *string `field:"optional" json:"description" yaml:"description"` // The ID of the KMS key that is used to encrypt this component. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-component.html#cfn-imagebuilder-component-kmskeyid // KmsKeyId *string `field:"optional" json:"kmsKeyId" yaml:"kmsKeyId"` // The operating system (OS) version supported by the component. // // If the OS information is available, a prefix match is performed against the base image OS version during image recipe creation. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-component.html#cfn-imagebuilder-component-supportedosversions // SupportedOsVersions *[]*string `field:"optional" json:"supportedOsVersions" yaml:"supportedOsVersions"` // The tags that apply to the component. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-component.html#cfn-imagebuilder-component-tags // Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"` // The `uri` of a YAML component document file. // // This must be an S3 URL ( `s3://bucket/key` ), and the requester must have permission to access the S3 bucket it points to. If you use Amazon S3, you can specify component content up to your service quota. // // Alternatively, you can specify the YAML document inline, using the component `data` property. You cannot specify both properties. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-component.html#cfn-imagebuilder-component-uri // Uri *string `field:"optional" json:"uri" yaml:"uri"` }
Properties for defining a `CfnComponent`.
Example:
// 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" cfnComponentProps := &CfnComponentProps{ Name: jsii.String("name"), Platform: jsii.String("platform"), Version: jsii.String("version"), // the properties below are optional ChangeDescription: jsii.String("changeDescription"), Data: jsii.String("data"), Description: jsii.String("description"), KmsKeyId: jsii.String("kmsKeyId"), SupportedOsVersions: []*string{ jsii.String("supportedOsVersions"), }, Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, Uri: jsii.String("uri"), }
type CfnContainerRecipe ¶
type CfnContainerRecipe interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // Returns the Amazon Resource Name (ARN) of the container recipe. // // For example, `arn:aws:imagebuilder:us-east-1:123456789012:container-recipe/mybasicrecipe/2020.12.17` . AttrArn() *string // Returns the name of the container recipe. AttrName() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Build and test components that are included in the container recipe. Components() interface{} SetComponents(val interface{}) // Specifies the type of container, such as Docker. ContainerType() *string SetContainerType(val *string) // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The description of the container recipe. Description() *string SetDescription(val *string) // Dockerfiles are text documents that are used to build Docker containers, and ensure that they contain all of the elements required by the application running inside. DockerfileTemplateData() *string SetDockerfileTemplateData(val *string) // The S3 URI for the Dockerfile that will be used to build your container image. DockerfileTemplateUri() *string SetDockerfileTemplateUri(val *string) // Specifies the operating system version for the base image. ImageOsVersionOverride() *string SetImageOsVersionOverride(val *string) // A group of options that can be used to configure an instance for building and testing container images. InstanceConfiguration() interface{} SetInstanceConfiguration(val interface{}) // Identifies which KMS key is used to encrypt the container image for distribution to the target Region. KmsKeyId() *string SetKmsKeyId(val *string) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name of the container recipe. Name() *string SetName(val *string) // The tree node. Node() constructs.Node // The base image for the container recipe. ParentImage() *string SetParentImage(val *string) // Specifies the operating system platform when you use a custom base image. PlatformOverride() *string SetPlatformOverride(val *string) // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // Tags that are attached to the container recipe. TagsRaw() *map[string]*string SetTagsRaw(val *map[string]*string) // The destination repository for the container image. TargetRepository() interface{} SetTargetRepository(val interface{}) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // The semantic version of the container recipe. Version() *string SetVersion(val *string) // The working directory for use during build and test workflows. WorkingDirectory() *string SetWorkingDirectory(val *string) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
Creates a new container recipe.
Container recipes define how images are configured, tested, and assessed.
Example:
// 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" cfnContainerRecipe := awscdk.Aws_imagebuilder.NewCfnContainerRecipe(this, jsii.String("MyCfnContainerRecipe"), &CfnContainerRecipeProps{ Components: []interface{}{ &ComponentConfigurationProperty{ ComponentArn: jsii.String("componentArn"), Parameters: []interface{}{ &ComponentParameterProperty{ Name: jsii.String("name"), Value: []*string{ jsii.String("value"), }, }, }, }, }, ContainerType: jsii.String("containerType"), Name: jsii.String("name"), ParentImage: jsii.String("parentImage"), TargetRepository: &TargetContainerRepositoryProperty{ RepositoryName: jsii.String("repositoryName"), Service: jsii.String("service"), }, Version: jsii.String("version"), // the properties below are optional Description: jsii.String("description"), DockerfileTemplateData: jsii.String("dockerfileTemplateData"), DockerfileTemplateUri: jsii.String("dockerfileTemplateUri"), ImageOsVersionOverride: jsii.String("imageOsVersionOverride"), InstanceConfiguration: &InstanceConfigurationProperty{ BlockDeviceMappings: []interface{}{ &InstanceBlockDeviceMappingProperty{ DeviceName: jsii.String("deviceName"), Ebs: &EbsInstanceBlockDeviceSpecificationProperty{ DeleteOnTermination: jsii.Boolean(false), Encrypted: jsii.Boolean(false), Iops: jsii.Number(123), KmsKeyId: jsii.String("kmsKeyId"), SnapshotId: jsii.String("snapshotId"), Throughput: jsii.Number(123), VolumeSize: jsii.Number(123), VolumeType: jsii.String("volumeType"), }, NoDevice: jsii.String("noDevice"), VirtualName: jsii.String("virtualName"), }, }, Image: jsii.String("image"), }, KmsKeyId: jsii.String("kmsKeyId"), PlatformOverride: jsii.String("platformOverride"), Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, WorkingDirectory: jsii.String("workingDirectory"), })
func NewCfnContainerRecipe ¶
func NewCfnContainerRecipe(scope constructs.Construct, id *string, props *CfnContainerRecipeProps) CfnContainerRecipe
type CfnContainerRecipeProps ¶
type CfnContainerRecipeProps struct { // Build and test components that are included in the container recipe. // // Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-containerrecipe.html#cfn-imagebuilder-containerrecipe-components // Components interface{} `field:"required" json:"components" yaml:"components"` // Specifies the type of container, such as Docker. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-containerrecipe.html#cfn-imagebuilder-containerrecipe-containertype // ContainerType *string `field:"required" json:"containerType" yaml:"containerType"` // The name of the container recipe. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-containerrecipe.html#cfn-imagebuilder-containerrecipe-name // Name *string `field:"required" json:"name" yaml:"name"` // The base image for the container recipe. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-containerrecipe.html#cfn-imagebuilder-containerrecipe-parentimage // ParentImage *string `field:"required" json:"parentImage" yaml:"parentImage"` // The destination repository for the container image. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-containerrecipe.html#cfn-imagebuilder-containerrecipe-targetrepository // TargetRepository interface{} `field:"required" json:"targetRepository" yaml:"targetRepository"` // The semantic version of the container recipe. // // > The semantic version has four nodes: <major>.<minor>.<patch>/<build>. You can assign values for the first three, and can filter on all of them. // > // > *Assignment:* For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node. // > // > *Patterns:* You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01. // > // > *Filtering:* With semantic versioning, you have the flexibility to use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-containerrecipe.html#cfn-imagebuilder-containerrecipe-version // Version *string `field:"required" json:"version" yaml:"version"` // The description of the container recipe. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-containerrecipe.html#cfn-imagebuilder-containerrecipe-description // Description *string `field:"optional" json:"description" yaml:"description"` // Dockerfiles are text documents that are used to build Docker containers, and ensure that they contain all of the elements required by the application running inside. // // The template data consists of contextual variables where Image Builder places build information or scripts, based on your container image recipe. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-containerrecipe.html#cfn-imagebuilder-containerrecipe-dockerfiletemplatedata // DockerfileTemplateData *string `field:"optional" json:"dockerfileTemplateData" yaml:"dockerfileTemplateData"` // The S3 URI for the Dockerfile that will be used to build your container image. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-containerrecipe.html#cfn-imagebuilder-containerrecipe-dockerfiletemplateuri // DockerfileTemplateUri *string `field:"optional" json:"dockerfileTemplateUri" yaml:"dockerfileTemplateUri"` // Specifies the operating system version for the base image. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-containerrecipe.html#cfn-imagebuilder-containerrecipe-imageosversionoverride // ImageOsVersionOverride *string `field:"optional" json:"imageOsVersionOverride" yaml:"imageOsVersionOverride"` // A group of options that can be used to configure an instance for building and testing container images. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-containerrecipe.html#cfn-imagebuilder-containerrecipe-instanceconfiguration // InstanceConfiguration interface{} `field:"optional" json:"instanceConfiguration" yaml:"instanceConfiguration"` // Identifies which KMS key is used to encrypt the container image for distribution to the target Region. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-containerrecipe.html#cfn-imagebuilder-containerrecipe-kmskeyid // KmsKeyId *string `field:"optional" json:"kmsKeyId" yaml:"kmsKeyId"` // Specifies the operating system platform when you use a custom base image. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-containerrecipe.html#cfn-imagebuilder-containerrecipe-platformoverride // PlatformOverride *string `field:"optional" json:"platformOverride" yaml:"platformOverride"` // Tags that are attached to the container recipe. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-containerrecipe.html#cfn-imagebuilder-containerrecipe-tags // Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"` // The working directory for use during build and test workflows. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-containerrecipe.html#cfn-imagebuilder-containerrecipe-workingdirectory // WorkingDirectory *string `field:"optional" json:"workingDirectory" yaml:"workingDirectory"` }
Properties for defining a `CfnContainerRecipe`.
Example:
// 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" cfnContainerRecipeProps := &CfnContainerRecipeProps{ Components: []interface{}{ &ComponentConfigurationProperty{ ComponentArn: jsii.String("componentArn"), Parameters: []interface{}{ &ComponentParameterProperty{ Name: jsii.String("name"), Value: []*string{ jsii.String("value"), }, }, }, }, }, ContainerType: jsii.String("containerType"), Name: jsii.String("name"), ParentImage: jsii.String("parentImage"), TargetRepository: &TargetContainerRepositoryProperty{ RepositoryName: jsii.String("repositoryName"), Service: jsii.String("service"), }, Version: jsii.String("version"), // the properties below are optional Description: jsii.String("description"), DockerfileTemplateData: jsii.String("dockerfileTemplateData"), DockerfileTemplateUri: jsii.String("dockerfileTemplateUri"), ImageOsVersionOverride: jsii.String("imageOsVersionOverride"), InstanceConfiguration: &InstanceConfigurationProperty{ BlockDeviceMappings: []interface{}{ &InstanceBlockDeviceMappingProperty{ DeviceName: jsii.String("deviceName"), Ebs: &EbsInstanceBlockDeviceSpecificationProperty{ DeleteOnTermination: jsii.Boolean(false), Encrypted: jsii.Boolean(false), Iops: jsii.Number(123), KmsKeyId: jsii.String("kmsKeyId"), SnapshotId: jsii.String("snapshotId"), Throughput: jsii.Number(123), VolumeSize: jsii.Number(123), VolumeType: jsii.String("volumeType"), }, NoDevice: jsii.String("noDevice"), VirtualName: jsii.String("virtualName"), }, }, Image: jsii.String("image"), }, KmsKeyId: jsii.String("kmsKeyId"), PlatformOverride: jsii.String("platformOverride"), Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, WorkingDirectory: jsii.String("workingDirectory"), }
type CfnContainerRecipe_ComponentConfigurationProperty ¶
type CfnContainerRecipe_ComponentConfigurationProperty struct { // The Amazon Resource Name (ARN) of the component. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-componentconfiguration.html#cfn-imagebuilder-containerrecipe-componentconfiguration-componentarn // ComponentArn *string `field:"optional" json:"componentArn" yaml:"componentArn"` // A group of parameter settings that Image Builder uses to configure the component for a specific recipe. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-componentconfiguration.html#cfn-imagebuilder-containerrecipe-componentconfiguration-parameters // Parameters interface{} `field:"optional" json:"parameters" yaml:"parameters"` }
Configuration details of the component.
Example:
// 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" componentConfigurationProperty := &ComponentConfigurationProperty{ ComponentArn: jsii.String("componentArn"), Parameters: []interface{}{ &ComponentParameterProperty{ Name: jsii.String("name"), Value: []*string{ jsii.String("value"), }, }, }, }
type CfnContainerRecipe_ComponentParameterProperty ¶ added in v2.45.0
type CfnContainerRecipe_ComponentParameterProperty struct { // The name of the component parameter to set. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-componentparameter.html#cfn-imagebuilder-containerrecipe-componentparameter-name // Name *string `field:"required" json:"name" yaml:"name"` // Sets the value for the named component parameter. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-componentparameter.html#cfn-imagebuilder-containerrecipe-componentparameter-value // Value *[]*string `field:"required" json:"value" yaml:"value"` }
Contains a key/value pair that sets the named component parameter.
Example:
// 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" componentParameterProperty := &ComponentParameterProperty{ Name: jsii.String("name"), Value: []*string{ jsii.String("value"), }, }
type CfnContainerRecipe_EbsInstanceBlockDeviceSpecificationProperty ¶
type CfnContainerRecipe_EbsInstanceBlockDeviceSpecificationProperty struct { // Use to configure delete on termination of the associated device. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-ebsinstanceblockdevicespecification.html#cfn-imagebuilder-containerrecipe-ebsinstanceblockdevicespecification-deleteontermination // DeleteOnTermination interface{} `field:"optional" json:"deleteOnTermination" yaml:"deleteOnTermination"` // Use to configure device encryption. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-ebsinstanceblockdevicespecification.html#cfn-imagebuilder-containerrecipe-ebsinstanceblockdevicespecification-encrypted // Encrypted interface{} `field:"optional" json:"encrypted" yaml:"encrypted"` // Use to configure device IOPS. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-ebsinstanceblockdevicespecification.html#cfn-imagebuilder-containerrecipe-ebsinstanceblockdevicespecification-iops // Iops *float64 `field:"optional" json:"iops" yaml:"iops"` // Use to configure the KMS key to use when encrypting the device. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-ebsinstanceblockdevicespecification.html#cfn-imagebuilder-containerrecipe-ebsinstanceblockdevicespecification-kmskeyid // KmsKeyId *string `field:"optional" json:"kmsKeyId" yaml:"kmsKeyId"` // The snapshot that defines the device contents. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-ebsinstanceblockdevicespecification.html#cfn-imagebuilder-containerrecipe-ebsinstanceblockdevicespecification-snapshotid // SnapshotId *string `field:"optional" json:"snapshotId" yaml:"snapshotId"` // *For GP3 volumes only* – The throughput in MiB/s that the volume supports. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-ebsinstanceblockdevicespecification.html#cfn-imagebuilder-containerrecipe-ebsinstanceblockdevicespecification-throughput // Throughput *float64 `field:"optional" json:"throughput" yaml:"throughput"` // Use to override the device's volume size. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-ebsinstanceblockdevicespecification.html#cfn-imagebuilder-containerrecipe-ebsinstanceblockdevicespecification-volumesize // VolumeSize *float64 `field:"optional" json:"volumeSize" yaml:"volumeSize"` // Use to override the device's volume type. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-ebsinstanceblockdevicespecification.html#cfn-imagebuilder-containerrecipe-ebsinstanceblockdevicespecification-volumetype // VolumeType *string `field:"optional" json:"volumeType" yaml:"volumeType"` }
Amazon EBS-specific block device mapping specifications.
Example:
// 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" ebsInstanceBlockDeviceSpecificationProperty := &EbsInstanceBlockDeviceSpecificationProperty{ DeleteOnTermination: jsii.Boolean(false), Encrypted: jsii.Boolean(false), Iops: jsii.Number(123), KmsKeyId: jsii.String("kmsKeyId"), SnapshotId: jsii.String("snapshotId"), Throughput: jsii.Number(123), VolumeSize: jsii.Number(123), VolumeType: jsii.String("volumeType"), }
type CfnContainerRecipe_InstanceBlockDeviceMappingProperty ¶
type CfnContainerRecipe_InstanceBlockDeviceMappingProperty struct { // The device to which these mappings apply. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-instanceblockdevicemapping.html#cfn-imagebuilder-containerrecipe-instanceblockdevicemapping-devicename // DeviceName *string `field:"optional" json:"deviceName" yaml:"deviceName"` // Use to manage Amazon EBS-specific configuration for this mapping. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-instanceblockdevicemapping.html#cfn-imagebuilder-containerrecipe-instanceblockdevicemapping-ebs // Ebs interface{} `field:"optional" json:"ebs" yaml:"ebs"` // Use to remove a mapping from the base image. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-instanceblockdevicemapping.html#cfn-imagebuilder-containerrecipe-instanceblockdevicemapping-nodevice // NoDevice *string `field:"optional" json:"noDevice" yaml:"noDevice"` // Use to manage instance ephemeral devices. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-instanceblockdevicemapping.html#cfn-imagebuilder-containerrecipe-instanceblockdevicemapping-virtualname // VirtualName *string `field:"optional" json:"virtualName" yaml:"virtualName"` }
Defines block device mappings for the instance used to configure your image.
Example:
// 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" instanceBlockDeviceMappingProperty := &InstanceBlockDeviceMappingProperty{ DeviceName: jsii.String("deviceName"), Ebs: &EbsInstanceBlockDeviceSpecificationProperty{ DeleteOnTermination: jsii.Boolean(false), Encrypted: jsii.Boolean(false), Iops: jsii.Number(123), KmsKeyId: jsii.String("kmsKeyId"), SnapshotId: jsii.String("snapshotId"), Throughput: jsii.Number(123), VolumeSize: jsii.Number(123), VolumeType: jsii.String("volumeType"), }, NoDevice: jsii.String("noDevice"), VirtualName: jsii.String("virtualName"), }
type CfnContainerRecipe_InstanceConfigurationProperty ¶
type CfnContainerRecipe_InstanceConfigurationProperty struct { // Defines the block devices to attach for building an instance from this Image Builder AMI. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-instanceconfiguration.html#cfn-imagebuilder-containerrecipe-instanceconfiguration-blockdevicemappings // BlockDeviceMappings interface{} `field:"optional" json:"blockDeviceMappings" yaml:"blockDeviceMappings"` // The AMI ID to use as the base image for a container build and test instance. // // If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-instanceconfiguration.html#cfn-imagebuilder-containerrecipe-instanceconfiguration-image // Image *string `field:"optional" json:"image" yaml:"image"` }
Defines a custom base AMI and block device mapping configurations of an instance used for building and testing container images.
Example:
// 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" instanceConfigurationProperty := &InstanceConfigurationProperty{ BlockDeviceMappings: []interface{}{ &InstanceBlockDeviceMappingProperty{ DeviceName: jsii.String("deviceName"), Ebs: &EbsInstanceBlockDeviceSpecificationProperty{ DeleteOnTermination: jsii.Boolean(false), Encrypted: jsii.Boolean(false), Iops: jsii.Number(123), KmsKeyId: jsii.String("kmsKeyId"), SnapshotId: jsii.String("snapshotId"), Throughput: jsii.Number(123), VolumeSize: jsii.Number(123), VolumeType: jsii.String("volumeType"), }, NoDevice: jsii.String("noDevice"), VirtualName: jsii.String("virtualName"), }, }, Image: jsii.String("image"), }
type CfnContainerRecipe_TargetContainerRepositoryProperty ¶
type CfnContainerRecipe_TargetContainerRepositoryProperty struct { // The name of the container repository where the output container image is stored. // // This name is prefixed by the repository location. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-targetcontainerrepository.html#cfn-imagebuilder-containerrecipe-targetcontainerrepository-repositoryname // RepositoryName *string `field:"optional" json:"repositoryName" yaml:"repositoryName"` // Specifies the service in which this image was registered. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-targetcontainerrepository.html#cfn-imagebuilder-containerrecipe-targetcontainerrepository-service // Service *string `field:"optional" json:"service" yaml:"service"` }
The container repository where the output container image is stored.
Example:
// 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" targetContainerRepositoryProperty := &TargetContainerRepositoryProperty{ RepositoryName: jsii.String("repositoryName"), Service: jsii.String("service"), }
type CfnDistributionConfiguration ¶
type CfnDistributionConfiguration interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // Returns the Amazon Resource Name (ARN) of this distribution configuration. // // The following pattern is applied: `^arn:aws[^:]*:imagebuilder:[^:]+:(?:\d{12}|aws):(?:image-recipe|infrastructure-configuration|distribution-configuration|component|image|image-pipeline)/[a-z0-9-_]+(?:/(?:(?:x|\d+)\.(?:x|\d+)\.(?:x|\d+))(?:/\d+)?)?$` . AttrArn() *string // Returns the name of the distribution configuration. AttrName() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The description of this distribution configuration. Description() *string SetDescription(val *string) // The distributions of this distribution configuration formatted as an array of Distribution objects. Distributions() interface{} SetDistributions(val interface{}) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name of this distribution configuration. Name() *string SetName(val *string) // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // The tags of this distribution configuration. TagsRaw() *map[string]*string SetTagsRaw(val *map[string]*string) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
A distribution configuration allows you to specify the name and description of your output AMI, authorize other AWS account s to launch the AMI, and replicate the AMI to other AWS Regions .
It also allows you to export the AMI to Amazon S3 .
Example:
// 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" var amiDistributionConfiguration interface{} var containerDistributionConfiguration interface{} cfnDistributionConfiguration := awscdk.Aws_imagebuilder.NewCfnDistributionConfiguration(this, jsii.String("MyCfnDistributionConfiguration"), &CfnDistributionConfigurationProps{ Distributions: []interface{}{ &DistributionProperty{ Region: jsii.String("region"), // the properties below are optional AmiDistributionConfiguration: amiDistributionConfiguration, ContainerDistributionConfiguration: containerDistributionConfiguration, FastLaunchConfigurations: []interface{}{ &FastLaunchConfigurationProperty{ AccountId: jsii.String("accountId"), Enabled: jsii.Boolean(false), LaunchTemplate: &FastLaunchLaunchTemplateSpecificationProperty{ LaunchTemplateId: jsii.String("launchTemplateId"), LaunchTemplateName: jsii.String("launchTemplateName"), LaunchTemplateVersion: jsii.String("launchTemplateVersion"), }, MaxParallelLaunches: jsii.Number(123), SnapshotConfiguration: &FastLaunchSnapshotConfigurationProperty{ TargetResourceCount: jsii.Number(123), }, }, }, LaunchTemplateConfigurations: []interface{}{ &LaunchTemplateConfigurationProperty{ AccountId: jsii.String("accountId"), LaunchTemplateId: jsii.String("launchTemplateId"), SetDefaultVersion: jsii.Boolean(false), }, }, LicenseConfigurationArns: []*string{ jsii.String("licenseConfigurationArns"), }, }, }, Name: jsii.String("name"), // the properties below are optional Description: jsii.String("description"), Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, })
func NewCfnDistributionConfiguration ¶
func NewCfnDistributionConfiguration(scope constructs.Construct, id *string, props *CfnDistributionConfigurationProps) CfnDistributionConfiguration
type CfnDistributionConfigurationProps ¶
type CfnDistributionConfigurationProps struct { // The distributions of this distribution configuration formatted as an array of Distribution objects. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-distributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-distributions // Distributions interface{} `field:"required" json:"distributions" yaml:"distributions"` // The name of this distribution configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-distributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-name // Name *string `field:"required" json:"name" yaml:"name"` // The description of this distribution configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-distributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-description // Description *string `field:"optional" json:"description" yaml:"description"` // The tags of this distribution configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-distributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-tags // Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnDistributionConfiguration`.
Example:
// 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" var amiDistributionConfiguration interface{} var containerDistributionConfiguration interface{} cfnDistributionConfigurationProps := &CfnDistributionConfigurationProps{ Distributions: []interface{}{ &DistributionProperty{ Region: jsii.String("region"), // the properties below are optional AmiDistributionConfiguration: amiDistributionConfiguration, ContainerDistributionConfiguration: containerDistributionConfiguration, FastLaunchConfigurations: []interface{}{ &FastLaunchConfigurationProperty{ AccountId: jsii.String("accountId"), Enabled: jsii.Boolean(false), LaunchTemplate: &FastLaunchLaunchTemplateSpecificationProperty{ LaunchTemplateId: jsii.String("launchTemplateId"), LaunchTemplateName: jsii.String("launchTemplateName"), LaunchTemplateVersion: jsii.String("launchTemplateVersion"), }, MaxParallelLaunches: jsii.Number(123), SnapshotConfiguration: &FastLaunchSnapshotConfigurationProperty{ TargetResourceCount: jsii.Number(123), }, }, }, LaunchTemplateConfigurations: []interface{}{ &LaunchTemplateConfigurationProperty{ AccountId: jsii.String("accountId"), LaunchTemplateId: jsii.String("launchTemplateId"), SetDefaultVersion: jsii.Boolean(false), }, }, LicenseConfigurationArns: []*string{ jsii.String("licenseConfigurationArns"), }, }, }, Name: jsii.String("name"), // the properties below are optional Description: jsii.String("description"), Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, }
type CfnDistributionConfiguration_AmiDistributionConfigurationProperty ¶ added in v2.21.0
type CfnDistributionConfiguration_AmiDistributionConfigurationProperty struct { // The tags to apply to AMIs distributed to this Region. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-amidistributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-amidistributionconfiguration-amitags // AmiTags interface{} `field:"optional" json:"amiTags" yaml:"amiTags"` // The description of the AMI distribution configuration. // // Minimum and maximum length are in characters. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-amidistributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-amidistributionconfiguration-description // Description *string `field:"optional" json:"description" yaml:"description"` // The KMS key identifier used to encrypt the distributed image. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-amidistributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-amidistributionconfiguration-kmskeyid // KmsKeyId *string `field:"optional" json:"kmsKeyId" yaml:"kmsKeyId"` // Launch permissions can be used to configure which AWS account s can use the AMI to launch instances. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-amidistributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-amidistributionconfiguration-launchpermissionconfiguration // LaunchPermissionConfiguration interface{} `field:"optional" json:"launchPermissionConfiguration" yaml:"launchPermissionConfiguration"` // The name of the output AMI. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-amidistributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-amidistributionconfiguration-name // Name *string `field:"optional" json:"name" yaml:"name"` // The ID of an account to which you want to distribute an image. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-amidistributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-amidistributionconfiguration-targetaccountids // TargetAccountIds *[]*string `field:"optional" json:"targetAccountIds" yaml:"targetAccountIds"` }
Define and configure the output AMIs of the pipeline.
Example:
// 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" amiDistributionConfigurationProperty := &AmiDistributionConfigurationProperty{ AmiTags: map[string]*string{ "amiTagsKey": jsii.String("amiTags"), }, Description: jsii.String("description"), KmsKeyId: jsii.String("kmsKeyId"), LaunchPermissionConfiguration: &LaunchPermissionConfigurationProperty{ OrganizationalUnitArns: []*string{ jsii.String("organizationalUnitArns"), }, OrganizationArns: []*string{ jsii.String("organizationArns"), }, UserGroups: []*string{ jsii.String("userGroups"), }, UserIds: []*string{ jsii.String("userIds"), }, }, Name: jsii.String("name"), TargetAccountIds: []*string{ jsii.String("targetAccountIds"), }, }
type CfnDistributionConfiguration_ContainerDistributionConfigurationProperty ¶ added in v2.21.0
type CfnDistributionConfiguration_ContainerDistributionConfigurationProperty struct { // Tags that are attached to the container distribution configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-containerdistributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-containerdistributionconfiguration-containertags // ContainerTags *[]*string `field:"optional" json:"containerTags" yaml:"containerTags"` // The description of the container distribution configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-containerdistributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-containerdistributionconfiguration-description // Description *string `field:"optional" json:"description" yaml:"description"` // The destination repository for the container distribution configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-containerdistributionconfiguration.html#cfn-imagebuilder-distributionconfiguration-containerdistributionconfiguration-targetrepository // TargetRepository interface{} `field:"optional" json:"targetRepository" yaml:"targetRepository"` }
Container distribution settings for encryption, licensing, and sharing in a specific Region.
Example:
// 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" containerDistributionConfigurationProperty := &ContainerDistributionConfigurationProperty{ ContainerTags: []*string{ jsii.String("containerTags"), }, Description: jsii.String("description"), TargetRepository: &TargetContainerRepositoryProperty{ RepositoryName: jsii.String("repositoryName"), Service: jsii.String("service"), }, }
type CfnDistributionConfiguration_DistributionProperty ¶
type CfnDistributionConfiguration_DistributionProperty struct { // The target Region for the Distribution Configuration. // // For example, `eu-west-1` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-distribution.html#cfn-imagebuilder-distributionconfiguration-distribution-region // Region *string `field:"required" json:"region" yaml:"region"` // The specific AMI settings, such as launch permissions and AMI tags. // // For details, see example schema below. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-distribution.html#cfn-imagebuilder-distributionconfiguration-distribution-amidistributionconfiguration // AmiDistributionConfiguration interface{} `field:"optional" json:"amiDistributionConfiguration" yaml:"amiDistributionConfiguration"` // Container distribution settings for encryption, licensing, and sharing in a specific Region. // // For details, see example schema below. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-distribution.html#cfn-imagebuilder-distributionconfiguration-distribution-containerdistributionconfiguration // ContainerDistributionConfiguration interface{} `field:"optional" json:"containerDistributionConfiguration" yaml:"containerDistributionConfiguration"` // The Windows faster-launching configurations to use for AMI distribution. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-distribution.html#cfn-imagebuilder-distributionconfiguration-distribution-fastlaunchconfigurations // FastLaunchConfigurations interface{} `field:"optional" json:"fastLaunchConfigurations" yaml:"fastLaunchConfigurations"` // A group of launchTemplateConfiguration settings that apply to image distribution for specified accounts. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-distribution.html#cfn-imagebuilder-distributionconfiguration-distribution-launchtemplateconfigurations // LaunchTemplateConfigurations interface{} `field:"optional" json:"launchTemplateConfigurations" yaml:"launchTemplateConfigurations"` // The License Manager Configuration to associate with the AMI in the specified Region. // // For more information, see the [LicenseConfiguration API](https://docs.aws.amazon.com/license-manager/latest/APIReference/API_LicenseConfiguration.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-distribution.html#cfn-imagebuilder-distributionconfiguration-distribution-licenseconfigurationarns // LicenseConfigurationArns *[]*string `field:"optional" json:"licenseConfigurationArns" yaml:"licenseConfigurationArns"` }
The distribution configuration distribution defines the settings for a specific Region in the Distribution Configuration.
You must specify whether the distribution is for an AMI or a container image. To do so, include exactly one of the following data types for your distribution:
- amiDistributionConfiguration - containerDistributionConfiguration.
Example:
// 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" var amiDistributionConfiguration interface{} var containerDistributionConfiguration interface{} distributionProperty := &DistributionProperty{ Region: jsii.String("region"), // the properties below are optional AmiDistributionConfiguration: amiDistributionConfiguration, ContainerDistributionConfiguration: containerDistributionConfiguration, FastLaunchConfigurations: []interface{}{ &FastLaunchConfigurationProperty{ AccountId: jsii.String("accountId"), Enabled: jsii.Boolean(false), LaunchTemplate: &FastLaunchLaunchTemplateSpecificationProperty{ LaunchTemplateId: jsii.String("launchTemplateId"), LaunchTemplateName: jsii.String("launchTemplateName"), LaunchTemplateVersion: jsii.String("launchTemplateVersion"), }, MaxParallelLaunches: jsii.Number(123), SnapshotConfiguration: &FastLaunchSnapshotConfigurationProperty{ TargetResourceCount: jsii.Number(123), }, }, }, LaunchTemplateConfigurations: []interface{}{ &LaunchTemplateConfigurationProperty{ AccountId: jsii.String("accountId"), LaunchTemplateId: jsii.String("launchTemplateId"), SetDefaultVersion: jsii.Boolean(false), }, }, LicenseConfigurationArns: []*string{ jsii.String("licenseConfigurationArns"), }, }
type CfnDistributionConfiguration_FastLaunchConfigurationProperty ¶ added in v2.28.0
type CfnDistributionConfiguration_FastLaunchConfigurationProperty struct { // The owner account ID for the fast-launch enabled Windows AMI. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-fastlaunchconfiguration.html#cfn-imagebuilder-distributionconfiguration-fastlaunchconfiguration-accountid // AccountId *string `field:"optional" json:"accountId" yaml:"accountId"` // A Boolean that represents the current state of faster launching for the Windows AMI. // // Set to `true` to start using Windows faster launching, or `false` to stop using it. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-fastlaunchconfiguration.html#cfn-imagebuilder-distributionconfiguration-fastlaunchconfiguration-enabled // Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"` // The launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances to create pre-provisioned snapshots. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-fastlaunchconfiguration.html#cfn-imagebuilder-distributionconfiguration-fastlaunchconfiguration-launchtemplate // LaunchTemplate interface{} `field:"optional" json:"launchTemplate" yaml:"launchTemplate"` // The maximum number of parallel instances that are launched for creating resources. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-fastlaunchconfiguration.html#cfn-imagebuilder-distributionconfiguration-fastlaunchconfiguration-maxparallellaunches // MaxParallelLaunches *float64 `field:"optional" json:"maxParallelLaunches" yaml:"maxParallelLaunches"` // Configuration settings for managing the number of snapshots that are created from pre-provisioned instances for the Windows AMI when faster launching is enabled. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-fastlaunchconfiguration.html#cfn-imagebuilder-distributionconfiguration-fastlaunchconfiguration-snapshotconfiguration // SnapshotConfiguration interface{} `field:"optional" json:"snapshotConfiguration" yaml:"snapshotConfiguration"` }
Define and configure faster launching for output Windows AMIs.
Example:
// 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" fastLaunchConfigurationProperty := &FastLaunchConfigurationProperty{ AccountId: jsii.String("accountId"), Enabled: jsii.Boolean(false), LaunchTemplate: &FastLaunchLaunchTemplateSpecificationProperty{ LaunchTemplateId: jsii.String("launchTemplateId"), LaunchTemplateName: jsii.String("launchTemplateName"), LaunchTemplateVersion: jsii.String("launchTemplateVersion"), }, MaxParallelLaunches: jsii.Number(123), SnapshotConfiguration: &FastLaunchSnapshotConfigurationProperty{ TargetResourceCount: jsii.Number(123), }, }
type CfnDistributionConfiguration_FastLaunchLaunchTemplateSpecificationProperty ¶ added in v2.28.0
type CfnDistributionConfiguration_FastLaunchLaunchTemplateSpecificationProperty struct { // The ID of the launch template to use for faster launching for a Windows AMI. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-fastlaunchlaunchtemplatespecification.html#cfn-imagebuilder-distributionconfiguration-fastlaunchlaunchtemplatespecification-launchtemplateid // LaunchTemplateId *string `field:"optional" json:"launchTemplateId" yaml:"launchTemplateId"` // The name of the launch template to use for faster launching for a Windows AMI. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-fastlaunchlaunchtemplatespecification.html#cfn-imagebuilder-distributionconfiguration-fastlaunchlaunchtemplatespecification-launchtemplatename // LaunchTemplateName *string `field:"optional" json:"launchTemplateName" yaml:"launchTemplateName"` // The version of the launch template to use for faster launching for a Windows AMI. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-fastlaunchlaunchtemplatespecification.html#cfn-imagebuilder-distributionconfiguration-fastlaunchlaunchtemplatespecification-launchtemplateversion // LaunchTemplateVersion *string `field:"optional" json:"launchTemplateVersion" yaml:"launchTemplateVersion"` }
Identifies the launch template that the associated Windows AMI uses for launching an instance when faster launching is enabled.
> You can specify either the `launchTemplateName` or the `launchTemplateId` , but not both.
Example:
// 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" fastLaunchLaunchTemplateSpecificationProperty := &FastLaunchLaunchTemplateSpecificationProperty{ LaunchTemplateId: jsii.String("launchTemplateId"), LaunchTemplateName: jsii.String("launchTemplateName"), LaunchTemplateVersion: jsii.String("launchTemplateVersion"), }
type CfnDistributionConfiguration_FastLaunchSnapshotConfigurationProperty ¶ added in v2.28.0
type CfnDistributionConfiguration_FastLaunchSnapshotConfigurationProperty struct { // The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-fastlaunchsnapshotconfiguration.html#cfn-imagebuilder-distributionconfiguration-fastlaunchsnapshotconfiguration-targetresourcecount // TargetResourceCount *float64 `field:"optional" json:"targetResourceCount" yaml:"targetResourceCount"` }
Configuration settings for creating and managing pre-provisioned snapshots for a fast-launch enabled Windows AMI.
Example:
// 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" fastLaunchSnapshotConfigurationProperty := &FastLaunchSnapshotConfigurationProperty{ TargetResourceCount: jsii.Number(123), }
type CfnDistributionConfiguration_LaunchPermissionConfigurationProperty ¶ added in v2.21.0
type CfnDistributionConfiguration_LaunchPermissionConfigurationProperty struct { // The ARN for an AWS Organizations organizational unit (OU) that you want to share your AMI with. // // For more information about key concepts for AWS Organizations , see [AWS Organizations terminology and concepts](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-launchpermissionconfiguration.html#cfn-imagebuilder-distributionconfiguration-launchpermissionconfiguration-organizationalunitarns // OrganizationalUnitArns *[]*string `field:"optional" json:"organizationalUnitArns" yaml:"organizationalUnitArns"` // The ARN for an AWS Organization that you want to share your AMI with. // // For more information, see [What is AWS Organizations ?](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-launchpermissionconfiguration.html#cfn-imagebuilder-distributionconfiguration-launchpermissionconfiguration-organizationarns // OrganizationArns *[]*string `field:"optional" json:"organizationArns" yaml:"organizationArns"` // The name of the group. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-launchpermissionconfiguration.html#cfn-imagebuilder-distributionconfiguration-launchpermissionconfiguration-usergroups // UserGroups *[]*string `field:"optional" json:"userGroups" yaml:"userGroups"` // The AWS account ID. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-launchpermissionconfiguration.html#cfn-imagebuilder-distributionconfiguration-launchpermissionconfiguration-userids // UserIds *[]*string `field:"optional" json:"userIds" yaml:"userIds"` }
Describes the configuration for a launch permission.
The launch permission modification request is sent to the [Amazon EC2 ModifyImageAttribute](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyImageAttribute.html) API on behalf of the user for each Region they have selected to distribute the AMI. To make an AMI public, set the launch permission authorized accounts to `all` . See the examples for making an AMI public at [Amazon EC2 ModifyImageAttribute](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyImageAttribute.html) .
Example:
// 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" launchPermissionConfigurationProperty := &LaunchPermissionConfigurationProperty{ OrganizationalUnitArns: []*string{ jsii.String("organizationalUnitArns"), }, OrganizationArns: []*string{ jsii.String("organizationArns"), }, UserGroups: []*string{ jsii.String("userGroups"), }, UserIds: []*string{ jsii.String("userIds"), }, }
type CfnDistributionConfiguration_LaunchTemplateConfigurationProperty ¶
type CfnDistributionConfiguration_LaunchTemplateConfigurationProperty struct { // The account ID that this configuration applies to. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-launchtemplateconfiguration.html#cfn-imagebuilder-distributionconfiguration-launchtemplateconfiguration-accountid // AccountId *string `field:"optional" json:"accountId" yaml:"accountId"` // Identifies the Amazon EC2 launch template to use. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-launchtemplateconfiguration.html#cfn-imagebuilder-distributionconfiguration-launchtemplateconfiguration-launchtemplateid // LaunchTemplateId *string `field:"optional" json:"launchTemplateId" yaml:"launchTemplateId"` // Set the specified Amazon EC2 launch template as the default launch template for the specified account. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-launchtemplateconfiguration.html#cfn-imagebuilder-distributionconfiguration-launchtemplateconfiguration-setdefaultversion // SetDefaultVersion interface{} `field:"optional" json:"setDefaultVersion" yaml:"setDefaultVersion"` }
Identifies an Amazon EC2 launch template to use for a specific account.
Example:
// 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" launchTemplateConfigurationProperty := &LaunchTemplateConfigurationProperty{ AccountId: jsii.String("accountId"), LaunchTemplateId: jsii.String("launchTemplateId"), SetDefaultVersion: jsii.Boolean(false), }
type CfnDistributionConfiguration_TargetContainerRepositoryProperty ¶ added in v2.21.0
type CfnDistributionConfiguration_TargetContainerRepositoryProperty struct { // The name of the container repository where the output container image is stored. // // This name is prefixed by the repository location. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-targetcontainerrepository.html#cfn-imagebuilder-distributionconfiguration-targetcontainerrepository-repositoryname // RepositoryName *string `field:"optional" json:"repositoryName" yaml:"repositoryName"` // Specifies the service in which this image was registered. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-distributionconfiguration-targetcontainerrepository.html#cfn-imagebuilder-distributionconfiguration-targetcontainerrepository-service // Service *string `field:"optional" json:"service" yaml:"service"` }
The container repository where the output container image is stored.
Example:
// 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" targetContainerRepositoryProperty := &TargetContainerRepositoryProperty{ RepositoryName: jsii.String("repositoryName"), Service: jsii.String("service"), }
type CfnImage ¶
type CfnImage interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // Returns the Amazon Resource Name (ARN) of the image. // // For example, `arn:aws:imagebuilder:us-west-2:123456789012:image/mybasicrecipe/2019.12.03/1` . AttrArn() *string // Returns the AMI ID of the Amazon EC2 AMI in the Region in which you are using Image Builder. // // Values are returned only for AMIs, and not for container images. AttrImageId() *string // Returns a list of URIs for container images created in the context Region. // // Values are returned only for container images, and not for AMIs. AttrImageUri() *string // Returns the name of the image. AttrName() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline. ContainerRecipeArn() *string SetContainerRecipeArn(val *string) // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The Amazon Resource Name (ARN) of the distribution configuration. DistributionConfigurationArn() *string SetDistributionConfigurationArn(val *string) // Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list. EnhancedImageMetadataEnabled() interface{} SetEnhancedImageMetadataEnabled(val interface{}) // The Amazon Resource Name (ARN) of the image recipe. ImageRecipeArn() *string SetImageRecipeArn(val *string) // Contains settings for vulnerability scans. ImageScanningConfiguration() interface{} SetImageScanningConfiguration(val interface{}) // The configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting. ImageTestsConfiguration() interface{} SetImageTestsConfiguration(val interface{}) // The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline. InfrastructureConfigurationArn() *string SetInfrastructureConfigurationArn(val *string) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // The tags of the image. TagsRaw() *map[string]*string SetTagsRaw(val *map[string]*string) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
An image build version.
An image is a customized, secure, and up-to-date “golden” server image that is pre-installed and pre-configured with software and settings to meet specific IT standards.
Example:
// 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" cfnImage := awscdk.Aws_imagebuilder.NewCfnImage(this, jsii.String("MyCfnImage"), &CfnImageProps{ InfrastructureConfigurationArn: jsii.String("infrastructureConfigurationArn"), // the properties below are optional ContainerRecipeArn: jsii.String("containerRecipeArn"), DistributionConfigurationArn: jsii.String("distributionConfigurationArn"), EnhancedImageMetadataEnabled: jsii.Boolean(false), ImageRecipeArn: jsii.String("imageRecipeArn"), ImageScanningConfiguration: &ImageScanningConfigurationProperty{ EcrConfiguration: &EcrConfigurationProperty{ ContainerTags: []*string{ jsii.String("containerTags"), }, RepositoryName: jsii.String("repositoryName"), }, ImageScanningEnabled: jsii.Boolean(false), }, ImageTestsConfiguration: &ImageTestsConfigurationProperty{ ImageTestsEnabled: jsii.Boolean(false), TimeoutMinutes: jsii.Number(123), }, Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, })
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-image.html
func NewCfnImage ¶
func NewCfnImage(scope constructs.Construct, id *string, props *CfnImageProps) CfnImage
type CfnImagePipeline ¶
type CfnImagePipeline interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // Returns the Amazon Resource Name (ARN) of the image pipeline. // // For example, `arn:aws:imagebuilder:us-west-2:123456789012:image-pipeline/mywindows2016pipeline` . AttrArn() *string // Returns the name of the image pipeline. AttrName() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline. ContainerRecipeArn() *string SetContainerRecipeArn(val *string) // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The description of this image pipeline. Description() *string SetDescription(val *string) // The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline. DistributionConfigurationArn() *string SetDistributionConfigurationArn(val *string) // Collects additional information about the image being created, including the operating system (OS) version and package list. EnhancedImageMetadataEnabled() interface{} SetEnhancedImageMetadataEnabled(val interface{}) // The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline. ImageRecipeArn() *string SetImageRecipeArn(val *string) // Contains settings for vulnerability scans. ImageScanningConfiguration() interface{} SetImageScanningConfiguration(val interface{}) // The configuration of the image tests that run after image creation to ensure the quality of the image that was created. ImageTestsConfiguration() interface{} SetImageTestsConfiguration(val interface{}) // The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline. InfrastructureConfigurationArn() *string SetInfrastructureConfigurationArn(val *string) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name of the image pipeline. Name() *string SetName(val *string) // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The schedule of the image pipeline. Schedule() interface{} SetSchedule(val interface{}) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // The status of the image pipeline. Status() *string SetStatus(val *string) // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // The tags of this image pipeline. TagsRaw() *map[string]*string SetTagsRaw(val *map[string]*string) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
An image pipeline is the automation configuration for building secure OS images on AWS .
The Image Builder image pipeline is associated with an image recipe that defines the build, validation, and test phases for an image build lifecycle. An image pipeline can be associated with an infrastructure configuration that defines where your image is built. You can define attributes, such as instance types, a subnet for your VPC, security groups, logging, and other infrastructure-related configurations. You can also associate your image pipeline with a distribution configuration to define how you would like to deploy your image.
Example:
// 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" cfnImagePipeline := awscdk.Aws_imagebuilder.NewCfnImagePipeline(this, jsii.String("MyCfnImagePipeline"), &CfnImagePipelineProps{ InfrastructureConfigurationArn: jsii.String("infrastructureConfigurationArn"), Name: jsii.String("name"), // the properties below are optional ContainerRecipeArn: jsii.String("containerRecipeArn"), Description: jsii.String("description"), DistributionConfigurationArn: jsii.String("distributionConfigurationArn"), EnhancedImageMetadataEnabled: jsii.Boolean(false), ImageRecipeArn: jsii.String("imageRecipeArn"), ImageScanningConfiguration: &ImageScanningConfigurationProperty{ EcrConfiguration: &EcrConfigurationProperty{ ContainerTags: []*string{ jsii.String("containerTags"), }, RepositoryName: jsii.String("repositoryName"), }, ImageScanningEnabled: jsii.Boolean(false), }, ImageTestsConfiguration: &ImageTestsConfigurationProperty{ ImageTestsEnabled: jsii.Boolean(false), TimeoutMinutes: jsii.Number(123), }, Schedule: &ScheduleProperty{ PipelineExecutionStartCondition: jsii.String("pipelineExecutionStartCondition"), ScheduleExpression: jsii.String("scheduleExpression"), }, Status: jsii.String("status"), Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, })
func NewCfnImagePipeline ¶
func NewCfnImagePipeline(scope constructs.Construct, id *string, props *CfnImagePipelineProps) CfnImagePipeline
type CfnImagePipelineProps ¶
type CfnImagePipelineProps struct { // The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagepipeline.html#cfn-imagebuilder-imagepipeline-infrastructureconfigurationarn // InfrastructureConfigurationArn *string `field:"required" json:"infrastructureConfigurationArn" yaml:"infrastructureConfigurationArn"` // The name of the image pipeline. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagepipeline.html#cfn-imagebuilder-imagepipeline-name // Name *string `field:"required" json:"name" yaml:"name"` // The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagepipeline.html#cfn-imagebuilder-imagepipeline-containerrecipearn // ContainerRecipeArn *string `field:"optional" json:"containerRecipeArn" yaml:"containerRecipeArn"` // The description of this image pipeline. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagepipeline.html#cfn-imagebuilder-imagepipeline-description // Description *string `field:"optional" json:"description" yaml:"description"` // The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagepipeline.html#cfn-imagebuilder-imagepipeline-distributionconfigurationarn // DistributionConfigurationArn *string `field:"optional" json:"distributionConfigurationArn" yaml:"distributionConfigurationArn"` // Collects additional information about the image being created, including the operating system (OS) version and package list. // // This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagepipeline.html#cfn-imagebuilder-imagepipeline-enhancedimagemetadataenabled // EnhancedImageMetadataEnabled interface{} `field:"optional" json:"enhancedImageMetadataEnabled" yaml:"enhancedImageMetadataEnabled"` // The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagepipeline.html#cfn-imagebuilder-imagepipeline-imagerecipearn // ImageRecipeArn *string `field:"optional" json:"imageRecipeArn" yaml:"imageRecipeArn"` // Contains settings for vulnerability scans. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagepipeline.html#cfn-imagebuilder-imagepipeline-imagescanningconfiguration // ImageScanningConfiguration interface{} `field:"optional" json:"imageScanningConfiguration" yaml:"imageScanningConfiguration"` // The configuration of the image tests that run after image creation to ensure the quality of the image that was created. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagepipeline.html#cfn-imagebuilder-imagepipeline-imagetestsconfiguration // ImageTestsConfiguration interface{} `field:"optional" json:"imageTestsConfiguration" yaml:"imageTestsConfiguration"` // The schedule of the image pipeline. // // A schedule configures how often and when a pipeline automatically creates a new image. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagepipeline.html#cfn-imagebuilder-imagepipeline-schedule // Schedule interface{} `field:"optional" json:"schedule" yaml:"schedule"` // The status of the image pipeline. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagepipeline.html#cfn-imagebuilder-imagepipeline-status // Status *string `field:"optional" json:"status" yaml:"status"` // The tags of this image pipeline. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagepipeline.html#cfn-imagebuilder-imagepipeline-tags // Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnImagePipeline`.
Example:
// 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" cfnImagePipelineProps := &CfnImagePipelineProps{ InfrastructureConfigurationArn: jsii.String("infrastructureConfigurationArn"), Name: jsii.String("name"), // the properties below are optional ContainerRecipeArn: jsii.String("containerRecipeArn"), Description: jsii.String("description"), DistributionConfigurationArn: jsii.String("distributionConfigurationArn"), EnhancedImageMetadataEnabled: jsii.Boolean(false), ImageRecipeArn: jsii.String("imageRecipeArn"), ImageScanningConfiguration: &ImageScanningConfigurationProperty{ EcrConfiguration: &EcrConfigurationProperty{ ContainerTags: []*string{ jsii.String("containerTags"), }, RepositoryName: jsii.String("repositoryName"), }, ImageScanningEnabled: jsii.Boolean(false), }, ImageTestsConfiguration: &ImageTestsConfigurationProperty{ ImageTestsEnabled: jsii.Boolean(false), TimeoutMinutes: jsii.Number(123), }, Schedule: &ScheduleProperty{ PipelineExecutionStartCondition: jsii.String("pipelineExecutionStartCondition"), ScheduleExpression: jsii.String("scheduleExpression"), }, Status: jsii.String("status"), Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, }
type CfnImagePipeline_EcrConfigurationProperty ¶ added in v2.63.0
type CfnImagePipeline_EcrConfigurationProperty struct { // Tags for Image Builder to apply to the output container image that &INS; // // scans. Tags can help you identify and manage your scanned images. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagepipeline-ecrconfiguration.html#cfn-imagebuilder-imagepipeline-ecrconfiguration-containertags // ContainerTags *[]*string `field:"optional" json:"containerTags" yaml:"containerTags"` // The name of the container repository that Amazon Inspector scans to identify findings for your container images. // // The name includes the path for the repository location. If you don’t provide this information, Image Builder creates a repository in your account named `image-builder-image-scanning-repository` for vulnerability scans of your output container images. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagepipeline-ecrconfiguration.html#cfn-imagebuilder-imagepipeline-ecrconfiguration-repositoryname // RepositoryName *string `field:"optional" json:"repositoryName" yaml:"repositoryName"` }
Settings that Image Builder uses to configure the ECR repository and the output container images that Amazon Inspector scans.
Example:
// 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" ecrConfigurationProperty := &EcrConfigurationProperty{ ContainerTags: []*string{ jsii.String("containerTags"), }, RepositoryName: jsii.String("repositoryName"), }
type CfnImagePipeline_ImageScanningConfigurationProperty ¶ added in v2.63.0
type CfnImagePipeline_ImageScanningConfigurationProperty struct { // Contains Amazon ECR settings for vulnerability scans. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagepipeline-imagescanningconfiguration.html#cfn-imagebuilder-imagepipeline-imagescanningconfiguration-ecrconfiguration // EcrConfiguration interface{} `field:"optional" json:"ecrConfiguration" yaml:"ecrConfiguration"` // A setting that indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagepipeline-imagescanningconfiguration.html#cfn-imagebuilder-imagepipeline-imagescanningconfiguration-imagescanningenabled // ImageScanningEnabled interface{} `field:"optional" json:"imageScanningEnabled" yaml:"imageScanningEnabled"` }
Contains settings for Image Builder image resource and container image scans.
Example:
// 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" imageScanningConfigurationProperty := &ImageScanningConfigurationProperty{ EcrConfiguration: &EcrConfigurationProperty{ ContainerTags: []*string{ jsii.String("containerTags"), }, RepositoryName: jsii.String("repositoryName"), }, ImageScanningEnabled: jsii.Boolean(false), }
type CfnImagePipeline_ImageTestsConfigurationProperty ¶
type CfnImagePipeline_ImageTestsConfigurationProperty struct { // Defines if tests should be executed when building this image. // // For example, `true` or `false` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagepipeline-imagetestsconfiguration.html#cfn-imagebuilder-imagepipeline-imagetestsconfiguration-imagetestsenabled // ImageTestsEnabled interface{} `field:"optional" json:"imageTestsEnabled" yaml:"imageTestsEnabled"` // The maximum time in minutes that tests are permitted to run. // // > The timeoutMinutes attribute is not currently active. This value is ignored. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagepipeline-imagetestsconfiguration.html#cfn-imagebuilder-imagepipeline-imagetestsconfiguration-timeoutminutes // TimeoutMinutes *float64 `field:"optional" json:"timeoutMinutes" yaml:"timeoutMinutes"` }
When you create an image or container recipe with Image Builder , you can add the build or test components that your image pipeline uses to create the final image.
You must have at least one build component to create a recipe, but test components are not required. Your pipeline runs tests after it builds the image, to ensure that the target image is functional and can be used reliably for launching Amazon EC2 instances.
Example:
// 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" imageTestsConfigurationProperty := &ImageTestsConfigurationProperty{ ImageTestsEnabled: jsii.Boolean(false), TimeoutMinutes: jsii.Number(123), }
type CfnImagePipeline_ScheduleProperty ¶
type CfnImagePipeline_ScheduleProperty struct { // The condition configures when the pipeline should trigger a new image build. // // When the `pipelineExecutionStartCondition` is set to `EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE` , and you use semantic version filters on the base image or components in your image recipe, Image Builder will build a new image only when there are new versions of the image or components in your recipe that match the semantic version filter. When it is set to `EXPRESSION_MATCH_ONLY` , it will build a new image every time the CRON expression matches the current time. For semantic version syntax, see [CreateComponent](https://docs.aws.amazon.com/imagebuilder/latest/APIReference/API_CreateComponent.html) in the *Image Builder API Reference* . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagepipeline-schedule.html#cfn-imagebuilder-imagepipeline-schedule-pipelineexecutionstartcondition // PipelineExecutionStartCondition *string `field:"optional" json:"pipelineExecutionStartCondition" yaml:"pipelineExecutionStartCondition"` // The cron expression determines how often EC2 Image Builder evaluates your `pipelineExecutionStartCondition` . // // For information on how to format a cron expression in Image Builder, see [Use cron expressions in EC2 Image Builder](https://docs.aws.amazon.com/imagebuilder/latest/userguide/image-builder-cron.html) . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagepipeline-schedule.html#cfn-imagebuilder-imagepipeline-schedule-scheduleexpression // ScheduleExpression *string `field:"optional" json:"scheduleExpression" yaml:"scheduleExpression"` }
A schedule configures how often and when a pipeline will automatically create a new image.
Example:
// 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" scheduleProperty := &ScheduleProperty{ PipelineExecutionStartCondition: jsii.String("pipelineExecutionStartCondition"), ScheduleExpression: jsii.String("scheduleExpression"), }
type CfnImageProps ¶
type CfnImageProps struct { // The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-image.html#cfn-imagebuilder-image-infrastructureconfigurationarn // InfrastructureConfigurationArn *string `field:"required" json:"infrastructureConfigurationArn" yaml:"infrastructureConfigurationArn"` // The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-image.html#cfn-imagebuilder-image-containerrecipearn // ContainerRecipeArn *string `field:"optional" json:"containerRecipeArn" yaml:"containerRecipeArn"` // The Amazon Resource Name (ARN) of the distribution configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-image.html#cfn-imagebuilder-image-distributionconfigurationarn // DistributionConfigurationArn *string `field:"optional" json:"distributionConfigurationArn" yaml:"distributionConfigurationArn"` // Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-image.html#cfn-imagebuilder-image-enhancedimagemetadataenabled // EnhancedImageMetadataEnabled interface{} `field:"optional" json:"enhancedImageMetadataEnabled" yaml:"enhancedImageMetadataEnabled"` // The Amazon Resource Name (ARN) of the image recipe. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-image.html#cfn-imagebuilder-image-imagerecipearn // ImageRecipeArn *string `field:"optional" json:"imageRecipeArn" yaml:"imageRecipeArn"` // Contains settings for vulnerability scans. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-image.html#cfn-imagebuilder-image-imagescanningconfiguration // ImageScanningConfiguration interface{} `field:"optional" json:"imageScanningConfiguration" yaml:"imageScanningConfiguration"` // The configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-image.html#cfn-imagebuilder-image-imagetestsconfiguration // ImageTestsConfiguration interface{} `field:"optional" json:"imageTestsConfiguration" yaml:"imageTestsConfiguration"` // The tags of the image. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-image.html#cfn-imagebuilder-image-tags // Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnImage`.
Example:
// 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" cfnImageProps := &CfnImageProps{ InfrastructureConfigurationArn: jsii.String("infrastructureConfigurationArn"), // the properties below are optional ContainerRecipeArn: jsii.String("containerRecipeArn"), DistributionConfigurationArn: jsii.String("distributionConfigurationArn"), EnhancedImageMetadataEnabled: jsii.Boolean(false), ImageRecipeArn: jsii.String("imageRecipeArn"), ImageScanningConfiguration: &ImageScanningConfigurationProperty{ EcrConfiguration: &EcrConfigurationProperty{ ContainerTags: []*string{ jsii.String("containerTags"), }, RepositoryName: jsii.String("repositoryName"), }, ImageScanningEnabled: jsii.Boolean(false), }, ImageTestsConfiguration: &ImageTestsConfigurationProperty{ ImageTestsEnabled: jsii.Boolean(false), TimeoutMinutes: jsii.Number(123), }, Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, }
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-image.html
type CfnImageRecipe ¶
type CfnImageRecipe interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration. AdditionalInstanceConfiguration() interface{} SetAdditionalInstanceConfiguration(val interface{}) // Returns the Amazon Resource Name (ARN) of the image recipe. // // For example, `arn:aws:imagebuilder:us-east-1:123456789012:image-recipe/mybasicrecipe/2019.12.03` . AttrArn() *string // The name of the image recipe. AttrName() *string // The block device mappings to apply when creating images from this recipe. BlockDeviceMappings() interface{} SetBlockDeviceMappings(val interface{}) // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // The components of the image recipe. Components() interface{} SetComponents(val interface{}) // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The description of the image recipe. Description() *string SetDescription(val *string) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name of the image recipe. Name() *string SetName(val *string) // The tree node. Node() constructs.Node // The parent image of the image recipe. ParentImage() *string SetParentImage(val *string) // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // The tags of the image recipe. TagsRaw() *map[string]*string SetTagsRaw(val *map[string]*string) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // The semantic version of the image recipe. Version() *string SetVersion(val *string) // The working directory to be used during build and test workflows. WorkingDirectory() *string SetWorkingDirectory(val *string) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
An Image Builder image recipe is a document that defines the base image and the components to be applied to the base image to produce the desired configuration for the output image.
You can use an image recipe to duplicate builds. Image Builder image recipes can be shared, branched, and edited using the console wizard, the AWS CLI , or the API. You can use image recipes with your version control software to maintain shareable versioned image recipes.
Example:
// 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" cfnImageRecipe := awscdk.Aws_imagebuilder.NewCfnImageRecipe(this, jsii.String("MyCfnImageRecipe"), &CfnImageRecipeProps{ Components: []interface{}{ &ComponentConfigurationProperty{ ComponentArn: jsii.String("componentArn"), Parameters: []interface{}{ &ComponentParameterProperty{ Name: jsii.String("name"), Value: []*string{ jsii.String("value"), }, }, }, }, }, Name: jsii.String("name"), ParentImage: jsii.String("parentImage"), Version: jsii.String("version"), // the properties below are optional AdditionalInstanceConfiguration: &AdditionalInstanceConfigurationProperty{ SystemsManagerAgent: &SystemsManagerAgentProperty{ UninstallAfterBuild: jsii.Boolean(false), }, UserDataOverride: jsii.String("userDataOverride"), }, BlockDeviceMappings: []interface{}{ &InstanceBlockDeviceMappingProperty{ DeviceName: jsii.String("deviceName"), Ebs: &EbsInstanceBlockDeviceSpecificationProperty{ DeleteOnTermination: jsii.Boolean(false), Encrypted: jsii.Boolean(false), Iops: jsii.Number(123), KmsKeyId: jsii.String("kmsKeyId"), SnapshotId: jsii.String("snapshotId"), Throughput: jsii.Number(123), VolumeSize: jsii.Number(123), VolumeType: jsii.String("volumeType"), }, NoDevice: jsii.String("noDevice"), VirtualName: jsii.String("virtualName"), }, }, Description: jsii.String("description"), Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, WorkingDirectory: jsii.String("workingDirectory"), })
func NewCfnImageRecipe ¶
func NewCfnImageRecipe(scope constructs.Construct, id *string, props *CfnImageRecipeProps) CfnImageRecipe
type CfnImageRecipeProps ¶
type CfnImageRecipeProps struct { // The components of the image recipe. // // Components are orchestration documents that define a sequence of steps for downloading, installing, configuring, and testing software packages. They also define validation and security hardening steps. A component is defined using a YAML document format. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-components // Components interface{} `field:"required" json:"components" yaml:"components"` // The name of the image recipe. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-name // Name *string `field:"required" json:"name" yaml:"name"` // The parent image of the image recipe. // // The string must be either an Image ARN or an AMI ID. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-parentimage // ParentImage *string `field:"required" json:"parentImage" yaml:"parentImage"` // The semantic version of the image recipe. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-version // Version *string `field:"required" json:"version" yaml:"version"` // Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration. // // Instance configuration adds a layer of control over those instances. You can define settings and add scripts to run when an instance is launched from your AMI. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-additionalinstanceconfiguration // AdditionalInstanceConfiguration interface{} `field:"optional" json:"additionalInstanceConfiguration" yaml:"additionalInstanceConfiguration"` // The block device mappings to apply when creating images from this recipe. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-blockdevicemappings // BlockDeviceMappings interface{} `field:"optional" json:"blockDeviceMappings" yaml:"blockDeviceMappings"` // The description of the image recipe. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-description // Description *string `field:"optional" json:"description" yaml:"description"` // The tags of the image recipe. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-tags // Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"` // The working directory to be used during build and test workflows. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-imagerecipe.html#cfn-imagebuilder-imagerecipe-workingdirectory // WorkingDirectory *string `field:"optional" json:"workingDirectory" yaml:"workingDirectory"` }
Properties for defining a `CfnImageRecipe`.
Example:
// 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" cfnImageRecipeProps := &CfnImageRecipeProps{ Components: []interface{}{ &ComponentConfigurationProperty{ ComponentArn: jsii.String("componentArn"), Parameters: []interface{}{ &ComponentParameterProperty{ Name: jsii.String("name"), Value: []*string{ jsii.String("value"), }, }, }, }, }, Name: jsii.String("name"), ParentImage: jsii.String("parentImage"), Version: jsii.String("version"), // the properties below are optional AdditionalInstanceConfiguration: &AdditionalInstanceConfigurationProperty{ SystemsManagerAgent: &SystemsManagerAgentProperty{ UninstallAfterBuild: jsii.Boolean(false), }, UserDataOverride: jsii.String("userDataOverride"), }, BlockDeviceMappings: []interface{}{ &InstanceBlockDeviceMappingProperty{ DeviceName: jsii.String("deviceName"), Ebs: &EbsInstanceBlockDeviceSpecificationProperty{ DeleteOnTermination: jsii.Boolean(false), Encrypted: jsii.Boolean(false), Iops: jsii.Number(123), KmsKeyId: jsii.String("kmsKeyId"), SnapshotId: jsii.String("snapshotId"), Throughput: jsii.Number(123), VolumeSize: jsii.Number(123), VolumeType: jsii.String("volumeType"), }, NoDevice: jsii.String("noDevice"), VirtualName: jsii.String("virtualName"), }, }, Description: jsii.String("description"), Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, WorkingDirectory: jsii.String("workingDirectory"), }
type CfnImageRecipe_AdditionalInstanceConfigurationProperty ¶
type CfnImageRecipe_AdditionalInstanceConfigurationProperty struct { // Contains settings for the Systems Manager agent on your build instance. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-additionalinstanceconfiguration.html#cfn-imagebuilder-imagerecipe-additionalinstanceconfiguration-systemsmanageragent // SystemsManagerAgent interface{} `field:"optional" json:"systemsManagerAgent" yaml:"systemsManagerAgent"` // Use this property to provide commands or a command script to run when you launch your build instance. // // The userDataOverride property replaces any commands that Image Builder might have added to ensure that Systems Manager is installed on your Linux build instance. If you override the user data, make sure that you add commands to install Systems Manager, if it is not pre-installed on your base image. // // > The user data is always base 64 encoded. For example, the following commands are encoded as `IyEvYmluL2Jhc2gKbWtkaXIgLXAgL3Zhci9iYi8KdG91Y2ggL3Zhci$` : // > // > *#!/bin/bash* // > // > mkdir -p /var/bb/ // > // > touch /var. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-additionalinstanceconfiguration.html#cfn-imagebuilder-imagerecipe-additionalinstanceconfiguration-userdataoverride // UserDataOverride *string `field:"optional" json:"userDataOverride" yaml:"userDataOverride"` }
In addition to your infrastructure configuration, these settings provide an extra layer of control over your build instances.
You can also specify commands to run on launch for all of your build instances.
Image Builder does not automatically install the Systems Manager agent on Windows instances. If your base image includes the Systems Manager agent, then the AMI that you create will also include the agent. For Linux instances, if the base image does not already include the Systems Manager agent, Image Builder installs it. For Linux instances where Image Builder installs the Systems Manager agent, you can choose whether to keep it for the AMI that you create.
Example:
// 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" additionalInstanceConfigurationProperty := &AdditionalInstanceConfigurationProperty{ SystemsManagerAgent: &SystemsManagerAgentProperty{ UninstallAfterBuild: jsii.Boolean(false), }, UserDataOverride: jsii.String("userDataOverride"), }
type CfnImageRecipe_ComponentConfigurationProperty ¶
type CfnImageRecipe_ComponentConfigurationProperty struct { // The Amazon Resource Name (ARN) of the component. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-componentconfiguration.html#cfn-imagebuilder-imagerecipe-componentconfiguration-componentarn // ComponentArn *string `field:"optional" json:"componentArn" yaml:"componentArn"` // A group of parameter settings that Image Builder uses to configure the component for a specific recipe. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-componentconfiguration.html#cfn-imagebuilder-imagerecipe-componentconfiguration-parameters // Parameters interface{} `field:"optional" json:"parameters" yaml:"parameters"` }
Configuration details of the component.
Example:
// 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" componentConfigurationProperty := &ComponentConfigurationProperty{ ComponentArn: jsii.String("componentArn"), Parameters: []interface{}{ &ComponentParameterProperty{ Name: jsii.String("name"), Value: []*string{ jsii.String("value"), }, }, }, }
type CfnImageRecipe_ComponentParameterProperty ¶
type CfnImageRecipe_ComponentParameterProperty struct { // The name of the component parameter to set. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-componentparameter.html#cfn-imagebuilder-imagerecipe-componentparameter-name // Name *string `field:"required" json:"name" yaml:"name"` // Sets the value for the named component parameter. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-componentparameter.html#cfn-imagebuilder-imagerecipe-componentparameter-value // Value *[]*string `field:"required" json:"value" yaml:"value"` }
Contains a key/value pair that sets the named component parameter.
Example:
// 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" componentParameterProperty := &ComponentParameterProperty{ Name: jsii.String("name"), Value: []*string{ jsii.String("value"), }, }
type CfnImageRecipe_EbsInstanceBlockDeviceSpecificationProperty ¶
type CfnImageRecipe_EbsInstanceBlockDeviceSpecificationProperty struct { // Configures delete on termination of the associated device. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-ebsinstanceblockdevicespecification.html#cfn-imagebuilder-imagerecipe-ebsinstanceblockdevicespecification-deleteontermination // DeleteOnTermination interface{} `field:"optional" json:"deleteOnTermination" yaml:"deleteOnTermination"` // Use to configure device encryption. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-ebsinstanceblockdevicespecification.html#cfn-imagebuilder-imagerecipe-ebsinstanceblockdevicespecification-encrypted // Encrypted interface{} `field:"optional" json:"encrypted" yaml:"encrypted"` // Use to configure device IOPS. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-ebsinstanceblockdevicespecification.html#cfn-imagebuilder-imagerecipe-ebsinstanceblockdevicespecification-iops // Iops *float64 `field:"optional" json:"iops" yaml:"iops"` // Use to configure the KMS key to use when encrypting the device. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-ebsinstanceblockdevicespecification.html#cfn-imagebuilder-imagerecipe-ebsinstanceblockdevicespecification-kmskeyid // KmsKeyId *string `field:"optional" json:"kmsKeyId" yaml:"kmsKeyId"` // The snapshot that defines the device contents. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-ebsinstanceblockdevicespecification.html#cfn-imagebuilder-imagerecipe-ebsinstanceblockdevicespecification-snapshotid // SnapshotId *string `field:"optional" json:"snapshotId" yaml:"snapshotId"` // *For GP3 volumes only* – The throughput in MiB/s that the volume supports. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-ebsinstanceblockdevicespecification.html#cfn-imagebuilder-imagerecipe-ebsinstanceblockdevicespecification-throughput // Throughput *float64 `field:"optional" json:"throughput" yaml:"throughput"` // Overrides the volume size of the device. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-ebsinstanceblockdevicespecification.html#cfn-imagebuilder-imagerecipe-ebsinstanceblockdevicespecification-volumesize // VolumeSize *float64 `field:"optional" json:"volumeSize" yaml:"volumeSize"` // Overrides the volume type of the device. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-ebsinstanceblockdevicespecification.html#cfn-imagebuilder-imagerecipe-ebsinstanceblockdevicespecification-volumetype // VolumeType *string `field:"optional" json:"volumeType" yaml:"volumeType"` }
The image recipe EBS instance block device specification includes the Amazon EBS-specific block device mapping specifications for the image.
Example:
// 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" ebsInstanceBlockDeviceSpecificationProperty := &EbsInstanceBlockDeviceSpecificationProperty{ DeleteOnTermination: jsii.Boolean(false), Encrypted: jsii.Boolean(false), Iops: jsii.Number(123), KmsKeyId: jsii.String("kmsKeyId"), SnapshotId: jsii.String("snapshotId"), Throughput: jsii.Number(123), VolumeSize: jsii.Number(123), VolumeType: jsii.String("volumeType"), }
type CfnImageRecipe_InstanceBlockDeviceMappingProperty ¶
type CfnImageRecipe_InstanceBlockDeviceMappingProperty struct { // The device to which these mappings apply. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-instanceblockdevicemapping.html#cfn-imagebuilder-imagerecipe-instanceblockdevicemapping-devicename // DeviceName *string `field:"optional" json:"deviceName" yaml:"deviceName"` // Use to manage Amazon EBS-specific configuration for this mapping. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-instanceblockdevicemapping.html#cfn-imagebuilder-imagerecipe-instanceblockdevicemapping-ebs // Ebs interface{} `field:"optional" json:"ebs" yaml:"ebs"` // Enter an empty string to remove a mapping from the parent image. // // The following is an example of an empty string value in the `NoDevice` field. // // `NoDevice:""`. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-instanceblockdevicemapping.html#cfn-imagebuilder-imagerecipe-instanceblockdevicemapping-nodevice // NoDevice *string `field:"optional" json:"noDevice" yaml:"noDevice"` // Manages the instance ephemeral devices. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-instanceblockdevicemapping.html#cfn-imagebuilder-imagerecipe-instanceblockdevicemapping-virtualname // VirtualName *string `field:"optional" json:"virtualName" yaml:"virtualName"` }
Defines block device mappings for the instance used to configure your image.
Example:
// 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" instanceBlockDeviceMappingProperty := &InstanceBlockDeviceMappingProperty{ DeviceName: jsii.String("deviceName"), Ebs: &EbsInstanceBlockDeviceSpecificationProperty{ DeleteOnTermination: jsii.Boolean(false), Encrypted: jsii.Boolean(false), Iops: jsii.Number(123), KmsKeyId: jsii.String("kmsKeyId"), SnapshotId: jsii.String("snapshotId"), Throughput: jsii.Number(123), VolumeSize: jsii.Number(123), VolumeType: jsii.String("volumeType"), }, NoDevice: jsii.String("noDevice"), VirtualName: jsii.String("virtualName"), }
type CfnImageRecipe_SystemsManagerAgentProperty ¶
type CfnImageRecipe_SystemsManagerAgentProperty struct { // Controls whether the Systems Manager agent is removed from your final build image, prior to creating the new AMI. // // If this is set to true, then the agent is removed from the final image. If it's set to false, then the agent is left in, so that it is included in the new AMI. The default value is false. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-imagerecipe-systemsmanageragent.html#cfn-imagebuilder-imagerecipe-systemsmanageragent-uninstallafterbuild // UninstallAfterBuild interface{} `field:"optional" json:"uninstallAfterBuild" yaml:"uninstallAfterBuild"` }
Contains settings for the Systems Manager agent on your build instance.
Example:
// 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" systemsManagerAgentProperty := &SystemsManagerAgentProperty{ UninstallAfterBuild: jsii.Boolean(false), }
type CfnImage_EcrConfigurationProperty ¶ added in v2.63.0
type CfnImage_EcrConfigurationProperty struct { // Tags for Image Builder to apply to the output container image that &INS; // // scans. Tags can help you identify and manage your scanned images. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-image-ecrconfiguration.html#cfn-imagebuilder-image-ecrconfiguration-containertags // ContainerTags *[]*string `field:"optional" json:"containerTags" yaml:"containerTags"` // The name of the container repository that Amazon Inspector scans to identify findings for your container images. // // The name includes the path for the repository location. If you don’t provide this information, Image Builder creates a repository in your account named `image-builder-image-scanning-repository` for vulnerability scans of your output container images. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-image-ecrconfiguration.html#cfn-imagebuilder-image-ecrconfiguration-repositoryname // RepositoryName *string `field:"optional" json:"repositoryName" yaml:"repositoryName"` }
Settings that Image Builder uses to configure the ECR repository and the output container images that Amazon Inspector scans.
Example:
// 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" ecrConfigurationProperty := &EcrConfigurationProperty{ ContainerTags: []*string{ jsii.String("containerTags"), }, RepositoryName: jsii.String("repositoryName"), }
type CfnImage_ImageScanningConfigurationProperty ¶ added in v2.63.0
type CfnImage_ImageScanningConfigurationProperty struct { // Contains Amazon ECR settings for vulnerability scans. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-image-imagescanningconfiguration.html#cfn-imagebuilder-image-imagescanningconfiguration-ecrconfiguration // EcrConfiguration interface{} `field:"optional" json:"ecrConfiguration" yaml:"ecrConfiguration"` // A setting that indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-image-imagescanningconfiguration.html#cfn-imagebuilder-image-imagescanningconfiguration-imagescanningenabled // ImageScanningEnabled interface{} `field:"optional" json:"imageScanningEnabled" yaml:"imageScanningEnabled"` }
Contains settings for Image Builder image resource and container image scans.
Example:
// 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" imageScanningConfigurationProperty := &ImageScanningConfigurationProperty{ EcrConfiguration: &EcrConfigurationProperty{ ContainerTags: []*string{ jsii.String("containerTags"), }, RepositoryName: jsii.String("repositoryName"), }, ImageScanningEnabled: jsii.Boolean(false), }
type CfnImage_ImageTestsConfigurationProperty ¶
type CfnImage_ImageTestsConfigurationProperty struct { // Determines if tests should run after building the image. // // Image Builder defaults to enable tests to run following the image build, before image distribution. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-image-imagetestsconfiguration.html#cfn-imagebuilder-image-imagetestsconfiguration-imagetestsenabled // ImageTestsEnabled interface{} `field:"optional" json:"imageTestsEnabled" yaml:"imageTestsEnabled"` // The maximum time in minutes that tests are permitted to run. // // > The timeoutMinutes attribute is not currently active. This value is ignored. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-image-imagetestsconfiguration.html#cfn-imagebuilder-image-imagetestsconfiguration-timeoutminutes // TimeoutMinutes *float64 `field:"optional" json:"timeoutMinutes" yaml:"timeoutMinutes"` }
When you create an image or container recipe with Image Builder , you can add the build or test components that are used to create the final image.
You must have at least one build component to create a recipe, but test components are not required. If you have added tests, they run after the image is created, to ensure that the target image is functional and can be used reliably for launching Amazon EC2 instances.
Example:
// 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" imageTestsConfigurationProperty := &ImageTestsConfigurationProperty{ ImageTestsEnabled: jsii.Boolean(false), TimeoutMinutes: jsii.Number(123), }
type CfnInfrastructureConfiguration ¶
type CfnInfrastructureConfiguration interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggable // Returns the Amazon Resource Name (ARN) of the infrastructure configuration. // // The following pattern is applied: `^arn:aws[^:]*:imagebuilder:[^:]+:(?:\d{12}|aws):(?:image-recipe|infrastructure-configuration|distribution-configuration|component|image|image-pipeline)/[a-z0-9-_]+(?:/(?:(?:x|\d+)\.(?:x|\d+)\.(?:x|\d+))(?:/\d+)?)?$` . AttrArn() *string // The name of the infrastructure configuration. AttrName() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The description of the infrastructure configuration. Description() *string SetDescription(val *string) // The instance metadata option settings for the infrastructure configuration. InstanceMetadataOptions() interface{} SetInstanceMetadataOptions(val interface{}) // The instance profile of the infrastructure configuration. InstanceProfileName() *string SetInstanceProfileName(val *string) // The instance types of the infrastructure configuration. InstanceTypes() *[]*string SetInstanceTypes(val *[]*string) // The Amazon EC2 key pair of the infrastructure configuration. KeyPair() *string SetKeyPair(val *string) // The logging configuration defines where Image Builder uploads your logs. Logging() interface{} SetLogging(val interface{}) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name of the infrastructure configuration. Name() *string SetName(val *string) // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The tags attached to the resource created by Image Builder. ResourceTags() interface{} SetResourceTags(val interface{}) // The security group IDs of the infrastructure configuration. SecurityGroupIds() *[]*string SetSecurityGroupIds(val *[]*string) // The Amazon Resource Name (ARN) of the SNS topic for the infrastructure configuration. SnsTopicArn() *string SetSnsTopicArn(val *string) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // The subnet ID of the infrastructure configuration. SubnetId() *string SetSubnetId(val *string) // Tag Manager which manages the tags for this resource. Tags() awscdk.TagManager // The tags of the infrastructure configuration. TagsRaw() *map[string]*string SetTagsRaw(val *map[string]*string) // The terminate instance on failure configuration of the infrastructure configuration. TerminateInstanceOnFailure() interface{} SetTerminateInstanceOnFailure(val interface{}) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
The infrastructure configuration allows you to specify the infrastructure within which to build and test your image.
In the infrastructure configuration, you can specify instance types, subnets, and security groups to associate with your instance. You can also associate an Amazon EC2 key pair with the instance used to build your image. This allows you to log on to your instance to troubleshoot if your build fails and you set terminateInstanceOnFailure to false.
Example:
// 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" cfnInfrastructureConfiguration := awscdk.Aws_imagebuilder.NewCfnInfrastructureConfiguration(this, jsii.String("MyCfnInfrastructureConfiguration"), &CfnInfrastructureConfigurationProps{ InstanceProfileName: jsii.String("instanceProfileName"), Name: jsii.String("name"), // the properties below are optional Description: jsii.String("description"), InstanceMetadataOptions: &InstanceMetadataOptionsProperty{ HttpPutResponseHopLimit: jsii.Number(123), HttpTokens: jsii.String("httpTokens"), }, InstanceTypes: []*string{ jsii.String("instanceTypes"), }, KeyPair: jsii.String("keyPair"), Logging: &LoggingProperty{ S3Logs: &S3LogsProperty{ S3BucketName: jsii.String("s3BucketName"), S3KeyPrefix: jsii.String("s3KeyPrefix"), }, }, ResourceTags: map[string]*string{ "resourceTagsKey": jsii.String("resourceTags"), }, SecurityGroupIds: []*string{ jsii.String("securityGroupIds"), }, SnsTopicArn: jsii.String("snsTopicArn"), SubnetId: jsii.String("subnetId"), Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, TerminateInstanceOnFailure: jsii.Boolean(false), })
func NewCfnInfrastructureConfiguration ¶
func NewCfnInfrastructureConfiguration(scope constructs.Construct, id *string, props *CfnInfrastructureConfigurationProps) CfnInfrastructureConfiguration
type CfnInfrastructureConfigurationProps ¶
type CfnInfrastructureConfigurationProps struct { // The instance profile of the infrastructure configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-instanceprofilename // InstanceProfileName *string `field:"required" json:"instanceProfileName" yaml:"instanceProfileName"` // The name of the infrastructure configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-name // Name *string `field:"required" json:"name" yaml:"name"` // The description of the infrastructure configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-description // Description *string `field:"optional" json:"description" yaml:"description"` // The instance metadata option settings for the infrastructure configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-instancemetadataoptions // InstanceMetadataOptions interface{} `field:"optional" json:"instanceMetadataOptions" yaml:"instanceMetadataOptions"` // The instance types of the infrastructure configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-instancetypes // InstanceTypes *[]*string `field:"optional" json:"instanceTypes" yaml:"instanceTypes"` // The Amazon EC2 key pair of the infrastructure configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-keypair // KeyPair *string `field:"optional" json:"keyPair" yaml:"keyPair"` // The logging configuration defines where Image Builder uploads your logs. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-logging // Logging interface{} `field:"optional" json:"logging" yaml:"logging"` // The tags attached to the resource created by Image Builder. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-resourcetags // ResourceTags interface{} `field:"optional" json:"resourceTags" yaml:"resourceTags"` // The security group IDs of the infrastructure configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-securitygroupids // SecurityGroupIds *[]*string `field:"optional" json:"securityGroupIds" yaml:"securityGroupIds"` // The Amazon Resource Name (ARN) of the SNS topic for the infrastructure configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-snstopicarn // SnsTopicArn *string `field:"optional" json:"snsTopicArn" yaml:"snsTopicArn"` // The subnet ID of the infrastructure configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-subnetid // SubnetId *string `field:"optional" json:"subnetId" yaml:"subnetId"` // The tags of the infrastructure configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-tags // Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"` // The terminate instance on failure configuration of the infrastructure configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-infrastructureconfiguration.html#cfn-imagebuilder-infrastructureconfiguration-terminateinstanceonfailure // TerminateInstanceOnFailure interface{} `field:"optional" json:"terminateInstanceOnFailure" yaml:"terminateInstanceOnFailure"` }
Properties for defining a `CfnInfrastructureConfiguration`.
Example:
// 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" cfnInfrastructureConfigurationProps := &CfnInfrastructureConfigurationProps{ InstanceProfileName: jsii.String("instanceProfileName"), Name: jsii.String("name"), // the properties below are optional Description: jsii.String("description"), InstanceMetadataOptions: &InstanceMetadataOptionsProperty{ HttpPutResponseHopLimit: jsii.Number(123), HttpTokens: jsii.String("httpTokens"), }, InstanceTypes: []*string{ jsii.String("instanceTypes"), }, KeyPair: jsii.String("keyPair"), Logging: &LoggingProperty{ S3Logs: &S3LogsProperty{ S3BucketName: jsii.String("s3BucketName"), S3KeyPrefix: jsii.String("s3KeyPrefix"), }, }, ResourceTags: map[string]*string{ "resourceTagsKey": jsii.String("resourceTags"), }, SecurityGroupIds: []*string{ jsii.String("securityGroupIds"), }, SnsTopicArn: jsii.String("snsTopicArn"), SubnetId: jsii.String("subnetId"), Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, TerminateInstanceOnFailure: jsii.Boolean(false), }
type CfnInfrastructureConfiguration_InstanceMetadataOptionsProperty ¶
type CfnInfrastructureConfiguration_InstanceMetadataOptionsProperty struct { // Limit the number of hops that an instance metadata request can traverse to reach its destination. // // The default is one hop. However, if HTTP tokens are required, container image builds need a minimum of two hops. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-infrastructureconfiguration-instancemetadataoptions.html#cfn-imagebuilder-infrastructureconfiguration-instancemetadataoptions-httpputresponsehoplimit // HttpPutResponseHopLimit *float64 `field:"optional" json:"httpPutResponseHopLimit" yaml:"httpPutResponseHopLimit"` // Indicates whether a signed token header is required for instance metadata retrieval requests. // // The values affect the response as follows: // // - *required* – When you retrieve the IAM role credentials, version 2.0 credentials are returned in all cases. // - *optional* – You can include a signed token header in your request to retrieve instance metadata, or you can leave it out. If you include it, version 2.0 credentials are returned for the IAM role. Otherwise, version 1.0 credentials are returned. // // The default setting is *optional* . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-infrastructureconfiguration-instancemetadataoptions.html#cfn-imagebuilder-infrastructureconfiguration-instancemetadataoptions-httptokens // HttpTokens *string `field:"optional" json:"httpTokens" yaml:"httpTokens"` }
The instance metadata options that apply to the HTTP requests that pipeline builds use to launch EC2 build and test instances.
For more information about instance metadata options, see [Configure the instance metadata options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html) in the **Amazon EC2 User Guide** for Linux instances, or [Configure the instance metadata options](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/configuring-instance-metadata-options.html) in the **Amazon EC2 Windows Guide** for Windows instances.
Example:
// 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" instanceMetadataOptionsProperty := &InstanceMetadataOptionsProperty{ HttpPutResponseHopLimit: jsii.Number(123), HttpTokens: jsii.String("httpTokens"), }
type CfnInfrastructureConfiguration_LoggingProperty ¶
type CfnInfrastructureConfiguration_LoggingProperty struct { // The Amazon S3 logging configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-infrastructureconfiguration-logging.html#cfn-imagebuilder-infrastructureconfiguration-logging-s3logs // S3Logs interface{} `field:"optional" json:"s3Logs" yaml:"s3Logs"` }
Logging configuration defines where Image Builder uploads your logs.
Example:
// 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" loggingProperty := &LoggingProperty{ S3Logs: &S3LogsProperty{ S3BucketName: jsii.String("s3BucketName"), S3KeyPrefix: jsii.String("s3KeyPrefix"), }, }
type CfnInfrastructureConfiguration_S3LogsProperty ¶
type CfnInfrastructureConfiguration_S3LogsProperty struct { // The S3 bucket in which to store the logs. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-infrastructureconfiguration-s3logs.html#cfn-imagebuilder-infrastructureconfiguration-s3logs-s3bucketname // S3BucketName *string `field:"optional" json:"s3BucketName" yaml:"s3BucketName"` // The Amazon S3 path to the bucket where the logs are stored. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-infrastructureconfiguration-s3logs.html#cfn-imagebuilder-infrastructureconfiguration-s3logs-s3keyprefix // S3KeyPrefix *string `field:"optional" json:"s3KeyPrefix" yaml:"s3KeyPrefix"` }
Amazon S3 logging configuration.
Example:
// 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" s3LogsProperty := &S3LogsProperty{ S3BucketName: jsii.String("s3BucketName"), S3KeyPrefix: jsii.String("s3KeyPrefix"), }
type CfnLifecyclePolicy ¶ added in v2.110.0
type CfnLifecyclePolicy interface { awscdk.CfnResource awscdk.IInspectable // The Amazon Resource Name (ARN) of the lifecycle policy resource. AttrArn() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // Optional description for the lifecycle policy. Description() *string SetDescription(val *string) // The name of the IAM role that Image Builder uses to run the lifecycle policy. ExecutionRole() *string SetExecutionRole(val *string) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name of the lifecycle policy. Name() *string SetName(val *string) // The tree node. Node() constructs.Node // The configuration details for a lifecycle policy resource. PolicyDetails() interface{} SetPolicyDetails(val interface{}) // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // Resource selection criteria used to run the lifecycle policy. ResourceSelection() interface{} SetResourceSelection(val interface{}) // The type of resources the lifecycle policy targets. ResourceType() *string SetResourceType(val *string) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // Indicates whether the lifecycle policy resource is enabled. Status() *string SetStatus(val *string) // To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of tags. Tags() *map[string]*string SetTags(val *map[string]*string) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
The configuration details for a lifecycle policy resource.
Example:
// 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" cfnLifecyclePolicy := awscdk.Aws_imagebuilder.NewCfnLifecyclePolicy(this, jsii.String("MyCfnLifecyclePolicy"), &CfnLifecyclePolicyProps{ ExecutionRole: jsii.String("executionRole"), Name: jsii.String("name"), PolicyDetails: []interface{}{ &PolicyDetailProperty{ Action: &ActionProperty{ Type: jsii.String("type"), // the properties below are optional IncludeResources: &IncludeResourcesProperty{ Amis: jsii.Boolean(false), Containers: jsii.Boolean(false), Snapshots: jsii.Boolean(false), }, }, Filter: &FilterProperty{ Type: jsii.String("type"), Value: jsii.Number(123), // the properties below are optional RetainAtLeast: jsii.Number(123), Unit: jsii.String("unit"), }, // the properties below are optional ExclusionRules: &ExclusionRulesProperty{ Amis: &AmiExclusionRulesProperty{ IsPublic: jsii.Boolean(false), LastLaunched: &LastLaunchedProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, Regions: []*string{ jsii.String("regions"), }, SharedAccounts: []*string{ jsii.String("sharedAccounts"), }, TagMap: map[string]*string{ "tagMapKey": jsii.String("tagMap"), }, }, TagMap: map[string]*string{ "tagMapKey": jsii.String("tagMap"), }, }, }, }, ResourceSelection: &ResourceSelectionProperty{ Recipes: []interface{}{ &RecipeSelectionProperty{ Name: jsii.String("name"), // the properties below are optional SemanticVersion: jsii.String("semanticVersion"), }, }, TagMap: map[string]*string{ "tagMapKey": jsii.String("tagMap"), }, }, ResourceType: jsii.String("resourceType"), // the properties below are optional Description: jsii.String("description"), Status: jsii.String("status"), Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, })
func NewCfnLifecyclePolicy ¶ added in v2.110.0
func NewCfnLifecyclePolicy(scope constructs.Construct, id *string, props *CfnLifecyclePolicyProps) CfnLifecyclePolicy
type CfnLifecyclePolicyProps ¶ added in v2.110.0
type CfnLifecyclePolicyProps struct { // The name of the IAM role that Image Builder uses to run the lifecycle policy. // // This is a custom role that you create. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-lifecyclepolicy.html#cfn-imagebuilder-lifecyclepolicy-executionrole // ExecutionRole *string `field:"required" json:"executionRole" yaml:"executionRole"` // The name of the lifecycle policy. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-lifecyclepolicy.html#cfn-imagebuilder-lifecyclepolicy-name // Name *string `field:"required" json:"name" yaml:"name"` // The configuration details for a lifecycle policy resource. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-lifecyclepolicy.html#cfn-imagebuilder-lifecyclepolicy-policydetails // PolicyDetails interface{} `field:"required" json:"policyDetails" yaml:"policyDetails"` // Resource selection criteria used to run the lifecycle policy. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-lifecyclepolicy.html#cfn-imagebuilder-lifecyclepolicy-resourceselection // ResourceSelection interface{} `field:"required" json:"resourceSelection" yaml:"resourceSelection"` // The type of resources the lifecycle policy targets. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-lifecyclepolicy.html#cfn-imagebuilder-lifecyclepolicy-resourcetype // ResourceType *string `field:"required" json:"resourceType" yaml:"resourceType"` // Optional description for the lifecycle policy. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-lifecyclepolicy.html#cfn-imagebuilder-lifecyclepolicy-description // Description *string `field:"optional" json:"description" yaml:"description"` // Indicates whether the lifecycle policy resource is enabled. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-lifecyclepolicy.html#cfn-imagebuilder-lifecyclepolicy-status // Status *string `field:"optional" json:"status" yaml:"status"` // To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of tags. // // Each tag consists of a key and an optional value, both of which you define. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-lifecyclepolicy.html#cfn-imagebuilder-lifecyclepolicy-tags // Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"` }
Properties for defining a `CfnLifecyclePolicy`.
Example:
// 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" cfnLifecyclePolicyProps := &CfnLifecyclePolicyProps{ ExecutionRole: jsii.String("executionRole"), Name: jsii.String("name"), PolicyDetails: []interface{}{ &PolicyDetailProperty{ Action: &ActionProperty{ Type: jsii.String("type"), // the properties below are optional IncludeResources: &IncludeResourcesProperty{ Amis: jsii.Boolean(false), Containers: jsii.Boolean(false), Snapshots: jsii.Boolean(false), }, }, Filter: &FilterProperty{ Type: jsii.String("type"), Value: jsii.Number(123), // the properties below are optional RetainAtLeast: jsii.Number(123), Unit: jsii.String("unit"), }, // the properties below are optional ExclusionRules: &ExclusionRulesProperty{ Amis: &AmiExclusionRulesProperty{ IsPublic: jsii.Boolean(false), LastLaunched: &LastLaunchedProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, Regions: []*string{ jsii.String("regions"), }, SharedAccounts: []*string{ jsii.String("sharedAccounts"), }, TagMap: map[string]*string{ "tagMapKey": jsii.String("tagMap"), }, }, TagMap: map[string]*string{ "tagMapKey": jsii.String("tagMap"), }, }, }, }, ResourceSelection: &ResourceSelectionProperty{ Recipes: []interface{}{ &RecipeSelectionProperty{ Name: jsii.String("name"), // the properties below are optional SemanticVersion: jsii.String("semanticVersion"), }, }, TagMap: map[string]*string{ "tagMapKey": jsii.String("tagMap"), }, }, ResourceType: jsii.String("resourceType"), // the properties below are optional Description: jsii.String("description"), Status: jsii.String("status"), Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, }
type CfnLifecyclePolicy_ActionProperty ¶ added in v2.110.0
type CfnLifecyclePolicy_ActionProperty struct { // The action type of the policy detail. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-action.html#cfn-imagebuilder-lifecyclepolicy-action-type // Type *string `field:"required" json:"type" yaml:"type"` // The included resources of the policy detail. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-action.html#cfn-imagebuilder-lifecyclepolicy-action-includeresources // IncludeResources interface{} `field:"optional" json:"includeResources" yaml:"includeResources"` }
The action of the policy detail.
Example:
// 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" actionProperty := &ActionProperty{ Type: jsii.String("type"), // the properties below are optional IncludeResources: &IncludeResourcesProperty{ Amis: jsii.Boolean(false), Containers: jsii.Boolean(false), Snapshots: jsii.Boolean(false), }, }
type CfnLifecyclePolicy_AmiExclusionRulesProperty ¶ added in v2.110.0
type CfnLifecyclePolicy_AmiExclusionRulesProperty struct { // Use to apply lifecycle policy actions on whether the AMI is public. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-amiexclusionrules.html#cfn-imagebuilder-lifecyclepolicy-amiexclusionrules-ispublic // IsPublic interface{} `field:"optional" json:"isPublic" yaml:"isPublic"` // The last launched time of a resource. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-amiexclusionrules.html#cfn-imagebuilder-lifecyclepolicy-amiexclusionrules-lastlaunched // LastLaunched interface{} `field:"optional" json:"lastLaunched" yaml:"lastLaunched"` // Use to apply lifecycle policy actions on AMIs distributed to a set of regions. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-amiexclusionrules.html#cfn-imagebuilder-lifecyclepolicy-amiexclusionrules-regions // Regions *[]*string `field:"optional" json:"regions" yaml:"regions"` // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-amiexclusionrules.html#cfn-imagebuilder-lifecyclepolicy-amiexclusionrules-sharedaccounts // SharedAccounts *[]*string `field:"optional" json:"sharedAccounts" yaml:"sharedAccounts"` // The AMIs to select by tag. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-amiexclusionrules.html#cfn-imagebuilder-lifecyclepolicy-amiexclusionrules-tagmap // TagMap interface{} `field:"optional" json:"tagMap" yaml:"tagMap"` }
The AMI exclusion rules for the policy detail.
Example:
// 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" amiExclusionRulesProperty := &AmiExclusionRulesProperty{ IsPublic: jsii.Boolean(false), LastLaunched: &LastLaunchedProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, Regions: []*string{ jsii.String("regions"), }, SharedAccounts: []*string{ jsii.String("sharedAccounts"), }, TagMap: map[string]*string{ "tagMapKey": jsii.String("tagMap"), }, }
type CfnLifecyclePolicy_ExclusionRulesProperty ¶ added in v2.110.0
type CfnLifecyclePolicy_ExclusionRulesProperty struct { // The AMI exclusion rules for the policy detail. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-exclusionrules.html#cfn-imagebuilder-lifecyclepolicy-exclusionrules-amis // Amis interface{} `field:"optional" json:"amis" yaml:"amis"` // The Image Builder tags to filter on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-exclusionrules.html#cfn-imagebuilder-lifecyclepolicy-exclusionrules-tagmap // TagMap interface{} `field:"optional" json:"tagMap" yaml:"tagMap"` }
The exclusion rules to apply of the policy detail.
Example:
// 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" exclusionRulesProperty := &ExclusionRulesProperty{ Amis: &AmiExclusionRulesProperty{ IsPublic: jsii.Boolean(false), LastLaunched: &LastLaunchedProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, Regions: []*string{ jsii.String("regions"), }, SharedAccounts: []*string{ jsii.String("sharedAccounts"), }, TagMap: map[string]*string{ "tagMapKey": jsii.String("tagMap"), }, }, TagMap: map[string]*string{ "tagMapKey": jsii.String("tagMap"), }, }
type CfnLifecyclePolicy_FilterProperty ¶ added in v2.110.0
type CfnLifecyclePolicy_FilterProperty struct { // The filter type. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-filter.html#cfn-imagebuilder-lifecyclepolicy-filter-type // Type *string `field:"required" json:"type" yaml:"type"` // The filter value. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-filter.html#cfn-imagebuilder-lifecyclepolicy-filter-value // Value *float64 `field:"required" json:"value" yaml:"value"` // The minimum number of Image Builder resources to retain. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-filter.html#cfn-imagebuilder-lifecyclepolicy-filter-retainatleast // RetainAtLeast *float64 `field:"optional" json:"retainAtLeast" yaml:"retainAtLeast"` // A time unit. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-filter.html#cfn-imagebuilder-lifecyclepolicy-filter-unit // Unit *string `field:"optional" json:"unit" yaml:"unit"` }
A filter name and value pair that is used to return a more specific list of results from a list operation.
Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
Example:
// 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" filterProperty := &FilterProperty{ Type: jsii.String("type"), Value: jsii.Number(123), // the properties below are optional RetainAtLeast: jsii.Number(123), Unit: jsii.String("unit"), }
type CfnLifecyclePolicy_IncludeResourcesProperty ¶ added in v2.110.0
type CfnLifecyclePolicy_IncludeResourcesProperty struct { // Use to configure lifecycle actions on AMIs. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-includeresources.html#cfn-imagebuilder-lifecyclepolicy-includeresources-amis // Amis interface{} `field:"optional" json:"amis" yaml:"amis"` // Use to configure lifecycle actions on containers. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-includeresources.html#cfn-imagebuilder-lifecyclepolicy-includeresources-containers // Containers interface{} `field:"optional" json:"containers" yaml:"containers"` // Use to configure lifecycle actions on snapshots. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-includeresources.html#cfn-imagebuilder-lifecyclepolicy-includeresources-snapshots // Snapshots interface{} `field:"optional" json:"snapshots" yaml:"snapshots"` }
The included resources of the policy detail.
Example:
// 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" includeResourcesProperty := &IncludeResourcesProperty{ Amis: jsii.Boolean(false), Containers: jsii.Boolean(false), Snapshots: jsii.Boolean(false), }
type CfnLifecyclePolicy_LastLaunchedProperty ¶ added in v2.110.0
type CfnLifecyclePolicy_LastLaunchedProperty struct { // A time unit. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-lastlaunched.html#cfn-imagebuilder-lifecyclepolicy-lastlaunched-unit // Unit *string `field:"required" json:"unit" yaml:"unit"` // The last launched value. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-lastlaunched.html#cfn-imagebuilder-lifecyclepolicy-lastlaunched-value // Value *float64 `field:"required" json:"value" yaml:"value"` }
The last launched time of a resource.
Example:
// 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" lastLaunchedProperty := &LastLaunchedProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }
type CfnLifecyclePolicy_PolicyDetailProperty ¶ added in v2.110.0
type CfnLifecyclePolicy_PolicyDetailProperty struct { // The action of the policy detail. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-policydetail.html#cfn-imagebuilder-lifecyclepolicy-policydetail-action // Action interface{} `field:"required" json:"action" yaml:"action"` // The filters to apply of the policy detail. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-policydetail.html#cfn-imagebuilder-lifecyclepolicy-policydetail-filter // Filter interface{} `field:"required" json:"filter" yaml:"filter"` // The exclusion rules to apply of the policy detail. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-policydetail.html#cfn-imagebuilder-lifecyclepolicy-policydetail-exclusionrules // ExclusionRules interface{} `field:"optional" json:"exclusionRules" yaml:"exclusionRules"` }
The policy detail of the lifecycle policy.
Example:
// 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" policyDetailProperty := &PolicyDetailProperty{ Action: &ActionProperty{ Type: jsii.String("type"), // the properties below are optional IncludeResources: &IncludeResourcesProperty{ Amis: jsii.Boolean(false), Containers: jsii.Boolean(false), Snapshots: jsii.Boolean(false), }, }, Filter: &FilterProperty{ Type: jsii.String("type"), Value: jsii.Number(123), // the properties below are optional RetainAtLeast: jsii.Number(123), Unit: jsii.String("unit"), }, // the properties below are optional ExclusionRules: &ExclusionRulesProperty{ Amis: &AmiExclusionRulesProperty{ IsPublic: jsii.Boolean(false), LastLaunched: &LastLaunchedProperty{ Unit: jsii.String("unit"), Value: jsii.Number(123), }, Regions: []*string{ jsii.String("regions"), }, SharedAccounts: []*string{ jsii.String("sharedAccounts"), }, TagMap: map[string]*string{ "tagMapKey": jsii.String("tagMap"), }, }, TagMap: map[string]*string{ "tagMapKey": jsii.String("tagMap"), }, }, }
type CfnLifecyclePolicy_RecipeSelectionProperty ¶ added in v2.110.0
type CfnLifecyclePolicy_RecipeSelectionProperty struct { // The recipe name. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-recipeselection.html#cfn-imagebuilder-lifecyclepolicy-recipeselection-name // Name *string `field:"required" json:"name" yaml:"name"` // The recipe version. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-recipeselection.html#cfn-imagebuilder-lifecyclepolicy-recipeselection-semanticversion // SemanticVersion *string `field:"optional" json:"semanticVersion" yaml:"semanticVersion"` }
The recipe to apply the lifecycle policy for.
Example:
// 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" recipeSelectionProperty := &RecipeSelectionProperty{ Name: jsii.String("name"), // the properties below are optional SemanticVersion: jsii.String("semanticVersion"), }
type CfnLifecyclePolicy_ResourceSelectionProperty ¶ added in v2.110.0
type CfnLifecyclePolicy_ResourceSelectionProperty struct { // The recipes to select. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-resourceselection.html#cfn-imagebuilder-lifecyclepolicy-resourceselection-recipes // Recipes interface{} `field:"optional" json:"recipes" yaml:"recipes"` // The Image Builder resources to select by tag. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-resourceselection.html#cfn-imagebuilder-lifecyclepolicy-resourceselection-tagmap // TagMap interface{} `field:"optional" json:"tagMap" yaml:"tagMap"` }
The resource selection for the lifecycle policy.
Example:
// 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" resourceSelectionProperty := &ResourceSelectionProperty{ Recipes: []interface{}{ &RecipeSelectionProperty{ Name: jsii.String("name"), // the properties below are optional SemanticVersion: jsii.String("semanticVersion"), }, }, TagMap: map[string]*string{ "tagMapKey": jsii.String("tagMap"), }, }
Source Files ¶
- CfnComponent.go
- CfnComponentProps.go
- CfnComponent__checks.go
- CfnContainerRecipe.go
- CfnContainerRecipeProps.go
- CfnContainerRecipe_ComponentConfigurationProperty.go
- CfnContainerRecipe_ComponentParameterProperty.go
- CfnContainerRecipe_EbsInstanceBlockDeviceSpecificationProperty.go
- CfnContainerRecipe_InstanceBlockDeviceMappingProperty.go
- CfnContainerRecipe_InstanceConfigurationProperty.go
- CfnContainerRecipe_TargetContainerRepositoryProperty.go
- CfnContainerRecipe__checks.go
- CfnDistributionConfiguration.go
- CfnDistributionConfigurationProps.go
- CfnDistributionConfiguration_AmiDistributionConfigurationProperty.go
- CfnDistributionConfiguration_ContainerDistributionConfigurationProperty.go
- CfnDistributionConfiguration_DistributionProperty.go
- CfnDistributionConfiguration_FastLaunchConfigurationProperty.go
- CfnDistributionConfiguration_FastLaunchLaunchTemplateSpecificationProperty.go
- CfnDistributionConfiguration_FastLaunchSnapshotConfigurationProperty.go
- CfnDistributionConfiguration_LaunchPermissionConfigurationProperty.go
- CfnDistributionConfiguration_LaunchTemplateConfigurationProperty.go
- CfnDistributionConfiguration_TargetContainerRepositoryProperty.go
- CfnDistributionConfiguration__checks.go
- CfnImage.go
- CfnImagePipeline.go
- CfnImagePipelineProps.go
- CfnImagePipeline_EcrConfigurationProperty.go
- CfnImagePipeline_ImageScanningConfigurationProperty.go
- CfnImagePipeline_ImageTestsConfigurationProperty.go
- CfnImagePipeline_ScheduleProperty.go
- CfnImagePipeline__checks.go
- CfnImageProps.go
- CfnImageRecipe.go
- CfnImageRecipeProps.go
- CfnImageRecipe_AdditionalInstanceConfigurationProperty.go
- CfnImageRecipe_ComponentConfigurationProperty.go
- CfnImageRecipe_ComponentParameterProperty.go
- CfnImageRecipe_EbsInstanceBlockDeviceSpecificationProperty.go
- CfnImageRecipe_InstanceBlockDeviceMappingProperty.go
- CfnImageRecipe_SystemsManagerAgentProperty.go
- CfnImageRecipe__checks.go
- CfnImage_EcrConfigurationProperty.go
- CfnImage_ImageScanningConfigurationProperty.go
- CfnImage_ImageTestsConfigurationProperty.go
- CfnImage__checks.go
- CfnInfrastructureConfiguration.go
- CfnInfrastructureConfigurationProps.go
- CfnInfrastructureConfiguration_InstanceMetadataOptionsProperty.go
- CfnInfrastructureConfiguration_LoggingProperty.go
- CfnInfrastructureConfiguration_S3LogsProperty.go
- CfnInfrastructureConfiguration__checks.go
- CfnLifecyclePolicy.go
- CfnLifecyclePolicyProps.go
- CfnLifecyclePolicy_ActionProperty.go
- CfnLifecyclePolicy_AmiExclusionRulesProperty.go
- CfnLifecyclePolicy_ExclusionRulesProperty.go
- CfnLifecyclePolicy_FilterProperty.go
- CfnLifecyclePolicy_IncludeResourcesProperty.go
- CfnLifecyclePolicy_LastLaunchedProperty.go
- CfnLifecyclePolicy_PolicyDetailProperty.go
- CfnLifecyclePolicy_RecipeSelectionProperty.go
- CfnLifecyclePolicy_ResourceSelectionProperty.go
- CfnLifecyclePolicy__checks.go
- main.go