aws_sdk_ec2/client/modify_vpc_endpoint.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`ModifyVpcEndpoint`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`dry_run(bool)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::set_dry_run):<br>required: **false**<br><p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
7 /// - [`vpc_endpoint_id(impl Into<String>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::vpc_endpoint_id) / [`set_vpc_endpoint_id(Option<String>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::set_vpc_endpoint_id):<br>required: **true**<br><p>The ID of the endpoint.</p><br>
8 /// - [`reset_policy(bool)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::reset_policy) / [`set_reset_policy(Option<bool>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::set_reset_policy):<br>required: **false**<br><p>(Gateway endpoint) Specify <code>true</code> to reset the policy document to the default policy. The default policy allows full access to the service.</p><br>
9 /// - [`policy_document(impl Into<String>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::policy_document) / [`set_policy_document(Option<String>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::set_policy_document):<br>required: **false**<br><p>(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.</p><br>
10 /// - [`add_route_table_ids(impl Into<String>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::add_route_table_ids) / [`set_add_route_table_ids(Option<Vec::<String>>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::set_add_route_table_ids):<br>required: **false**<br><p>(Gateway endpoint) The IDs of the route tables to associate with the endpoint.</p><br>
11 /// - [`remove_route_table_ids(impl Into<String>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::remove_route_table_ids) / [`set_remove_route_table_ids(Option<Vec::<String>>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::set_remove_route_table_ids):<br>required: **false**<br><p>(Gateway endpoint) The IDs of the route tables to disassociate from the endpoint.</p><br>
12 /// - [`add_subnet_ids(impl Into<String>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::add_subnet_ids) / [`set_add_subnet_ids(Option<Vec::<String>>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::set_add_subnet_ids):<br>required: **false**<br><p>(Interface and Gateway Load Balancer endpoints) The IDs of the subnets in which to serve the endpoint. For a Gateway Load Balancer endpoint, you can specify only one subnet.</p><br>
13 /// - [`remove_subnet_ids(impl Into<String>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::remove_subnet_ids) / [`set_remove_subnet_ids(Option<Vec::<String>>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::set_remove_subnet_ids):<br>required: **false**<br><p>(Interface endpoint) The IDs of the subnets from which to remove the endpoint.</p><br>
14 /// - [`add_security_group_ids(impl Into<String>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::add_security_group_ids) / [`set_add_security_group_ids(Option<Vec::<String>>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::set_add_security_group_ids):<br>required: **false**<br><p>(Interface endpoint) The IDs of the security groups to associate with the endpoint network interfaces.</p><br>
15 /// - [`remove_security_group_ids(impl Into<String>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::remove_security_group_ids) / [`set_remove_security_group_ids(Option<Vec::<String>>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::set_remove_security_group_ids):<br>required: **false**<br><p>(Interface endpoint) The IDs of the security groups to disassociate from the endpoint network interfaces.</p><br>
16 /// - [`ip_address_type(IpAddressType)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::ip_address_type) / [`set_ip_address_type(Option<IpAddressType>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::set_ip_address_type):<br>required: **false**<br><p>The IP address type for the endpoint.</p><br>
17 /// - [`dns_options(DnsOptionsSpecification)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::dns_options) / [`set_dns_options(Option<DnsOptionsSpecification>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::set_dns_options):<br>required: **false**<br><p>The DNS options for the endpoint.</p><br>
18 /// - [`private_dns_enabled(bool)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::private_dns_enabled) / [`set_private_dns_enabled(Option<bool>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::set_private_dns_enabled):<br>required: **false**<br><p>(Interface endpoint) Indicates whether a private hosted zone is associated with the VPC.</p><br>
19 /// - [`subnet_configurations(SubnetConfiguration)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::subnet_configurations) / [`set_subnet_configurations(Option<Vec::<SubnetConfiguration>>)`](crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::set_subnet_configurations):<br>required: **false**<br><p>The subnet configurations for the endpoint.</p><br>
20 /// - On success, responds with [`ModifyVpcEndpointOutput`](crate::operation::modify_vpc_endpoint::ModifyVpcEndpointOutput) with field(s):
21 /// - [`r#return(Option<bool>)`](crate::operation::modify_vpc_endpoint::ModifyVpcEndpointOutput::return): <p>Returns <code>true</code> if the request succeeds; otherwise, it returns an error.</p>
22 /// - On failure, responds with [`SdkError<ModifyVpcEndpointError>`](crate::operation::modify_vpc_endpoint::ModifyVpcEndpointError)
23 pub fn modify_vpc_endpoint(&self) -> crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder {
24 crate::operation::modify_vpc_endpoint::builders::ModifyVpcEndpointFluentBuilder::new(self.handle.clone())
25 }
26}