« blib/lib/Paws/EC2/ModifyFleetResult.pm
↑ Summary
blib/lib/Paws/EC2/ModifyFpgaImageAttributeResult.pm »
| 1 | |||
| 2 | package Paws::EC2::ModifyFpgaImageAttribute; | ||
| 3 | use Moose; | ||
| 4 | has Attribute => (is => 'ro', isa => 'Str'); | ||
| 5 | has Description => (is => 'ro', isa => 'Str'); | ||
| 6 | has DryRun => (is => 'ro', isa => 'Bool'); | ||
| 7 | has FpgaImageId => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | has LoadPermission => (is => 'ro', isa => 'Paws::EC2::LoadPermissionModifications'); | ||
| 9 | has Name => (is => 'ro', isa => 'Str'); | ||
| 10 | has OperationType => (is => 'ro', isa => 'Str'); | ||
| 11 | has ProductCodes => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'ProductCode' ); | ||
| 12 | has UserGroups => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'UserGroup' ); | ||
| 13 | has UserIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'UserId' ); | ||
| 14 | |||
| 15 | use MooseX::ClassAttribute; | ||
| 16 | |||
| 17 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifyFpgaImageAttribute'); | ||
| 18 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::ModifyFpgaImageAttributeResult'); | ||
| 19 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 20 | 1; | ||
| 21 | |||
| 22 | ### main pod documentation begin ### | ||
| 23 | |||
| 24 | =head1 NAME | ||
| 25 | |||
| 26 | Paws::EC2::ModifyFpgaImageAttribute - Arguments for method ModifyFpgaImageAttribute on L<Paws::EC2> | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | This class represents the parameters used for calling the method ModifyFpgaImageAttribute on the | ||
| 31 | L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class | ||
| 32 | as arguments to method ModifyFpgaImageAttribute. | ||
| 33 | |||
| 34 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifyFpgaImageAttribute. | ||
| 35 | |||
| 36 | =head1 SYNOPSIS | ||
| 37 | |||
| 38 | my $ec2 = Paws->service('EC2'); | ||
| 39 | my $ModifyFpgaImageAttributeResult = $ec2->ModifyFpgaImageAttribute( | ||
| 40 | FpgaImageId => 'MyFpgaImageId', | ||
| 41 | Attribute => 'description', # OPTIONAL | ||
| 42 | Description => 'MyString', # OPTIONAL | ||
| 43 | DryRun => 1, # OPTIONAL | ||
| 44 | LoadPermission => { | ||
| 45 | Add => [ | ||
| 46 | { | ||
| 47 | Group => 'all', # values: all; OPTIONAL | ||
| 48 | UserId => 'MyString', | ||
| 49 | }, | ||
| 50 | ... | ||
| 51 | ], # OPTIONAL | ||
| 52 | Remove => [ | ||
| 53 | { | ||
| 54 | Group => 'all', # values: all; OPTIONAL | ||
| 55 | UserId => 'MyString', | ||
| 56 | }, | ||
| 57 | ... | ||
| 58 | ], # OPTIONAL | ||
| 59 | }, # OPTIONAL | ||
| 60 | Name => 'MyString', # OPTIONAL | ||
| 61 | OperationType => 'add', # OPTIONAL | ||
| 62 | ProductCodes => [ 'MyString', ... ], # OPTIONAL | ||
| 63 | UserGroups => [ 'MyString', ... ], # OPTIONAL | ||
| 64 | UserIds => [ 'MyString', ... ], # OPTIONAL | ||
| 65 | ); | ||
| 66 | |||
| 67 | # Results: | ||
| 68 | my $FpgaImageAttribute = | ||
| 69 | $ModifyFpgaImageAttributeResult->FpgaImageAttribute; | ||
| 70 | |||
| 71 | # Returns a L<Paws::EC2::ModifyFpgaImageAttributeResult> object. | ||
| 72 | |||
| 73 | 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. | ||
| 74 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/ModifyFpgaImageAttribute> | ||
| 75 | |||
| 76 | =head1 ATTRIBUTES | ||
| 77 | |||
| 78 | |||
| 79 | =head2 Attribute => Str | ||
| 80 | |||
| 81 | The name of the attribute. | ||
| 82 | |||
| 83 | Valid values are: C<"description">, C<"name">, C<"loadPermission">, C<"productCodes"> | ||
| 84 | |||
| 85 | =head2 Description => Str | ||
| 86 | |||
| 87 | A description for the AFI. | ||
| 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> FpgaImageId => Str | ||
| 101 | |||
| 102 | The ID of the AFI. | ||
| 103 | |||
| 104 | |||
| 105 | |||
| 106 | =head2 LoadPermission => L<Paws::EC2::LoadPermissionModifications> | ||
| 107 | |||
| 108 | The load permission for the AFI. | ||
| 109 | |||
| 110 | |||
| 111 | |||
| 112 | =head2 Name => Str | ||
| 113 | |||
| 114 | A name for the AFI. | ||
| 115 | |||
| 116 | |||
| 117 | |||
| 118 | =head2 OperationType => Str | ||
| 119 | |||
| 120 | The operation type. | ||
| 121 | |||
| 122 | Valid values are: C<"add">, C<"remove"> | ||
| 123 | |||
| 124 | =head2 ProductCodes => ArrayRef[Str|Undef] | ||
| 125 | |||
| 126 | The product codes. After you add a product code to an AFI, it can't be | ||
| 127 | removed. This parameter is valid only when modifying the | ||
| 128 | C<productCodes> attribute. | ||
| 129 | |||
| 130 | |||
| 131 | |||
| 132 | =head2 UserGroups => ArrayRef[Str|Undef] | ||
| 133 | |||
| 134 | The user groups. This parameter is valid only when modifying the | ||
| 135 | C<loadPermission> attribute. | ||
| 136 | |||
| 137 | |||
| 138 | |||
| 139 | =head2 UserIds => ArrayRef[Str|Undef] | ||
| 140 | |||
| 141 | The AWS account IDs. This parameter is valid only when modifying the | ||
| 142 | C<loadPermission> attribute. | ||
| 143 | |||
| 144 | |||
| 145 | |||
| 146 | |||
| 147 | =head1 SEE ALSO | ||
| 148 | |||
| 149 | This class forms part of L<Paws>, documenting arguments for method ModifyFpgaImageAttribute in L<Paws::EC2> | ||
| 150 | |||
| 151 | =head1 BUGS and CONTRIBUTIONS | ||
| 152 | |||
| 153 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 154 | |||
| 155 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 156 | |||
| 157 | =cut | ||
| 158 |