Class: AWSCDK::Interfaces::AWSDatazone::PolicyGrantReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_datazone/policy_grant_reference.rb

Overview

A reference to a PolicyGrant resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain_identifier:, entity_identifier:, entity_type:, grant_id:, policy_type:) ⇒ PolicyGrantReference

Returns a new instance of PolicyGrantReference.

Parameters:

  • domain_identifier (String)

    The DomainIdentifier of the PolicyGrant resource.

  • entity_identifier (String)

    The EntityIdentifier of the PolicyGrant resource.

  • entity_type (String)

    The EntityType of the PolicyGrant resource.

  • grant_id (String)

    The GrantId of the PolicyGrant resource.

  • policy_type (String)

    The PolicyType of the PolicyGrant resource.



12
13
14
15
16
17
18
19
20
21
22
23
# File 'interfaces/aws_datazone/policy_grant_reference.rb', line 12

def initialize(domain_identifier:, entity_identifier:, entity_type:, grant_id:, policy_type:)
  @domain_identifier = domain_identifier
  Jsii::Type.check_type(@domain_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainIdentifier")
  @entity_identifier = entity_identifier
  Jsii::Type.check_type(@entity_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "entityIdentifier")
  @entity_type = entity_type
  Jsii::Type.check_type(@entity_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "entityType")
  @grant_id = grant_id
  Jsii::Type.check_type(@grant_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "grantId")
  @policy_type = policy_type
  Jsii::Type.check_type(@policy_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyType")
end

Instance Attribute Details

#domain_identifierString (readonly)

The DomainIdentifier of the PolicyGrant resource.

Returns:

  • (String)


28
29
30
# File 'interfaces/aws_datazone/policy_grant_reference.rb', line 28

def domain_identifier
  @domain_identifier
end

#entity_identifierString (readonly)

The EntityIdentifier of the PolicyGrant resource.

Returns:

  • (String)


32
33
34
# File 'interfaces/aws_datazone/policy_grant_reference.rb', line 32

def entity_identifier
  @entity_identifier
end

#entity_typeString (readonly)

The EntityType of the PolicyGrant resource.

Returns:

  • (String)


36
37
38
# File 'interfaces/aws_datazone/policy_grant_reference.rb', line 36

def entity_type
  @entity_type
end

#grant_idString (readonly)

The GrantId of the PolicyGrant resource.

Returns:

  • (String)


40
41
42
# File 'interfaces/aws_datazone/policy_grant_reference.rb', line 40

def grant_id
  @grant_id
end

#policy_typeString (readonly)

The PolicyType of the PolicyGrant resource.

Returns:

  • (String)


44
45
46
# File 'interfaces/aws_datazone/policy_grant_reference.rb', line 44

def policy_type
  @policy_type
end

Class Method Details

.jsii_propertiesObject



46
47
48
49
50
51
52
53
54
# File 'interfaces/aws_datazone/policy_grant_reference.rb', line 46

def self.jsii_properties
  {
    :domain_identifier => "domainIdentifier",
    :entity_identifier => "entityIdentifier",
    :entity_type => "entityType",
    :grant_id => "grantId",
    :policy_type => "policyType",
  }
end

Instance Method Details

#to_jsiiObject



56
57
58
59
60
61
62
63
64
65
66
# File 'interfaces/aws_datazone/policy_grant_reference.rb', line 56

def to_jsii
  result = {}
  result.merge!({
    "domainIdentifier" => @domain_identifier,
    "entityIdentifier" => @entity_identifier,
    "entityType" => @entity_type,
    "grantId" => @grant_id,
    "policyType" => @policy_type,
  })
  result.compact
end