Class CfnApp.PhysicalResourceIdProperty.Builder
java.lang.Object
software.amazon.awscdk.services.resiliencehub.CfnApp.PhysicalResourceIdProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApp.PhysicalResourceIdProperty>
- Enclosing interface:
CfnApp.PhysicalResourceIdProperty
@Stability(Stable)
public static final class CfnApp.PhysicalResourceIdProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApp.PhysicalResourceIdProperty>
A builder for
CfnApp.PhysicalResourceIdProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionawsAccountId(String awsAccountId) Sets the value ofCfnApp.PhysicalResourceIdProperty.getAwsAccountId()Sets the value ofCfnApp.PhysicalResourceIdProperty.getAwsRegion()build()Builds the configured instance.identifier(String identifier) Sets the value ofCfnApp.PhysicalResourceIdProperty.getIdentifier()Sets the value ofCfnApp.PhysicalResourceIdProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
identifier
Sets the value ofCfnApp.PhysicalResourceIdProperty.getIdentifier()- Parameters:
identifier- Identifier of the physical resource. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnApp.PhysicalResourceIdProperty.getType()- Parameters:
type- Specifies the type of physical resource identifier. This parameter is required.- Arn - The resource identifier is an Amazon Resource Name (ARN) and it can identify the following list of resources:
AWS::ECS::ServiceAWS::EFS::FileSystemAWS::ElasticLoadBalancingV2::LoadBalancerAWS::Lambda::FunctionAWS::SNS::Topic- Native - The resource identifier is an AWS Resilience Hub -native identifier and it can identify the following list of resources:
AWS::ApiGateway::RestApiAWS::ApiGatewayV2::ApiAWS::AutoScaling::AutoScalingGroupAWS::DocDB::DBClusterAWS::DocDB::DBGlobalClusterAWS::DocDB::DBInstanceAWS::DynamoDB::GlobalTableAWS::DynamoDB::TableAWS::EC2::EC2FleetAWS::EC2::InstanceAWS::EC2::NatGatewayAWS::EC2::VolumeAWS::ElasticLoadBalancing::LoadBalancerAWS::RDS::DBClusterAWS::RDS::DBInstanceAWS::RDS::GlobalClusterAWS::Route53::RecordSetAWS::S3::BucketAWS::SQS::Queue
- Returns:
this
-
awsAccountId
@Stability(Stable) public CfnApp.PhysicalResourceIdProperty.Builder awsAccountId(String awsAccountId) Sets the value ofCfnApp.PhysicalResourceIdProperty.getAwsAccountId()- Parameters:
awsAccountId- The AWS account that owns the physical resource.- Returns:
this
-
awsRegion
Sets the value ofCfnApp.PhysicalResourceIdProperty.getAwsRegion()- Parameters:
awsRegion- The AWS Region that the physical resource is located in.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApp.PhysicalResourceIdProperty>- Returns:
- a new instance of
CfnApp.PhysicalResourceIdProperty - Throws:
NullPointerException- if any required attribute was not provided
-