Skip to content

Data Source: awsImagebuilderContainerRecipes

Use this data source to get the ARNs and names of Image Builder Container Recipes matching the specified criteria.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsImagebuilderContainerRecipes.DataAwsImagebuilderContainerRecipes(
  this,
  "example",
  {
    filter: [
      {
        name: "platform",
        values: ["Linux"],
      },
    ],
    owner: "Self",
  }
);

Argument Reference

  • owner - (Optional) Owner of the container recipes. Valid values are self, shared and amazon. Defaults to self.
  • filter - (Optional) Configuration block(s) for filtering. Detailed below.

filter Configuration Block

The following arguments are supported by the filter configuration block:

  • name - (Required) Name of the filter field. Valid values can be found in the Image Builder ListContainerRecipes API Reference.
  • values - (Required) Set of values that are accepted for the given filter field. Results will be selected if any given value matches.

Attributes Reference

  • arns - Set of ARNs of the matched Image Builder Container Recipes.
  • names - Set of names of the matched Image Builder Container Recipes.