-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathgenerator.yaml
More file actions
98 lines (98 loc) · 3.11 KB
/
Copy pathgenerator.yaml
File metadata and controls
98 lines (98 loc) · 3.11 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
ignore:
field_paths:
- CreateStreamInput.Tags
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
hooks:
sdk_read_one_post_set_output:
template_path: hooks/stream/sdk_read_one_post_set_output.go.tpl
sdk_update_post_set_output:
template_path: hooks/stream/sdk_update_post_set_output.go.tpl
sdk_create_post_set_output:
template_path: hooks/stream/sdk_create_post_set_output.go.tpl
sdk_update_pre_build_request:
template_path: hooks/stream/sdk_update_pre_build_request.go.tpl
exceptions:
errors:
404:
code: ResourceNotFoundException
fields:
Tags:
from:
operation: AddTagsToStream
path: Tags
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