« blib/lib/Paws/EC2/CreateLaunchTemplateResult.pm
↑ Summary
blib/lib/Paws/EC2/CreateLaunchTemplateVersionResult.pm »
| 1 | |||
| 2 | package Paws::EC2::CreateLaunchTemplateVersion; | ||
| 3 | use Moose; | ||
| 4 | has ClientToken => (is => 'ro', isa => 'Str'); | ||
| 5 | has DryRun => (is => 'ro', isa => 'Bool'); | ||
| 6 | has LaunchTemplateData => (is => 'ro', isa => 'Paws::EC2::RequestLaunchTemplateData', required => 1); | ||
| 7 | has LaunchTemplateId => (is => 'ro', isa => 'Str'); | ||
| 8 | has LaunchTemplateName => (is => 'ro', isa => 'Str'); | ||
| 9 | has SourceVersion => (is => 'ro', isa => 'Str'); | ||
| 10 | has VersionDescription => (is => 'ro', isa => 'Str'); | ||
| 11 | |||
| 12 | use MooseX::ClassAttribute; | ||
| 13 | |||
| 14 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLaunchTemplateVersion'); | ||
| 15 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateLaunchTemplateVersionResult'); | ||
| 16 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 17 | 1; | ||
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::EC2::CreateLaunchTemplateVersion - Arguments for method CreateLaunchTemplateVersion on L<Paws::EC2> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method CreateLaunchTemplateVersion on the | ||
| 28 | L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class | ||
| 29 | as arguments to method CreateLaunchTemplateVersion. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLaunchTemplateVersion. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $ec2 = Paws->service('EC2'); | ||
| 36 | # To create a launch template version | ||
| 37 | # This example creates a new launch template version based on version 1 of the | ||
| 38 | # specified launch template and specifies a different AMI ID. | ||
| 39 | my $CreateLaunchTemplateVersionResult = $ec2->CreateLaunchTemplateVersion( | ||
| 40 | 'LaunchTemplateData' => { | ||
| 41 | 'ImageId' => 'ami-c998b6b2' | ||
| 42 | }, | ||
| 43 | 'LaunchTemplateId' => 'lt-0abcd290751193123', | ||
| 44 | 'SourceVersion' => 1, | ||
| 45 | 'VersionDescription' => 'WebVersion2' | ||
| 46 | ); | ||
| 47 | |||
| 48 | # Results: | ||
| 49 | my $LaunchTemplateVersion = | ||
| 50 | $CreateLaunchTemplateVersionResult->LaunchTemplateVersion; | ||
| 51 | |||
| 52 | # Returns a L<Paws::EC2::CreateLaunchTemplateVersionResult> object. | ||
| 53 | |||
| 54 | 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. | ||
| 55 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/CreateLaunchTemplateVersion> | ||
| 56 | |||
| 57 | =head1 ATTRIBUTES | ||
| 58 | |||
| 59 | |||
| 60 | =head2 ClientToken => Str | ||
| 61 | |||
| 62 | Unique, case-sensitive identifier you provide to ensure the idempotency | ||
| 63 | of the request. For more information, see Ensuring Idempotency | ||
| 64 | (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). | ||
| 65 | |||
| 66 | Constraint: Maximum 128 ASCII characters. | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | =head2 DryRun => Bool | ||
| 71 | |||
| 72 | Checks whether you have the required permissions for the action, | ||
| 73 | without actually making the request, and provides an error response. If | ||
| 74 | you have the required permissions, the error response is | ||
| 75 | C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>. | ||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head2 B<REQUIRED> LaunchTemplateData => L<Paws::EC2::RequestLaunchTemplateData> | ||
| 80 | |||
| 81 | The information for the launch template. | ||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | =head2 LaunchTemplateId => Str | ||
| 86 | |||
| 87 | The ID of the launch template. You must specify either the launch | ||
| 88 | template ID or launch template name in the request. | ||
| 89 | |||
| 90 | |||
| 91 | |||
| 92 | =head2 LaunchTemplateName => Str | ||
| 93 | |||
| 94 | The name of the launch template. You must specify either the launch | ||
| 95 | template ID or launch template name in the request. | ||
| 96 | |||
| 97 | |||
| 98 | |||
| 99 | =head2 SourceVersion => Str | ||
| 100 | |||
| 101 | The version number of the launch template version on which to base the | ||
| 102 | new version. The new version inherits the same launch parameters as the | ||
| 103 | source version, except for parameters that you specify in | ||
| 104 | C<LaunchTemplateData>. Snapshots applied to the block device mapping | ||
| 105 | are ignored when creating a new version unless they are explicitly | ||
| 106 | included. | ||
| 107 | |||
| 108 | |||
| 109 | |||
| 110 | =head2 VersionDescription => Str | ||
| 111 | |||
| 112 | A description for the version of the launch template. | ||
| 113 | |||
| 114 | |||
| 115 | |||
| 116 | |||
| 117 | =head1 SEE ALSO | ||
| 118 | |||
| 119 | This class forms part of L<Paws>, documenting arguments for method CreateLaunchTemplateVersion in L<Paws::EC2> | ||
| 120 | |||
| 121 | =head1 BUGS and CONTRIBUTIONS | ||
| 122 | |||
| 123 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 124 | |||
| 125 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 126 | |||
| 127 | =cut | ||
| 128 |