Top Level Namespace

Extended by:
Awspec::Helper::Type

Defined Under Namespace

Modules: Awspec Classes: Array, Color, Hash, String, Struct

Constant Summary collapse

OWNER =
'123456789'
REGION =
'us-east-1'
TOPIC_ARN =
"arn:aws:sns:#{REGION}:#{OWNER}:invalid"
DISPLAY_NAME =
'Useless'
SUBSCRIBED =
"arn:aws:sns:#{REGION}:#{OWNER}:Foobar:3dbf4999-b3e2-4345-bd11-c34c9784ecca"
ENDPOINT =
"arn:aws:lambda:#{REGION}:#{OWNER}:function:foobar"
TOPIC_SUBS_ARN =
"arn:aws:sns:us-east-1:#{OWNER}:Foobar:3dbf4999-b3e2-4345-bd11-c34c9784ecca"

Constants included from Awspec::Helper::Type

Awspec::Helper::Type::ACCOUNT_ATTRIBUTES, Awspec::Helper::Type::TYPES

Instance Method Summary collapse

Methods included from Awspec::Helper::Type

account, account_attribute, deprecate_resource_type

Instance Method Details

#describe_parameters_response(context) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/awspec/stub/ssm_parameter.rb', line 3

def describe_parameters_response(context)
  next_token = 'eyJOZXh0VG9rZW4iOiBudWxsLCAiYm90b190cnVuY2F0ZV9hbW91bnQiOiAxfQ=='
  if context.params[:next_token] == next_token
    {
      parameters: [
        {
          name: 'my-parameter',
          type: 'SecureString',
          key_id: 'alias/aws/ssm',
          description: 'Some description',
          version: 1
        }
      ],
      next_token: nil
    }
  else
    {
      parameters: [],
      next_token: next_token
    }
  end
end