Class: Aptible::Auth::ExternalAwsRole
- Defined in:
- lib/aptible/auth/external_aws_role.rb
Instance Method Summary collapse
Methods inherited from Resource
Instance Method Details
#external_aws_oidc_token! ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/aptible/auth/external_aws_role.rb', line 15 def external_aws_oidc_token! response = HyperResource::Link.new( self, 'href' => "#{href}/external_aws_oidc_token" ).post( self.class.normalize_params( aws_account_id: attributes[:aws_account_id], role_arn: attributes[:role_arn], role_type: attributes[:role_type] ) ) ExternalAwsOidcToken.new(response.body) end |