« blib/lib/Paws/IAM/CreateGroupResponse.pm
↑ Summary
blib/lib/Paws/IAM/CreateInstanceProfileResponse.pm »
| 1 | |||
| 2 | package Paws::IAM::CreateInstanceProfile; | ||
| 3 | use Moose; | ||
| 4 | has InstanceProfileName => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has Path => (is => 'ro', isa => 'Str'); | ||
| 6 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::IAM::Tag]'); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateInstanceProfile'); | ||
| 11 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IAM::CreateInstanceProfileResponse'); | ||
| 12 | class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateInstanceProfileResult'); | ||
| 13 | 1; | ||
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::IAM::CreateInstanceProfile - Arguments for method CreateInstanceProfile on L<Paws::IAM> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method CreateInstanceProfile on the | ||
| 24 | L<AWS Identity and Access Management|Paws::IAM> service. Use the attributes of this class | ||
| 25 | as arguments to method CreateInstanceProfile. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateInstanceProfile. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $iam = Paws->service('IAM'); | ||
| 32 | # To create an instance profile | ||
| 33 | # The following command creates an instance profile named Webserver that is | ||
| 34 | # ready to have a role attached and then be associated with an EC2 instance. | ||
| 35 | my $CreateInstanceProfileResponse = | ||
| 36 | $iam->CreateInstanceProfile( 'InstanceProfileName' => 'Webserver' ); | ||
| 37 | |||
| 38 | # Results: | ||
| 39 | my $InstanceProfile = $CreateInstanceProfileResponse->InstanceProfile; | ||
| 40 | |||
| 41 | # Returns a L<Paws::IAM::CreateInstanceProfileResponse> object. | ||
| 42 | |||
| 43 | 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. | ||
| 44 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iam/CreateInstanceProfile> | ||
| 45 | |||
| 46 | =head1 ATTRIBUTES | ||
| 47 | |||
| 48 | |||
| 49 | =head2 B<REQUIRED> InstanceProfileName => Str | ||
| 50 | |||
| 51 | The name of the instance profile to create. | ||
| 52 | |||
| 53 | This parameter allows (through its regex pattern | ||
| 54 | (http://wikipedia.org/wiki/regex)) a string of characters consisting of | ||
| 55 | upper and lowercase alphanumeric characters with no spaces. You can | ||
| 56 | also include any of the following characters: _+=,.@- | ||
| 57 | |||
| 58 | |||
| 59 | |||
| 60 | =head2 Path => Str | ||
| 61 | |||
| 62 | The path to the instance profile. For more information about paths, see | ||
| 63 | IAM Identifiers | ||
| 64 | (https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) | ||
| 65 | in the I<IAM User Guide>. | ||
| 66 | |||
| 67 | This parameter is optional. If it is not included, it defaults to a | ||
| 68 | slash (/). | ||
| 69 | |||
| 70 | This parameter allows (through its regex pattern | ||
| 71 | (http://wikipedia.org/wiki/regex)) a string of characters consisting of | ||
| 72 | either a forward slash (/) by itself or a string that must begin and | ||
| 73 | end with forward slashes. In addition, it can contain any ASCII | ||
| 74 | character from the ! (C<\u0021>) through the DEL character (C<\u007F>), | ||
| 75 | including most punctuation characters, digits, and upper and lowercased | ||
| 76 | letters. | ||
| 77 | |||
| 78 | |||
| 79 | |||
| 80 | =head2 Tags => ArrayRef[L<Paws::IAM::Tag>] | ||
| 81 | |||
| 82 | A list of tags that you want to attach to the newly created IAM | ||
| 83 | instance profile. Each tag consists of a key name and an associated | ||
| 84 | value. For more information about tagging, see Tagging IAM resources | ||
| 85 | (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the | ||
| 86 | I<IAM User Guide>. | ||
| 87 | |||
| 88 | If any one of the tags is invalid or if you exceed the allowed maximum | ||
| 89 | number of tags, then the entire request fails and the resource is not | ||
| 90 | created. | ||
| 91 | |||
| 92 | |||
| 93 | |||
| 94 | |||
| 95 | =head1 SEE ALSO | ||
| 96 | |||
| 97 | This class forms part of L<Paws>, documenting arguments for method CreateInstanceProfile in L<Paws::IAM> | ||
| 98 | |||
| 99 | =head1 BUGS and CONTRIBUTIONS | ||
| 100 | |||
| 101 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 102 | |||
| 103 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 104 | |||
| 105 | =cut | ||
| 106 |