« blib/lib/Paws/EC2/ExportClientVpnClientConfigurationResult.pm
↑ Summary
blib/lib/Paws/EC2/ExportImageResult.pm »
| 1 | |||
| 2 | package Paws::EC2::ExportImage; | ||
| 3 | use Moose; | ||
| 4 | has ClientToken => (is => 'ro', isa => 'Str'); | ||
| 5 | has Description => (is => 'ro', isa => 'Str'); | ||
| 6 | has DiskImageFormat => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | has DryRun => (is => 'ro', isa => 'Bool'); | ||
| 8 | has ImageId => (is => 'ro', isa => 'Str', required => 1); | ||
| 9 | has RoleName => (is => 'ro', isa => 'Str'); | ||
| 10 | has S3ExportLocation => (is => 'ro', isa => 'Paws::EC2::ExportTaskS3LocationRequest', required => 1); | ||
| 11 | has TagSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::TagSpecification]', traits => ['NameInRequest'], request_name => 'TagSpecification' ); | ||
| 12 | |||
| 13 | use MooseX::ClassAttribute; | ||
| 14 | |||
| 15 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'ExportImage'); | ||
| 16 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::ExportImageResult'); | ||
| 17 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 18 | 1; | ||
| 19 | |||
| 20 | ### main pod documentation begin ### | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | Paws::EC2::ExportImage - Arguments for method ExportImage on L<Paws::EC2> | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | This class represents the parameters used for calling the method ExportImage on the | ||
| 29 | L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class | ||
| 30 | as arguments to method ExportImage. | ||
| 31 | |||
| 32 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ExportImage. | ||
| 33 | |||
| 34 | =head1 SYNOPSIS | ||
| 35 | |||
| 36 | my $ec2 = Paws->service('EC2'); | ||
| 37 | my $ExportImageResult = $ec2->ExportImage( | ||
| 38 | DiskImageFormat => 'VMDK', | ||
| 39 | ImageId => 'MyImageId', | ||
| 40 | S3ExportLocation => { | ||
| 41 | S3Bucket => 'MyString', | ||
| 42 | S3Prefix => 'MyString', | ||
| 43 | }, | ||
| 44 | ClientToken => 'MyString', # OPTIONAL | ||
| 45 | Description => 'MyString', # OPTIONAL | ||
| 46 | DryRun => 1, # OPTIONAL | ||
| 47 | RoleName => 'MyString', # OPTIONAL | ||
| 48 | TagSpecifications => [ | ||
| 49 | { | ||
| 50 | ResourceType => 'client-vpn-endpoint' | ||
| 51 | , # values: client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, internet-gateway, key-pair, launch-template, local-gateway-route-table-vpc-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log; OPTIONAL | ||
| 52 | Tags => [ | ||
| 53 | { | ||
| 54 | Key => 'MyString', | ||
| 55 | Value => 'MyString', | ||
| 56 | }, | ||
| 57 | ... | ||
| 58 | ], # OPTIONAL | ||
| 59 | }, | ||
| 60 | ... | ||
| 61 | ], # OPTIONAL | ||
| 62 | ); | ||
| 63 | |||
| 64 | # Results: | ||
| 65 | my $Description = $ExportImageResult->Description; | ||
| 66 | my $DiskImageFormat = $ExportImageResult->DiskImageFormat; | ||
| 67 | my $ExportImageTaskId = $ExportImageResult->ExportImageTaskId; | ||
| 68 | my $ImageId = $ExportImageResult->ImageId; | ||
| 69 | my $Progress = $ExportImageResult->Progress; | ||
| 70 | my $RoleName = $ExportImageResult->RoleName; | ||
| 71 | my $S3ExportLocation = $ExportImageResult->S3ExportLocation; | ||
| 72 | my $Status = $ExportImageResult->Status; | ||
| 73 | my $StatusMessage = $ExportImageResult->StatusMessage; | ||
| 74 | my $Tags = $ExportImageResult->Tags; | ||
| 75 | |||
| 76 | # Returns a L<Paws::EC2::ExportImageResult> object. | ||
| 77 | |||
| 78 | 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. | ||
| 79 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/ExportImage> | ||
| 80 | |||
| 81 | =head1 ATTRIBUTES | ||
| 82 | |||
| 83 | |||
| 84 | =head2 ClientToken => Str | ||
| 85 | |||
| 86 | Token to enable idempotency for export image requests. | ||
| 87 | |||
| 88 | |||
| 89 | |||
| 90 | =head2 Description => Str | ||
| 91 | |||
| 92 | A description of the image being exported. The maximum length is 255 | ||
| 93 | characters. | ||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | =head2 B<REQUIRED> DiskImageFormat => Str | ||
| 98 | |||
| 99 | The disk image format. | ||
| 100 | |||
| 101 | Valid values are: C<"VMDK">, C<"RAW">, C<"VHD"> | ||
| 102 | |||
| 103 | =head2 DryRun => Bool | ||
| 104 | |||
| 105 | Checks whether you have the required permissions for the action, | ||
| 106 | without actually making the request, and provides an error response. If | ||
| 107 | you have the required permissions, the error response is | ||
| 108 | C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>. | ||
| 109 | |||
| 110 | |||
| 111 | |||
| 112 | =head2 B<REQUIRED> ImageId => Str | ||
| 113 | |||
| 114 | The ID of the image. | ||
| 115 | |||
| 116 | |||
| 117 | |||
| 118 | =head2 RoleName => Str | ||
| 119 | |||
| 120 | The name of the role that grants VM Import/Export permission to export | ||
| 121 | images to your Amazon S3 bucket. If this parameter is not specified, | ||
| 122 | the default role is named 'vmimport'. | ||
| 123 | |||
| 124 | |||
| 125 | |||
| 126 | =head2 B<REQUIRED> S3ExportLocation => L<Paws::EC2::ExportTaskS3LocationRequest> | ||
| 127 | |||
| 128 | Information about the destination Amazon S3 bucket. The bucket must | ||
| 129 | exist and grant WRITE and READ_ACP permissions to the AWS account | ||
| 130 | vm-import-export@amazon.com. | ||
| 131 | |||
| 132 | |||
| 133 | |||
| 134 | =head2 TagSpecifications => ArrayRef[L<Paws::EC2::TagSpecification>] | ||
| 135 | |||
| 136 | The tags to apply to the export image task during creation. | ||
| 137 | |||
| 138 | |||
| 139 | |||
| 140 | |||
| 141 | =head1 SEE ALSO | ||
| 142 | |||
| 143 | This class forms part of L<Paws>, documenting arguments for method ExportImage in L<Paws::EC2> | ||
| 144 | |||
| 145 | =head1 BUGS and CONTRIBUTIONS | ||
| 146 | |||
| 147 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 148 | |||
| 149 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 150 | |||
| 151 | =cut | ||
| 152 |