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

DESCRIPTION

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

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

SYNOPSIS

    my $imagebuilder = Paws->service('ImageBuilder');
    my $CreateDistributionConfigurationResponse =
      $imagebuilder->CreateDistributionConfiguration(
      ClientToken   => 'MyClientToken',
      Distributions => [
        {
          Region => 'MyNonEmptyString',    # min: 1, max: 1024
          AmiDistributionConfiguration => {
            AmiTags => {
              'MyTagKey' =>
                'MyTagValue',    # key: min: 1, max: 128, value: max: 256
            },    # min: 1, max: 50; OPTIONAL
            Description      => 'MyNonEmptyString',    # min: 1, max: 1024
            KmsKeyId         => 'MyNonEmptyString',    # min: 1, max: 1024
            LaunchPermission => {
              UserGroups => [
                'MyNonEmptyString', ...                # min: 1, max: 1024
              ],    # OPTIONAL
              UserIds => [ 'MyAccountId', ... ],   # min: 1, max: 1536; OPTIONAL
            },    # OPTIONAL
            Name             => 'MyAmiNameString',  # min: 1, max: 127; OPTIONAL
            TargetAccountIds => [ 'MyAccountId', ... ]
            ,    # min: 1, max: 1536; OPTIONAL
          },    # OPTIONAL
          ContainerDistributionConfiguration => {
            TargetRepository => {
              RepositoryName => 'MyNonEmptyString',    # min: 1, max: 1024
              Service        => 'ECR',                 # values: ECR

            },
            ContainerTags => [
              'MyNonEmptyString', ...                  # min: 1, max: 1024
            ],    # OPTIONAL
            Description => 'MyNonEmptyString',    # min: 1, max: 1024
          },    # OPTIONAL
          LaunchTemplateConfigurations => [
            {
              LaunchTemplateId  => 'MyLaunchTemplateId',
              AccountId         => 'MyAccountId',
              SetDefaultVersion => 1,                      # OPTIONAL
            },
            ...
          ],    # min: 1, max: 100; OPTIONAL
          LicenseConfigurationArns => [ 'MyLicenseConfigurationArn', ... ]
          ,     # min: 1, max: 50; OPTIONAL
        },
        ...
      ],
      Name        => 'MyResourceName',
      Description => 'MyNonEmptyString',    # OPTIONAL
      Tags        => {
        'MyTagKey' => 'MyTagValue',    # key: min: 1, max: 128, value: max: 256
      },    # OPTIONAL
      );

    # Results:
    my $ClientToken = $CreateDistributionConfigurationResponse->ClientToken;
    my $DistributionConfigurationArn =
      $CreateDistributionConfigurationResponse->DistributionConfigurationArn;
    my $RequestId = $CreateDistributionConfigurationResponse->RequestId;

# Returns a Paws::ImageBuilder::CreateDistributionConfigurationResponse 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/CreateDistributionConfiguration

ATTRIBUTES

REQUIRED ClientToken => Str

The idempotency token of the distribution configuration.

Description => Str

The description of the distribution configuration.

REQUIRED Distributions => ArrayRef[Paws::ImageBuilder::Distribution]

The distributions of the distribution configuration.

REQUIRED Name => Str

The name of the distribution configuration.

Tags => Paws::ImageBuilder::TagMap

The tags of the distribution configuration.

SEE ALSO

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