@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.376Z") @Stability(value=Stable) public class CfnVPCEndpointServicePermissions extends CfnResource implements IInspectable
Grant or revoke permissions for service consumers (IAM 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. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnVPCEndpointServicePermissions(software.constructs.Construct scope,
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 |
|---|---|
List<String> |
getAllowedPrincipals()
The Amazon Resource Names (ARN) of one or more principals (IAM users, IAM roles, and AWS accounts).
|
protected Map<String,Object> |
getCfnProperties() |
String |
getServiceId()
The ID of the service.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAllowedPrincipals(List<String> value)
The Amazon Resource Names (ARN) of one or more principals (IAM users, IAM roles, and AWS accounts).
|
void |
setServiceId(String value)
The ID of the service.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnVPCEndpointServicePermissions(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnVPCEndpointServicePermissions(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnVPCEndpointServicePermissions(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getServiceId()
@Stability(value=Stable)
public void setServiceId(@NotNull
String value)
@Stability(value=Stable) @Nullable public List<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.
@Stability(value=Stable)
public void setAllowedPrincipals(@Nullable
List<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.
Copyright © 2022. All rights reserved.