Struct aws_sdk_ec2::operation::create_instance_connect_endpoint::builders::CreateInstanceConnectEndpointFluentBuilder
source · pub struct CreateInstanceConnectEndpointFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateInstanceConnectEndpoint
.
Creates an EC2 Instance Connect Endpoint.
An EC2 Instance Connect Endpoint allows you to connect to an instance, without requiring the instance to have a public IPv4 address. For more information, see Connect to your instances without requiring a public IPv4 address using EC2 Instance Connect Endpoint in the Amazon EC2 User Guide.
Implementations§
source§impl CreateInstanceConnectEndpointFluentBuilder
impl CreateInstanceConnectEndpointFluentBuilder
sourcepub fn as_input(&self) -> &CreateInstanceConnectEndpointInputBuilder
pub fn as_input(&self) -> &CreateInstanceConnectEndpointInputBuilder
Access the CreateInstanceConnectEndpoint as a reference.
sourcepub async fn send(
self
) -> Result<CreateInstanceConnectEndpointOutput, SdkError<CreateInstanceConnectEndpointError, HttpResponse>>
pub async fn send( self ) -> Result<CreateInstanceConnectEndpointOutput, SdkError<CreateInstanceConnectEndpointError, HttpResponse>>
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.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateInstanceConnectEndpointOutput, CreateInstanceConnectEndpointError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateInstanceConnectEndpointOutput, CreateInstanceConnectEndpointError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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
.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
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
.
sourcepub fn subnet_id(self, input: impl Into<String>) -> Self
pub fn subnet_id(self, input: impl Into<String>) -> Self
The ID of the subnet in which to create the EC2 Instance Connect Endpoint.
sourcepub fn set_subnet_id(self, input: Option<String>) -> Self
pub fn set_subnet_id(self, input: Option<String>) -> Self
The ID of the subnet in which to create the EC2 Instance Connect Endpoint.
sourcepub fn get_subnet_id(&self) -> &Option<String>
pub fn get_subnet_id(&self) -> &Option<String>
The ID of the subnet in which to create the EC2 Instance Connect Endpoint.
sourcepub fn security_group_ids(self, input: impl Into<String>) -> Self
pub fn security_group_ids(self, input: impl Into<String>) -> Self
Appends an item to SecurityGroupIds
.
To override the contents of this collection use set_security_group_ids
.
One or more security groups to associate with the endpoint. If you don't specify a security group, the default security group for your VPC will be associated with the endpoint.
sourcepub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
One or more security groups to associate with the endpoint. If you don't specify a security group, the default security group for your VPC will be associated with the endpoint.
sourcepub fn get_security_group_ids(&self) -> &Option<Vec<String>>
pub fn get_security_group_ids(&self) -> &Option<Vec<String>>
One or more security groups to associate with the endpoint. If you don't specify a security group, the default security group for your VPC will be associated with the endpoint.
sourcepub fn preserve_client_ip(self, input: bool) -> Self
pub fn preserve_client_ip(self, input: bool) -> Self
Indicates whether your client's IP address is preserved as the source. The value is true
or false
.
-
If
true
, your client's IP address is used when you connect to a resource. -
If
false
, the elastic network interface IP address is used when you connect to a resource.
Default: true
sourcepub fn set_preserve_client_ip(self, input: Option<bool>) -> Self
pub fn set_preserve_client_ip(self, input: Option<bool>) -> Self
Indicates whether your client's IP address is preserved as the source. The value is true
or false
.
-
If
true
, your client's IP address is used when you connect to a resource. -
If
false
, the elastic network interface IP address is used when you connect to a resource.
Default: true
sourcepub fn get_preserve_client_ip(&self) -> &Option<bool>
pub fn get_preserve_client_ip(&self) -> &Option<bool>
Indicates whether your client's IP address is preserved as the source. The value is true
or false
.
-
If
true
, your client's IP address is used when you connect to a resource. -
If
false
, the elastic network interface IP address is used when you connect to a resource.
Default: true
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
sourcepub fn tag_specifications(self, input: TagSpecification) -> Self
pub fn tag_specifications(self, input: TagSpecification) -> Self
Appends an item to TagSpecifications
.
To override the contents of this collection use set_tag_specifications
.
The tags to apply to the EC2 Instance Connect Endpoint during creation.
sourcepub fn set_tag_specifications(
self,
input: Option<Vec<TagSpecification>>
) -> Self
pub fn set_tag_specifications( self, input: Option<Vec<TagSpecification>> ) -> Self
The tags to apply to the EC2 Instance Connect Endpoint during creation.
sourcepub fn get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
pub fn get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
The tags to apply to the EC2 Instance Connect Endpoint during creation.
Trait Implementations§
source§impl Clone for CreateInstanceConnectEndpointFluentBuilder
impl Clone for CreateInstanceConnectEndpointFluentBuilder
source§fn clone(&self) -> CreateInstanceConnectEndpointFluentBuilder
fn clone(&self) -> CreateInstanceConnectEndpointFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more