Class: CfFactory::CfIamUser
- Inherits:
-
Object
- Object
- CfFactory::CfIamUser
show all
- Includes:
- CfBase
- Defined in:
- lib/cf_factory/iam/cf_iam_user.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, path, options = {}) ⇒ CfIamUser
Returns a new instance of CfIamUser.
9
10
11
12
13
14
15
|
# File 'lib/cf_factory/iam/cf_iam_user.rb', line 9
def initialize(name, path, options = {})
@name = name
@path = path
@policies = options[:policies]
@login_profile = options[:login_profile]
@groups = options[:groups]
end
|
Instance Method Details
#get_cf_attributes ⇒ Object
21
22
23
|
# File 'lib/cf_factory/iam/cf_iam_user.rb', line 21
def get_cf_attributes
{}
end
|
#get_cf_properties ⇒ Object
25
26
27
28
29
30
31
32
33
|
# File 'lib/cf_factory/iam/cf_iam_user.rb', line 25
def get_cf_properties
result = {
"Path" => @path
}
result["Policies"] = CfHelper.generate_inner_array(@policies) unless @policies.nil?
result["LoginProfile"] = "XXX" unless @login_profile.nil?
result["Groups"] = CfHelper.generate_ref_array(@groups) unless @groups.nil?
result
end
|
#get_cf_type ⇒ Object
17
18
19
|
# File 'lib/cf_factory/iam/cf_iam_user.rb', line 17
def get_cf_type
"AWS::IAM::User"
end
|