« blib/lib/Paws/EC2/CreateRestoreImageTaskResult.pm
↑ Summary
blib/lib/Paws/EC2/CreateRouteResult.pm »
| 1 | |||
| 2 | package Paws::EC2::CreateRoute; | ||
| 3 | use Moose; | ||
| 4 | has CarrierGatewayId => (is => 'ro', isa => 'Str'); | ||
| 5 | has DestinationCidrBlock => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'destinationCidrBlock' ); | ||
| 6 | has DestinationIpv6CidrBlock => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'destinationIpv6CidrBlock' ); | ||
| 7 | has DestinationPrefixListId => (is => 'ro', isa => 'Str'); | ||
| 8 | has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' ); | ||
| 9 | has EgressOnlyInternetGatewayId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'egressOnlyInternetGatewayId' ); | ||
| 10 | has GatewayId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'gatewayId' ); | ||
| 11 | has InstanceId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'instanceId' ); | ||
| 12 | has LocalGatewayId => (is => 'ro', isa => 'Str'); | ||
| 13 | has NatGatewayId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'natGatewayId' ); | ||
| 14 | has NetworkInterfaceId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'networkInterfaceId' ); | ||
| 15 | has RouteTableId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'routeTableId' , required => 1); | ||
| 16 | has TransitGatewayId => (is => 'ro', isa => 'Str'); | ||
| 17 | has VpcEndpointId => (is => 'ro', isa => 'Str'); | ||
| 18 | has VpcPeeringConnectionId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'vpcPeeringConnectionId' ); | ||
| 19 | |||
| 20 | use MooseX::ClassAttribute; | ||
| 21 | |||
| 22 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateRoute'); | ||
| 23 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateRouteResult'); | ||
| 24 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 25 | 1; | ||
| 26 | |||
| 27 | ### main pod documentation begin ### | ||
| 28 | |||
| 29 | =head1 NAME | ||
| 30 | |||
| 31 | Paws::EC2::CreateRoute - Arguments for method CreateRoute on L<Paws::EC2> | ||
| 32 | |||
| 33 | =head1 DESCRIPTION | ||
| 34 | |||
| 35 | This class represents the parameters used for calling the method CreateRoute on the | ||
| 36 | L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class | ||
| 37 | as arguments to method CreateRoute. | ||
| 38 | |||
| 39 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateRoute. | ||
| 40 | |||
| 41 | =head1 SYNOPSIS | ||
| 42 | |||
| 43 | my $ec2 = Paws->service('EC2'); | ||
| 44 | # To create a route | ||
| 45 | # This example creates a route for the specified route table. The route matches | ||
| 46 | # all traffic (0.0.0.0/0) and routes it to the specified Internet gateway. | ||
| 47 | my $CreateRouteResult = $ec2->CreateRoute( | ||
| 48 | 'DestinationCidrBlock' => '0.0.0.0/0', | ||
| 49 | 'GatewayId' => 'igw-c0a643a9', | ||
| 50 | 'RouteTableId' => 'rtb-22574640' | ||
| 51 | ); | ||
| 52 | |||
| 53 | |||
| 54 | 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. | ||
| 55 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/CreateRoute> | ||
| 56 | |||
| 57 | =head1 ATTRIBUTES | ||
| 58 | |||
| 59 | |||
| 60 | =head2 CarrierGatewayId => Str | ||
| 61 | |||
| 62 | The ID of the carrier gateway. | ||
| 63 | |||
| 64 | You can only use this option when the VPC contains a subnet which is | ||
| 65 | associated with a Wavelength Zone. | ||
| 66 | |||
| 67 | |||
| 68 | |||
| 69 | =head2 DestinationCidrBlock => Str | ||
| 70 | |||
| 71 | The IPv4 CIDR address block used for the destination match. Routing | ||
| 72 | decisions are based on the most specific match. We modify the specified | ||
| 73 | CIDR block to its canonical form; for example, if you specify | ||
| 74 | C<100.68.0.18/18>, we modify it to C<100.68.0.0/18>. | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | =head2 DestinationIpv6CidrBlock => Str | ||
| 79 | |||
| 80 | The IPv6 CIDR block used for the destination match. Routing decisions | ||
| 81 | are based on the most specific match. | ||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | =head2 DestinationPrefixListId => Str | ||
| 86 | |||
| 87 | The ID of a prefix list used for the destination match. | ||
| 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 EgressOnlyInternetGatewayId => Str | ||
| 101 | |||
| 102 | [IPv6 traffic only] The ID of an egress-only internet gateway. | ||
| 103 | |||
| 104 | |||
| 105 | |||
| 106 | =head2 GatewayId => Str | ||
| 107 | |||
| 108 | The ID of an internet gateway or virtual private gateway attached to | ||
| 109 | your VPC. | ||
| 110 | |||
| 111 | |||
| 112 | |||
| 113 | =head2 InstanceId => Str | ||
| 114 | |||
| 115 | The ID of a NAT instance in your VPC. The operation fails if you | ||
| 116 | specify an instance ID unless exactly one network interface is | ||
| 117 | attached. | ||
| 118 | |||
| 119 | |||
| 120 | |||
| 121 | =head2 LocalGatewayId => Str | ||
| 122 | |||
| 123 | The ID of the local gateway. | ||
| 124 | |||
| 125 | |||
| 126 | |||
| 127 | =head2 NatGatewayId => Str | ||
| 128 | |||
| 129 | [IPv4 traffic only] The ID of a NAT gateway. | ||
| 130 | |||
| 131 | |||
| 132 | |||
| 133 | =head2 NetworkInterfaceId => Str | ||
| 134 | |||
| 135 | The ID of a network interface. | ||
| 136 | |||
| 137 | |||
| 138 | |||
| 139 | =head2 B<REQUIRED> RouteTableId => Str | ||
| 140 | |||
| 141 | The ID of the route table for the route. | ||
| 142 | |||
| 143 | |||
| 144 | |||
| 145 | =head2 TransitGatewayId => Str | ||
| 146 | |||
| 147 | The ID of a transit gateway. | ||
| 148 | |||
| 149 | |||
| 150 | |||
| 151 | =head2 VpcEndpointId => Str | ||
| 152 | |||
| 153 | The ID of a VPC endpoint. Supported for Gateway Load Balancer endpoints | ||
| 154 | only. | ||
| 155 | |||
| 156 | |||
| 157 | |||
| 158 | =head2 VpcPeeringConnectionId => Str | ||
| 159 | |||
| 160 | The ID of a VPC peering connection. | ||
| 161 | |||
| 162 | |||
| 163 | |||
| 164 | |||
| 165 | =head1 SEE ALSO | ||
| 166 | |||
| 167 | This class forms part of L<Paws>, documenting arguments for method CreateRoute in L<Paws::EC2> | ||
| 168 | |||
| 169 | =head1 BUGS and CONTRIBUTIONS | ||
| 170 | |||
| 171 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 172 | |||
| 173 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 174 | |||
| 175 | =cut | ||
| 176 |