Class CfnVPCEndpointMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCEndpointMixinProps>
- Enclosing interface:
CfnVPCEndpointMixinProps
CfnVPCEndpointMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnVPCEndpointMixinProps.getDnsOptions()dnsOptions(IResolvable dnsOptions) Sets the value ofCfnVPCEndpointMixinProps.getDnsOptions()ipAddressType(String ipAddressType) Sets the value ofCfnVPCEndpointMixinProps.getIpAddressType()policyDocument(Object policyDocument) Sets the value ofCfnVPCEndpointMixinProps.getPolicyDocument()privateDnsEnabled(Boolean privateDnsEnabled) Sets the value ofCfnVPCEndpointMixinProps.getPrivateDnsEnabled()privateDnsEnabled(IResolvable privateDnsEnabled) Sets the value ofCfnVPCEndpointMixinProps.getPrivateDnsEnabled()resourceConfigurationArn(String resourceConfigurationArn) Sets the value ofCfnVPCEndpointMixinProps.getResourceConfigurationArn()routeTableIds(List<? extends Object> routeTableIds) Sets the value ofCfnVPCEndpointMixinProps.getRouteTableIds()securityGroupIds(List<? extends Object> securityGroupIds) Sets the value ofCfnVPCEndpointMixinProps.getSecurityGroupIds()serviceName(String serviceName) Sets the value ofCfnVPCEndpointMixinProps.getServiceName()serviceNetworkArn(String serviceNetworkArn) Sets the value ofCfnVPCEndpointMixinProps.getServiceNetworkArn()serviceRegion(String serviceRegion) Sets the value ofCfnVPCEndpointMixinProps.getServiceRegion()Sets the value ofCfnVPCEndpointMixinProps.getSubnetIds()Sets the value ofCfnVPCEndpointMixinProps.getTags()vpcEndpointType(String vpcEndpointType) Sets the value ofCfnVPCEndpointMixinProps.getVpcEndpointType()Sets the value ofCfnVPCEndpointMixinProps.getVpcId()Sets the value ofCfnVPCEndpointMixinProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dnsOptions
Sets the value ofCfnVPCEndpointMixinProps.getDnsOptions()- Parameters:
dnsOptions- Describes the DNS options for an endpoint.- Returns:
this
-
dnsOptions
@Stability(Stable) public CfnVPCEndpointMixinProps.Builder dnsOptions(CfnVPCEndpointPropsMixin.DnsOptionsSpecificationProperty dnsOptions) Sets the value ofCfnVPCEndpointMixinProps.getDnsOptions()- Parameters:
dnsOptions- Describes the DNS options for an endpoint.- Returns:
this
-
ipAddressType
Sets the value ofCfnVPCEndpointMixinProps.getIpAddressType()- Parameters:
ipAddressType- The supported IP address types.- Returns:
this
-
policyDocument
Sets the value ofCfnVPCEndpointMixinProps.getPolicyDocument()- Parameters:
policyDocument- An endpoint policy, which controls access to the service from the VPC. The default endpoint policy allows full access to the service. Endpoint policies are supported only for gateway and interface endpoints.For CloudFormation templates in YAML, you can provide the policy in JSON or YAML format. For example, if you have a JSON policy, you can convert it to YAML before including it in the YAML template, and AWS CloudFormation converts the policy to JSON format before calling the API actions for AWS PrivateLink . Alternatively, you can include the JSON directly in the YAML, as shown in the following
Propertiessection:Properties: VpcEndpointType: 'Interface' ServiceName: !Sub 'com.amazonaws.${AWS::Region}.logs' PolicyDocument: '{ "Version":"2012-10-17", "Statement": [{ "Effect":"Allow", "Principal":"*", "Action":["logs:Describe*","logs:Get*","logs:List*","logs:FilterLogEvents"], "Resource":"*" }] }'- Returns:
this
-
privateDnsEnabled
@Stability(Stable) public CfnVPCEndpointMixinProps.Builder privateDnsEnabled(Boolean privateDnsEnabled) Sets the value ofCfnVPCEndpointMixinProps.getPrivateDnsEnabled()- Parameters:
privateDnsEnabled- Indicate whether to associate a private hosted zone with the specified VPC. The private hosted zone contains a record set for the default public DNS name for the service for the Region (for example,kinesis.us-east-1.amazonaws.com), which resolves to the private IP addresses of the endpoint network interfaces in the VPC. This enables you to make requests to the default public DNS name for the service instead of the public DNS names that are automatically generated by the VPC endpoint service.To use a private hosted zone, you must set the following VPC attributes to
true:enableDnsHostnamesandenableDnsSupport.This property is supported only for interface endpoints.
Default:
false- Returns:
this
-
privateDnsEnabled
@Stability(Stable) public CfnVPCEndpointMixinProps.Builder privateDnsEnabled(IResolvable privateDnsEnabled) Sets the value ofCfnVPCEndpointMixinProps.getPrivateDnsEnabled()- Parameters:
privateDnsEnabled- Indicate whether to associate a private hosted zone with the specified VPC. The private hosted zone contains a record set for the default public DNS name for the service for the Region (for example,kinesis.us-east-1.amazonaws.com), which resolves to the private IP addresses of the endpoint network interfaces in the VPC. This enables you to make requests to the default public DNS name for the service instead of the public DNS names that are automatically generated by the VPC endpoint service.To use a private hosted zone, you must set the following VPC attributes to
true:enableDnsHostnamesandenableDnsSupport.This property is supported only for interface endpoints.
Default:
false- Returns:
this
-
resourceConfigurationArn
@Stability(Stable) public CfnVPCEndpointMixinProps.Builder resourceConfigurationArn(String resourceConfigurationArn) Sets the value ofCfnVPCEndpointMixinProps.getResourceConfigurationArn()- Parameters:
resourceConfigurationArn- The Amazon Resource Name (ARN) of the resource configuration.- Returns:
this
-
routeTableIds
@Stability(Stable) public CfnVPCEndpointMixinProps.Builder routeTableIds(List<? extends Object> routeTableIds) Sets the value ofCfnVPCEndpointMixinProps.getRouteTableIds()- Parameters:
routeTableIds- The IDs of the route tables. Routing is supported only for gateway endpoints.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnVPCEndpointMixinProps.Builder securityGroupIds(List<? extends Object> securityGroupIds) Sets the value ofCfnVPCEndpointMixinProps.getSecurityGroupIds()- Parameters:
securityGroupIds- The IDs of the security groups to associate with the endpoint network interfaces. If this parameter is not specified, we use the default security group for the VPC. Security groups are supported only for interface endpoints.- Returns:
this
-
serviceName
Sets the value ofCfnVPCEndpointMixinProps.getServiceName()- Parameters:
serviceName- The name of the endpoint service.- Returns:
this
-
serviceNetworkArn
@Stability(Stable) public CfnVPCEndpointMixinProps.Builder serviceNetworkArn(String serviceNetworkArn) Sets the value ofCfnVPCEndpointMixinProps.getServiceNetworkArn()- Parameters:
serviceNetworkArn- The Amazon Resource Name (ARN) of the service network.- Returns:
this
-
serviceRegion
Sets the value ofCfnVPCEndpointMixinProps.getServiceRegion()- Parameters:
serviceRegion- Describes a Region.- Returns:
this
-
subnetIds
@Stability(Stable) public CfnVPCEndpointMixinProps.Builder subnetIds(List<? extends Object> subnetIds) Sets the value ofCfnVPCEndpointMixinProps.getSubnetIds()- Parameters:
subnetIds- The IDs of the subnets in which to create endpoint network interfaces. You must specify this property for an interface endpoint or a Gateway Load Balancer endpoint. You can't specify this property for a gateway endpoint. For a Gateway Load Balancer endpoint, you can specify only one subnet.- Returns:
this
-
tags
Sets the value ofCfnVPCEndpointMixinProps.getTags()- Parameters:
tags- The tags to associate with the endpoint.- Returns:
this
-
vpcEndpointType
Sets the value ofCfnVPCEndpointMixinProps.getVpcEndpointType()- Parameters:
vpcEndpointType- The type of endpoint. Default: Gateway- Returns:
this
-
vpcId
Sets the value ofCfnVPCEndpointMixinProps.getVpcId()- Parameters:
vpcId- The ID of the VPC.- Returns:
this
-
vpcId
Sets the value ofCfnVPCEndpointMixinProps.getVpcId()- Parameters:
vpcId- The ID of the VPC.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPCEndpointMixinProps>- Returns:
- a new instance of
CfnVPCEndpointMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-