Skip to content

Commit a35d23c

Browse files
author
awstools
committed
feat(client-redshift): This release adds support for multi-data warehouse writes through data sharing.
1 parent 95b2429 commit a35d23c

11 files changed

+78
-0
lines changed

clients/client-redshift/src/commands/AssociateDataShareConsumerCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export interface AssociateDataShareConsumerCommandOutput extends DataShare, __Me
5151
* AssociateEntireAccount: true || false,
5252
* ConsumerArn: "STRING_VALUE",
5353
* ConsumerRegion: "STRING_VALUE",
54+
* AllowWrites: true || false,
5455
* };
5556
* const command = new AssociateDataShareConsumerCommand(input);
5657
* const response = await client.send(command);
@@ -65,6 +66,8 @@ export interface AssociateDataShareConsumerCommandOutput extends DataShare, __Me
6566
* // ConsumerRegion: "STRING_VALUE",
6667
* // CreatedDate: new Date("TIMESTAMP"),
6768
* // StatusChangeDate: new Date("TIMESTAMP"),
69+
* // ProducerAllowedWrites: true || false,
70+
* // ConsumerAcceptedWrites: true || false,
6871
* // },
6972
* // ],
7073
* // ManagedBy: "STRING_VALUE",

clients/client-redshift/src/commands/AuthorizeDataShareCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export interface AuthorizeDataShareCommandOutput extends DataShare, __MetadataBe
4949
* const input = { // AuthorizeDataShareMessage
5050
* DataShareArn: "STRING_VALUE", // required
5151
* ConsumerIdentifier: "STRING_VALUE", // required
52+
* AllowWrites: true || false,
5253
* };
5354
* const command = new AuthorizeDataShareCommand(input);
5455
* const response = await client.send(command);
@@ -63,6 +64,8 @@ export interface AuthorizeDataShareCommandOutput extends DataShare, __MetadataBe
6364
* // ConsumerRegion: "STRING_VALUE",
6465
* // CreatedDate: new Date("TIMESTAMP"),
6566
* // StatusChangeDate: new Date("TIMESTAMP"),
67+
* // ProducerAllowedWrites: true || false,
68+
* // ConsumerAcceptedWrites: true || false,
6669
* // },
6770
* // ],
6871
* // ManagedBy: "STRING_VALUE",

clients/client-redshift/src/commands/DeauthorizeDataShareCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ export interface DeauthorizeDataShareCommandOutput extends DataShare, __Metadata
6161
* // ConsumerRegion: "STRING_VALUE",
6262
* // CreatedDate: new Date("TIMESTAMP"),
6363
* // StatusChangeDate: new Date("TIMESTAMP"),
64+
* // ProducerAllowedWrites: true || false,
65+
* // ConsumerAcceptedWrites: true || false,
6466
* // },
6567
* // ],
6668
* // ManagedBy: "STRING_VALUE",

clients/client-redshift/src/commands/DescribeDataSharesCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ export interface DescribeDataSharesCommandOutput extends DescribeDataSharesResul
6565
* // ConsumerRegion: "STRING_VALUE",
6666
* // CreatedDate: new Date("TIMESTAMP"),
6767
* // StatusChangeDate: new Date("TIMESTAMP"),
68+
* // ProducerAllowedWrites: true || false,
69+
* // ConsumerAcceptedWrites: true || false,
6870
* // },
6971
* // ],
7072
* // ManagedBy: "STRING_VALUE",

clients/client-redshift/src/commands/DescribeDataSharesForConsumerCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ export interface DescribeDataSharesForConsumerCommandOutput
7070
* // ConsumerRegion: "STRING_VALUE",
7171
* // CreatedDate: new Date("TIMESTAMP"),
7272
* // StatusChangeDate: new Date("TIMESTAMP"),
73+
* // ProducerAllowedWrites: true || false,
74+
* // ConsumerAcceptedWrites: true || false,
7375
* // },
7476
* // ],
7577
* // ManagedBy: "STRING_VALUE",

clients/client-redshift/src/commands/DescribeDataSharesForProducerCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ export interface DescribeDataSharesForProducerCommandOutput
7070
* // ConsumerRegion: "STRING_VALUE",
7171
* // CreatedDate: new Date("TIMESTAMP"),
7272
* // StatusChangeDate: new Date("TIMESTAMP"),
73+
* // ProducerAllowedWrites: true || false,
74+
* // ConsumerAcceptedWrites: true || false,
7375
* // },
7476
* // ],
7577
* // ManagedBy: "STRING_VALUE",

clients/client-redshift/src/commands/DisassociateDataShareConsumerCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ export interface DisassociateDataShareConsumerCommandOutput extends DataShare, _
6868
* // ConsumerRegion: "STRING_VALUE",
6969
* // CreatedDate: new Date("TIMESTAMP"),
7070
* // StatusChangeDate: new Date("TIMESTAMP"),
71+
* // ProducerAllowedWrites: true || false,
72+
* // ConsumerAcceptedWrites: true || false,
7173
* // },
7274
* // ],
7375
* // ManagedBy: "STRING_VALUE",

clients/client-redshift/src/commands/RejectDataShareCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ export interface RejectDataShareCommandOutput extends DataShare, __MetadataBeare
6161
* // ConsumerRegion: "STRING_VALUE",
6262
* // CreatedDate: new Date("TIMESTAMP"),
6363
* // StatusChangeDate: new Date("TIMESTAMP"),
64+
* // ProducerAllowedWrites: true || false,
65+
* // ConsumerAcceptedWrites: true || false,
6466
* // },
6567
* // ],
6668
* // ManagedBy: "STRING_VALUE",

