@pulumi/aws 5.5.0 → 5.7.0-alpha.1653989347
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autoscaling/getAmiIds.d.ts +8 -0
- package/autoscaling/getAmiIds.js +1 -0
- package/autoscaling/getAmiIds.js.map +1 -1
- package/autoscaling/group.d.ts +49 -0
- package/autoscaling/group.js +39 -0
- package/autoscaling/group.js.map +1 -1
- package/autoscaling/policy.d.ts +12 -0
- package/autoscaling/policy.js +2 -0
- package/autoscaling/policy.js.map +1 -1
- package/cloudfront/getResponseHeadersPolicy.d.ts +4 -0
- package/cloudfront/getResponseHeadersPolicy.js.map +1 -1
- package/cloudfront/responseHeadersPolicy.d.ts +33 -0
- package/cloudfront/responseHeadersPolicy.js +23 -0
- package/cloudfront/responseHeadersPolicy.js.map +1 -1
- package/cloudsearch/domain.d.ts +1 -0
- package/cloudsearch/domain.js +1 -0
- package/cloudsearch/domain.js.map +1 -1
- package/cloudwatch/metricStream.d.ts +44 -0
- package/cloudwatch/metricStream.js +34 -0
- package/cloudwatch/metricStream.js.map +1 -1
- package/config/vars.js +1 -1
- package/config/vars.js.map +1 -1
- package/connect/instance.d.ts +1 -1
- package/connect/instance.js +1 -1
- package/datasync/locationHdfs.d.ts +4 -4
- package/datasync/locationHdfs.js +1 -1
- package/ec2/ami.d.ts +15 -3
- package/ec2/ami.js +2 -0
- package/ec2/ami.js.map +1 -1
- package/ec2/amiCopy.d.ts +11 -3
- package/ec2/amiCopy.js +2 -0
- package/ec2/amiCopy.js.map +1 -1
- package/ec2/amiFromInstance.d.ts +8 -0
- package/ec2/amiFromInstance.js +2 -0
- package/ec2/amiFromInstance.js.map +1 -1
- package/ec2/fleet.d.ts +8 -0
- package/ec2/fleet.js +2 -0
- package/ec2/fleet.js.map +1 -1
- package/ec2/getAmi.d.ts +4 -0
- package/ec2/getAmi.js.map +1 -1
- package/ecr/registryScanningConfiguration.d.ts +1 -1
- package/ecr/registryScanningConfiguration.js +1 -1
- package/efs/index.d.ts +1 -0
- package/efs/index.js +5 -0
- package/efs/index.js.map +1 -1
- package/efs/replicationConfiguration.d.ts +143 -0
- package/efs/replicationConfiguration.js +111 -0
- package/efs/replicationConfiguration.js.map +1 -0
- package/elasticache/globalReplicationGroup.d.ts +51 -31
- package/elasticache/globalReplicationGroup.js +4 -31
- package/elasticache/globalReplicationGroup.js.map +1 -1
- package/elasticache/replicationGroup.d.ts +1 -1
- package/getAmi.d.ts +4 -0
- package/getAmi.js.map +1 -1
- package/getAutoscalingGroups.d.ts +8 -0
- package/getAutoscalingGroups.js +1 -0
- package/getAutoscalingGroups.js.map +1 -1
- package/keyspaces/index.d.ts +1 -0
- package/keyspaces/index.js +5 -0
- package/keyspaces/index.js.map +1 -1
- package/keyspaces/keyspace.d.ts +3 -3
- package/keyspaces/keyspace.js +1 -1
- package/keyspaces/table.d.ts +223 -0
- package/keyspaces/table.js +114 -0
- package/keyspaces/table.js.map +1 -0
- package/lb/getHostedZoneId.d.ts +64 -0
- package/lb/getHostedZoneId.js +46 -0
- package/lb/getHostedZoneId.js.map +1 -0
- package/lb/index.d.ts +1 -0
- package/lb/index.js +1 -0
- package/lb/index.js.map +1 -1
- package/location/getPlaceIndex.d.ts +88 -0
- package/location/getPlaceIndex.js +37 -0
- package/location/getPlaceIndex.js.map +1 -0
- package/location/index.d.ts +2 -0
- package/location/index.js +6 -0
- package/location/index.js.map +1 -1
- package/location/placeIndex.d.ts +150 -0
- package/location/placeIndex.js +94 -0
- package/location/placeIndex.js.map +1 -0
- package/msk/cluster.d.ts +35 -1
- package/msk/cluster.js +35 -1
- package/msk/cluster.js.map +1 -1
- package/networkmanager/getCoreNetworkPolicyDocument.d.ts +146 -0
- package/networkmanager/getCoreNetworkPolicyDocument.js +106 -0
- package/networkmanager/getCoreNetworkPolicyDocument.js.map +1 -0
- package/networkmanager/index.d.ts +1 -0
- package/networkmanager/index.js +1 -0
- package/networkmanager/index.js.map +1 -1
- package/organizations/account.d.ts +20 -9
- package/organizations/account.js +4 -0
- package/organizations/account.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/provider.js +1 -1
- package/provider.js.map +1 -1
- package/rds/cluster.d.ts +30 -0
- package/rds/cluster.js +30 -0
- package/rds/cluster.js.map +1 -1
- package/rds/index.d.ts +1 -0
- package/rds/index.js +5 -0
- package/rds/index.js.map +1 -1
- package/rds/snapshotCopy.d.ts +299 -0
- package/rds/snapshotCopy.js +138 -0
- package/rds/snapshotCopy.js.map +1 -0
- package/redshift/authenticationProfile.d.ts +87 -0
- package/redshift/authenticationProfile.js +84 -0
- package/redshift/authenticationProfile.js.map +1 -0
- package/redshift/cluster.d.ts +69 -9
- package/redshift/cluster.js +10 -0
- package/redshift/cluster.js.map +1 -1
- package/redshift/endpointAccess.d.ts +145 -0
- package/redshift/endpointAccess.js +96 -0
- package/redshift/endpointAccess.js.map +1 -0
- package/redshift/eventSubscription.d.ts +15 -15
- package/redshift/getCluster.d.ts +33 -0
- package/redshift/getCluster.js.map +1 -1
- package/redshift/getSubnetGroup.d.ts +75 -0
- package/redshift/getSubnetGroup.js +37 -0
- package/redshift/getSubnetGroup.js.map +1 -0
- package/redshift/hsmClientCertificate.d.ts +122 -0
- package/redshift/hsmClientCertificate.js +82 -0
- package/redshift/hsmClientCertificate.js.map +1 -0
- package/redshift/index.d.ts +5 -0
- package/redshift/index.js +21 -0
- package/redshift/index.js.map +1 -1
- package/redshift/usageLimit.d.ts +177 -0
- package/redshift/usageLimit.js +102 -0
- package/redshift/usageLimit.js.map +1 -0
- package/route53/getResolverRules.d.ts +27 -2
- package/route53/getResolverRules.js +15 -2
- package/route53/getResolverRules.js.map +1 -1
- package/s3/bucketObjectv2.js +2 -0
- package/s3/bucketObjectv2.js.map +1 -1
- package/s3/bucketV2.d.ts +1 -1
- package/s3/bucketV2.js +1 -1
- package/s3/bucketWebsiteConfigurationV2.d.ts +42 -1
- package/s3/bucketWebsiteConfigurationV2.js +28 -0
- package/s3/bucketWebsiteConfigurationV2.js.map +1 -1
- package/secretsmanager/getSecretVersion.d.ts +1 -1
- package/transfer/server.d.ts +3 -3
- package/types/input.d.ts +1112 -247
- package/types/output.d.ts +768 -27
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages an RDS database instance snapshot copy. For managing RDS database cluster snapshots, see the [`aws.rds.ClusterSnapshot` resource](https://www.terraform.io/docs/providers/aws/r/db_cluster_snapshot.html).
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as aws from "@pulumi/aws";
|
|
10
|
+
*
|
|
11
|
+
* const exampleInstance = new aws.rds.Instance("exampleInstance", {
|
|
12
|
+
* allocatedStorage: 10,
|
|
13
|
+
* engine: "mysql",
|
|
14
|
+
* engineVersion: "5.6.21",
|
|
15
|
+
* instanceClass: "db.t2.micro",
|
|
16
|
+
* name: "baz",
|
|
17
|
+
* password: "barbarbarbar",
|
|
18
|
+
* username: "foo",
|
|
19
|
+
* maintenanceWindow: "Fri:09:00-Fri:09:30",
|
|
20
|
+
* backupRetentionPeriod: 0,
|
|
21
|
+
* parameterGroupName: "default.mysql5.6",
|
|
22
|
+
* });
|
|
23
|
+
* const exampleSnapshot = new aws.rds.Snapshot("exampleSnapshot", {
|
|
24
|
+
* dbInstanceIdentifier: exampleInstance.id,
|
|
25
|
+
* dbSnapshotIdentifier: "testsnapshot1234",
|
|
26
|
+
* });
|
|
27
|
+
* const exampleSnapshotCopy = new aws.rds.SnapshotCopy("exampleSnapshotCopy", {
|
|
28
|
+
* sourceDbSnapshotIdentifier: exampleSnapshot.dbSnapshotArn,
|
|
29
|
+
* targetDbSnapshotIdentifier: "testsnapshot1234-copy",
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ## Import
|
|
34
|
+
*
|
|
35
|
+
* `aws_db_snapshot_copy` can be imported by using the snapshot identifier, e.g.,
|
|
36
|
+
*
|
|
37
|
+
* ```sh
|
|
38
|
+
* $ pulumi import aws:rds/snapshotCopy:SnapshotCopy example my-snapshot
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare class SnapshotCopy extends pulumi.CustomResource {
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing SnapshotCopy resource's state with the given name, ID, and optional extra
|
|
44
|
+
* properties used to qualify the lookup.
|
|
45
|
+
*
|
|
46
|
+
* @param name The _unique_ name of the resulting resource.
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SnapshotCopyState, opts?: pulumi.CustomResourceOptions): SnapshotCopy;
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the given object is an instance of SnapshotCopy. This is designed to work even
|
|
54
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
55
|
+
*/
|
|
56
|
+
static isInstance(obj: any): obj is SnapshotCopy;
|
|
57
|
+
/**
|
|
58
|
+
* Specifies the allocated storage size in gigabytes (GB).
|
|
59
|
+
*/
|
|
60
|
+
readonly allocatedStorage: pulumi.Output<number>;
|
|
61
|
+
/**
|
|
62
|
+
* Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
|
|
63
|
+
*/
|
|
64
|
+
readonly availabilityZone: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Whether to copy existing tags. Defaults to `false`.
|
|
67
|
+
*/
|
|
68
|
+
readonly copyTags: pulumi.Output<boolean | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* The Amazon Resource Name (ARN) for the DB snapshot.
|
|
71
|
+
*/
|
|
72
|
+
readonly dbSnapshotArn: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* The Destination region to place snapshot copy.
|
|
75
|
+
*/
|
|
76
|
+
readonly destinationRegion: pulumi.Output<string | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* Specifies whether the DB snapshot is encrypted.
|
|
79
|
+
*/
|
|
80
|
+
readonly encrypted: pulumi.Output<boolean>;
|
|
81
|
+
/**
|
|
82
|
+
* Specifies the name of the database engine.
|
|
83
|
+
*/
|
|
84
|
+
readonly engine: pulumi.Output<string>;
|
|
85
|
+
/**
|
|
86
|
+
* Specifies the version of the database engine.
|
|
87
|
+
*/
|
|
88
|
+
readonly engineVersion: pulumi.Output<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.
|
|
91
|
+
*/
|
|
92
|
+
readonly iops: pulumi.Output<number>;
|
|
93
|
+
/**
|
|
94
|
+
* KMS key ID.
|
|
95
|
+
*/
|
|
96
|
+
readonly kmsKeyId: pulumi.Output<string | undefined>;
|
|
97
|
+
/**
|
|
98
|
+
* License model information for the restored DB instance.
|
|
99
|
+
*/
|
|
100
|
+
readonly licenseModel: pulumi.Output<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The name of an option group to associate with the copy of the snapshot.
|
|
103
|
+
*/
|
|
104
|
+
readonly optionGroupName: pulumi.Output<string>;
|
|
105
|
+
readonly port: pulumi.Output<number>;
|
|
106
|
+
/**
|
|
107
|
+
* he URL that contains a Signature Version 4 signed request.
|
|
108
|
+
*/
|
|
109
|
+
readonly presignedUrl: pulumi.Output<string | undefined>;
|
|
110
|
+
readonly snapshotType: pulumi.Output<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Snapshot identifier of the source snapshot.
|
|
113
|
+
*/
|
|
114
|
+
readonly sourceDbSnapshotIdentifier: pulumi.Output<string>;
|
|
115
|
+
/**
|
|
116
|
+
* The region that the DB snapshot was created in or copied from.
|
|
117
|
+
*/
|
|
118
|
+
readonly sourceRegion: pulumi.Output<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Specifies the storage type associated with DB snapshot.
|
|
121
|
+
*/
|
|
122
|
+
readonly storageType: pulumi.Output<string>;
|
|
123
|
+
/**
|
|
124
|
+
* Key-value map of resource tags. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
125
|
+
*/
|
|
126
|
+
readonly tags: pulumi.Output<{
|
|
127
|
+
[key: string]: string;
|
|
128
|
+
} | undefined>;
|
|
129
|
+
/**
|
|
130
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
131
|
+
*/
|
|
132
|
+
readonly tagsAll: pulumi.Output<{
|
|
133
|
+
[key: string]: string;
|
|
134
|
+
}>;
|
|
135
|
+
/**
|
|
136
|
+
* The external custom Availability Zone.
|
|
137
|
+
*/
|
|
138
|
+
readonly targetCustomAvailabilityZone: pulumi.Output<string | undefined>;
|
|
139
|
+
/**
|
|
140
|
+
* The Identifier for the snapshot.
|
|
141
|
+
*/
|
|
142
|
+
readonly targetDbSnapshotIdentifier: pulumi.Output<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Provides the VPC ID associated with the DB snapshot.
|
|
145
|
+
*/
|
|
146
|
+
readonly vpcId: pulumi.Output<string>;
|
|
147
|
+
/**
|
|
148
|
+
* Create a SnapshotCopy resource with the given unique name, arguments, and options.
|
|
149
|
+
*
|
|
150
|
+
* @param name The _unique_ name of the resource.
|
|
151
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
152
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
153
|
+
*/
|
|
154
|
+
constructor(name: string, args: SnapshotCopyArgs, opts?: pulumi.CustomResourceOptions);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Input properties used for looking up and filtering SnapshotCopy resources.
|
|
158
|
+
*/
|
|
159
|
+
export interface SnapshotCopyState {
|
|
160
|
+
/**
|
|
161
|
+
* Specifies the allocated storage size in gigabytes (GB).
|
|
162
|
+
*/
|
|
163
|
+
allocatedStorage?: pulumi.Input<number>;
|
|
164
|
+
/**
|
|
165
|
+
* Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
|
|
166
|
+
*/
|
|
167
|
+
availabilityZone?: pulumi.Input<string>;
|
|
168
|
+
/**
|
|
169
|
+
* Whether to copy existing tags. Defaults to `false`.
|
|
170
|
+
*/
|
|
171
|
+
copyTags?: pulumi.Input<boolean>;
|
|
172
|
+
/**
|
|
173
|
+
* The Amazon Resource Name (ARN) for the DB snapshot.
|
|
174
|
+
*/
|
|
175
|
+
dbSnapshotArn?: pulumi.Input<string>;
|
|
176
|
+
/**
|
|
177
|
+
* The Destination region to place snapshot copy.
|
|
178
|
+
*/
|
|
179
|
+
destinationRegion?: pulumi.Input<string>;
|
|
180
|
+
/**
|
|
181
|
+
* Specifies whether the DB snapshot is encrypted.
|
|
182
|
+
*/
|
|
183
|
+
encrypted?: pulumi.Input<boolean>;
|
|
184
|
+
/**
|
|
185
|
+
* Specifies the name of the database engine.
|
|
186
|
+
*/
|
|
187
|
+
engine?: pulumi.Input<string>;
|
|
188
|
+
/**
|
|
189
|
+
* Specifies the version of the database engine.
|
|
190
|
+
*/
|
|
191
|
+
engineVersion?: pulumi.Input<string>;
|
|
192
|
+
/**
|
|
193
|
+
* Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.
|
|
194
|
+
*/
|
|
195
|
+
iops?: pulumi.Input<number>;
|
|
196
|
+
/**
|
|
197
|
+
* KMS key ID.
|
|
198
|
+
*/
|
|
199
|
+
kmsKeyId?: pulumi.Input<string>;
|
|
200
|
+
/**
|
|
201
|
+
* License model information for the restored DB instance.
|
|
202
|
+
*/
|
|
203
|
+
licenseModel?: pulumi.Input<string>;
|
|
204
|
+
/**
|
|
205
|
+
* The name of an option group to associate with the copy of the snapshot.
|
|
206
|
+
*/
|
|
207
|
+
optionGroupName?: pulumi.Input<string>;
|
|
208
|
+
port?: pulumi.Input<number>;
|
|
209
|
+
/**
|
|
210
|
+
* he URL that contains a Signature Version 4 signed request.
|
|
211
|
+
*/
|
|
212
|
+
presignedUrl?: pulumi.Input<string>;
|
|
213
|
+
snapshotType?: pulumi.Input<string>;
|
|
214
|
+
/**
|
|
215
|
+
* Snapshot identifier of the source snapshot.
|
|
216
|
+
*/
|
|
217
|
+
sourceDbSnapshotIdentifier?: pulumi.Input<string>;
|
|
218
|
+
/**
|
|
219
|
+
* The region that the DB snapshot was created in or copied from.
|
|
220
|
+
*/
|
|
221
|
+
sourceRegion?: pulumi.Input<string>;
|
|
222
|
+
/**
|
|
223
|
+
* Specifies the storage type associated with DB snapshot.
|
|
224
|
+
*/
|
|
225
|
+
storageType?: pulumi.Input<string>;
|
|
226
|
+
/**
|
|
227
|
+
* Key-value map of resource tags. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
228
|
+
*/
|
|
229
|
+
tags?: pulumi.Input<{
|
|
230
|
+
[key: string]: pulumi.Input<string>;
|
|
231
|
+
}>;
|
|
232
|
+
/**
|
|
233
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
234
|
+
*/
|
|
235
|
+
tagsAll?: pulumi.Input<{
|
|
236
|
+
[key: string]: pulumi.Input<string>;
|
|
237
|
+
}>;
|
|
238
|
+
/**
|
|
239
|
+
* The external custom Availability Zone.
|
|
240
|
+
*/
|
|
241
|
+
targetCustomAvailabilityZone?: pulumi.Input<string>;
|
|
242
|
+
/**
|
|
243
|
+
* The Identifier for the snapshot.
|
|
244
|
+
*/
|
|
245
|
+
targetDbSnapshotIdentifier?: pulumi.Input<string>;
|
|
246
|
+
/**
|
|
247
|
+
* Provides the VPC ID associated with the DB snapshot.
|
|
248
|
+
*/
|
|
249
|
+
vpcId?: pulumi.Input<string>;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* The set of arguments for constructing a SnapshotCopy resource.
|
|
253
|
+
*/
|
|
254
|
+
export interface SnapshotCopyArgs {
|
|
255
|
+
/**
|
|
256
|
+
* Whether to copy existing tags. Defaults to `false`.
|
|
257
|
+
*/
|
|
258
|
+
copyTags?: pulumi.Input<boolean>;
|
|
259
|
+
/**
|
|
260
|
+
* The Destination region to place snapshot copy.
|
|
261
|
+
*/
|
|
262
|
+
destinationRegion?: pulumi.Input<string>;
|
|
263
|
+
/**
|
|
264
|
+
* KMS key ID.
|
|
265
|
+
*/
|
|
266
|
+
kmsKeyId?: pulumi.Input<string>;
|
|
267
|
+
/**
|
|
268
|
+
* The name of an option group to associate with the copy of the snapshot.
|
|
269
|
+
*/
|
|
270
|
+
optionGroupName?: pulumi.Input<string>;
|
|
271
|
+
/**
|
|
272
|
+
* he URL that contains a Signature Version 4 signed request.
|
|
273
|
+
*/
|
|
274
|
+
presignedUrl?: pulumi.Input<string>;
|
|
275
|
+
/**
|
|
276
|
+
* Snapshot identifier of the source snapshot.
|
|
277
|
+
*/
|
|
278
|
+
sourceDbSnapshotIdentifier: pulumi.Input<string>;
|
|
279
|
+
/**
|
|
280
|
+
* Key-value map of resource tags. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
281
|
+
*/
|
|
282
|
+
tags?: pulumi.Input<{
|
|
283
|
+
[key: string]: pulumi.Input<string>;
|
|
284
|
+
}>;
|
|
285
|
+
/**
|
|
286
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
287
|
+
*/
|
|
288
|
+
tagsAll?: pulumi.Input<{
|
|
289
|
+
[key: string]: pulumi.Input<string>;
|
|
290
|
+
}>;
|
|
291
|
+
/**
|
|
292
|
+
* The external custom Availability Zone.
|
|
293
|
+
*/
|
|
294
|
+
targetCustomAvailabilityZone?: pulumi.Input<string>;
|
|
295
|
+
/**
|
|
296
|
+
* The Identifier for the snapshot.
|
|
297
|
+
*/
|
|
298
|
+
targetDbSnapshotIdentifier: pulumi.Input<string>;
|
|
299
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.SnapshotCopy = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages an RDS database instance snapshot copy. For managing RDS database cluster snapshots, see the [`aws.rds.ClusterSnapshot` resource](https://www.terraform.io/docs/providers/aws/r/db_cluster_snapshot.html).
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as aws from "@pulumi/aws";
|
|
16
|
+
*
|
|
17
|
+
* const exampleInstance = new aws.rds.Instance("exampleInstance", {
|
|
18
|
+
* allocatedStorage: 10,
|
|
19
|
+
* engine: "mysql",
|
|
20
|
+
* engineVersion: "5.6.21",
|
|
21
|
+
* instanceClass: "db.t2.micro",
|
|
22
|
+
* name: "baz",
|
|
23
|
+
* password: "barbarbarbar",
|
|
24
|
+
* username: "foo",
|
|
25
|
+
* maintenanceWindow: "Fri:09:00-Fri:09:30",
|
|
26
|
+
* backupRetentionPeriod: 0,
|
|
27
|
+
* parameterGroupName: "default.mysql5.6",
|
|
28
|
+
* });
|
|
29
|
+
* const exampleSnapshot = new aws.rds.Snapshot("exampleSnapshot", {
|
|
30
|
+
* dbInstanceIdentifier: exampleInstance.id,
|
|
31
|
+
* dbSnapshotIdentifier: "testsnapshot1234",
|
|
32
|
+
* });
|
|
33
|
+
* const exampleSnapshotCopy = new aws.rds.SnapshotCopy("exampleSnapshotCopy", {
|
|
34
|
+
* sourceDbSnapshotIdentifier: exampleSnapshot.dbSnapshotArn,
|
|
35
|
+
* targetDbSnapshotIdentifier: "testsnapshot1234-copy",
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* ## Import
|
|
40
|
+
*
|
|
41
|
+
* `aws_db_snapshot_copy` can be imported by using the snapshot identifier, e.g.,
|
|
42
|
+
*
|
|
43
|
+
* ```sh
|
|
44
|
+
* $ pulumi import aws:rds/snapshotCopy:SnapshotCopy example my-snapshot
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
class SnapshotCopy extends pulumi.CustomResource {
|
|
48
|
+
constructor(name, argsOrState, opts) {
|
|
49
|
+
let resourceInputs = {};
|
|
50
|
+
opts = opts || {};
|
|
51
|
+
if (opts.id) {
|
|
52
|
+
const state = argsOrState;
|
|
53
|
+
resourceInputs["allocatedStorage"] = state ? state.allocatedStorage : undefined;
|
|
54
|
+
resourceInputs["availabilityZone"] = state ? state.availabilityZone : undefined;
|
|
55
|
+
resourceInputs["copyTags"] = state ? state.copyTags : undefined;
|
|
56
|
+
resourceInputs["dbSnapshotArn"] = state ? state.dbSnapshotArn : undefined;
|
|
57
|
+
resourceInputs["destinationRegion"] = state ? state.destinationRegion : undefined;
|
|
58
|
+
resourceInputs["encrypted"] = state ? state.encrypted : undefined;
|
|
59
|
+
resourceInputs["engine"] = state ? state.engine : undefined;
|
|
60
|
+
resourceInputs["engineVersion"] = state ? state.engineVersion : undefined;
|
|
61
|
+
resourceInputs["iops"] = state ? state.iops : undefined;
|
|
62
|
+
resourceInputs["kmsKeyId"] = state ? state.kmsKeyId : undefined;
|
|
63
|
+
resourceInputs["licenseModel"] = state ? state.licenseModel : undefined;
|
|
64
|
+
resourceInputs["optionGroupName"] = state ? state.optionGroupName : undefined;
|
|
65
|
+
resourceInputs["port"] = state ? state.port : undefined;
|
|
66
|
+
resourceInputs["presignedUrl"] = state ? state.presignedUrl : undefined;
|
|
67
|
+
resourceInputs["snapshotType"] = state ? state.snapshotType : undefined;
|
|
68
|
+
resourceInputs["sourceDbSnapshotIdentifier"] = state ? state.sourceDbSnapshotIdentifier : undefined;
|
|
69
|
+
resourceInputs["sourceRegion"] = state ? state.sourceRegion : undefined;
|
|
70
|
+
resourceInputs["storageType"] = state ? state.storageType : undefined;
|
|
71
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
72
|
+
resourceInputs["tagsAll"] = state ? state.tagsAll : undefined;
|
|
73
|
+
resourceInputs["targetCustomAvailabilityZone"] = state ? state.targetCustomAvailabilityZone : undefined;
|
|
74
|
+
resourceInputs["targetDbSnapshotIdentifier"] = state ? state.targetDbSnapshotIdentifier : undefined;
|
|
75
|
+
resourceInputs["vpcId"] = state ? state.vpcId : undefined;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
const args = argsOrState;
|
|
79
|
+
if ((!args || args.sourceDbSnapshotIdentifier === undefined) && !opts.urn) {
|
|
80
|
+
throw new Error("Missing required property 'sourceDbSnapshotIdentifier'");
|
|
81
|
+
}
|
|
82
|
+
if ((!args || args.targetDbSnapshotIdentifier === undefined) && !opts.urn) {
|
|
83
|
+
throw new Error("Missing required property 'targetDbSnapshotIdentifier'");
|
|
84
|
+
}
|
|
85
|
+
resourceInputs["copyTags"] = args ? args.copyTags : undefined;
|
|
86
|
+
resourceInputs["destinationRegion"] = args ? args.destinationRegion : undefined;
|
|
87
|
+
resourceInputs["kmsKeyId"] = args ? args.kmsKeyId : undefined;
|
|
88
|
+
resourceInputs["optionGroupName"] = args ? args.optionGroupName : undefined;
|
|
89
|
+
resourceInputs["presignedUrl"] = args ? args.presignedUrl : undefined;
|
|
90
|
+
resourceInputs["sourceDbSnapshotIdentifier"] = args ? args.sourceDbSnapshotIdentifier : undefined;
|
|
91
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
92
|
+
resourceInputs["tagsAll"] = args ? args.tagsAll : undefined;
|
|
93
|
+
resourceInputs["targetCustomAvailabilityZone"] = args ? args.targetCustomAvailabilityZone : undefined;
|
|
94
|
+
resourceInputs["targetDbSnapshotIdentifier"] = args ? args.targetDbSnapshotIdentifier : undefined;
|
|
95
|
+
resourceInputs["allocatedStorage"] = undefined /*out*/;
|
|
96
|
+
resourceInputs["availabilityZone"] = undefined /*out*/;
|
|
97
|
+
resourceInputs["dbSnapshotArn"] = undefined /*out*/;
|
|
98
|
+
resourceInputs["encrypted"] = undefined /*out*/;
|
|
99
|
+
resourceInputs["engine"] = undefined /*out*/;
|
|
100
|
+
resourceInputs["engineVersion"] = undefined /*out*/;
|
|
101
|
+
resourceInputs["iops"] = undefined /*out*/;
|
|
102
|
+
resourceInputs["licenseModel"] = undefined /*out*/;
|
|
103
|
+
resourceInputs["port"] = undefined /*out*/;
|
|
104
|
+
resourceInputs["snapshotType"] = undefined /*out*/;
|
|
105
|
+
resourceInputs["sourceRegion"] = undefined /*out*/;
|
|
106
|
+
resourceInputs["storageType"] = undefined /*out*/;
|
|
107
|
+
resourceInputs["vpcId"] = undefined /*out*/;
|
|
108
|
+
}
|
|
109
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
110
|
+
super(SnapshotCopy.__pulumiType, name, resourceInputs, opts);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Get an existing SnapshotCopy resource's state with the given name, ID, and optional extra
|
|
114
|
+
* properties used to qualify the lookup.
|
|
115
|
+
*
|
|
116
|
+
* @param name The _unique_ name of the resulting resource.
|
|
117
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
118
|
+
* @param state Any extra arguments used during the lookup.
|
|
119
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
120
|
+
*/
|
|
121
|
+
static get(name, id, state, opts) {
|
|
122
|
+
return new SnapshotCopy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Returns true if the given object is an instance of SnapshotCopy. This is designed to work even
|
|
126
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
127
|
+
*/
|
|
128
|
+
static isInstance(obj) {
|
|
129
|
+
if (obj === undefined || obj === null) {
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
132
|
+
return obj['__pulumiType'] === SnapshotCopy.__pulumiType;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
exports.SnapshotCopy = SnapshotCopy;
|
|
136
|
+
/** @internal */
|
|
137
|
+
SnapshotCopy.__pulumiType = 'aws:rds/snapshotCopy:SnapshotCopy';
|
|
138
|
+
//# sourceMappingURL=snapshotCopy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshotCopy.js","sourceRoot":"","sources":["../../rds/snapshotCopy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IA2HnD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,C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AAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;;AA1BL,oCA0LC;AA5KG,gBAAgB;AACO,yBAAY,GAAG,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Creates a Redshift authentication profile
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as aws from "@pulumi/aws";
|
|
10
|
+
*
|
|
11
|
+
* const example = new aws.redshift.AuthenticationProfile("example", {
|
|
12
|
+
* authenticationProfileName: "example",
|
|
13
|
+
* authenticationProfileContent: JSON.stringify({
|
|
14
|
+
* AllowDBUserOverride: "1",
|
|
15
|
+
* Client_ID: "ExampleClientID",
|
|
16
|
+
* App_ID: "example",
|
|
17
|
+
* }),
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* ## Import
|
|
22
|
+
*
|
|
23
|
+
* Redshift Authentication Profiles support import by `authentication_profile_name`, e.g., console
|
|
24
|
+
*
|
|
25
|
+
* ```sh
|
|
26
|
+
* $ pulumi import aws:redshift/authenticationProfile:AuthenticationProfile test example
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare class AuthenticationProfile extends pulumi.CustomResource {
|
|
30
|
+
/**
|
|
31
|
+
* Get an existing AuthenticationProfile resource's state with the given name, ID, and optional extra
|
|
32
|
+
* properties used to qualify the lookup.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resulting resource.
|
|
35
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
36
|
+
* @param state Any extra arguments used during the lookup.
|
|
37
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
38
|
+
*/
|
|
39
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AuthenticationProfileState, opts?: pulumi.CustomResourceOptions): AuthenticationProfile;
|
|
40
|
+
/**
|
|
41
|
+
* Returns true if the given object is an instance of AuthenticationProfile. This is designed to work even
|
|
42
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
43
|
+
*/
|
|
44
|
+
static isInstance(obj: any): obj is AuthenticationProfile;
|
|
45
|
+
/**
|
|
46
|
+
* The content of the authentication profile in JSON format. The maximum length of the JSON string is determined by a quota for your account.
|
|
47
|
+
*/
|
|
48
|
+
readonly authenticationProfileContent: pulumi.Output<string>;
|
|
49
|
+
/**
|
|
50
|
+
* The name of the authentication profile.
|
|
51
|
+
*/
|
|
52
|
+
readonly authenticationProfileName: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Create a AuthenticationProfile resource with the given unique name, arguments, and options.
|
|
55
|
+
*
|
|
56
|
+
* @param name The _unique_ name of the resource.
|
|
57
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
58
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
59
|
+
*/
|
|
60
|
+
constructor(name: string, args: AuthenticationProfileArgs, opts?: pulumi.CustomResourceOptions);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Input properties used for looking up and filtering AuthenticationProfile resources.
|
|
64
|
+
*/
|
|
65
|
+
export interface AuthenticationProfileState {
|
|
66
|
+
/**
|
|
67
|
+
* The content of the authentication profile in JSON format. The maximum length of the JSON string is determined by a quota for your account.
|
|
68
|
+
*/
|
|
69
|
+
authenticationProfileContent?: pulumi.Input<string>;
|
|
70
|
+
/**
|
|
71
|
+
* The name of the authentication profile.
|
|
72
|
+
*/
|
|
73
|
+
authenticationProfileName?: pulumi.Input<string>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The set of arguments for constructing a AuthenticationProfile resource.
|
|
77
|
+
*/
|
|
78
|
+
export interface AuthenticationProfileArgs {
|
|
79
|
+
/**
|
|
80
|
+
* The content of the authentication profile in JSON format. The maximum length of the JSON string is determined by a quota for your account.
|
|
81
|
+
*/
|
|
82
|
+
authenticationProfileContent: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The name of the authentication profile.
|
|
85
|
+
*/
|
|
86
|
+
authenticationProfileName: pulumi.Input<string>;
|
|
87
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.AuthenticationProfile = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Creates a Redshift authentication profile
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as aws from "@pulumi/aws";
|
|
16
|
+
*
|
|
17
|
+
* const example = new aws.redshift.AuthenticationProfile("example", {
|
|
18
|
+
* authenticationProfileName: "example",
|
|
19
|
+
* authenticationProfileContent: JSON.stringify({
|
|
20
|
+
* AllowDBUserOverride: "1",
|
|
21
|
+
* Client_ID: "ExampleClientID",
|
|
22
|
+
* App_ID: "example",
|
|
23
|
+
* }),
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ## Import
|
|
28
|
+
*
|
|
29
|
+
* Redshift Authentication Profiles support import by `authentication_profile_name`, e.g., console
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import aws:redshift/authenticationProfile:AuthenticationProfile test example
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
class AuthenticationProfile extends pulumi.CustomResource {
|
|
36
|
+
constructor(name, argsOrState, opts) {
|
|
37
|
+
let resourceInputs = {};
|
|
38
|
+
opts = opts || {};
|
|
39
|
+
if (opts.id) {
|
|
40
|
+
const state = argsOrState;
|
|
41
|
+
resourceInputs["authenticationProfileContent"] = state ? state.authenticationProfileContent : undefined;
|
|
42
|
+
resourceInputs["authenticationProfileName"] = state ? state.authenticationProfileName : undefined;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
const args = argsOrState;
|
|
46
|
+
if ((!args || args.authenticationProfileContent === undefined) && !opts.urn) {
|
|
47
|
+
throw new Error("Missing required property 'authenticationProfileContent'");
|
|
48
|
+
}
|
|
49
|
+
if ((!args || args.authenticationProfileName === undefined) && !opts.urn) {
|
|
50
|
+
throw new Error("Missing required property 'authenticationProfileName'");
|
|
51
|
+
}
|
|
52
|
+
resourceInputs["authenticationProfileContent"] = args ? args.authenticationProfileContent : undefined;
|
|
53
|
+
resourceInputs["authenticationProfileName"] = args ? args.authenticationProfileName : undefined;
|
|
54
|
+
}
|
|
55
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
56
|
+
super(AuthenticationProfile.__pulumiType, name, resourceInputs, opts);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Get an existing AuthenticationProfile resource's state with the given name, ID, and optional extra
|
|
60
|
+
* properties used to qualify the lookup.
|
|
61
|
+
*
|
|
62
|
+
* @param name The _unique_ name of the resulting resource.
|
|
63
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
64
|
+
* @param state Any extra arguments used during the lookup.
|
|
65
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
66
|
+
*/
|
|
67
|
+
static get(name, id, state, opts) {
|
|
68
|
+
return new AuthenticationProfile(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Returns true if the given object is an instance of AuthenticationProfile. This is designed to work even
|
|
72
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
73
|
+
*/
|
|
74
|
+
static isInstance(obj) {
|
|
75
|
+
if (obj === undefined || obj === null) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
return obj['__pulumiType'] === AuthenticationProfile.__pulumiType;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.AuthenticationProfile = AuthenticationProfile;
|
|
82
|
+
/** @internal */
|
|
83
|
+
AuthenticationProfile.__pulumiType = 'aws:redshift/authenticationProfile:AuthenticationProfile';
|
|
84
|
+
//# sourceMappingURL=authenticationProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authenticationProfile.js","sourceRoot":"","sources":["../../redshift/authenticationProfile.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IA6C5D,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqD,CAAC;YACpE,cAAc,CAAC,8BAA8B,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC,CAAC,SAAS,CAAC;YACxG,cAAc,CAAC,2BAA2B,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,yBA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