Skip to content
v2.278.0

ResourceSelectionProperty Struct ​

Resource selection criteria for the lifecycle policy.

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 resourceSelectionProperty: imagebuilder.CfnLifecyclePolicy.ResourceSelectionProperty = {
  recipes: [{
    name: 'name',
    semanticVersion: 'semanticVersion',
  }],
  tagMap: {
    tagMapKey: 'tagMap',
  },
};
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

resource_selection_property = imagebuilder.CfnLifecyclePolicy.ResourceSelectionProperty(
    recipes=[imagebuilder.CfnLifecyclePolicy.RecipeSelectionProperty(
        name="name",
        semantic_version="semanticVersion"
    )],
    tag_map={
        "tag_map_key": "tagMap"
    }
)
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.*;

ResourceSelectionProperty resourceSelectionProperty = ResourceSelectionProperty.builder()
        .recipes(List.of(RecipeSelectionProperty.builder()
                .name("name")
                .semanticVersion("semanticVersion")
                .build()))
        .tagMap(Map.of(
                "tagMapKey", "tagMap"))
        .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 resourceSelectionProperty = new ResourceSelectionProperty {
    Recipes = new [] { new RecipeSelectionProperty {
        Name = "name",
        SemanticVersion = "semanticVersion"
    } },
    TagMap = new Dictionary<string, string> {
        { "tagMapKey", "tagMap" }
    }
};
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"

resourceSelectionProperty := &ResourceSelectionProperty{
	Recipes: []interface{}{
		&RecipeSelectionProperty{
			Name: jsii.String("name"),
			SemanticVersion: jsii.String("semanticVersion"),
		},
	},
	TagMap: map[string]*string{
		"tagMapKey": jsii.String("tagMap"),
	},
}

Properties ​

recipesoptionalIResolvable | IResolvable | CfnLifecyclePolicy.RecipeSelectionProperty[]recipesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RecipeSelectionProperty]]]recipesoptionalIResolvableRecipesoptionalIResolvableRecipesoptionalinterface{} #
A list of recipes that are used as selection criteria for the output images that the lifecycle policy applies to.
tagMapoptionalIResolvable | { [key: string]: string }tag_mapoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]tagMapoptionalIResolvableTagMapoptionalIResolvableTagMapoptionalinterface{} #
A list of tags that are used as selection criteria for the Image Builder image resources that the lifecycle policy applies to.