-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathgenerator.yaml
86 lines (86 loc) · 2.72 KB
/
generator.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
operations:
# NOTE)jaypipes): According to
# https://docs.aws.amazon.com/kinesis/latest/APIReference/API_DescribeStream.html,
# the DescribeStream API should not be used. Instead, the
# DescribeStreamSummary API and ListShards API should be used.
DescribeStreamSummary:
resource_name: Stream
operation_type: READ_ONE
output_wrapper_field_path: StreamDescriptionSummary
UpdateShardCount:
resource_name: Stream
operation_type: UPDATE
override_values:
# This is the only accepted value for this field, and it's required...
ScalingType: UNIFORM_SCALING
resources:
Stream:
renames:
operations:
DescribeStreamSummary:
input_fields:
StreamName: Name
CreateStream:
input_fields:
StreamName: Name
DeleteStream:
input_fields:
StreamName: Name
UpdateShardCount:
input_fields:
StreamName: Name
output_fields:
TargetShardCount: ShardCount
exceptions:
errors:
404:
code: ResourceNotFoundException
tags:
# TODO(jaypipes): Stream actually supports tags via separate API calls,
# just not tag on create... add support for this later on.
ignore: true
fields:
Name:
is_primary_key: true
# NOTE(jaypipes): It is necessary to hand-roll all these fields because
# the CreateStream output shape has no members at all...
ConsumerCount:
is_read_only: true
from:
operation: DescribeStreamSummary
path: StreamDescriptionSummary.ConsumerCount
EncryptionType:
is_read_only: true
from:
operation: DescribeStreamSummary
path: StreamDescriptionSummary.EncryptionType
EnhancedMonitoring:
is_read_only: true
from:
operation: DescribeStreamSummary
path: StreamDescriptionSummary.EnhancedMonitoring
KeyId:
is_read_only: true
from:
operation: DescribeStreamSummary
path: StreamDescriptionSummary.KeyId
OpenShardCount:
is_read_only: true
from:
operation: DescribeStreamSummary
path: StreamDescriptionSummary.OpenShardCount
RetentionPeriodHours:
is_read_only: true
from:
operation: DescribeStreamSummary
path: StreamDescriptionSummary.RetentionPeriodHours
StreamCreationTimestamp:
is_read_only: true
from:
operation: DescribeStreamSummary
path: StreamDescriptionSummary.StreamCreationTimestamp
StreamStatus:
is_read_only: true
from:
operation: DescribeStreamSummary
path: StreamDescriptionSummary.StreamStatus