@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:42.888Z") public class CfnVPCEndpointServicePermissions extends CfnResource implements IInspectable
Grant or revoke permissions for service consumers (users, IAM roles, and AWS accounts) to connect to a VPC endpoint service.
If you grant permissions to all principals, the service is public. Any users who know the name of a public service can send a request to attach an endpoint. If the service does not require manual approval, attachments are automatically approved.
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.*; CfnVPCEndpointServicePermissions cfnVPCEndpointServicePermissions = CfnVPCEndpointServicePermissions.Builder.create(this, "MyCfnVPCEndpointServicePermissions") .serviceId("serviceId") // the properties below are optional .allowedPrincipals(List.of("allowedPrincipals")) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnVPCEndpointServicePermissions.Builder
A fluent builder for
CfnVPCEndpointServicePermissions . |
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 |
---|---|
|
CfnVPCEndpointServicePermissions(Construct scope,
java.lang.String id,
CfnVPCEndpointServicePermissionsProps props)
Create a new `AWS::EC2::VPCEndpointServicePermissions`.
|
protected |
CfnVPCEndpointServicePermissions(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnVPCEndpointServicePermissions(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAllowedPrincipals()
The Amazon Resource Names (ARN) of one or more principals (users, IAM roles, and AWS accounts).
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getServiceId()
The ID of the service.
|
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 |
setAllowedPrincipals(java.util.List<java.lang.String> value)
The Amazon Resource Names (ARN) of one or more principals (users, IAM roles, and AWS accounts).
|
void |
setServiceId(java.lang.String value)
The ID of the service.
|
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 CfnVPCEndpointServicePermissions(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnVPCEndpointServicePermissions(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnVPCEndpointServicePermissions(Construct scope, java.lang.String id, CfnVPCEndpointServicePermissionsProps 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. 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.String getServiceId()
public void setServiceId(java.lang.String value)
public java.util.List<java.lang.String> getAllowedPrincipals()
Permissions are granted to the principals in this list. To grant permissions to all principals, specify an asterisk (*). Permissions are revoked for principals not in this list. If the list is empty, then all permissions are revoked.
public void setAllowedPrincipals(java.util.List<java.lang.String> value)
Permissions are granted to the principals in this list. To grant permissions to all principals, specify an asterisk (*). Permissions are revoked for principals not in this list. If the list is empty, then all permissions are revoked.