Class: Aws::IAM::AssumeRolePolicy
- Inherits:
-
Object
- Object
- Aws::IAM::AssumeRolePolicy
- Extended by:
- Deprecations
- Defined in:
- lib/aws-sdk-iam/assume_role_policy.rb
Defined Under Namespace
Classes: Collection
Read-Only Attributes collapse
Actions collapse
Associations collapse
- #identifiers ⇒ Object deprecated private Deprecated.
- #role ⇒ Role
Instance Method Summary collapse
- #client ⇒ Client
- #data ⇒ EmptyStructure private
-
#data_loaded? ⇒ Boolean
Returns ‘true` if this resource is loaded.
-
#initialize(*args) ⇒ AssumeRolePolicy
constructor
A new instance of AssumeRolePolicy.
- #load ⇒ Object (also: #reload) private
Constructor Details
#initialize(role_name, options = {}) ⇒ AssumeRolePolicy #initialize(options = {}) ⇒ AssumeRolePolicy
Returns a new instance of AssumeRolePolicy.
19 20 21 22 23 24 |
# File 'lib/aws-sdk-iam/assume_role_policy.rb', line 19 def initialize(*args) = Hash === args.last ? args.pop.dup : {} @role_name = extract_role_name(args, ) @data = Aws::EmptyStructure.new @client = .delete(:client) || Client.new() end |
Instance Method Details
#client ⇒ Client
36 37 38 |
# File 'lib/aws-sdk-iam/assume_role_policy.rb', line 36 def client @client end |
#data ⇒ EmptyStructure
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.
50 51 52 |
# File 'lib/aws-sdk-iam/assume_role_policy.rb', line 50 def data @data end |
#data_loaded? ⇒ Boolean
57 58 59 |
# File 'lib/aws-sdk-iam/assume_role_policy.rb', line 57 def data_loaded? !!@data end |
#identifiers ⇒ Object
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.
Deprecated.
102 103 104 |
# File 'lib/aws-sdk-iam/assume_role_policy.rb', line 102 def identifiers { role_name: @role_name } end |
#load ⇒ Object Also known as: reload
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.
42 43 44 45 |
# File 'lib/aws-sdk-iam/assume_role_policy.rb', line 42 def load msg = "#load is not implemented, data only available via enumeration" raise NotImplementedError, msg end |
#role ⇒ Role
93 94 95 96 97 98 |
# File 'lib/aws-sdk-iam/assume_role_policy.rb', line 93 def role Role.new( name: @role_name, client: @client ) end |
#role_name ⇒ String
29 30 31 |
# File 'lib/aws-sdk-iam/assume_role_policy.rb', line 29 def role_name @role_name end |
#update(options = {}) ⇒ EmptyStructure
84 85 86 87 88 |
# File 'lib/aws-sdk-iam/assume_role_policy.rb', line 84 def update( = {}) = .merge(role_name: @role_name) resp = @client.update_assume_role_policy() resp.data end |