Class: Convection::Model::Template::Resource::IAMUser

Inherits:
Convection::Model::Template::Resource show all
Includes:
DSL::Template::Resource::IAMUser
Defined in:
lib/convection/model/template/resource/aws_iam_user.rb

Overview

Examples:

iam_user 'User' do
  path "/my_path/region/example-cloud/"
  with_key

  policy 'bucket-policy' do
    allow do
      s3_resource 'bucket.blah.com', '*'
      s3_resource 'bucket.blah.com'

      action 's3:GetObject'
      action 's3:PutObject'
      action 's3:DeleteObject'
      action 's3:ListBucket'
    end
  end
end

See Also:

Instance Attribute Summary

Attributes inherited from Convection::Model::Template::Resource

#exist, #name, #parent, #properties, #resource_attributes, #template

Instance Method Summary collapse

Methods included from DSL::Template::Resource::IAMUser

#policy, #with_key

Methods inherited from Convection::Model::Template::Resource

#as_attribute, attach_method, #deletion_policy, #depends_on, #initialize, properties, property, #property, #reference, #render, type, #type, #with_output

Methods included from Mixin::Conditional

#condition, #render_condition

Methods included from DSL::Template::Resource

attach_resource

Methods included from DSL::Helpers

#camel_case, included, method_name, #screaming_snake_case, #snake_case

Methods included from DSL::IntrinsicFunctions

#base64, #find_in_map, #fn_and, #fn_equals, #fn_if, #fn_not, #fn_or, #fn_ref, #get_att, #get_azs, #join, #select

Constructor Details

This class inherits a constructor from Convection::Model::Template::Resource

Instance Method Details

#groupObject #group(value) ⇒ Object

Overloads:

  • #groupObject

    Returns the value of the 'Groups' CloudFormation property.

  • #group(value) ⇒ Object

    Sets the 'Groups' CloudFormation property.

    Parameters:

    • value

      the value to set the 'Groups' CloudFormation property to.



61
# File 'lib/convection/model/template/resource/aws_iam_user.rb', line 61

property :group, 'Groups', :type => :list

#login_profileObject #login_profile(value) ⇒ Object

Overloads:

  • #login_profileObject

    Returns the value of the 'LoginProfile' CloudFormation property.

  • #login_profile(value) ⇒ Object

    Sets the 'LoginProfile' CloudFormation property.

    Parameters:

    • value

      the value to set the 'LoginProfile' CloudFormation property to.



60
# File 'lib/convection/model/template/resource/aws_iam_user.rb', line 60

property :login_profile, 'LoginProfile'

#managed_policy_arnObject #managed_policy_arn(value) ⇒ Object Also known as: managed_policy

Overloads:

  • #managed_policy_arnObject

    Returns the value of the 'ManagedPolicyArns' CloudFormation property.

  • #managed_policy_arn(value) ⇒ Object

    Sets the 'ManagedPolicyArns' CloudFormation property.

    Parameters:

    • value

      the value to set the 'ManagedPolicyArns' CloudFormation property to.



63
# File 'lib/convection/model/template/resource/aws_iam_user.rb', line 63

property :managed_policy_arn, 'ManagedPolicyArns', :type => :list

#pathObject #path(value) ⇒ Object

Overloads:

  • #pathObject

    Returns the value of the 'Path' CloudFormation property.

  • #path(value) ⇒ Object

    Sets the 'Path' CloudFormation property.

    Parameters:

    • value

      the value to set the 'Path' CloudFormation property to.



59
# File 'lib/convection/model/template/resource/aws_iam_user.rb', line 59

property :path, 'Path'

#policiesObject #policies(value) ⇒ Object

Overloads:

  • #policiesObject

    Returns the value of the 'Policies' CloudFormation property.

  • #policies(value) ⇒ Object

    Sets the 'Policies' CloudFormation property.

    Parameters:

    • value

      the value to set the 'Policies' CloudFormation property to.



62
# File 'lib/convection/model/template/resource/aws_iam_user.rb', line 62

property :policies, 'Policies', :type => :list