Struct aws_sdk_ec2::operation::create_instance_connect_endpoint::CreateInstanceConnectEndpointInput
source · #[non_exhaustive]pub struct CreateInstanceConnectEndpointInput {
pub dry_run: Option<bool>,
pub subnet_id: Option<String>,
pub security_group_ids: Option<Vec<String>>,
pub preserve_client_ip: Option<bool>,
pub client_token: Option<String>,
pub tag_specifications: Option<Vec<TagSpecification>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.dry_run: 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
.
subnet_id: Option<String>
The ID of the subnet in which to create the EC2 Instance Connect Endpoint.
security_group_ids: 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.
preserve_client_ip: 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
client_token: Option<String>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
tag_specifications: Option<Vec<TagSpecification>>
The tags to apply to the EC2 Instance Connect Endpoint during creation.
Implementations§
source§impl CreateInstanceConnectEndpointInput
impl CreateInstanceConnectEndpointInput
sourcepub fn dry_run(&self) -> Option<bool>
pub fn 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) -> Option<&str>
pub fn subnet_id(&self) -> Option<&str>
The ID of the subnet in which to create the EC2 Instance Connect Endpoint.
sourcepub fn security_group_ids(&self) -> &[String]
pub fn security_group_ids(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .security_group_ids.is_none()
.
sourcepub fn preserve_client_ip(&self) -> Option<bool>
pub fn 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) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
sourcepub fn tag_specifications(&self) -> &[TagSpecification]
pub fn tag_specifications(&self) -> &[TagSpecification]
The tags to apply to the EC2 Instance Connect Endpoint during creation.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tag_specifications.is_none()
.
source§impl CreateInstanceConnectEndpointInput
impl CreateInstanceConnectEndpointInput
sourcepub fn builder() -> CreateInstanceConnectEndpointInputBuilder
pub fn builder() -> CreateInstanceConnectEndpointInputBuilder
Creates a new builder-style object to manufacture CreateInstanceConnectEndpointInput
.
Trait Implementations§
source§impl Clone for CreateInstanceConnectEndpointInput
impl Clone for CreateInstanceConnectEndpointInput
source§fn clone(&self) -> CreateInstanceConnectEndpointInput
fn clone(&self) -> CreateInstanceConnectEndpointInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for CreateInstanceConnectEndpointInput
impl PartialEq for CreateInstanceConnectEndpointInput
source§fn eq(&self, other: &CreateInstanceConnectEndpointInput) -> bool
fn eq(&self, other: &CreateInstanceConnectEndpointInput) -> bool
self
and other
values to be equal, and is used
by ==
.