pulumi_wasm_providers_aws_mini::ec2::vpc_endpoint

Struct VpcEndpointArgsBuilder

source
pub struct VpcEndpointArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> VpcEndpointArgsBuilder<S>

source

pub fn build_struct(self) -> VpcEndpointArgs
where S: IsComplete,

Finish building and return the requested object

source

pub fn auto_accept( self, value: impl Into<Output<Option<bool>>>, ) -> VpcEndpointArgsBuilder<SetAutoAccept<S>>
where S::AutoAccept: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).

source

pub fn maybe_auto_accept( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> VpcEndpointArgsBuilder<SetAutoAccept<S>>
where S::AutoAccept: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).

source

pub fn dns_options( self, value: impl Into<Output<Option<VpcEndpointDnsOptions>>>, ) -> VpcEndpointArgsBuilder<SetDnsOptions<S>>
where S::DnsOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::VpcEndpointDnsOptions>,
> as Default>::default()

The DNS options for the endpoint. See dns_options below.

source

pub fn maybe_dns_options( self, value: Option<impl Into<Output<Option<VpcEndpointDnsOptions>>>>, ) -> VpcEndpointArgsBuilder<SetDnsOptions<S>>
where S::DnsOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::VpcEndpointDnsOptions>,
> as Default>::default()

The DNS options for the endpoint. See dns_options below.

source

pub fn ip_address_type( self, value: impl Into<Output<Option<String>>>, ) -> VpcEndpointArgsBuilder<SetIpAddressType<S>>
where S::IpAddressType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The IP address type for the endpoint. Valid values are ipv4, dualstack, and ipv6.

source

pub fn maybe_ip_address_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> VpcEndpointArgsBuilder<SetIpAddressType<S>>
where S::IpAddressType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The IP address type for the endpoint. Valid values are ipv4, dualstack, and ipv6.

source

pub fn policy( self, value: impl Into<Output<Option<String>>>, ) -> VpcEndpointArgsBuilder<SetPolicy<S>>
where S::Policy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

A policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All Gateway and some Interface endpoints support policies - see the relevant AWS documentation for more details.

source

pub fn maybe_policy( self, value: Option<impl Into<Output<Option<String>>>>, ) -> VpcEndpointArgsBuilder<SetPolicy<S>>
where S::Policy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

A policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All Gateway and some Interface endpoints support policies - see the relevant AWS documentation for more details.

source

pub fn private_dns_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> VpcEndpointArgsBuilder<SetPrivateDnsEnabled<S>>
where S::PrivateDnsEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Whether or not to associate a private hosted zone with the specified VPC. Applicable for endpoints of type Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint. Defaults to false.

source

pub fn maybe_private_dns_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> VpcEndpointArgsBuilder<SetPrivateDnsEnabled<S>>
where S::PrivateDnsEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Whether or not to associate a private hosted zone with the specified VPC. Applicable for endpoints of type Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint. Defaults to false.

source

pub fn route_table_ids( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> VpcEndpointArgsBuilder<SetRouteTableIds<S>>
where S::RouteTableIds: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

One or more route table IDs. Applicable for endpoints of type Gateway.

source

pub fn maybe_route_table_ids( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> VpcEndpointArgsBuilder<SetRouteTableIds<S>>
where S::RouteTableIds: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

One or more route table IDs. Applicable for endpoints of type Gateway.

source

pub fn security_group_ids( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> VpcEndpointArgsBuilder<SetSecurityGroupIds<S>>
where S::SecurityGroupIds: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

The ID of one or more security groups to associate with the network interface. Applicable for endpoints of type Interface. If no security groups are specified, the VPC’s default security group is associated with the endpoint.

source

pub fn maybe_security_group_ids( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> VpcEndpointArgsBuilder<SetSecurityGroupIds<S>>
where S::SecurityGroupIds: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

The ID of one or more security groups to associate with the network interface. Applicable for endpoints of type Interface. If no security groups are specified, the VPC’s default security group is associated with the endpoint.

source

pub fn service_name( self, value: impl Into<Output<String>>, ) -> VpcEndpointArgsBuilder<SetServiceName<S>>
where S::ServiceName: IsUnset,

Required.

The service name. For AWS services the service name is usually in the form com.amazonaws.<region>.<service> (the SageMaker Notebook service is an exception to this rule, the service name is in the form aws.sagemaker.<region>.notebook).

source

pub fn service_region( self, value: impl Into<Output<Option<String>>>, ) -> VpcEndpointArgsBuilder<SetServiceRegion<S>>
where S::ServiceRegion: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The AWS region of the VPC Endpoint Service. If specified, the VPC endpoint will connect to the service in the provided region. Applicable for endpoints of type Interface.

source

pub fn maybe_service_region( self, value: Option<impl Into<Output<Option<String>>>>, ) -> VpcEndpointArgsBuilder<SetServiceRegion<S>>
where S::ServiceRegion: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The AWS region of the VPC Endpoint Service. If specified, the VPC endpoint will connect to the service in the provided region. Applicable for endpoints of type Interface.

source

pub fn subnet_configurations( self, value: impl Into<Output<Option<Vec<VpcEndpointSubnetConfiguration>>>>, ) -> VpcEndpointArgsBuilder<SetSubnetConfigurations<S>>
where S::SubnetConfigurations: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::VpcEndpointSubnetConfiguration>>,
> as Default>::default()

Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnet_configuration below.

source

pub fn maybe_subnet_configurations( self, value: Option<impl Into<Output<Option<Vec<VpcEndpointSubnetConfiguration>>>>>, ) -> VpcEndpointArgsBuilder<SetSubnetConfigurations<S>>
where S::SubnetConfigurations: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::VpcEndpointSubnetConfiguration>>,
> as Default>::default()

Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnet_configuration below.

source

pub fn subnet_ids( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> VpcEndpointArgsBuilder<SetSubnetIds<S>>
where S::SubnetIds: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

The ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type GatewayLoadBalancer and Interface. Interface type endpoints cannot function without being assigned to a subnet.

source

pub fn maybe_subnet_ids( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> VpcEndpointArgsBuilder<SetSubnetIds<S>>
where S::SubnetIds: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

The ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type GatewayLoadBalancer and Interface. Interface type endpoints cannot function without being assigned to a subnet.

source

pub fn tags( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> VpcEndpointArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

source

pub fn maybe_tags( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> VpcEndpointArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

source

pub fn vpc_endpoint_type( self, value: impl Into<Output<Option<String>>>, ) -> VpcEndpointArgsBuilder<SetVpcEndpointType<S>>
where S::VpcEndpointType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The VPC endpoint type, Gateway, GatewayLoadBalancer, or Interface. Defaults to Gateway.

source

pub fn maybe_vpc_endpoint_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> VpcEndpointArgsBuilder<SetVpcEndpointType<S>>
where S::VpcEndpointType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The VPC endpoint type, Gateway, GatewayLoadBalancer, or Interface. Defaults to Gateway.

source

pub fn vpc_id( self, value: impl Into<Output<String>>, ) -> VpcEndpointArgsBuilder<SetVpcId<S>>
where S::VpcId: IsUnset,

Required.

The ID of the VPC in which the endpoint will be used.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.