Class: AWSCDK::Route53Profiles::CfnProfileResourceAssociationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53Profiles::CfnProfileResourceAssociationProps
- Defined in:
- route53_profiles/cfn_profile_resource_association_props.rb
Overview
Properties for defining a CfnProfileResourceAssociation.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
Name of the Profile resource association.
-
#profile_id ⇒ String
readonly
Profile ID of the Profile that the resources are associated with.
-
#resource_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the resource association.
-
#resource_properties ⇒ String?
readonly
If the DNS resource is a DNS Firewall rule group, this indicates the priority.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, profile_id:, resource_arn:, resource_properties: nil) ⇒ CfnProfileResourceAssociationProps
constructor
A new instance of CfnProfileResourceAssociationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, profile_id:, resource_arn:, resource_properties: nil) ⇒ CfnProfileResourceAssociationProps
Returns a new instance of CfnProfileResourceAssociationProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'route53_profiles/cfn_profile_resource_association_props.rb', line 13 def initialize(name:, profile_id:, resource_arn:, resource_properties: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @profile_id = profile_id Jsii::Type.check_type(@profile_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "profileId") @resource_arn = resource_arn Jsii::Type.check_type(@resource_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceArn") @resource_properties = resource_properties Jsii::Type.check_type(@resource_properties, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceProperties") unless @resource_properties.nil? end |
Instance Attribute Details
#name ⇒ String (readonly)
Name of the Profile resource association.
28 29 30 |
# File 'route53_profiles/cfn_profile_resource_association_props.rb', line 28 def name @name end |
#profile_id ⇒ String (readonly)
Profile ID of the Profile that the resources are associated with.
33 34 35 |
# File 'route53_profiles/cfn_profile_resource_association_props.rb', line 33 def profile_id @profile_id end |
#resource_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the resource association.
38 39 40 |
# File 'route53_profiles/cfn_profile_resource_association_props.rb', line 38 def resource_arn @resource_arn end |
#resource_properties ⇒ String? (readonly)
If the DNS resource is a DNS Firewall rule group, this indicates the priority.
43 44 45 |
# File 'route53_profiles/cfn_profile_resource_association_props.rb', line 43 def resource_properties @resource_properties end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'route53_profiles/cfn_profile_resource_association_props.rb', line 45 def self.jsii_properties { :name => "name", :profile_id => "profileId", :resource_arn => "resourceArn", :resource_properties => "resourceProperties", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'route53_profiles/cfn_profile_resource_association_props.rb', line 54 def to_jsii result = {} result.merge!({ "name" => @name, "profileId" => @profile_id, "resourceArn" => @resource_arn, "resourceProperties" => @resource_properties, }) result.compact end |