Skip to content
v2.278.0

RecipeSelectionProperty Struct ​

Specifies an Image Builder recipe that the lifecycle policy uses for resource selection.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_imagebuilder as imagebuilder } from 'aws-cdk-lib';
const recipeSelectionProperty: imagebuilder.CfnLifecyclePolicy.RecipeSelectionProperty = {
  name: 'name',
  semanticVersion: 'semanticVersion',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_imagebuilder as imagebuilder

recipe_selection_property = imagebuilder.CfnLifecyclePolicy.RecipeSelectionProperty(
    name="name",
    semantic_version="semanticVersion"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.imagebuilder.*;

RecipeSelectionProperty recipeSelectionProperty = RecipeSelectionProperty.builder()
        .name("name")
        .semanticVersion("semanticVersion")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ImageBuilder;

var recipeSelectionProperty = new RecipeSelectionProperty {
    Name = "name",
    SemanticVersion = "semanticVersion"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

recipeSelectionProperty := &RecipeSelectionProperty{
	Name: jsii.String("name"),
	SemanticVersion: jsii.String("semanticVersion"),
}

Properties ​

namestringnamestrnameStringNamestringName*string required #
The name of an Image Builder recipe that the lifecycle policy uses for resource selection.
semanticVersionstringsemantic_versionstrsemanticVersionStringSemanticVersionstringSemanticVersion*string required #
The version of the Image Builder recipe specified by the `name` field.