Class: CfIamAccessKey
- Inherits:
-
Object
show all
- Includes:
- CfBase
- Defined in:
- lib/cf_factory/iam/cf_iam_access_key.rb
Instance Method Summary
collapse
Methods included from CfBase
#generate, #generate_ref, #get_deletion_policy, #get_name, #hash_to_string, #retrieve_attribute, #set_meta_data, #set_quotes, #set_tags
Constructor Details
#initialize(name, user_name, status, options = {}) ⇒ CfIamAccessKey
Returns a new instance of CfIamAccessKey.
8
9
10
11
12
13
|
# File 'lib/cf_factory/iam/cf_iam_access_key.rb', line 8
def initialize(name, user_name, status, options = {})
@name = name
@status = status
@user_name = user_name
@serial = options[:serial]
end
|
Instance Method Details
#get_cf_attributes ⇒ Object
19
20
21
|
# File 'lib/cf_factory/iam/cf_iam_access_key.rb', line 19
def get_cf_attributes
{}
end
|
#get_cf_properties ⇒ Object
23
24
25
26
27
28
29
30
|
# File 'lib/cf_factory/iam/cf_iam_access_key.rb', line 23
def get_cf_properties
result = {
"Status" => @status,
"UserName" => @user_name
}
result["Serial"] = @serial unless @serial.nil?
result
end
|
#get_cf_type ⇒ Object
15
16
17
|
# File 'lib/cf_factory/iam/cf_iam_access_key.rb', line 15
def get_cf_type
"AWS::IAM::AccessKey"
end
|