Package com.pulumi.aws.ec2
Class VpcEndpointArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.ec2.VpcEndpointArgs.Builder
-
- Enclosing class:
- VpcEndpointArgs
public static final class VpcEndpointArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(VpcEndpointArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VpcEndpointArgs.BuilderautoAccept(com.pulumi.core.Output<java.lang.Boolean> autoAccept)VpcEndpointArgs.BuilderautoAccept(java.lang.Boolean autoAccept)VpcEndpointArgsbuild()VpcEndpointArgs.BuilderdnsOptions(VpcEndpointDnsOptionsArgs dnsOptions)VpcEndpointArgs.BuilderdnsOptions(com.pulumi.core.Output<VpcEndpointDnsOptionsArgs> dnsOptions)VpcEndpointArgs.BuilderipAddressType(com.pulumi.core.Output<java.lang.String> ipAddressType)VpcEndpointArgs.BuilderipAddressType(java.lang.String ipAddressType)VpcEndpointArgs.Builderpolicy(com.pulumi.core.Output<java.lang.String> policy)VpcEndpointArgs.Builderpolicy(java.lang.String policy)VpcEndpointArgs.BuilderprivateDnsEnabled(com.pulumi.core.Output<java.lang.Boolean> privateDnsEnabled)VpcEndpointArgs.BuilderprivateDnsEnabled(java.lang.Boolean privateDnsEnabled)VpcEndpointArgs.Builderregion(com.pulumi.core.Output<java.lang.String> region)VpcEndpointArgs.Builderregion(java.lang.String region)VpcEndpointArgs.BuilderresourceConfigurationArn(com.pulumi.core.Output<java.lang.String> resourceConfigurationArn)VpcEndpointArgs.BuilderresourceConfigurationArn(java.lang.String resourceConfigurationArn)VpcEndpointArgs.BuilderrouteTableIds(com.pulumi.core.Output<java.util.List<java.lang.String>> routeTableIds)VpcEndpointArgs.BuilderrouteTableIds(java.lang.String... routeTableIds)VpcEndpointArgs.BuilderrouteTableIds(java.util.List<java.lang.String> routeTableIds)VpcEndpointArgs.BuildersecurityGroupIds(com.pulumi.core.Output<java.util.List<java.lang.String>> securityGroupIds)VpcEndpointArgs.BuildersecurityGroupIds(java.lang.String... securityGroupIds)VpcEndpointArgs.BuildersecurityGroupIds(java.util.List<java.lang.String> securityGroupIds)VpcEndpointArgs.BuilderserviceName(com.pulumi.core.Output<java.lang.String> serviceName)VpcEndpointArgs.BuilderserviceName(java.lang.String serviceName)VpcEndpointArgs.BuilderserviceNetworkArn(com.pulumi.core.Output<java.lang.String> serviceNetworkArn)VpcEndpointArgs.BuilderserviceNetworkArn(java.lang.String serviceNetworkArn)VpcEndpointArgs.BuilderserviceRegion(com.pulumi.core.Output<java.lang.String> serviceRegion)VpcEndpointArgs.BuilderserviceRegion(java.lang.String serviceRegion)VpcEndpointArgs.BuildersubnetConfigurations(VpcEndpointSubnetConfigurationArgs... subnetConfigurations)VpcEndpointArgs.BuildersubnetConfigurations(com.pulumi.core.Output<java.util.List<VpcEndpointSubnetConfigurationArgs>> subnetConfigurations)VpcEndpointArgs.BuildersubnetConfigurations(java.util.List<VpcEndpointSubnetConfigurationArgs> subnetConfigurations)VpcEndpointArgs.BuildersubnetIds(com.pulumi.core.Output<java.util.List<java.lang.String>> subnetIds)VpcEndpointArgs.BuildersubnetIds(java.lang.String... subnetIds)VpcEndpointArgs.BuildersubnetIds(java.util.List<java.lang.String> subnetIds)VpcEndpointArgs.Buildertags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)VpcEndpointArgs.Buildertags(java.util.Map<java.lang.String,java.lang.String> tags)VpcEndpointArgs.BuildervpcEndpointType(com.pulumi.core.Output<java.lang.String> vpcEndpointType)VpcEndpointArgs.BuildervpcEndpointType(java.lang.String vpcEndpointType)VpcEndpointArgs.BuildervpcId(com.pulumi.core.Output<java.lang.String> vpcId)VpcEndpointArgs.BuildervpcId(java.lang.String vpcId)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(VpcEndpointArgs defaults)
-
-
Method Detail
-
autoAccept
public VpcEndpointArgs.Builder autoAccept(@Nullable com.pulumi.core.Output<java.lang.Boolean> autoAccept)
- Parameters:
autoAccept- Whether to accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).- Returns:
- builder
-
autoAccept
public VpcEndpointArgs.Builder autoAccept(java.lang.Boolean autoAccept)
- Parameters:
autoAccept- Whether to accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).- Returns:
- builder
-
dnsOptions
public VpcEndpointArgs.Builder dnsOptions(@Nullable com.pulumi.core.Output<VpcEndpointDnsOptionsArgs> dnsOptions)
- Parameters:
dnsOptions- DNS options for the endpoint. See `dnsOptions` below.- Returns:
- builder
-
dnsOptions
public VpcEndpointArgs.Builder dnsOptions(VpcEndpointDnsOptionsArgs dnsOptions)
- Parameters:
dnsOptions- DNS options for the endpoint. See `dnsOptions` below.- Returns:
- builder
-
ipAddressType
public VpcEndpointArgs.Builder ipAddressType(@Nullable com.pulumi.core.Output<java.lang.String> ipAddressType)
- Parameters:
ipAddressType- IP address type for the endpoint. Valid values are `ipv4`, `dualstack`, and `ipv6`.- Returns:
- builder
-
ipAddressType
public VpcEndpointArgs.Builder ipAddressType(java.lang.String ipAddressType)
- Parameters:
ipAddressType- IP address type for the endpoint. Valid values are `ipv4`, `dualstack`, and `ipv6`.- Returns:
- builder
-
policy
public VpcEndpointArgs.Builder policy(@Nullable com.pulumi.core.Output<java.lang.String> policy)
- Parameters:
policy- 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](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints-access.html) for more details. For more information about building AWS IAM policy documents with Pulumi, see the AWS IAM Policy Document Guide.- Returns:
- builder
-
policy
public VpcEndpointArgs.Builder policy(java.lang.String policy)
- Parameters:
policy- 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](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints-access.html) for more details. For more information about building AWS IAM policy documents with Pulumi, see the AWS IAM Policy Document Guide.- Returns:
- builder
-
privateDnsEnabled
public VpcEndpointArgs.Builder privateDnsEnabled(@Nullable com.pulumi.core.Output<java.lang.Boolean> privateDnsEnabled)
- Parameters:
privateDnsEnabled- Whether to associate a private hosted zone with the specified VPC. Available for AWS services and AWS Marketplace partner services only. 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`. If `vpcEndpointType` is anything other than `Interface`, changing this value forces a new resource to be created.- Returns:
- builder
-
privateDnsEnabled
public VpcEndpointArgs.Builder privateDnsEnabled(java.lang.Boolean privateDnsEnabled)
- Parameters:
privateDnsEnabled- Whether to associate a private hosted zone with the specified VPC. Available for AWS services and AWS Marketplace partner services only. 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`. If `vpcEndpointType` is anything other than `Interface`, changing this value forces a new resource to be created.- Returns:
- builder
-
region
public VpcEndpointArgs.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
region
public VpcEndpointArgs.Builder region(java.lang.String region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
resourceConfigurationArn
public VpcEndpointArgs.Builder resourceConfigurationArn(@Nullable com.pulumi.core.Output<java.lang.String> resourceConfigurationArn)
- Parameters:
resourceConfigurationArn- ARN of a Resource Configuration to connect this VPC Endpoint to. Exactly one of `resourceConfigurationArn`, `serviceName` or `serviceNetworkArn` is required.- Returns:
- builder
-
resourceConfigurationArn
public VpcEndpointArgs.Builder resourceConfigurationArn(java.lang.String resourceConfigurationArn)
- Parameters:
resourceConfigurationArn- ARN of a Resource Configuration to connect this VPC Endpoint to. Exactly one of `resourceConfigurationArn`, `serviceName` or `serviceNetworkArn` is required.- Returns:
- builder
-
routeTableIds
public VpcEndpointArgs.Builder routeTableIds(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> routeTableIds)
- Parameters:
routeTableIds- One or more route table IDs. Applicable for endpoints of type `Gateway`.- Returns:
- builder
-
routeTableIds
public VpcEndpointArgs.Builder routeTableIds(java.util.List<java.lang.String> routeTableIds)
- Parameters:
routeTableIds- One or more route table IDs. Applicable for endpoints of type `Gateway`.- Returns:
- builder
-
routeTableIds
public VpcEndpointArgs.Builder routeTableIds(java.lang.String... routeTableIds)
- Parameters:
routeTableIds- One or more route table IDs. Applicable for endpoints of type `Gateway`.- Returns:
- builder
-
securityGroupIds
public VpcEndpointArgs.Builder securityGroupIds(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> securityGroupIds)
- Parameters:
securityGroupIds- 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](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html#DefaultSecurityGroup) is associated with the endpoint.- Returns:
- builder
-
securityGroupIds
public VpcEndpointArgs.Builder securityGroupIds(java.util.List<java.lang.String> securityGroupIds)
- Parameters:
securityGroupIds- 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](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html#DefaultSecurityGroup) is associated with the endpoint.- Returns:
- builder
-
securityGroupIds
public VpcEndpointArgs.Builder securityGroupIds(java.lang.String... securityGroupIds)
- Parameters:
securityGroupIds- 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](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html#DefaultSecurityGroup) is associated with the endpoint.- Returns:
- builder
-
serviceName
public VpcEndpointArgs.Builder serviceName(@Nullable com.pulumi.core.Output<java.lang.String> serviceName)
- Parameters:
serviceName- Service name. For AWS services the service name is usually in the form `com.amazonaws.<region>.<service>` (the SageMaker AI Notebook service is an exception to this rule, the service name is in the form `aws.sagemaker.<region>.notebook`). Exactly one of `resourceConfigurationArn`, `serviceName` or `serviceNetworkArn` is required.- Returns:
- builder
-
serviceName
public VpcEndpointArgs.Builder serviceName(java.lang.String serviceName)
- Parameters:
serviceName- Service name. For AWS services the service name is usually in the form `com.amazonaws.<region>.<service>` (the SageMaker AI Notebook service is an exception to this rule, the service name is in the form `aws.sagemaker.<region>.notebook`). Exactly one of `resourceConfigurationArn`, `serviceName` or `serviceNetworkArn` is required.- Returns:
- builder
-
serviceNetworkArn
public VpcEndpointArgs.Builder serviceNetworkArn(@Nullable com.pulumi.core.Output<java.lang.String> serviceNetworkArn)
- Parameters:
serviceNetworkArn- ARN of a Service Network to connect this VPC Endpoint to. Exactly one of `resourceConfigurationArn`, `serviceName` or `serviceNetworkArn` is required.- Returns:
- builder
-
serviceNetworkArn
public VpcEndpointArgs.Builder serviceNetworkArn(java.lang.String serviceNetworkArn)
- Parameters:
serviceNetworkArn- ARN of a Service Network to connect this VPC Endpoint to. Exactly one of `resourceConfigurationArn`, `serviceName` or `serviceNetworkArn` is required.- Returns:
- builder
-
serviceRegion
public VpcEndpointArgs.Builder serviceRegion(@Nullable com.pulumi.core.Output<java.lang.String> serviceRegion)
- Parameters:
serviceRegion- 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`.- Returns:
- builder
-
serviceRegion
public VpcEndpointArgs.Builder serviceRegion(java.lang.String serviceRegion)
- Parameters:
serviceRegion- 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`.- Returns:
- builder
-
subnetConfigurations
public VpcEndpointArgs.Builder subnetConfigurations(@Nullable com.pulumi.core.Output<java.util.List<VpcEndpointSubnetConfigurationArgs>> subnetConfigurations)
- Parameters:
subnetConfigurations- Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnetConfiguration below.- Returns:
- builder
-
subnetConfigurations
public VpcEndpointArgs.Builder subnetConfigurations(java.util.List<VpcEndpointSubnetConfigurationArgs> subnetConfigurations)
- Parameters:
subnetConfigurations- Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnetConfiguration below.- Returns:
- builder
-
subnetConfigurations
public VpcEndpointArgs.Builder subnetConfigurations(VpcEndpointSubnetConfigurationArgs... subnetConfigurations)
- Parameters:
subnetConfigurations- Subnet configuration for the endpoint, used to select specific IPv4 and/or IPv6 addresses to the endpoint. See subnetConfiguration below.- Returns:
- builder
-
subnetIds
public VpcEndpointArgs.Builder subnetIds(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> subnetIds)
- Parameters:
subnetIds- 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.- Returns:
- builder
-
subnetIds
public VpcEndpointArgs.Builder subnetIds(java.util.List<java.lang.String> subnetIds)
- Parameters:
subnetIds- 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.- Returns:
- builder
-
subnetIds
public VpcEndpointArgs.Builder subnetIds(java.lang.String... subnetIds)
- Parameters:
subnetIds- 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.- Returns:
- builder
-
tags
public VpcEndpointArgs.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
- Parameters:
tags- Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
tags
public VpcEndpointArgs.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags- Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
vpcEndpointType
public VpcEndpointArgs.Builder vpcEndpointType(@Nullable com.pulumi.core.Output<java.lang.String> vpcEndpointType)
- Parameters:
vpcEndpointType- VPC endpoint type, `Gateway`, `GatewayLoadBalancer`,`Interface`, `Resource` or `ServiceNetwork`. Defaults to `Gateway`.- Returns:
- builder
-
vpcEndpointType
public VpcEndpointArgs.Builder vpcEndpointType(java.lang.String vpcEndpointType)
- Parameters:
vpcEndpointType- VPC endpoint type, `Gateway`, `GatewayLoadBalancer`,`Interface`, `Resource` or `ServiceNetwork`. Defaults to `Gateway`.- Returns:
- builder
-
vpcId
public VpcEndpointArgs.Builder vpcId(com.pulumi.core.Output<java.lang.String> vpcId)
- Parameters:
vpcId- ID of the VPC in which the endpoint will be used.- Returns:
- builder
-
vpcId
public VpcEndpointArgs.Builder vpcId(java.lang.String vpcId)
- Parameters:
vpcId- ID of the VPC in which the endpoint will be used.- Returns:
- builder
-
build
public VpcEndpointArgs build()
-
-