Struct aws_sdk_lightsail::client::fluent_builders::PutInstancePublicPorts [−][src]
pub struct PutInstancePublicPorts<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to PutInstancePublicPorts
.
Opens ports for a specific Amazon Lightsail instance, and specifies the IP addresses
allowed to connect to the instance through the ports, and the protocol. This action also
closes all currently open ports that are not included in the request. Include all of the ports
and the protocols you want to open in your PutInstancePublicPorts
request. Or use
the OpenInstancePublicPorts
action to open ports without closing currently open
ports.
The PutInstancePublicPorts
action supports tag-based access control via
resource tags applied to the resource identified by instanceName
. For more
information, see the Amazon Lightsail Developer Guide.
Implementations
impl<C, M, R> PutInstancePublicPorts<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> PutInstancePublicPorts<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<PutInstancePublicPortsOutput, SdkError<PutInstancePublicPortsError>> where
R::Policy: SmithyRetryPolicy<PutInstancePublicPortsInputOperationOutputAlias, PutInstancePublicPortsOutput, PutInstancePublicPortsError, PutInstancePublicPortsInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<PutInstancePublicPortsOutput, SdkError<PutInstancePublicPortsError>> where
R::Policy: SmithyRetryPolicy<PutInstancePublicPortsInputOperationOutputAlias, PutInstancePublicPortsOutput, PutInstancePublicPortsError, PutInstancePublicPortsInputOperationRetryAlias>,
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.
Appends an item to portInfos
.
To override the contents of this collection use set_port_infos
.
An array of objects to describe the ports to open for the specified instance.
An array of objects to describe the ports to open for the specified instance.
The name of the instance for which to open ports.
The name of the instance for which to open ports.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for PutInstancePublicPorts<C, M, R>
impl<C, M, R> Send for PutInstancePublicPorts<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for PutInstancePublicPorts<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for PutInstancePublicPorts<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for PutInstancePublicPorts<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