Skip to content
v2.278.0

CfnVPCEndpointServiceProps Struct ​

Properties for defining a CfnVPCEndpointService.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnVPCEndpointServiceProps: ec2.CfnVPCEndpointServiceProps = {
  acceptanceRequired: false,
  contributorInsightsEnabled: false,
  gatewayLoadBalancerArns: ['gatewayLoadBalancerArns'],
  networkLoadBalancerArns: ['networkLoadBalancerArns'],
  payerResponsibility: 'payerResponsibility',
  privateDnsName: 'privateDnsName',
  privateDnsNameConfiguration: {
    name: 'name',
    state: 'state',
    type: 'type',
    value: 'value',
  },
  supportedIpAddressTypes: ['supportedIpAddressTypes'],
  supportedRegions: ['supportedRegions'],
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

cfn_vpc_endpoint_service_props = ec2.CfnVPCEndpointServiceProps(
    acceptance_required=False,
    contributor_insights_enabled=False,
    gateway_load_balancer_arns=["gatewayLoadBalancerArns"],
    network_load_balancer_arns=["networkLoadBalancerArns"],
    payer_responsibility="payerResponsibility",
    private_dns_name="privateDnsName",
    private_dns_name_configuration=ec2.CfnVPCEndpointService.PrivateDnsNameConfigurationProperty(
        name="name",
        state="state",
        type="type",
        value="value"
    ),
    supported_ip_address_types=["supportedIpAddressTypes"],
    supported_regions=["supportedRegions"],
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

CfnVPCEndpointServiceProps cfnVPCEndpointServiceProps = CfnVPCEndpointServiceProps.builder()
        .acceptanceRequired(false)
        .contributorInsightsEnabled(false)
        .gatewayLoadBalancerArns(List.of("gatewayLoadBalancerArns"))
        .networkLoadBalancerArns(List.of("networkLoadBalancerArns"))
        .payerResponsibility("payerResponsibility")
        .privateDnsName("privateDnsName")
        .privateDnsNameConfiguration(PrivateDnsNameConfigurationProperty.builder()
                .name("name")
                .state("state")
                .type("type")
                .value("value")
                .build())
        .supportedIpAddressTypes(List.of("supportedIpAddressTypes"))
        .supportedRegions(List.of("supportedRegions"))
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;

var cfnVPCEndpointServiceProps = new CfnVPCEndpointServiceProps {
    AcceptanceRequired = false,
    ContributorInsightsEnabled = false,
    GatewayLoadBalancerArns = new [] { "gatewayLoadBalancerArns" },
    NetworkLoadBalancerArns = new [] { "networkLoadBalancerArns" },
    PayerResponsibility = "payerResponsibility",
    PrivateDnsName = "privateDnsName",
    PrivateDnsNameConfiguration = new PrivateDnsNameConfigurationProperty {
        Name = "name",
        State = "state",
        Type = "type",
        Value = "value"
    },
    SupportedIpAddressTypes = new [] { "supportedIpAddressTypes" },
    SupportedRegions = new [] { "supportedRegions" },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnVPCEndpointServiceProps := &CfnVPCEndpointServiceProps{
	AcceptanceRequired: jsii.Boolean(false),
	ContributorInsightsEnabled: jsii.Boolean(false),
	GatewayLoadBalancerArns: []*string{
		jsii.String("gatewayLoadBalancerArns"),
	},
	NetworkLoadBalancerArns: []interface{}{
		jsii.String("networkLoadBalancerArns"),
	},
	PayerResponsibility: jsii.String("payerResponsibility"),
	PrivateDnsName: jsii.String("privateDnsName"),
	PrivateDnsNameConfiguration: &PrivateDnsNameConfigurationProperty{
		Name: jsii.String("name"),
		State: jsii.String("state"),
		Type: jsii.String("type"),
		Value: jsii.String("value"),
	},
	SupportedIpAddressTypes: []*string{
		jsii.String("supportedIpAddressTypes"),
	},
	SupportedRegions: []*string{
		jsii.String("supportedRegions"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

acceptanceRequiredoptionalboolean | IResolvableacceptance_requiredoptionaltyping.Union[bool, IResolvable]acceptanceRequiredoptionalBooleanAcceptanceRequiredoptionalboolAcceptanceRequiredoptionalinterface{} #
Indicates whether requests from service consumers to create an endpoint to your service must be accepted.
contributorInsightsEnabledoptionalboolean | IResolvablecontributor_insights_enabledoptionaltyping.Union[bool, IResolvable]contributorInsightsEnabledoptionalBooleanContributorInsightsEnabledoptionalboolContributorInsightsEnabledoptionalinterface{} #
Indicates whether to enable the built-in Contributor Insights rules provided by AWS PrivateLink .
gatewayLoadBalancerArnsoptionalstring[]gateway_load_balancer_arnsoptionaltyping.List[str]gatewayLoadBalancerArnsoptionalList<String>GatewayLoadBalancerArnsoptionalstring[]GatewayLoadBalancerArnsoptional*[]*string #
The Amazon Resource Names (ARNs) of the Gateway Load Balancers.
networkLoadBalancerArnsoptionalstring | ILoadBalancerRef[]network_load_balancer_arnsoptionaltyping.List[typing.Union[str, ILoadBalancerRef]]networkLoadBalancerArnsoptionalList<String>NetworkLoadBalancerArnsoptionalstring[]NetworkLoadBalancerArnsoptional*[]interface{} #
The Amazon Resource Names (ARNs) of the Network Load Balancers.
payerResponsibilityoptionalstringpayer_responsibilityoptionalstrpayerResponsibilityoptionalStringPayerResponsibilityoptionalstringPayerResponsibilityoptional*string #
The entity that is responsible for the endpoint costs.

The default is the endpoint owner. If you set the payer responsibility to the service owner, you cannot set it back to the endpoint owner.

privateDnsNameoptionalstringprivate_dns_nameoptionalstrprivateDnsNameoptionalStringPrivateDnsNameoptionalstringPrivateDnsNameoptional*string #
privateDnsNameConfigurationoptionalIResolvable | CfnVPCEndpointService.PrivateDnsNameConfigurationPropertyprivate_dns_name_configurationoptionaltyping.Union[IResolvable, PrivateDnsNameConfigurationProperty]privateDnsNameConfigurationoptionalIResolvablePrivateDnsNameConfigurationoptionalIResolvablePrivateDnsNameConfigurationoptionalinterface{} #
supportedIpAddressTypesoptionalstring[]supported_ip_address_typesoptionaltyping.List[str]supportedIpAddressTypesoptionalList<String>SupportedIpAddressTypesoptionalstring[]SupportedIpAddressTypesoptional*[]*string #
The supported IP address types.

The possible values are ipv4 and ipv6 .

supportedRegionsoptionalstring[]supported_regionsoptionaltyping.List[str]supportedRegionsoptionalList<String>SupportedRegionsoptionalstring[]SupportedRegionsoptional*[]*string #
The Regions from which service consumers can access the service.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags to associate with the service.