@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-22T09:30:50.076Z") @Stability(value=Stable) public class CfnClusterSubnetGroup extends CfnResource implements IInspectable
Specifies an Amazon Redshift subnet group. You must provide a list of one or more subnets in your existing Amazon Virtual Private Cloud ( Amazon VPC ) when creating Amazon Redshift subnet group.
For information about subnet groups, go to Amazon Redshift Cluster Subnet Groups in the Amazon Redshift Cluster Management 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.redshift.*; CfnClusterSubnetGroup cfnClusterSubnetGroup = CfnClusterSubnetGroup.Builder.create(this, "MyCfnClusterSubnetGroup") .description("description") .subnetIds(List.of("subnetIds")) // the properties below are optional .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnClusterSubnetGroup.Builder
A fluent builder for
CfnClusterSubnetGroup . |
software.amazon.jsii.JsiiObject.InitializationMode
IInspectable.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 |
---|---|
|
CfnClusterSubnetGroup(software.constructs.Construct scope,
String id,
CfnClusterSubnetGroupProps props)
Create a new `AWS::Redshift::ClusterSubnetGroup`.
|
protected |
CfnClusterSubnetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnClusterSubnetGroup(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
A description for the subnet group.
|
List<String> |
getSubnetIds()
An array of VPC subnet IDs.
|
TagManager |
getTags()
Specifies an arbitrary set of tags (key–value pairs) to associate with this subnet group.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
A description for the subnet group.
|
void |
setSubnetIds(List<String> value)
An array of VPC subnet IDs.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnClusterSubnetGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnClusterSubnetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public CfnClusterSubnetGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnClusterSubnetGroupProps 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 IInspectable
inspector
- - 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 CfnResource
props
- This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties
in class CfnResource
@Stability(value=Stable) @NotNull public TagManager getTags()
Use tags to manage your resources.
@Stability(value=Stable) @NotNull public String getDescription()
@Stability(value=Stable) public void setDescription(@NotNull String value)
@Stability(value=Stable) @NotNull public List<String> getSubnetIds()
A maximum of 20 subnets can be modified in a single request.
Copyright © 2022. All rights reserved.