Sha256: 35c822f6c2709e89ef9fc517a7af157a41d40afa9255429e4916a8dea1d67c7f

Contents?: true

Size: 1.27 KB

Versions: 29

Compression:

Stored size: 1.27 KB

Contents

Aws.config[:iam] = {
  stub_responses: {
    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

29 entries across 29 versions & 1 rubygems

Version Path
awspec-0.22.1 lib/awspec/stub/iam_policy.rb
awspec-0.22.0 lib/awspec/stub/iam_policy.rb
awspec-0.21.6 lib/awspec/stub/iam_policy.rb
awspec-0.21.5 lib/awspec/stub/iam_policy.rb
awspec-0.21.4 lib/awspec/stub/iam_policy.rb
awspec-0.21.3 lib/awspec/stub/iam_policy.rb
awspec-0.21.2 lib/awspec/stub/iam_policy.rb
awspec-0.21.1 lib/awspec/stub/iam_policy.rb
awspec-0.21.0 lib/awspec/stub/iam_policy.rb
awspec-0.20.2 lib/awspec/stub/iam_policy.rb
awspec-0.20.1 lib/awspec/stub/iam_policy.rb
awspec-0.20.0 lib/awspec/stub/iam_policy.rb
awspec-0.19.0 lib/awspec/stub/iam_policy.rb
awspec-0.18.2 lib/awspec/stub/iam_policy.rb
awspec-0.18.1 lib/awspec/stub/iam_policy.rb
awspec-0.18.0 lib/awspec/stub/iam_policy.rb
awspec-0.17.1 lib/awspec/stub/iam_policy.rb
awspec-0.17.0 lib/awspec/stub/iam_policy.rb
awspec-0.16.0 lib/awspec/stub/iam_policy.rb
awspec-0.15.0 lib/awspec/stub/iam_policy.rb