« blib/lib/Paws/EC2/CreateInternetGatewayResult.pm
↑ Summary
blib/lib/Paws/EC2/CreateLaunchTemplateResult.pm »
| 1 | |||
| 2 | package Paws::EC2::CreateLaunchTemplate; | ||
| 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 LaunchTemplateName => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | has TagSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::TagSpecification]', traits => ['NameInRequest'], request_name => 'TagSpecification' ); | ||
| 9 | has VersionDescription => (is => 'ro', isa => 'Str'); | ||
| 10 | |||
| 11 | use MooseX::ClassAttribute; | ||
| 12 | |||
| 13 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLaunchTemplate'); | ||
| 14 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateLaunchTemplateResult'); | ||
| 15 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 16 | 1; | ||
| 17 | |||
| 18 | ### main pod documentation begin ### | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | Paws::EC2::CreateLaunchTemplate - Arguments for method CreateLaunchTemplate on L<Paws::EC2> | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | This class represents the parameters used for calling the method CreateLaunchTemplate on the | ||
| 27 | L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class | ||
| 28 | as arguments to method CreateLaunchTemplate. | ||
| 29 | |||
| 30 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLaunchTemplate. | ||
| 31 | |||
| 32 | =head1 SYNOPSIS | ||
| 33 | |||
| 34 | my $ec2 = Paws->service('EC2'); | ||
| 35 | # To create a launch template | ||
| 36 | # This example creates a launch template that specifies the subnet in which to | ||
| 37 | # launch the instance, assigns a public IP address and an IPv6 address to the | ||
| 38 | # instance, and creates a tag for the instance. | ||
| 39 | my $CreateLaunchTemplateResult = $ec2->CreateLaunchTemplate( | ||
| 40 | 'LaunchTemplateData' => { | ||
| 41 | 'ImageId' => 'ami-8c1be5f6', | ||
| 42 | 'InstanceType' => 't2.small', | ||
| 43 | 'NetworkInterfaces' => [ | ||
| 44 | |||
| 45 | { | ||
| 46 | 'AssociatePublicIpAddress' => 1, | ||
| 47 | 'DeviceIndex' => 0, | ||
| 48 | 'Ipv6AddressCount' => 1, | ||
| 49 | 'SubnetId' => 'subnet-7b16de0c' | ||
| 50 | } | ||
| 51 | ], | ||
| 52 | 'TagSpecifications' => [ | ||
| 53 | |||
| 54 | { | ||
| 55 | 'ResourceType' => 'instance', | ||
| 56 | 'Tags' => [ | ||
| 57 | |||
| 58 | { | ||
| 59 | 'Key' => 'Name', | ||
| 60 | 'Value' => 'webserver' | ||
| 61 | } | ||
| 62 | ] | ||
| 63 | } | ||
| 64 | ] | ||
| 65 | }, | ||
| 66 | 'LaunchTemplateName' => 'my-template', | ||
| 67 | 'VersionDescription' => 'WebVersion1' | ||
| 68 | ); | ||
| 69 | |||
| 70 | # Results: | ||
| 71 | my $LaunchTemplate = $CreateLaunchTemplateResult->LaunchTemplate; | ||
| 72 | |||
| 73 | # Returns a L<Paws::EC2::CreateLaunchTemplateResult> object. | ||
| 74 | |||
| 75 | 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. | ||
| 76 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/CreateLaunchTemplate> | ||
| 77 | |||
| 78 | =head1 ATTRIBUTES | ||
| 79 | |||
| 80 | |||
| 81 | =head2 ClientToken => Str | ||
| 82 | |||
| 83 | Unique, case-sensitive identifier you provide to ensure the idempotency | ||
| 84 | of the request. For more information, see Ensuring Idempotency | ||
| 85 | (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). | ||
| 86 | |||
| 87 | Constraint: Maximum 128 ASCII characters. | ||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | =head2 DryRun => Bool | ||
| 92 | |||
| 93 | Checks whether you have the required permissions for the action, | ||
| 94 | without actually making the request, and provides an error response. If | ||
| 95 | you have the required permissions, the error response is | ||
| 96 | C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>. | ||
| 97 | |||
| 98 | |||
| 99 | |||
| 100 | =head2 B<REQUIRED> LaunchTemplateData => L<Paws::EC2::RequestLaunchTemplateData> | ||
| 101 | |||
| 102 | The information for the launch template. | ||
| 103 | |||
| 104 | |||
| 105 | |||
| 106 | =head2 B<REQUIRED> LaunchTemplateName => Str | ||
| 107 | |||
| 108 | A name for the launch template. | ||
| 109 | |||
| 110 | |||
| 111 | |||
| 112 | =head2 TagSpecifications => ArrayRef[L<Paws::EC2::TagSpecification>] | ||
| 113 | |||
| 114 | The tags to apply to the launch template during creation. | ||
| 115 | |||
| 116 | |||
| 117 | |||
| 118 | =head2 VersionDescription => Str | ||
| 119 | |||
| 120 | A description for the first version of the launch template. | ||
| 121 | |||
| 122 | |||
| 123 | |||
| 124 | |||
| 125 | =head1 SEE ALSO | ||
| 126 | |||
| 127 | This class forms part of L<Paws>, documenting arguments for method CreateLaunchTemplate in L<Paws::EC2> | ||
| 128 | |||
| 129 | =head1 BUGS and CONTRIBUTIONS | ||
| 130 | |||
| 131 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 132 | |||
| 133 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 134 | |||
| 135 | =cut | ||
| 136 |