The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Paws::ImageBuilder::CreateContainerRecipe - Arguments for method CreateContainerRecipe on Paws::ImageBuilder

DESCRIPTION

This class represents the parameters used for calling the method CreateContainerRecipe on the EC2 Image Builder service. Use the attributes of this class as arguments to method CreateContainerRecipe.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateContainerRecipe.

SYNOPSIS

my $imagebuilder = Paws->service('ImageBuilder');
my $CreateContainerRecipeResponse = $imagebuilder->CreateContainerRecipe(
  ClientToken => 'MyClientToken',
  Components  => [
    {
      ComponentArn => 'MyComponentVersionArnOrBuildVersionArn',
      Parameters   => [
        {
          Name  => 'MyComponentParameterName',    # min: 1, max: 256
          Value => [
            'MyComponentParameterValue', ...      # min: 1
          ],

        },
        ...
      ],    # min: 1; OPTIONAL
    },
    ...
  ],
  ContainerType    => 'DOCKER',
  Name             => 'MyResourceName',
  ParentImage      => 'MyNonEmptyString',
  SemanticVersion  => 'MyVersionNumber',
  TargetRepository => {
    RepositoryName => 'MyNonEmptyString',    # min: 1, max: 1024
    Service        => 'ECR',                 # values: ECR

  },
  Description            => 'MyNonEmptyString',              # OPTIONAL
  DockerfileTemplateData => 'MyInlineDockerFileTemplate',    # OPTIONAL
  DockerfileTemplateUri  => 'MyUri',                         # OPTIONAL
  ImageOsVersionOverride => 'MyNonEmptyString',              # OPTIONAL
  InstanceConfiguration  => {
    BlockDeviceMappings => [
      {
        DeviceName => 'MyNonEmptyString',    # min: 1, max: 1024
        Ebs        => {
          DeleteOnTermination => 1,    # OPTIONAL
          Encrypted           => 1,    # OPTIONAL
          Iops                => 1,    # min: 100, max: 10000; OPTIONAL
          KmsKeyId   => 'MyNonEmptyString',   # min: 1, max: 1024
          SnapshotId => 'MyNonEmptyString',   # min: 1, max: 1024
          VolumeSize => 1,                    # min: 1, max: 16000; OPTIONAL
          VolumeType => 'standard'
          ,    # values: standard, io1, io2, gp2, gp3, sc1, st1; OPTIONAL
        },    # OPTIONAL
        NoDevice    => 'MyEmptyString',       # OPTIONAL
        VirtualName => 'MyNonEmptyString',    # min: 1, max: 1024
      },
      ...
    ],    # OPTIONAL
    Image => 'MyNonEmptyString',    # min: 1, max: 1024
  },    # OPTIONAL
  KmsKeyId         => 'MyNonEmptyString',    # OPTIONAL
  PlatformOverride => 'Windows',             # OPTIONAL
  Tags             => {
    'MyTagKey' => 'MyTagValue',    # key: min: 1, max: 128, value: max: 256
  },    # OPTIONAL
  WorkingDirectory => 'MyNonEmptyString',    # OPTIONAL
);

# Results:
my $ClientToken        = $CreateContainerRecipeResponse->ClientToken;
my $ContainerRecipeArn = $CreateContainerRecipeResponse->ContainerRecipeArn;
my $RequestId          = $CreateContainerRecipeResponse->RequestId;

# Returns a L<Paws::ImageBuilder::CreateContainerRecipeResponse> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/imagebuilder/CreateContainerRecipe

ATTRIBUTES

REQUIRED ClientToken => Str

The client token used to make this request idempotent.

REQUIRED Components => ArrayRef[Paws::ImageBuilder::ComponentConfiguration]

Components for build and test that are included in the container recipe.

REQUIRED ContainerType => Str

The type of container to create.

Valid values are: "DOCKER"

Description => Str

The description of the container recipe.

DockerfileTemplateData => Str

The Dockerfile template used to build your image as an inline data blob.

DockerfileTemplateUri => Str

The Amazon S3 URI for the Dockerfile that will be used to build your container image.

ImageOsVersionOverride => Str

Specifies the operating system version for the source image.

InstanceConfiguration => Paws::ImageBuilder::InstanceConfiguration

A group of options that can be used to configure an instance for building and testing container images.

KmsKeyId => Str

Identifies which KMS key is used to encrypt the container image.

REQUIRED Name => Str

The name of the container recipe.

REQUIRED ParentImage => Str

The source image for the container recipe.

PlatformOverride => Str

Specifies the operating system platform when you use a custom source image.

Valid values are: "Windows", "Linux"

REQUIRED SemanticVersion => Str

The semantic version of the container recipe (<major>.<minor>.<patch>).

Tags => Paws::ImageBuilder::TagMap

Tags that are attached to the container recipe.

REQUIRED TargetRepository => Paws::ImageBuilder::TargetContainerRepository

The destination repository for the container image.

WorkingDirectory => Str

The working directory for use during build and test workflows.

SEE ALSO

This class forms part of Paws, documenting arguments for method CreateContainerRecipe in Paws::ImageBuilder

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues