pub struct Builder { /* private fields */ }
Expand description

A builder for ModifyVpcEndpointInput.

Implementations§

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.

Examples found in repository?
src/client.rs (line 69298)
69297
69298
69299
69300
        pub fn dry_run(mut self, input: bool) -> Self {
            self.inner = self.inner.dry_run(input);
            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.

Examples found in repository?
src/client.rs (line 69303)
69302
69303
69304
69305
        pub fn set_dry_run(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_dry_run(input);
            self
        }

The ID of the endpoint.

Examples found in repository?
src/client.rs (line 69308)
69307
69308
69309
69310
        pub fn vpc_endpoint_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.vpc_endpoint_id(input.into());
            self
        }

The ID of the endpoint.

Examples found in repository?
src/client.rs (line 69316)
69312
69313
69314
69315
69316
69317
69318
        pub fn set_vpc_endpoint_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_vpc_endpoint_id(input);
            self
        }

(Gateway endpoint) Specify true to reset the policy document to the default policy. The default policy allows full access to the service.

Examples found in repository?
src/client.rs (line 69321)
69320
69321
69322
69323
        pub fn reset_policy(mut self, input: bool) -> Self {
            self.inner = self.inner.reset_policy(input);
            self
        }

(Gateway endpoint) Specify true to reset the policy document to the default policy. The default policy allows full access to the service.

Examples found in repository?
src/client.rs (line 69326)
69325
69326
69327
69328
        pub fn set_reset_policy(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_reset_policy(input);
            self
        }

(Interface and gateway endpoints) A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format.

Examples found in repository?
src/client.rs (line 69331)
69330
69331
69332
69333
        pub fn policy_document(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.policy_document(input.into());
            self
        }

(Interface and gateway endpoints) A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format.

Examples found in repository?
src/client.rs (line 69339)
69335
69336
69337
69338
69339
69340
69341
        pub fn set_policy_document(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_policy_document(input);
            self
        }

Appends an item to add_route_table_ids.

To override the contents of this collection use set_add_route_table_ids.

(Gateway endpoint) One or more route tables IDs to associate with the endpoint.

Examples found in repository?
src/client.rs (line 69348)
69347
69348
69349
69350
        pub fn add_route_table_ids(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.add_route_table_ids(input.into());
            self
        }

(Gateway endpoint) One or more route tables IDs to associate with the endpoint.

Examples found in repository?
src/client.rs (line 69356)
69352
69353
69354
69355
69356
69357
69358
        pub fn set_add_route_table_ids(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_add_route_table_ids(input);
            self
        }

Appends an item to remove_route_table_ids.

To override the contents of this collection use set_remove_route_table_ids.

(Gateway endpoint) One or more route table IDs to disassociate from the endpoint.

Examples found in repository?
src/client.rs (line 69365)
69364
69365
69366
69367
        pub fn remove_route_table_ids(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.remove_route_table_ids(input.into());
            self
        }

(Gateway endpoint) One or more route table IDs to disassociate from the endpoint.

Examples found in repository?
src/client.rs (line 69373)
69369
69370
69371
69372
69373
69374
69375
        pub fn set_remove_route_table_ids(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_remove_route_table_ids(input);
            self
        }

Appends an item to add_subnet_ids.

To override the contents of this collection use set_add_subnet_ids.

(Interface and Gateway Load Balancer endpoints) One or more subnet IDs in which to serve the endpoint. For a Gateway Load Balancer endpoint, you can specify only one subnet.

Examples found in repository?
src/client.rs (line 69382)
69381
69382
69383
69384
        pub fn add_subnet_ids(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.add_subnet_ids(input.into());
            self
        }

(Interface and Gateway Load Balancer endpoints) One or more subnet IDs in which to serve the endpoint. For a Gateway Load Balancer endpoint, you can specify only one subnet.

Examples found in repository?
src/client.rs (line 69390)
69386
69387
69388
69389
69390
69391
69392
        pub fn set_add_subnet_ids(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_add_subnet_ids(input);
            self
        }

Appends an item to remove_subnet_ids.

To override the contents of this collection use set_remove_subnet_ids.

(Interface endpoint) One or more subnets IDs in which to remove the endpoint.

Examples found in repository?
src/client.rs (line 69399)
69398
69399
69400
69401
        pub fn remove_subnet_ids(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.remove_subnet_ids(input.into());
            self
        }

(Interface endpoint) One or more subnets IDs in which to remove the endpoint.

Examples found in repository?
src/client.rs (line 69407)
69403
69404
69405
69406
69407
69408
69409
        pub fn set_remove_subnet_ids(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_remove_subnet_ids(input);
            self
        }

Appends an item to add_security_group_ids.

To override the contents of this collection use set_add_security_group_ids.

(Interface endpoint) One or more security group IDs to associate with the network interface.

Examples found in repository?
src/client.rs (line 69416)
69415
69416
69417
69418
        pub fn add_security_group_ids(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.add_security_group_ids(input.into());
            self
        }

(Interface endpoint) One or more security group IDs to associate with the network interface.

Examples found in repository?
src/client.rs (line 69424)
69420
69421
69422
69423
69424
69425
69426
        pub fn set_add_security_group_ids(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_add_security_group_ids(input);
            self
        }

Appends an item to remove_security_group_ids.

To override the contents of this collection use set_remove_security_group_ids.

(Interface endpoint) One or more security group IDs to disassociate from the network interface.

Examples found in repository?
src/client.rs (line 69433)
69432
69433
69434
69435
        pub fn remove_security_group_ids(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.remove_security_group_ids(input.into());
            self
        }

(Interface endpoint) One or more security group IDs to disassociate from the network interface.

Examples found in repository?
src/client.rs (line 69441)
69437
69438
69439
69440
69441
69442
69443
        pub fn set_remove_security_group_ids(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_remove_security_group_ids(input);
            self
        }

The IP address type for the endpoint.

Examples found in repository?
src/client.rs (line 69446)
69445
69446
69447
69448
        pub fn ip_address_type(mut self, input: crate::model::IpAddressType) -> Self {
            self.inner = self.inner.ip_address_type(input);
            self
        }

The IP address type for the endpoint.

Examples found in repository?
src/client.rs (line 69454)
69450
69451
69452
69453
69454
69455
69456
        pub fn set_ip_address_type(
            mut self,
            input: std::option::Option<crate::model::IpAddressType>,
        ) -> Self {
            self.inner = self.inner.set_ip_address_type(input);
            self
        }

The DNS options for the endpoint.

Examples found in repository?
src/client.rs (line 69459)
69458
69459
69460
69461
        pub fn dns_options(mut self, input: crate::model::DnsOptionsSpecification) -> Self {
            self.inner = self.inner.dns_options(input);
            self
        }

The DNS options for the endpoint.

Examples found in repository?
src/client.rs (line 69467)
69463
69464
69465
69466
69467
69468
69469
        pub fn set_dns_options(
            mut self,
            input: std::option::Option<crate::model::DnsOptionsSpecification>,
        ) -> Self {
            self.inner = self.inner.set_dns_options(input);
            self
        }

(Interface endpoint) Indicates whether a private hosted zone is associated with the VPC.

Examples found in repository?
src/client.rs (line 69472)
69471
69472
69473
69474
        pub fn private_dns_enabled(mut self, input: bool) -> Self {
            self.inner = self.inner.private_dns_enabled(input);
            self
        }

(Interface endpoint) Indicates whether a private hosted zone is associated with the VPC.

Examples found in repository?
src/client.rs (line 69477)
69476
69477
69478
69479
        pub fn set_private_dns_enabled(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_private_dns_enabled(input);
            self
        }

Consumes the builder and constructs a ModifyVpcEndpointInput.

Examples found in repository?
src/client.rs (line 69265)
69253
69254
69255
69256
69257
69258
69259
69260
69261
69262
69263
69264
69265
69266
69267
69268
69269
69270
69271
69272
69273
69274
69275
69276
69277
69278
69279
69280
69281
69282
69283
69284
69285
69286
69287
69288
69289
69290
69291
69292
69293
69294
69295
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::ModifyVpcEndpoint,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::ModifyVpcEndpointError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// 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](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::ModifyVpcEndpointOutput,
            aws_smithy_http::result::SdkError<crate::error::ModifyVpcEndpointError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
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