Class: Aws::IAM::Resource
- Inherits:
-
Object
- Object
- Aws::IAM::Resource
- Defined in:
- lib/aws-sdk-resources/services/iam.rb
Instance Method Summary collapse
-
#delete_account_alias ⇒ Seahorse::Client::Response, false
Returns the response from Client#delete_account_alias if an alias was deleted.
Instance Method Details
#delete_account_alias ⇒ 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.
9 10 11 12 13 14 15 |
# File 'lib/aws-sdk-resources/services/iam.rb', line 9 def delete_account_alias if name = @client.list_account_aliases.account_aliases.first @client.delete_account_alias(account_alias: name) else false end end |