@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:49.948Z") public class CfnResourceSet extends CfnResource implements IInspectable
Creates a resource set. A resource set is a set of resources of one type that span multiple cells. You can associate a resource set with a readiness check to monitor the resources for failover readiness.
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.route53recoveryreadiness.*; CfnResourceSet cfnResourceSet = CfnResourceSet.Builder.create(this, "MyCfnResourceSet") .resources(List.of(ResourceProperty.builder() .componentId("componentId") .dnsTargetResource(DNSTargetResourceProperty.builder() .domainName("domainName") .hostedZoneArn("hostedZoneArn") .recordSetId("recordSetId") .recordType("recordType") .targetResource(TargetResourceProperty.builder() .nlbResource(NLBResourceProperty.builder() .arn("arn") .build()) .r53Resource(R53ResourceRecordProperty.builder() .domainName("domainName") .recordSetId("recordSetId") .build()) .build()) .build()) .readinessScopes(List.of("readinessScopes")) .resourceArn("resourceArn") .build())) .resourceSetType("resourceSetType") // the properties below are optional .resourceSetName("resourceSetName") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnResourceSet.Builder
A fluent builder for
CfnResourceSet . |
static interface |
CfnResourceSet.DNSTargetResourceProperty
A component for DNS/routing control readiness checks and architecture checks.
|
static interface |
CfnResourceSet.NLBResourceProperty
The Network Load Balancer resource that a DNS target resource points to.
|
static interface |
CfnResourceSet.R53ResourceRecordProperty
The Route 53 resource that a DNS target resource record points to.
|
static interface |
CfnResourceSet.ResourceProperty
The resource element of a resource set.
|
static interface |
CfnResourceSet.TargetResourceProperty
The target resource that the Route 53 record points to.
|
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 |
---|---|
|
CfnResourceSet(Construct scope,
java.lang.String id,
CfnResourceSetProps props)
Create a new `AWS::Route53RecoveryReadiness::ResourceSet`.
|
protected |
CfnResourceSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnResourceSet(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrResourceSetArn()
The Amazon Resource Name (ARN) of the resource set.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getResources()
A list of resource objects in the resource set.
|
java.lang.String |
getResourceSetName()
The name of the resource set to create.
|
java.lang.String |
getResourceSetType()
The resource type of the resources in the resource set.
|
TagManager |
getTags()
A tag to associate with the parameters for a resource set.
|
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 |
setResources(IResolvable value)
A list of resource objects in the resource set.
|
void |
setResources(java.util.List<java.lang.Object> value)
A list of resource objects in the resource set.
|
void |
setResourceSetName(java.lang.String value)
The name of the resource set to create.
|
void |
setResourceSetType(java.lang.String value)
The resource type of the resources in the resource set.
|
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 CfnResourceSet(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnResourceSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnResourceSet(Construct scope, java.lang.String id, CfnResourceSetProps 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.public java.lang.String getAttrResourceSetArn()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.Object getResources()
public void setResources(IResolvable value)
public void setResources(java.util.List<java.lang.Object> value)
public java.lang.String getResourceSetType()
AWS::AutoScaling::AutoScalingGroup, AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::MSK::Cluster, AWS::RDS::DBCluster, AWS::Route53::HealthCheck, AWS::SQS::Queue, AWS::SNS::Topic, AWS::SNS::Subscription, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway, AWS::Route53RecoveryReadiness::DNSTargetResource.
Note that AWS::Route53RecoveryReadiness::DNSTargetResource is only used for this setting. It isn't an actual AWS CloudFormation resource type.
public void setResourceSetType(java.lang.String value)
AWS::AutoScaling::AutoScalingGroup, AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::MSK::Cluster, AWS::RDS::DBCluster, AWS::Route53::HealthCheck, AWS::SQS::Queue, AWS::SNS::Topic, AWS::SNS::Subscription, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway, AWS::Route53RecoveryReadiness::DNSTargetResource.
Note that AWS::Route53RecoveryReadiness::DNSTargetResource is only used for this setting. It isn't an actual AWS CloudFormation resource type.
public java.lang.String getResourceSetName()
public void setResourceSetName(java.lang.String value)