Class: Aws::IAM::Resource

Inherits:
Object
  • Object
show all
Defined in:
aws-sdk-resources/lib/aws-sdk-resources/services/iam.rb

Instance Method Summary collapse

Instance Method Details

#delete_account_aliasSeahorse::Client::Response, false

Returns the response from Client#delete_account_alias if an alias was deleted. Returns false if this account had no alias to remove.

Returns:

  • (Seahorse::Client::Response, false)

    Returns the response from Client#delete_account_alias if an alias was deleted. Returns false if this account had no alias to remove.

See Also:

  • Client#delete_account_alias

9
10
11
12
13
14
15
# File 'aws-sdk-resources/lib/aws-sdk-resources/services/iam.rb', line 9

def 
  if name = @client...first
    @client.(account_alias: name)
  else
    false
  end
end