Sha256: 968d0fc472bcf4556df5eb67f410de3264f1a432dd9ed70408f6d4ed2b51f931

Contents?: true

Size: 1.64 KB

Versions: 170

Compression:

Stored size: 1.64 KB

Contents

Aws.config[:iam] = {
  stub_responses: {
    list_roles: {
      roles: [
        path: '/',
        role_name: 'my-iam-role',
        role_id: 'RABCDEFGHI123455689',
        arn: 'arn:aws:iam::123456789012:role/my-iam-role',
        create_date: Time.new(2015, 1, 2, 9, 00, 00, '+00:00')
      ]
    },
    list_attached_role_policies: {
      attached_policies: [
        {
          policy_arn: 'arn:aws:iam::aws:policy/ReadOnlyAccess',
          policy_name: 'ReadOnlyAccess'
        }
      ],
      is_truncated: false,
      marker: nil
    },
    list_role_policies: {
      policy_names: [
        'AllowS3BucketAccess'
      ],
      is_truncated: false,
      marker: nil
    },
    get_role: {
      role: {
        path: '/',
        role_name: 'my-iam-role',
        role_id: 'RABCDEFGHI123455689',
        arn: 'arn:aws:iam::123456789012:role/my-iam-role',
        create_date: Time.new(2015, 1, 2, 9, 00, 00, '+00:00')
      }
    },
    get_role_policy: {
      role_name: 'my-iam-role',
      policy_name: 'AllowS3BucketAccess',
      policy_document: '{"Statement": [{"Action": ["s3:ListAllMyBuckets"],' \
                       '"Effect": "Allow","Resource": "arn:aws:s3:::*"},' \
                       '{"Action": "s3:*","Effect": "Allow","Resource":' \
                       '["arn:aws:s3:::my-bucket", "arn:aws:s3:::my-bucket/*"]}]}'
    },
    simulate_principal_policy: {
      evaluation_results: [
        {
          eval_action_name: 'ec2:DescribeInstances',
          eval_resource_name: '*',
          eval_decision: 'allowed',
          matched_statements: [
          ]
        }
      ],
      is_truncated: false,
      marker: nil
    }
  }
}

Version data entries

170 entries across 170 versions & 4 rubygems

Version Path
awspec-0.87.0 lib/awspec/stub/iam_role.rb
awspec-0.86.0 lib/awspec/stub/iam_role.rb
cmonson_2ndwatch_awspec-0.85.4 lib/awspec/stub/iam_role.rb
awspec-0.85.3 lib/awspec/stub/iam_role.rb
cmonson_2ndwatch_awspec-0.85.3 lib/awspec/stub/iam_role.rb
awspec-0.85.2 lib/awspec/stub/iam_role.rb
awspec-0.85.1 lib/awspec/stub/iam_role.rb
awspec-0.85.0 lib/awspec/stub/iam_role.rb
awspec-0.84.1 lib/awspec/stub/iam_role.rb
awspec-0.84.0 lib/awspec/stub/iam_role.rb
awspec-0.83.0 lib/awspec/stub/iam_role.rb
awspec-0.82.3 lib/awspec/stub/iam_role.rb
awspec-0.82.2 lib/awspec/stub/iam_role.rb
awspec-0.82.1 lib/awspec/stub/iam_role.rb
awspec-0.82.0 lib/awspec/stub/iam_role.rb
awspec-0.81.1 lib/awspec/stub/iam_role.rb
awspec-0.81.0 lib/awspec/stub/iam_role.rb
awspec-0.80.1 lib/awspec/stub/iam_role.rb
awspec-0.80.0 lib/awspec/stub/iam_role.rb
awspec-0.79.2 lib/awspec/stub/iam_role.rb