Struct aws_sdk_ec2::client::fluent_builders::ModifyVpcPeeringConnectionOptions [−][src]
pub struct ModifyVpcPeeringConnectionOptions<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to ModifyVpcPeeringConnectionOptions
.
Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:
-
Enable/disable communication over the peering connection between an EC2-Classic instance that's linked to your VPC (using ClassicLink) and instances in the peer VPC.
-
Enable/disable communication over the peering connection between instances in your VPC and an EC2-Classic instance that's linked to the peer VPC.
-
Enable/disable the ability to resolve public DNS hostnames to private IP addresses when queried from instances in the peer VPC.
If the peered VPCs are in the same Amazon Web Services account, you can enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peered VPCs are in different different Amazon Web Services accounts or different Regions. For peered VPCs in different Amazon Web Services accounts, each Amazon Web Services account owner must initiate a separate request to modify the peering connection options. For inter-region peering connections, you must use the Region for the requester VPC to modify the requester VPC peering options and the Region for the accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.
Implementations
impl<C, M, R> ModifyVpcPeeringConnectionOptions<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> ModifyVpcPeeringConnectionOptions<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<ModifyVpcPeeringConnectionOptionsOutput, SdkError<ModifyVpcPeeringConnectionOptionsError>> where
R::Policy: SmithyRetryPolicy<ModifyVpcPeeringConnectionOptionsInputOperationOutputAlias, ModifyVpcPeeringConnectionOptionsOutput, ModifyVpcPeeringConnectionOptionsError, ModifyVpcPeeringConnectionOptionsInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<ModifyVpcPeeringConnectionOptionsOutput, SdkError<ModifyVpcPeeringConnectionOptionsError>> where
R::Policy: SmithyRetryPolicy<ModifyVpcPeeringConnectionOptionsInputOperationOutputAlias, ModifyVpcPeeringConnectionOptionsOutput, ModifyVpcPeeringConnectionOptionsError, ModifyVpcPeeringConnectionOptionsInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
pub fn accepter_peering_connection_options(
self,
inp: PeeringConnectionOptionsRequest
) -> Self
pub fn accepter_peering_connection_options(
self,
inp: PeeringConnectionOptionsRequest
) -> Self
The VPC peering connection options for the accepter VPC.
pub fn set_accepter_peering_connection_options(
self,
input: Option<PeeringConnectionOptionsRequest>
) -> Self
pub fn set_accepter_peering_connection_options(
self,
input: Option<PeeringConnectionOptionsRequest>
) -> Self
The VPC peering connection options for the accepter VPC.
Checks whether you have the required permissions for the action, without actually making the request,
and provides an error response. If you have the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
Checks whether you have the required permissions for the action, without actually making the request,
and provides an error response. If you have the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
pub fn requester_peering_connection_options(
self,
inp: PeeringConnectionOptionsRequest
) -> Self
pub fn requester_peering_connection_options(
self,
inp: PeeringConnectionOptionsRequest
) -> Self
The VPC peering connection options for the requester VPC.
pub fn set_requester_peering_connection_options(
self,
input: Option<PeeringConnectionOptionsRequest>
) -> Self
pub fn set_requester_peering_connection_options(
self,
input: Option<PeeringConnectionOptionsRequest>
) -> Self
The VPC peering connection options for the requester VPC.
The ID of the VPC peering connection.
The ID of the VPC peering connection.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for ModifyVpcPeeringConnectionOptions<C, M, R>
impl<C, M, R> Send for ModifyVpcPeeringConnectionOptions<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for ModifyVpcPeeringConnectionOptions<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for ModifyVpcPeeringConnectionOptions<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for ModifyVpcPeeringConnectionOptions<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more