Skip to content

Commit

Permalink
Snapshot Resource changes for Ack
Browse files Browse the repository at this point in the history
  • Loading branch information
Anil Yalavarthi committed Mar 17, 2022
1 parent 4968672 commit c53c3e1
Show file tree
Hide file tree
Showing 43 changed files with 3,036 additions and 66 deletions.
12 changes: 6 additions & 6 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ack_generate_info:
build_date: "2022-03-02T19:26:32Z"
build_hash: ade2429bb444ab635916395ea5773d141ba135e1
go_version: go1.17.5
version: v0.17.2
api_directory_checksum: 31b7d663020e9ce9c237cb9c5e97d554eea474c9
build_date: "2022-03-17T01:24:43Z"
build_hash: 7dff1f4590e623d17e58660b7dd1c66e22b5215a
go_version: go1.17.6
version: v0.17.1
api_directory_checksum: d6aeee58f42121da61d2a6c641452ec938a20fd6
api_version: v1alpha1
aws_sdk_go_version: v1.42.29
generator_config_info:
file_checksum: f56fad648d60d6f54aebadb7044f996c1dd2713e
file_checksum: 3d0f66740c04a3e731cd9321c8c53ff37713a834
original_file_name: generator.yaml
last_modification:
reason: API generation
45 changes: 43 additions & 2 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,51 @@
ignore:
resource_names:
- Snapshot
- User
- ACL
- Cluster
- SubnetGroup
field_paths:
- DescribeSnapshotsInput.ClusterName
- DescribeSnapshotsInput.Source
resources:
Snapshot:
exceptions:
errors:
404:
code: SnapshotNotFoundFault
terminal_codes:
- InvalidParameterCombinationException
- InvalidSnapshotStateFault
- SnapshotAlreadyExistsFault
- SnapshotQuotaExceededFault
- TagQuotaPerResourceExceeded
- ClusterNotFoundFault
- InvalidClusterStateFault
- InvalidParameterValueException
- InvalidParameter
fields:
SourceSnapshotName:
from:
operation: CopySnapshot
path: SourceSnapshotName
ClusterName:
is_primary_key: false
from:
operation: CreateSnapshot
path: ClusterName
hooks:
sdk_create_pre_build_request:
template_path: hooks/snapshot/sdk_create_pre_build_request.go.tpl
sdk_update_pre_build_request:
template_path: hooks/snapshot/sdk_update_pre_build_request.go.tpl
sdk_create_post_set_output:
template_path: hooks/snapshot/sdk_create_post_set_output.go.tpl
sdk_read_many_post_set_output:
template_path: hooks/snapshot/sdk_read_many_post_set_output.go.tpl
sdk_delete_pre_build_request:
template_path: hooks/snapshot/sdk_delete_pre_build_request.go.tpl
sdk_delete_post_request:
template_path: hooks/snapshot/sdk_delete_post_request.go.tpl
ParameterGroup:
exceptions:
errors:
Expand Down Expand Up @@ -55,4 +95,5 @@ resources:
ParameterGroupName: Name
DescribeParameterGroups:
input_fields:
ParameterGroupName: Name
ParameterGroupName: Name

91 changes: 91 additions & 0 deletions apis/v1alpha1/snapshot.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

107 changes: 60 additions & 47 deletions apis/v1alpha1/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c53c3e1

Please sign in to comment.