Class: AWSCDK::Interfaces::AWSS3::AccessGrantReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/awss3/access_grant_reference.rb

Overview

A reference to a AccessGrant resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_grant_arn:, access_grant_id:) ⇒ AccessGrantReference

Returns a new instance of AccessGrantReference.

Parameters:

  • access_grant_arn (String)

    The ARN of the AccessGrant resource.

  • access_grant_id (String)

    The AccessGrantId of the AccessGrant resource.



9
10
11
12
13
14
# File 'interfaces/awss3/access_grant_reference.rb', line 9

def initialize(access_grant_arn:, access_grant_id:)
  @access_grant_arn = access_grant_arn
  Jsii::Type.check_type(@access_grant_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessGrantArn")
  @access_grant_id = access_grant_id
  Jsii::Type.check_type(@access_grant_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessGrantId")
end

Instance Attribute Details

#access_grant_arnString (readonly)

The ARN of the AccessGrant resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/awss3/access_grant_reference.rb', line 19

def access_grant_arn
  @access_grant_arn
end

#access_grant_idString (readonly)

The AccessGrantId of the AccessGrant resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/awss3/access_grant_reference.rb', line 23

def access_grant_id
  @access_grant_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/awss3/access_grant_reference.rb', line 25

def self.jsii_properties
  {
    :access_grant_arn => "accessGrantArn",
    :access_grant_id => "accessGrantId",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/awss3/access_grant_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "accessGrantArn" => @access_grant_arn,
    "accessGrantId" => @access_grant_id,
  })
  result.compact
end