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::CreateImage - Arguments for method CreateImage on Paws::ImageBuilder

DESCRIPTION

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

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

SYNOPSIS

my $imagebuilder = Paws->service('ImageBuilder');
my $CreateImageResponse = $imagebuilder->CreateImage(
  ClientToken                    => 'MyClientToken',
  InfrastructureConfigurationArn => 'MyInfrastructureConfigurationArn',
  ContainerRecipeArn             => 'MyContainerRecipeArn',    # OPTIONAL
  DistributionConfigurationArn   =>
    'MyDistributionConfigurationArn',                          # OPTIONAL
  EnhancedImageMetadataEnabled => 1,                           # OPTIONAL
  ImageRecipeArn               => 'MyImageRecipeArn',          # OPTIONAL
  ImageTestsConfiguration      => {
    ImageTestsEnabled => 1,
    TimeoutMinutes    => 1,    # min: 60, max: 1440; OPTIONAL
  },    # OPTIONAL
  Tags => {
    'MyTagKey' => 'MyTagValue',    # key: min: 1, max: 128, value: max: 256
  },    # OPTIONAL
);

# Results:
my $ClientToken          = $CreateImageResponse->ClientToken;
my $ImageBuildVersionArn = $CreateImageResponse->ImageBuildVersionArn;
my $RequestId            = $CreateImageResponse->RequestId;

# Returns a L<Paws::ImageBuilder::CreateImageResponse> 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/CreateImage

ATTRIBUTES

REQUIRED ClientToken => Str

The idempotency token used to make this request idempotent.

ContainerRecipeArn => Str

The Amazon Resource Name (ARN) of the container recipe that defines how images are configured and tested.

DistributionConfigurationArn => Str

The Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline.

EnhancedImageMetadataEnabled => Bool

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.

ImageRecipeArn => Str

The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.

ImageTestsConfiguration => Paws::ImageBuilder::ImageTestsConfiguration

The image tests configuration of the image.

REQUIRED InfrastructureConfigurationArn => Str

The Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested.

Tags => Paws::ImageBuilder::TagMap

The tags of the image.

SEE ALSO

This class forms part of Paws, documenting arguments for method CreateImage 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