« blib/lib/Paws/WorkSpaces/CreateConnectionAliasResult.pm
↑ Summary
blib/lib/Paws/WorkSpaces/CreateIpGroupResult.pm »
| 1 | |||
| 2 | package Paws::WorkSpaces::CreateIpGroup; | ||
| 3 | use Moose; | ||
| 4 | has GroupDesc => (is => 'ro', isa => 'Str'); | ||
| 5 | has GroupName => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::WorkSpaces::Tag]'); | ||
| 7 | has UserRules => (is => 'ro', isa => 'ArrayRef[Paws::WorkSpaces::IpRuleItem]'); | ||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | |||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateIpGroup'); | ||
| 12 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::WorkSpaces::CreateIpGroupResult'); | ||
| 13 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 14 | 1; | ||
| 15 | |||
| 16 | ### main pod documentation begin ### | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | Paws::WorkSpaces::CreateIpGroup - Arguments for method CreateIpGroup on L<Paws::WorkSpaces> | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | This class represents the parameters used for calling the method CreateIpGroup on the | ||
| 25 | L<Amazon WorkSpaces|Paws::WorkSpaces> service. Use the attributes of this class | ||
| 26 | as arguments to method CreateIpGroup. | ||
| 27 | |||
| 28 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateIpGroup. | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $workspaces = Paws->service('WorkSpaces'); | ||
| 33 | my $CreateIpGroupResult = $workspaces->CreateIpGroup( | ||
| 34 | GroupName => 'MyIpGroupName', | ||
| 35 | GroupDesc => 'MyIpGroupDesc', # OPTIONAL | ||
| 36 | Tags => [ | ||
| 37 | { | ||
| 38 | Key => 'MyTagKey', # min: 1, max: 127 | ||
| 39 | Value => 'MyTagValue', # max: 255; OPTIONAL | ||
| 40 | }, | ||
| 41 | ... | ||
| 42 | ], # OPTIONAL | ||
| 43 | UserRules => [ | ||
| 44 | { | ||
| 45 | IpRule => 'MyIpRule', # OPTIONAL | ||
| 46 | RuleDesc => 'MyIpRuleDesc', # OPTIONAL | ||
| 47 | }, | ||
| 48 | ... | ||
| 49 | ], # OPTIONAL | ||
| 50 | ); | ||
| 51 | |||
| 52 | # Results: | ||
| 53 | my $GroupId = $CreateIpGroupResult->GroupId; | ||
| 54 | |||
| 55 | # Returns a L<Paws::WorkSpaces::CreateIpGroupResult> object. | ||
| 56 | |||
| 57 | 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. | ||
| 58 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/workspaces/CreateIpGroup> | ||
| 59 | |||
| 60 | =head1 ATTRIBUTES | ||
| 61 | |||
| 62 | |||
| 63 | =head2 GroupDesc => Str | ||
| 64 | |||
| 65 | The description of the group. | ||
| 66 | |||
| 67 | |||
| 68 | |||
| 69 | =head2 B<REQUIRED> GroupName => Str | ||
| 70 | |||
| 71 | The name of the group. | ||
| 72 | |||
| 73 | |||
| 74 | |||
| 75 | =head2 Tags => ArrayRef[L<Paws::WorkSpaces::Tag>] | ||
| 76 | |||
| 77 | The tags. Each WorkSpaces resource can have a maximum of 50 tags. | ||
| 78 | |||
| 79 | |||
| 80 | |||
| 81 | =head2 UserRules => ArrayRef[L<Paws::WorkSpaces::IpRuleItem>] | ||
| 82 | |||
| 83 | The rules to add to the group. | ||
| 84 | |||
| 85 | |||
| 86 | |||
| 87 | |||
| 88 | =head1 SEE ALSO | ||
| 89 | |||
| 90 | This class forms part of L<Paws>, documenting arguments for method CreateIpGroup in L<Paws::WorkSpaces> | ||
| 91 | |||
| 92 | =head1 BUGS and CONTRIBUTIONS | ||
| 93 | |||
| 94 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 95 | |||
| 96 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 97 | |||
| 98 | =cut | ||
| 99 |