« blib/lib/Paws/EC2/AuthorizeClientVpnIngressResult.pm
↑ Summary
blib/lib/Paws/EC2/AuthorizeSecurityGroupIngress.pm »
| 1 | |||
| 2 | package Paws::EC2::AuthorizeSecurityGroupEgress; | ||
| 3 | use Moose; | ||
| 4 | has CidrIp => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'cidrIp' ); | ||
| 5 | has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' ); | ||
| 6 | has FromPort => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'fromPort' ); | ||
| 7 | has GroupId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'groupId' , required => 1); | ||
| 8 | has IpPermissions => (is => 'ro', isa => 'ArrayRef[Paws::EC2::IpPermission]', traits => ['NameInRequest'], request_name => 'ipPermissions' ); | ||
| 9 | has IpProtocol => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'ipProtocol' ); | ||
| 10 | has SourceSecurityGroupName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'sourceSecurityGroupName' ); | ||
| 11 | has SourceSecurityGroupOwnerId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'sourceSecurityGroupOwnerId' ); | ||
| 12 | has ToPort => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'toPort' ); | ||
| 13 | |||
| 14 | use MooseX::ClassAttribute; | ||
| 15 | |||
| 16 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'AuthorizeSecurityGroupEgress'); | ||
| 17 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response'); | ||
| 18 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 19 | 1; | ||
| 20 | |||
| 21 | ### main pod documentation begin ### | ||
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | Paws::EC2::AuthorizeSecurityGroupEgress - Arguments for method AuthorizeSecurityGroupEgress on L<Paws::EC2> | ||
| 26 | |||
| 27 | =head1 DESCRIPTION | ||
| 28 | |||
| 29 | This class represents the parameters used for calling the method AuthorizeSecurityGroupEgress on the | ||
| 30 | L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class | ||
| 31 | as arguments to method AuthorizeSecurityGroupEgress. | ||
| 32 | |||
| 33 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AuthorizeSecurityGroupEgress. | ||
| 34 | |||
| 35 | =head1 SYNOPSIS | ||
| 36 | |||
| 37 | my $ec2 = Paws->service('EC2'); | ||
| 38 | # To add a rule that allows outbound traffic to a specific address range | ||
| 39 | # This example adds a rule that grants access to the specified address ranges on | ||
| 40 | # TCP port 80. | ||
| 41 | $ec2->AuthorizeSecurityGroupEgress( | ||
| 42 | 'GroupId' => 'sg-1a2b3c4d', | ||
| 43 | 'IpPermissions' => [ | ||
| 44 | |||
| 45 | { | ||
| 46 | 'FromPort' => 80, | ||
| 47 | 'IpProtocol' => 'tcp', | ||
| 48 | 'IpRanges' => [ | ||
| 49 | |||
| 50 | { | ||
| 51 | 'CidrIp' => '10.0.0.0/16' | ||
| 52 | } | ||
| 53 | ], | ||
| 54 | 'ToPort' => 80 | ||
| 55 | } | ||
| 56 | ] | ||
| 57 | ); | ||
| 58 | |||
| 59 | # To add a rule that allows outbound traffic to a specific security group | ||
| 60 | # This example adds a rule that grants access to the specified security group on | ||
| 61 | # TCP port 80. | ||
| 62 | $ec2->AuthorizeSecurityGroupEgress( | ||
| 63 | 'GroupId' => 'sg-1a2b3c4d', | ||
| 64 | 'IpPermissions' => [ | ||
| 65 | |||
| 66 | { | ||
| 67 | 'FromPort' => 80, | ||
| 68 | 'IpProtocol' => 'tcp', | ||
| 69 | 'ToPort' => 80, | ||
| 70 | 'UserIdGroupPairs' => [ | ||
| 71 | |||
| 72 | { | ||
| 73 | 'GroupId' => 'sg-4b51a32f' | ||
| 74 | } | ||
| 75 | ] | ||
| 76 | } | ||
| 77 | ] | ||
| 78 | ); | ||
| 79 | |||
| 80 | |||
| 81 | 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. | ||
| 82 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/AuthorizeSecurityGroupEgress> | ||
| 83 | |||
| 84 | =head1 ATTRIBUTES | ||
| 85 | |||
| 86 | |||
| 87 | =head2 CidrIp => Str | ||
| 88 | |||
| 89 | Not supported. Use a set of IP permissions to specify the CIDR. | ||
| 90 | |||
| 91 | |||
| 92 | |||
| 93 | =head2 DryRun => Bool | ||
| 94 | |||
| 95 | Checks whether you have the required permissions for the action, | ||
| 96 | without actually making the request, and provides an error response. If | ||
| 97 | you have the required permissions, the error response is | ||
| 98 | C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>. | ||
| 99 | |||
| 100 | |||
| 101 | |||
| 102 | =head2 FromPort => Int | ||
| 103 | |||
| 104 | Not supported. Use a set of IP permissions to specify the port. | ||
| 105 | |||
| 106 | |||
| 107 | |||
| 108 | =head2 B<REQUIRED> GroupId => Str | ||
| 109 | |||
| 110 | The ID of the security group. | ||
| 111 | |||
| 112 | |||
| 113 | |||
| 114 | =head2 IpPermissions => ArrayRef[L<Paws::EC2::IpPermission>] | ||
| 115 | |||
| 116 | The sets of IP permissions. You can't specify a destination security | ||
| 117 | group and a CIDR IP address range in the same set of permissions. | ||
| 118 | |||
| 119 | |||
| 120 | |||
| 121 | =head2 IpProtocol => Str | ||
| 122 | |||
| 123 | Not supported. Use a set of IP permissions to specify the protocol name | ||
| 124 | or number. | ||
| 125 | |||
| 126 | |||
| 127 | |||
| 128 | =head2 SourceSecurityGroupName => Str | ||
| 129 | |||
| 130 | Not supported. Use a set of IP permissions to specify a destination | ||
| 131 | security group. | ||
| 132 | |||
| 133 | |||
| 134 | |||
| 135 | =head2 SourceSecurityGroupOwnerId => Str | ||
| 136 | |||
| 137 | Not supported. Use a set of IP permissions to specify a destination | ||
| 138 | security group. | ||
| 139 | |||
| 140 | |||
| 141 | |||
| 142 | =head2 ToPort => Int | ||
| 143 | |||
| 144 | Not supported. Use a set of IP permissions to specify the port. | ||
| 145 | |||
| 146 | |||
| 147 | |||
| 148 | |||
| 149 | =head1 SEE ALSO | ||
| 150 | |||
| 151 | This class forms part of L<Paws>, documenting arguments for method AuthorizeSecurityGroupEgress in L<Paws::EC2> | ||
| 152 | |||
| 153 | =head1 BUGS and CONTRIBUTIONS | ||
| 154 | |||
| 155 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 156 | |||
| 157 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 158 | |||
| 159 | =cut | ||
| 160 |