Class CfnWorkspace.NetworkAccessControlProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkspace.NetworkAccessControlProperty>
- Enclosing interface:
- CfnWorkspace.NetworkAccessControlProperty
CfnWorkspace.NetworkAccessControlProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.prefixListIds
(List<String> prefixListIds) Sets the value ofCfnWorkspace.NetworkAccessControlProperty.getPrefixListIds()
Sets the value ofCfnWorkspace.NetworkAccessControlProperty.getVpceIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
prefixListIds
@Stability(Stable) public CfnWorkspace.NetworkAccessControlProperty.Builder prefixListIds(List<String> prefixListIds) Sets the value ofCfnWorkspace.NetworkAccessControlProperty.getPrefixListIds()
- Parameters:
prefixListIds
- An array of prefix list IDs. A prefix list is a list of CIDR ranges of IP addresses. The IP addresses specified are allowed to access your workspace. If the list is not included in the configuration (passed an empty array) then no IP addresses are allowed to access the workspace. You create a prefix list using the Amazon VPC console.Prefix list IDs have the format
pl- *1a2b3c4d*
.For more information about prefix lists, see Group CIDR blocks using managed prefix lists in the Amazon Virtual Private Cloud User Guide .
- Returns:
this
-
vpceIds
@Stability(Stable) public CfnWorkspace.NetworkAccessControlProperty.Builder vpceIds(List<String> vpceIds) Sets the value ofCfnWorkspace.NetworkAccessControlProperty.getVpceIds()
- Parameters:
vpceIds
- An array of Amazon VPC endpoint IDs for the workspace. You can create VPC endpoints to your Amazon Managed Grafana workspace for access from within a VPC. If aNetworkAccessConfiguration
is specified then only VPC endpoints specified here are allowed to access the workspace. If you pass in an empty array of strings, then no VPCs are allowed to access the workspace.VPC endpoint IDs have the format
vpce- *1a2b3c4d*
.For more information about creating an interface VPC endpoint, see Interface VPC endpoints in the Amazon Managed Grafana User Guide .
The only VPC endpoints that can be specified here are interface VPC endpoints for Grafana workspaces (using the
com.amazonaws.[region].grafana-workspace
service endpoint). Other VPC endpoints are ignored.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWorkspace.NetworkAccessControlProperty>
- Returns:
- a new instance of
CfnWorkspace.NetworkAccessControlProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-