aws-sdk-ec2 1.435.0 → 1.436.0

Sign up to get free protection for your applications and to get access to all the features.
data/sig/snapshot.rbs ADDED
@@ -0,0 +1,188 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module EC2
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html
11
+ class Snapshot
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#initialize-instance_method
13
+ def initialize: (String id, Hash[Symbol, untyped] options) -> void
14
+ | (id: String, ?client: Client) -> void
15
+ | (Hash[Symbol, untyped] args) -> void
16
+
17
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#id-instance_method
18
+ def id: () -> String
19
+ alias snapshot_id id
20
+
21
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#data_encryption_key_id-instance_method
22
+ def data_encryption_key_id: () -> ::String
23
+
24
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#description-instance_method
25
+ def description: () -> ::String
26
+
27
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#encrypted-instance_method
28
+ def encrypted: () -> bool
29
+
30
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#kms_key_id-instance_method
31
+ def kms_key_id: () -> ::String
32
+
33
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#owner_id-instance_method
34
+ def owner_id: () -> ::String
35
+
36
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#progress-instance_method
37
+ def progress: () -> ::String
38
+
39
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#start_time-instance_method
40
+ def start_time: () -> ::Time
41
+
42
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#state-instance_method
43
+ def state: () -> ("pending" | "completed" | "error" | "recoverable" | "recovering")
44
+
45
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#state_message-instance_method
46
+ def state_message: () -> ::String
47
+
48
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#volume_id-instance_method
49
+ def volume_id: () -> ::String
50
+
51
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#volume_size-instance_method
52
+ def volume_size: () -> ::Integer
53
+
54
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#owner_alias-instance_method
55
+ def owner_alias: () -> ::String
56
+
57
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#outpost_arn-instance_method
58
+ def outpost_arn: () -> ::String
59
+
60
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#tags-instance_method
61
+ def tags: () -> ::Array[Types::Tag]
62
+
63
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#storage_tier-instance_method
64
+ def storage_tier: () -> ("archive" | "standard")
65
+
66
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#restore_expiry_time-instance_method
67
+ def restore_expiry_time: () -> ::Time
68
+
69
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#sse_type-instance_method
70
+ def sse_type: () -> ("sse-ebs" | "sse-kms" | "none")
71
+
72
+ def client: () -> Client
73
+
74
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#load-instance_method
75
+ def load: () -> self
76
+ alias reload load
77
+
78
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#data-instance_method
79
+ def data: () -> Types::Snapshot
80
+
81
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#data_loaded?-instance_method
82
+ def data_loaded?: () -> bool
83
+
84
+
85
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#wait_until_completed-instance_method
86
+ def wait_until_completed: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) ?{ (untyped waiter) -> void } -> Snapshot
87
+ | (?Hash[Symbol, untyped]) ?{ (untyped waiter) -> void } -> Snapshot
88
+
89
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#copy-instance_method
90
+ def copy: (
91
+ ?description: ::String,
92
+ ?destination_outpost_arn: ::String,
93
+ ?destination_region: ::String,
94
+ ?encrypted: bool,
95
+ ?kms_key_id: ::String,
96
+ ?presigned_url: ::String,
97
+ source_region: ::String,
98
+ ?tag_specifications: Array[
99
+ {
100
+ resource_type: ("capacity-reservation" | "client-vpn-endpoint" | "customer-gateway" | "carrier-gateway" | "coip-pool" | "dedicated-host" | "dhcp-options" | "egress-only-internet-gateway" | "elastic-ip" | "elastic-gpu" | "export-image-task" | "export-instance-task" | "fleet" | "fpga-image" | "host-reservation" | "image" | "import-image-task" | "import-snapshot-task" | "instance" | "instance-event-window" | "internet-gateway" | "ipam" | "ipam-pool" | "ipam-scope" | "ipv4pool-ec2" | "ipv6pool-ec2" | "key-pair" | "launch-template" | "local-gateway" | "local-gateway-route-table" | "local-gateway-virtual-interface" | "local-gateway-virtual-interface-group" | "local-gateway-route-table-vpc-association" | "local-gateway-route-table-virtual-interface-group-association" | "natgateway" | "network-acl" | "network-interface" | "network-insights-analysis" | "network-insights-path" | "network-insights-access-scope" | "network-insights-access-scope-analysis" | "placement-group" | "prefix-list" | "replace-root-volume-task" | "reserved-instances" | "route-table" | "security-group" | "security-group-rule" | "snapshot" | "spot-fleet-request" | "spot-instances-request" | "subnet" | "subnet-cidr-reservation" | "traffic-mirror-filter" | "traffic-mirror-session" | "traffic-mirror-target" | "transit-gateway" | "transit-gateway-attachment" | "transit-gateway-connect-peer" | "transit-gateway-multicast-domain" | "transit-gateway-policy-table" | "transit-gateway-route-table" | "transit-gateway-route-table-announcement" | "volume" | "vpc" | "vpc-endpoint" | "vpc-endpoint-connection" | "vpc-endpoint-service" | "vpc-endpoint-service-permission" | "vpc-peering-connection" | "vpn-connection" | "vpn-gateway" | "vpc-flow-log" | "capacity-reservation-fleet" | "traffic-mirror-filter-rule" | "vpc-endpoint-connection-device-type" | "verified-access-instance" | "verified-access-group" | "verified-access-endpoint" | "verified-access-policy" | "verified-access-trust-provider" | "vpn-connection-device-type" | "vpc-block-public-access-exclusion" | "ipam-resource-discovery" | "ipam-resource-discovery-association" | "instance-connect-endpoint")?,
101
+ tags: Array[
102
+ {
103
+ key: ::String?,
104
+ value: ::String?
105
+ },
106
+ ]?
107
+ },
108
+ ],
109
+ ?dry_run: bool
110
+ ) -> Types::CopySnapshotResult
111
+ | (?Hash[Symbol, untyped]) -> Types::CopySnapshotResult
112
+
113
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#create_tags-instance_method
114
+ def create_tags: (
115
+ ?dry_run: bool,
116
+ tags: Array[
117
+ {
118
+ key: ::String?,
119
+ value: ::String?
120
+ },
121
+ ]
122
+ ) -> Tag::Collection
123
+ | (?Hash[Symbol, untyped]) -> Tag::Collection
124
+
125
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#delete_tags-instance_method
126
+ def delete_tags: (
127
+ ?dry_run: bool,
128
+ ?tags: Array[
129
+ {
130
+ key: ::String?,
131
+ value: ::String?
132
+ },
133
+ ]
134
+ ) -> Tag::Collection
135
+ | (?Hash[Symbol, untyped]) -> Tag::Collection
136
+
137
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#delete-instance_method
138
+ def delete: (
139
+ ?dry_run: bool
140
+ ) -> ::Aws::EmptyStructure
141
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
142
+
143
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#describe_attribute-instance_method
144
+ def describe_attribute: (
145
+ attribute: ("productCodes" | "createVolumePermission"),
146
+ ?dry_run: bool
147
+ ) -> Types::DescribeSnapshotAttributeResult
148
+ | (?Hash[Symbol, untyped]) -> Types::DescribeSnapshotAttributeResult
149
+
150
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#modify_attribute-instance_method
151
+ def modify_attribute: (
152
+ ?attribute: ("productCodes" | "createVolumePermission"),
153
+ ?create_volume_permission: {
154
+ add: Array[
155
+ {
156
+ group: ("all")?,
157
+ user_id: ::String?
158
+ },
159
+ ]?,
160
+ remove: Array[
161
+ {
162
+ group: ("all")?,
163
+ user_id: ::String?
164
+ },
165
+ ]?
166
+ },
167
+ ?group_names: Array[::String],
168
+ ?operation_type: ("add" | "remove"),
169
+ ?user_ids: Array[::String],
170
+ ?dry_run: bool
171
+ ) -> ::Aws::EmptyStructure
172
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
173
+
174
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#reset_attribute-instance_method
175
+ def reset_attribute: (
176
+ attribute: ("productCodes" | "createVolumePermission"),
177
+ ?dry_run: bool
178
+ ) -> ::Aws::EmptyStructure
179
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
180
+
181
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Snapshot.html#volume-instance_method
182
+ def volume: () -> Volume?
183
+
184
+ class Collection < ::Aws::Resources::Collection[Snapshot]
185
+ end
186
+ end
187
+ end
188
+ end