Class: AWSCDK::ServiceCatalogAppRegistry::CfnResourceAssociationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
service_catalog_app_registry/cfn_resource_association_props.rb

Overview

Properties for defining a CfnResourceAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application:, resource:, resource_type:) ⇒ CfnResourceAssociationProps

Returns a new instance of CfnResourceAssociationProps.

Parameters:

  • application (String)

    The name or ID of the application.

  • resource (String)

    The name or ID of the resource of which the application will be associated.

  • resource_type (String)

    The type of resource of which the application will be associated.



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

#applicationString (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

#resourceString (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_typeString (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_propertiesObject



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_jsiiObject



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