Class: AWSCDK::DataZone::CfnSubscriptionTargetProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
data_zone/cfn_subscription_target_props.rb

Overview

Properties for defining a CfnSubscriptionTarget.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(applicable_asset_types:, authorized_principals:, domain_identifier:, environment_identifier:, name:, subscription_target_config:, type:, manage_access_role: nil, provider: nil) ⇒ CfnSubscriptionTargetProps

Returns a new instance of CfnSubscriptionTargetProps.

Parameters:

  • applicable_asset_types (Array<String>)

    The asset types included in the subscription target.

  • authorized_principals (Array<String>)

    The authorized principals included in the subscription target.

  • domain_identifier (String)

    The ID of the Amazon DataZone domain in which subscription target is created.

  • environment_identifier (String)

    The ID of the environment in which subscription target is created.

  • name (String)

    The name of the subscription target.

  • subscription_target_config (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::DataZone::CfnSubscriptionTarget::SubscriptionTargetFormProperty>)

    The configuration of the subscription target.

  • type (String)

    The type of the subscription target.

  • manage_access_role (String, nil) (defaults to: nil)

    The manage access role that is used to create the subscription target.

  • provider (String, nil) (defaults to: nil)

    The provider of the subscription target.



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'data_zone/cfn_subscription_target_props.rb', line 18

def initialize(applicable_asset_types:, authorized_principals:, domain_identifier:, environment_identifier:, name:, subscription_target_config:, type:, manage_access_role: nil, provider: nil)
  @applicable_asset_types = applicable_asset_types
  Jsii::Type.check_type(@applicable_asset_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "applicableAssetTypes")
  @authorized_principals = authorized_principals
  Jsii::Type.check_type(@authorized_principals, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "authorizedPrincipals")
  @domain_identifier = domain_identifier
  Jsii::Type.check_type(@domain_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainIdentifier")
  @environment_identifier = environment_identifier
  Jsii::Type.check_type(@environment_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "environmentIdentifier")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @subscription_target_config = subscription_target_config
  Jsii::Type.check_type(@subscription_target_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZGF0YXpvbmUuQ2ZuU3Vic2NyaXB0aW9uVGFyZ2V0LlN1YnNjcmlwdGlvblRhcmdldEZvcm1Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "subscriptionTargetConfig")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @manage_access_role = manage_access_role
  Jsii::Type.check_type(@manage_access_role, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "manageAccessRole") unless @manage_access_role.nil?
  @provider = provider
  Jsii::Type.check_type(@provider, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "provider") unless @provider.nil?
end

Instance Attribute Details

#applicable_asset_typesArray<String> (readonly)

The asset types included in the subscription target.



43
44
45
# File 'data_zone/cfn_subscription_target_props.rb', line 43

def applicable_asset_types
  @applicable_asset_types
end

#authorized_principalsArray<String> (readonly)

The authorized principals included in the subscription target.



48
49
50
# File 'data_zone/cfn_subscription_target_props.rb', line 48

def authorized_principals
  @authorized_principals
end

#domain_identifierString (readonly)

The ID of the Amazon DataZone domain in which subscription target is created.



53
54
55
# File 'data_zone/cfn_subscription_target_props.rb', line 53

def domain_identifier
  @domain_identifier
end

#environment_identifierString (readonly)

The ID of the environment in which subscription target is created.



58
59
60
# File 'data_zone/cfn_subscription_target_props.rb', line 58

def environment_identifier
  @environment_identifier
end

#manage_access_roleString? (readonly)

The manage access role that is used to create the subscription target.



78
79
80
# File 'data_zone/cfn_subscription_target_props.rb', line 78

def manage_access_role
  @manage_access_role
end

#nameString (readonly)

The name of the subscription target.



63
64
65
# File 'data_zone/cfn_subscription_target_props.rb', line 63

def name
  @name
end

#providerString? (readonly)

The provider of the subscription target.



83
84
85
# File 'data_zone/cfn_subscription_target_props.rb', line 83

def provider
  @provider
end

#subscription_target_configAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::DataZone::CfnSubscriptionTarget::SubscriptionTargetFormProperty> (readonly)

The configuration of the subscription target.



68
69
70
# File 'data_zone/cfn_subscription_target_props.rb', line 68

def subscription_target_config
  @subscription_target_config
end

#typeString (readonly)

The type of the subscription target.



73
74
75
# File 'data_zone/cfn_subscription_target_props.rb', line 73

def type
  @type
end

Class Method Details

.jsii_propertiesObject



85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'data_zone/cfn_subscription_target_props.rb', line 85

def self.jsii_properties
  {
    :applicable_asset_types => "applicableAssetTypes",
    :authorized_principals => "authorizedPrincipals",
    :domain_identifier => "domainIdentifier",
    :environment_identifier => "environmentIdentifier",
    :name => "name",
    :subscription_target_config => "subscriptionTargetConfig",
    :type => "type",
    :manage_access_role => "manageAccessRole",
    :provider => "provider",
  }
end

Instance Method Details

#to_jsiiObject



99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# File 'data_zone/cfn_subscription_target_props.rb', line 99

def to_jsii
  result = {}
  result.merge!({
    "applicableAssetTypes" => @applicable_asset_types,
    "authorizedPrincipals" => @authorized_principals,
    "domainIdentifier" => @domain_identifier,
    "environmentIdentifier" => @environment_identifier,
    "name" => @name,
    "subscriptionTargetConfig" => @subscription_target_config,
    "type" => @type,
    "manageAccessRole" => @manage_access_role,
    "provider" => @provider,
  })
  result.compact
end