« blib/lib/Paws/EC2/ReplaceRootVolumeTask.pm
↑ Summary
blib/lib/Paws/EC2/ReplaceRouteTableAssociation.pm »
| 1 | |||
| 2 | package Paws::EC2::ReplaceRoute; | ||
| 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 LocalTarget => (is => 'ro', isa => 'Bool'); | ||
| 14 | has NatGatewayId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'natGatewayId' ); | ||
| 15 | has NetworkInterfaceId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'networkInterfaceId' ); | ||
| 16 | has RouteTableId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'routeTableId' , required => 1); | ||
| 17 | has TransitGatewayId => (is => 'ro', isa => 'Str'); | ||
| 18 | has VpcEndpointId => (is => 'ro', isa => 'Str'); | ||
| 19 | has VpcPeeringConnectionId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'vpcPeeringConnectionId' ); | ||
| 20 | |||
| 21 | use MooseX::ClassAttribute; | ||
| 22 | |||
| 23 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'ReplaceRoute'); | ||
| 24 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response'); | ||
| 25 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 26 | 1; | ||
| 27 | |||
| 28 | ### main pod documentation begin ### | ||
| 29 | |||
| 30 | =head1 NAME | ||
| 31 | |||
| 32 | Paws::EC2::ReplaceRoute - Arguments for method ReplaceRoute on L<Paws::EC2> | ||
| 33 | |||
| 34 | =head1 DESCRIPTION | ||
| 35 | |||
| 36 | This class represents the parameters used for calling the method ReplaceRoute on the | ||
| 37 | L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class | ||
| 38 | as arguments to method ReplaceRoute. | ||
| 39 | |||
| 40 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ReplaceRoute. | ||
| 41 | |||
| 42 | =head1 SYNOPSIS | ||
| 43 | |||
| 44 | my $ec2 = Paws->service('EC2'); | ||
| 45 | # To replace a route | ||
| 46 | # This example replaces the specified route in the specified table table. The | ||
| 47 | # new route matches the specified CIDR and sends the traffic to the specified | ||
| 48 | # virtual private gateway. | ||
| 49 | $ec2->ReplaceRoute( | ||
| 50 | 'DestinationCidrBlock' => '10.0.0.0/16', | ||
| 51 | 'GatewayId' => 'vgw-9a4cacf3', | ||
| 52 | 'RouteTableId' => 'rtb-22574640' | ||
| 53 | ); | ||
| 54 | |||
| 55 | |||
| 56 | 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. | ||
| 57 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/ReplaceRoute> | ||
| 58 | |||
| 59 | =head1 ATTRIBUTES | ||
| 60 | |||
| 61 | |||
| 62 | =head2 CarrierGatewayId => Str | ||
| 63 | |||
| 64 | [IPv4 traffic only] The ID of a carrier gateway. | ||
| 65 | |||
| 66 | |||
| 67 | |||
| 68 | =head2 DestinationCidrBlock => Str | ||
| 69 | |||
| 70 | The IPv4 CIDR address block used for the destination match. The value | ||
| 71 | that you provide must match the CIDR of an existing route in the table. | ||
| 72 | |||
| 73 | |||
| 74 | |||
| 75 | =head2 DestinationIpv6CidrBlock => Str | ||
| 76 | |||
| 77 | The IPv6 CIDR address block used for the destination match. The value | ||
| 78 | that you provide must match the CIDR of an existing route in the table. | ||
| 79 | |||
| 80 | |||
| 81 | |||
| 82 | =head2 DestinationPrefixListId => Str | ||
| 83 | |||
| 84 | The ID of the prefix list for the route. | ||
| 85 | |||
| 86 | |||
| 87 | |||
| 88 | =head2 DryRun => Bool | ||
| 89 | |||
| 90 | Checks whether you have the required permissions for the action, | ||
| 91 | without actually making the request, and provides an error response. If | ||
| 92 | you have the required permissions, the error response is | ||
| 93 | C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>. | ||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | =head2 EgressOnlyInternetGatewayId => Str | ||
| 98 | |||
| 99 | [IPv6 traffic only] The ID of an egress-only internet gateway. | ||
| 100 | |||
| 101 | |||
| 102 | |||
| 103 | =head2 GatewayId => Str | ||
| 104 | |||
| 105 | The ID of an internet gateway or virtual private gateway. | ||
| 106 | |||
| 107 | |||
| 108 | |||
| 109 | =head2 InstanceId => Str | ||
| 110 | |||
| 111 | The ID of a NAT instance in your VPC. | ||
| 112 | |||
| 113 | |||
| 114 | |||
| 115 | =head2 LocalGatewayId => Str | ||
| 116 | |||
| 117 | The ID of the local gateway. | ||
| 118 | |||
| 119 | |||
| 120 | |||
| 121 | =head2 LocalTarget => Bool | ||
| 122 | |||
| 123 | Specifies whether to reset the local route to its default target | ||
| 124 | (C<local>). | ||
| 125 | |||
| 126 | |||
| 127 | |||
| 128 | =head2 NatGatewayId => Str | ||
| 129 | |||
| 130 | [IPv4 traffic only] The ID of a NAT gateway. | ||
| 131 | |||
| 132 | |||
| 133 | |||
| 134 | =head2 NetworkInterfaceId => Str | ||
| 135 | |||
| 136 | The ID of a network interface. | ||
| 137 | |||
| 138 | |||
| 139 | |||
| 140 | =head2 B<REQUIRED> RouteTableId => Str | ||
| 141 | |||
| 142 | The ID of the route table. | ||
| 143 | |||
| 144 | |||
| 145 | |||
| 146 | =head2 TransitGatewayId => Str | ||
| 147 | |||
| 148 | The ID of a transit gateway. | ||
| 149 | |||
| 150 | |||
| 151 | |||
| 152 | =head2 VpcEndpointId => Str | ||
| 153 | |||
| 154 | The ID of a VPC endpoint. Supported for Gateway Load Balancer endpoints | ||
| 155 | only. | ||
| 156 | |||
| 157 | |||
| 158 | |||
| 159 | =head2 VpcPeeringConnectionId => Str | ||
| 160 | |||
| 161 | The ID of a VPC peering connection. | ||
| 162 | |||
| 163 | |||
| 164 | |||
| 165 | |||
| 166 | =head1 SEE ALSO | ||
| 167 | |||
| 168 | This class forms part of L<Paws>, documenting arguments for method ReplaceRoute in L<Paws::EC2> | ||
| 169 | |||
| 170 | =head1 BUGS and CONTRIBUTIONS | ||
| 171 | |||
| 172 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 173 | |||
| 174 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 175 | |||
| 176 | =cut | ||
| 177 |