clients/client-redshift/src/models/models_0.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,12 @@ export interface AssociateDataShareConsumerMessage {
616616
* <p>From a datashare consumer account, associates a datashare with all existing and future namespaces in the specified Amazon Web Services Region.</p>
617617
*/
618618
ConsumerRegion?: string;
619+
620+
/**
621+
* @public
622+
* <p>If set to true, allows write operations for a datashare.</p>
623+
*/
624+
AllowWrites?: boolean;
619625
}
620626

621627
/**
@@ -672,6 +678,18 @@ export interface DataShareAssociation {
672678
* <p>The status change data of the datashare that is associated.</p>
673679
*/
674680
StatusChangeDate?: Date;
681+
682+
/**
683+
* @public
684+
* <p>Specifies whether write operations were allowed during data share authorization.</p>
685+
*/
686+
ProducerAllowedWrites?: boolean;
687+
688+
/**
689+
* @public
690+
* <p>Specifies whether write operations were allowed during data share association.</p>
691+
*/
692+
ConsumerAcceptedWrites?: boolean;
675693
}
676694

677695
/**
@@ -1196,6 +1214,12 @@ export interface AuthorizeDataShareMessage {
11961214
* <p>The identifier of the data consumer that is authorized to access the datashare. This identifier is an Amazon Web Services account ID or a keyword, such as ADX.</p>
11971215
*/
11981216
ConsumerIdentifier: string | undefined;
1217+
1218+
/**
1219+
* @public
1220+
* <p>If set to true, allows write operations for a datashare.</p>
1221+
*/
1222+
AllowWrites?: boolean;
11991223
}
12001224

12011225
/**

clients/client-redshift/src/protocols/Aws_query.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12535,6 +12535,9 @@ const se_AssociateDataShareConsumerMessage = (
1253512535
if (input.ConsumerRegion != null) {
1253612536
entries["ConsumerRegion"] = input.ConsumerRegion;
1253712537
}
12538+
if (input.AllowWrites != null) {
12539+
entries["AllowWrites"] = input.AllowWrites;
12540+
}
1253812541
return entries;
1253912542
};
1254012543

@@ -12588,6 +12591,9 @@ const se_AuthorizeDataShareMessage = (input: AuthorizeDataShareMessage, context:
1258812591
if (input.ConsumerIdentifier != null) {
1258912592
entries["ConsumerIdentifier"] = input.ConsumerIdentifier;
1259012593
}
12594+
if (input.AllowWrites != null) {
12595+
entries["AllowWrites"] = input.AllowWrites;
12596+
}
1259112597
return entries;
1259212598
};
1259312599

@@ -18379,6 +18385,12 @@ const de_DataShareAssociation = (output: any, context: __SerdeContext): DataShar
1837918385
if (output["StatusChangeDate"] !== undefined) {
1838018386
contents.StatusChangeDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["StatusChangeDate"]));
1838118387
}
18388+
if (output["ProducerAllowedWrites"] !== undefined) {
18389+
contents.ProducerAllowedWrites = __parseBoolean(output["ProducerAllowedWrites"]);
18390+
}
18391+
if (output["ConsumerAcceptedWrites"] !== undefined) {
18392+
contents.ConsumerAcceptedWrites = __parseBoolean(output["ConsumerAcceptedWrites"]);
18393+
}
1838218394
return contents;
1838318395
};
1838418396

codegen/sdk-codegen/aws-models/redshift.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,12 @@
359359
"traits": {
360360
"smithy.api#documentation": "<p>From a datashare consumer account, associates a datashare with all existing and future namespaces in the specified Amazon Web Services Region.</p>"
361361
}
362+
},
363+
"AllowWrites": {
364+
"target": "com.amazonaws.redshift#BooleanOptional",
365+
"traits": {
366+
"smithy.api#documentation": "<p>If set to true, allows write operations for a datashare.</p>"
367+
}
362368
}
363369
},
364370
"traits": {
@@ -712,6 +718,12 @@
712718
"smithy.api#documentation": "<p>The identifier of the data consumer that is authorized to access the datashare. This identifier is an Amazon Web Services account ID or a keyword, such as ADX.</p>",
713719
"smithy.api#required": {}
714720
}
721+
},
722+
"AllowWrites": {
723+
"target": "com.amazonaws.redshift#BooleanOptional",
724+
"traits": {
725+
"smithy.api#documentation": "<p>If set to true, allows write operations for a datashare.</p>"
726+
}
715727
}
716728
},
717729
"traits": {
@@ -4455,6 +4467,18 @@
44554467
"traits": {
44564468
"smithy.api#documentation": "<p>The status change data of the datashare that is associated.</p>"
44574469
}
4470+
},
4471+
"ProducerAllowedWrites": {
4472+
"target": "com.amazonaws.redshift#BooleanOptional",
4473+
"traits": {
4474+
"smithy.api#documentation": "<p>Specifies whether write operations were allowed during data share authorization.</p>"
4475+
}
4476+
},
4477+
"ConsumerAcceptedWrites": {
4478+
"target": "com.amazonaws.redshift#BooleanOptional",
4479+
"traits": {
4480+
"smithy.api#documentation": "<p>Specifies whether write operations were allowed during data share association.</p>"
4481+
}
44584482
}
44594483
},
44604484
"traits": {

0 commit comments

Comments
 (0)