Class: Aws::S3::AccessGrantsCredentials Private

Inherits:
Object
  • Object
show all
Includes:
CredentialProvider, RefreshingCredentials
Defined in:
lib/aws-sdk-s3/access_grants_credentials.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

API:

  • private

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ AccessGrantsCredentials

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of AccessGrantsCredentials.

API:

  • private



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/aws-sdk-s3/access_grants_credentials.rb', line 12

def initialize(options = {})
  @client = options[:client]
  @get_data_access_params = {}
  options.each_pair do |key, value|
    if self.class.get_data_access_options.include?(key)
      @get_data_access_params[key] = value
    end
  end
  @async_refresh = true
  super
end

Instance Attribute Details

#clientS3Control::Client (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

API:

  • private



25
26
27
# File 'lib/aws-sdk-s3/access_grants_credentials.rb', line 25

def client
  @client
end

#matched_grant_targetString (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

API:

  • private



28
29
30
# File 'lib/aws-sdk-s3/access_grants_credentials.rb', line 28

def matched_grant_target
  @matched_grant_target
end

Class Method Details

.get_data_access_optionsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



47
48
49
50
51
52
# File 'lib/aws-sdk-s3/access_grants_credentials.rb', line 47

def get_data_access_options
  @gdao ||= begin
    input = Aws::S3Control::Client.api.operation(:get_data_access).input
    Set.new(input.shape.member_names)
  end
end