Class: AWSCDK::ServiceCatalogAppRegistry::CfnResourceAssociationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ServiceCatalogAppRegistry::CfnResourceAssociationProps
- Defined in:
- service_catalog_app_registry/cfn_resource_association_props.rb
Overview
Properties for defining a CfnResourceAssociation.
Instance Attribute Summary collapse
-
#application ⇒ String
readonly
The name or ID of the application.
-
#resource ⇒ String
readonly
The name or ID of the resource of which the application will be associated.
-
#resource_type ⇒ String
readonly
The type of resource of which the application will be associated.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(application:, resource:, resource_type:) ⇒ CfnResourceAssociationProps
constructor
A new instance of CfnResourceAssociationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(application:, resource:, resource_type:) ⇒ CfnResourceAssociationProps
Returns a new instance of CfnResourceAssociationProps.
12 13 14 15 16 17 18 19 |
# File 'service_catalog_app_registry/cfn_resource_association_props.rb', line 12 def initialize(application:, resource:, resource_type:) @application = application Jsii::Type.check_type(@application, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "application") @resource = resource Jsii::Type.check_type(@resource, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resource") @resource_type = resource_type Jsii::Type.check_type(@resource_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceType") end |
Instance Attribute Details
#application ⇒ String (readonly)
The name or ID of the application.
25 26 27 |
# File 'service_catalog_app_registry/cfn_resource_association_props.rb', line 25 def application @application end |
#resource ⇒ String (readonly)
The name or ID of the resource of which the application will be associated.
30 31 32 |
# File 'service_catalog_app_registry/cfn_resource_association_props.rb', line 30 def resource @resource end |
#resource_type ⇒ String (readonly)
The type of resource of which the application will be associated.
35 36 37 |
# File 'service_catalog_app_registry/cfn_resource_association_props.rb', line 35 def resource_type @resource_type end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'service_catalog_app_registry/cfn_resource_association_props.rb', line 37 def self.jsii_properties { :application => "application", :resource => "resource", :resource_type => "resourceType", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'service_catalog_app_registry/cfn_resource_association_props.rb', line 45 def to_jsii result = {} result.merge!({ "application" => @application, "resource" => @resource, "resourceType" => @resource_type, }) result.compact end |