Class: AWSCDK::VPCLattice::CfnResourceConfiguration::ResourceConfigurationDefinitionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::VPCLattice::CfnResourceConfiguration::ResourceConfigurationDefinitionProperty
- Defined in:
- vpc_lattice/cfn_resource_configuration.rb
Overview
Identifies the resource configuration in one of the following ways:.
- Amazon Resource Name (ARN) - Supported resource-types that are provisioned by AWS services, such as RDS databases, can be identified by their ARN.
- Domain name - Any domain name that is publicly resolvable.
- IP address - For IPv4 and IPv6, only IP addresses in the VPC are supported.
Instance Attribute Summary collapse
-
#arn_resource ⇒ String?
readonly
The Amazon Resource Name (ARN) of the resource configuration.
-
#dns_resource ⇒ AWSCDK::IResolvable, ...
readonly
The DNS name of the resource configuration.
-
#ip_resource ⇒ String?
readonly
The IP address of the resource configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arn_resource: nil, dns_resource: nil, ip_resource: nil) ⇒ ResourceConfigurationDefinitionProperty
constructor
A new instance of ResourceConfigurationDefinitionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(arn_resource: nil, dns_resource: nil, ip_resource: nil) ⇒ ResourceConfigurationDefinitionProperty
Returns a new instance of ResourceConfigurationDefinitionProperty.
737 738 739 740 741 742 743 744 |
# File 'vpc_lattice/cfn_resource_configuration.rb', line 737 def initialize(arn_resource: nil, dns_resource: nil, ip_resource: nil) @arn_resource = arn_resource Jsii::Type.check_type(@arn_resource, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arnResource") unless @arn_resource.nil? @dns_resource = dns_resource.is_a?(Hash) ? ::AWSCDK::VPCLattice::CfnResourceConfiguration::DNSResourceProperty.new(**dns_resource.transform_keys(&:to_sym)) : dns_resource Jsii::Type.check_type(@dns_resource, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c192cGNsYXR0aWNlLkNmblJlc291cmNlQ29uZmlndXJhdGlvbi5EbnNSZXNvdXJjZVByb3BlcnR5In1dfX0=")), "dnsResource") unless @dns_resource.nil? @ip_resource = ip_resource Jsii::Type.check_type(@ip_resource, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipResource") unless @ip_resource.nil? end |
Instance Attribute Details
#arn_resource ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the resource configuration.
For the ARN syntax and format, see ARN format in the AWS Identity and Access Management user guide .
752 753 754 |
# File 'vpc_lattice/cfn_resource_configuration.rb', line 752 def arn_resource @arn_resource end |
#dns_resource ⇒ AWSCDK::IResolvable, ... (readonly)
The DNS name of the resource configuration.
757 758 759 |
# File 'vpc_lattice/cfn_resource_configuration.rb', line 757 def dns_resource @dns_resource end |
#ip_resource ⇒ String? (readonly)
The IP address of the resource configuration.
762 763 764 |
# File 'vpc_lattice/cfn_resource_configuration.rb', line 762 def ip_resource @ip_resource end |
Class Method Details
.jsii_properties ⇒ Object
764 765 766 767 768 769 770 |
# File 'vpc_lattice/cfn_resource_configuration.rb', line 764 def self.jsii_properties { :arn_resource => "arnResource", :dns_resource => "dnsResource", :ip_resource => "ipResource", } end |
Instance Method Details
#to_jsii ⇒ Object
772 773 774 775 776 777 778 779 780 |
# File 'vpc_lattice/cfn_resource_configuration.rb', line 772 def to_jsii result = {} result.merge!({ "arnResource" => @arn_resource, "dnsResource" => @dns_resource, "ipResource" => @ip_resource, }) result.compact end |