Sha256: 9697a56315535e7e536e7bfa533f6c1cf0a13bc75793534a2feb443efeeefd2c

Contents?: true

Size: 1.98 KB

Versions: 199

Compression:

Stored size: 1.98 KB

Contents

Aws.config[:iam] = {
  stub_responses: {
    list_users: {
      users: [
        path: '/',
        user_name: 'my-iam-user',
        user_id: 'ABCDEFGHI1234556890',
        arn: 'arn:aws:iam::123456789012:user/my-iam-user',
        create_date: Time.local(2015)
      ]
    },
    list_groups: {
      groups: [
        path: '/',
        group_name: 'my-iam-group',
        group_id: 'GABCDEFGHI123455689',
        arn: 'arn:aws:iam::123456789012:group/my-iam-group',
        create_date: Time.local(2015)
      ]
    },
    list_roles: {
      roles: [
        path: '/',
        role_name: 'HelloIAmGodRole',
        role_id: 'RABCDEFGHI123455689',
        arn: 'arn:aws:iam::123456789012:role/HelloIAmGodRole',
        create_date: Time.local(2015)
      ]
    },
    list_policies: {
      policies: [
        {
          attachment_count: 1,
          arn: 'arn:aws:iam::aws:policy/my-iam-policy',
          is_attachable: true,
          policy_id: 'PABCDEFGHI123455689',
          policy_name: 'my-iam-policy',
          update_date: Time.new(2015, 1, 2, 10, 00, 00, '+00:00')
        },
        {
          attachment_count: 1,
          arn: 'arn:aws:iam::aws:policy/AmazonAPIGatewayAdministrator',
          is_attachable: true,
          policy_id: 'PABCDEFGHI123455688',
          policy_name: 'AmazonAPIGatewayAdministrator',
          update_date: Time.new(2015, 7, 9, 17, 34, 45, '+00:00')
        },
        {
          attachment_count: 1,
          arn: 'arn:aws:iam::aws:policy/service-role/AmazonEC2RoleforDataPipelineRole',
          is_attachable: true,
          policy_id: 'PABCDEFGHI123455687',
          policy_name: 'AmazonEC2RoleforDataPipelineRole',
          update_date: Time.new(2015, 3, 19, 19, 21, 14, '+00:00')
        }
      ]
    },
    list_entities_for_policy: {
      policy_roles: [
        { role_name: 'HelloIAmGodRole' }
      ],
      policy_users: [
        { user_name: 'my-iam-user' }
      ],
      policy_groups: [
        { group_name: 'my-iam-group' }
      ]
    }
  }
}

Version data entries

199 entries across 199 versions & 4 rubygems

Version Path
awspec-0.68.0 lib/awspec/stub/iam_policy.rb
awspec-0.67.1 lib/awspec/stub/iam_policy.rb
awspec-0.67.0 lib/awspec/stub/iam_policy.rb
awspec-0.66.2 lib/awspec/stub/iam_policy.rb
awspec-0.66.1 lib/awspec/stub/iam_policy.rb
awspec-0.66.0 lib/awspec/stub/iam_policy.rb
awspec-0.65.2 lib/awspec/stub/iam_policy.rb
awspec-0.65.1 lib/awspec/stub/iam_policy.rb
awspec-0.65.0 lib/awspec/stub/iam_policy.rb
awspec-0.64.0 lib/awspec/stub/iam_policy.rb
awspec-0.63.1 lib/awspec/stub/iam_policy.rb
awspec-0.63.0 lib/awspec/stub/iam_policy.rb
awspec-0.62.1 lib/awspec/stub/iam_policy.rb
awspec-0.62.0 lib/awspec/stub/iam_policy.rb
awspec-0.61.1 lib/awspec/stub/iam_policy.rb
awspec-0.61.0 lib/awspec/stub/iam_policy.rb
awspec-0.60.1 lib/awspec/stub/iam_policy.rb
awspec-0.60.0 lib/awspec/stub/iam_policy.rb
awspec-0.59.0 lib/awspec/stub/iam_policy.rb
awspec-0.58.0 lib/awspec/stub/iam_policy.rb