@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-09T19:16:37.341Z") public class CfnVPCEndpointService extends CfnResource implements IInspectable
Creates a VPC endpoint service configuration to which service consumers ( AWS accounts, IAM users, and IAM roles) can connect.
To create an endpoint service configuration, you must first create one of the following for your service:
For more information, see the AWS PrivateLink User Guide .
Example:
// 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.*; CfnVPCEndpointService cfnVPCEndpointService = CfnVPCEndpointService.Builder.create(this, "MyCfnVPCEndpointService") .acceptanceRequired(false) .contributorInsightsEnabled(false) .gatewayLoadBalancerArns(List.of("gatewayLoadBalancerArns")) .networkLoadBalancerArns(List.of("networkLoadBalancerArns")) .payerResponsibility("payerResponsibility") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnVPCEndpointService.Builder
A fluent builder for
CfnVPCEndpointService . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnVPCEndpointService(Construct scope,
java.lang.String id)
Create a new `AWS::EC2::VPCEndpointService`.
|
|
CfnVPCEndpointService(Construct scope,
java.lang.String id,
CfnVPCEndpointServiceProps props)
Create a new `AWS::EC2::VPCEndpointService`.
|
protected |
CfnVPCEndpointService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnVPCEndpointService(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAcceptanceRequired()
Indicates whether requests from service consumers to create an endpoint to your service must be accepted.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getContributorInsightsEnabled()
`AWS::EC2::VPCEndpointService.ContributorInsightsEnabled`.
|
java.util.List<java.lang.String> |
getGatewayLoadBalancerArns()
The Amazon Resource Names (ARNs) of one or more Gateway Load Balancers.
|
java.util.List<java.lang.String> |
getNetworkLoadBalancerArns()
The Amazon Resource Names (ARNs) of one or more Network Load Balancers for your service.
|
java.lang.String |
getPayerResponsibility()
The entity that is responsible for the endpoint costs.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setAcceptanceRequired(java.lang.Boolean value)
Indicates whether requests from service consumers to create an endpoint to your service must be accepted.
|
void |
setAcceptanceRequired(IResolvable value)
Indicates whether requests from service consumers to create an endpoint to your service must be accepted.
|
void |
setContributorInsightsEnabled(java.lang.Boolean value)
`AWS::EC2::VPCEndpointService.ContributorInsightsEnabled`.
|
void |
setContributorInsightsEnabled(IResolvable value)
`AWS::EC2::VPCEndpointService.ContributorInsightsEnabled`.
|
void |
setGatewayLoadBalancerArns(java.util.List<java.lang.String> value)
The Amazon Resource Names (ARNs) of one or more Gateway Load Balancers.
|
void |
setNetworkLoadBalancerArns(java.util.List<java.lang.String> value)
The Amazon Resource Names (ARNs) of one or more Network Load Balancers for your service.
|
void |
setPayerResponsibility(java.lang.String value)
The entity that is responsible for the endpoint costs.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnVPCEndpointService(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnVPCEndpointService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnVPCEndpointService(Construct scope, java.lang.String id, CfnVPCEndpointServiceProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties.public CfnVPCEndpointService(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.Object getAcceptanceRequired()
public void setAcceptanceRequired(java.lang.Boolean value)
public void setAcceptanceRequired(IResolvable value)
public java.lang.Object getContributorInsightsEnabled()
public void setContributorInsightsEnabled(java.lang.Boolean value)
public void setContributorInsightsEnabled(IResolvable value)
public java.util.List<java.lang.String> getGatewayLoadBalancerArns()
public void setGatewayLoadBalancerArns(java.util.List<java.lang.String> value)
public java.util.List<java.lang.String> getNetworkLoadBalancerArns()
public void setNetworkLoadBalancerArns(java.util.List<java.lang.String> value)
public java.lang.String getPayerResponsibility()
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.
public void setPayerResponsibility(java.lang.String value)
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.