Skip to content

Commit bf85814

Browse files
author
awstools
committed
feat(client-redshift): Adds support for Amazon Redshift S3AccessGrants
1 parent b2df1e1 commit bf85814

9 files changed

+362
-109
lines changed

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

+14
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ export interface CreateRedshiftIdcApplicationCommandOutput
6060
* },
6161
* },
6262
* ],
63+
* S3AccessGrants: [ // S3AccessGrantsServiceIntegrations
64+
* { // S3AccessGrantsScopeUnion Union: only one key present
65+
* ReadWriteAccess: { // ReadWriteAccess
66+
* Authorization: "Enabled" || "Disabled", // required
67+
* },
68+
* },
69+
* ],
6370
* },
6471
* ],
6572
* };
@@ -92,6 +99,13 @@ export interface CreateRedshiftIdcApplicationCommandOutput
9299
* // },
93100
* // },
94101
* // ],
102+
* // S3AccessGrants: [ // S3AccessGrantsServiceIntegrations
103+
* // { // S3AccessGrantsScopeUnion Union: only one key present
104+
* // ReadWriteAccess: { // ReadWriteAccess
105+
* // Authorization: "Enabled" || "Disabled", // required
106+
* // },
107+
* // },
108+
* // ],
95109
* // },
96110
* // ],
97111
* // },

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { ClusterParameterGroupDetails, DescribeClusterParametersMessage } from "../models/models_0";
8+
import { ClusterParameterGroupDetails } from "../models/models_0";
9+
import { DescribeClusterParametersMessage } from "../models/models_1";
910
import { de_DescribeClusterParametersCommand, se_DescribeClusterParametersCommand } from "../protocols/Aws_query";
1011
import { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient";
1112

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { ClustersMessage, ClustersMessageFilterSensitiveLog, DescribeClustersMessage } from "../models/models_0";
8+
import { ClustersMessage, ClustersMessageFilterSensitiveLog } from "../models/models_0";
9+
import { DescribeClustersMessage } from "../models/models_1";
910
import { de_DescribeClustersCommand, se_DescribeClustersCommand } from "../protocols/Aws_query";
1011
import { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient";
1112

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

+7
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ export interface DescribeRedshiftIdcApplicationsCommandOutput
7575
* // },
7676
* // },
7777
* // ],
78+
* // S3AccessGrants: [ // S3AccessGrantsServiceIntegrations
79+
* // { // S3AccessGrantsScopeUnion Union: only one key present
80+
* // ReadWriteAccess: { // ReadWriteAccess
81+
* // Authorization: "Enabled" || "Disabled", // required
82+
* // },
83+
* // },
84+
* // ],
7885
* // },
7986
* // ],
8087
* // },

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

+14
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ export interface ModifyRedshiftIdcApplicationCommandOutput
5959
* },
6060
* },
6161
* ],
62+
* S3AccessGrants: [ // S3AccessGrantsServiceIntegrations
63+
* { // S3AccessGrantsScopeUnion Union: only one key present
64+
* ReadWriteAccess: { // ReadWriteAccess
65+
* Authorization: "Enabled" || "Disabled", // required
66+
* },
67+
* },
68+
* ],
6269
* },
6370
* ],
6471
* };
@@ -91,6 +98,13 @@ export interface ModifyRedshiftIdcApplicationCommandOutput
9198
* // },
9299
* // },
93100
* // ],
101+
* // S3AccessGrants: [ // S3AccessGrantsServiceIntegrations
102+
* // { // S3AccessGrantsScopeUnion Union: only one key present
103+
* // ReadWriteAccess: { // ReadWriteAccess
104+
* // Authorization: "Enabled" || "Disabled", // required
105+
* // },
106+
* // },
107+
* // ],
94108
* // },
95109
* // ],
96110
* // },

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

+67-105
Original file line numberDiff line numberDiff line change
@@ -6636,12 +6636,65 @@ export namespace LakeFormationScopeUnion {
66366636
};
66376637
}
66386638

6639+
/**
6640+
* <p>The S3 Access Grants scope.</p>
6641+
* @public
6642+
*/
6643+
export interface ReadWriteAccess {
6644+
/**
6645+
* <p>Determines whether the read/write scope is enabled or disabled.</p>
6646+
* @public
6647+
*/
6648+
Authorization: ServiceAuthorization | undefined;
6649+
}
6650+
6651+
/**
6652+
* <p>A list of scopes set up for S3 Access Grants integration.</p>
6653+
* @public
6654+
*/
6655+
export type S3AccessGrantsScopeUnion =
6656+
| S3AccessGrantsScopeUnion.ReadWriteAccessMember
6657+
| S3AccessGrantsScopeUnion.$UnknownMember;
6658+
6659+
/**
6660+
* @public
6661+
*/
6662+
export namespace S3AccessGrantsScopeUnion {
6663+
/**
6664+
* <p>The S3 Access Grants scope.</p>
6665+
* @public
6666+
*/
6667+
export interface ReadWriteAccessMember {
6668+
ReadWriteAccess: ReadWriteAccess;
6669+
$unknown?: never;
6670+
}
6671+
6672+
/**
6673+
* @public
6674+
*/
6675+
export interface $UnknownMember {
6676+
ReadWriteAccess?: never;
6677+
$unknown: [string, any];
6678+
}
6679+
6680+
export interface Visitor<T> {
6681+
ReadWriteAccess: (value: ReadWriteAccess) => T;
6682+
_: (name: string, value: any) => T;
6683+
}
6684+
6685+
export const visit = <T>(value: S3AccessGrantsScopeUnion, visitor: Visitor<T>): T => {
6686+
if (value.ReadWriteAccess !== undefined) return visitor.ReadWriteAccess(value.ReadWriteAccess);
6687+
return visitor._(value.$unknown[0], value.$unknown[1]);
6688+
};
6689+
}
6690+
66396691
/**
66406692
* <p>A list of service integrations.</p>
66416693
* @public
66426694
*/
66436695
export type ServiceIntegrationsUnion =
66446696
| ServiceIntegrationsUnion.LakeFormationMember
6697+
| ServiceIntegrationsUnion.S3AccessGrantsMember
66456698
| ServiceIntegrationsUnion.$UnknownMember;
66466699

66476700
/**
@@ -6654,6 +6707,17 @@ export namespace ServiceIntegrationsUnion {
66546707
*/
66556708
export interface LakeFormationMember {
66566709
LakeFormation: LakeFormationScopeUnion[];
6710+
S3AccessGrants?: never;
6711+
$unknown?: never;
6712+
}
6713+
6714+
/**
6715+
* <p>A list of scopes set up for S3 Access Grants integration.</p>
6716+
* @public
6717+
*/
6718+
export interface S3AccessGrantsMember {
6719+
LakeFormation?: never;
6720+
S3AccessGrants: S3AccessGrantsScopeUnion[];
66576721
$unknown?: never;
66586722
}
66596723

@@ -6662,16 +6726,19 @@ export namespace ServiceIntegrationsUnion {
66626726
*/
66636727
export interface $UnknownMember {
66646728
LakeFormation?: never;
6729+
S3AccessGrants?: never;
66656730
$unknown: [string, any];
66666731
}
66676732

66686733
export interface Visitor<T> {
66696734
LakeFormation: (value: LakeFormationScopeUnion[]) => T;
6735+
S3AccessGrants: (value: S3AccessGrantsScopeUnion[]) => T;
66706736
_: (name: string, value: any) => T;
66716737
}
66726738

66736739
export const visit = <T>(value: ServiceIntegrationsUnion, visitor: Visitor<T>): T => {
66746740
if (value.LakeFormation !== undefined) return visitor.LakeFormation(value.LakeFormation);
6741+
if (value.S3AccessGrants !== undefined) return visitor.S3AccessGrants(value.S3AccessGrants);
66756742
return visitor._(value.$unknown[0], value.$unknown[1]);
66766743
};
66776744
}
@@ -8657,111 +8724,6 @@ export interface DescribeClusterParameterGroupsMessage {
86578724
TagValues?: string[] | undefined;
86588725
}
86598726

8660-
/**
8661-
* <p></p>
8662-
* @public
8663-
*/
8664-
export interface DescribeClusterParametersMessage {
8665-
/**
8666-
* <p>The name of a cluster parameter group for which to return details.</p>
8667-
* @public
8668-
*/
8669-
ParameterGroupName: string | undefined;
8670-
8671-
/**
8672-
* <p>The parameter types to return. Specify <code>user</code> to show parameters that
8673-
* are different form the default. Similarly, specify <code>engine-default</code> to show
8674-
* parameters that are the same as the default parameter group. </p>
8675-
* <p>Default: All parameter types returned.</p>
8676-
* <p>Valid Values: <code>user</code> | <code>engine-default</code>
8677-
* </p>
8678-
* @public
8679-
*/
8680-
Source?: string | undefined;
8681-
8682-
/**
8683-
* <p>The maximum number of response records to return in each call. If the number of
8684-
* remaining response records exceeds the specified <code>MaxRecords</code> value, a value
8685-
* is returned in a <code>marker</code> field of the response. You can retrieve the next
8686-
* set of records by retrying the command with the returned marker value. </p>
8687-
* <p>Default: <code>100</code>
8688-
* </p>
8689-
* <p>Constraints: minimum 20, maximum 100.</p>
8690-
* @public
8691-
*/
8692-
MaxRecords?: number | undefined;
8693-
8694-
/**
8695-
* <p>An optional parameter that specifies the starting point to return a set of response
8696-
* records. When the results of a <a>DescribeClusterParameters</a> request
8697-
* exceed the value specified in <code>MaxRecords</code>, Amazon Web Services returns a value in the
8698-
* <code>Marker</code> field of the response. You can retrieve the next set of response
8699-
* records by providing the returned marker value in the <code>Marker</code> parameter and
8700-
* retrying the request. </p>
8701-
* @public
8702-
*/
8703-
Marker?: string | undefined;
8704-
}
8705-
8706-
/**
8707-
* <p></p>
8708-
* @public
8709-
*/
8710-
export interface DescribeClustersMessage {
8711-
/**
8712-
* <p>The unique identifier of a cluster whose properties you are requesting. This
8713-
* parameter is case sensitive.</p>
8714-
* <p>The default is that all clusters defined for an account are returned.</p>
8715-
* @public
8716-
*/
8717-
ClusterIdentifier?: string | undefined;
8718-
8719-
/**
8720-
* <p>The maximum number of response records to return in each call. If the number of
8721-
* remaining response records exceeds the specified <code>MaxRecords</code> value, a value
8722-
* is returned in a <code>marker</code> field of the response. You can retrieve the next
8723-
* set of records by retrying the command with the returned marker value. </p>
8724-
* <p>Default: <code>100</code>
8725-
* </p>
8726-
* <p>Constraints: minimum 20, maximum 100.</p>
8727-
* @public
8728-
*/
8729-
MaxRecords?: number | undefined;
8730-
8731-
/**
8732-
* <p>An optional parameter that specifies the starting point to return a set of response
8733-
* records. When the results of a <a>DescribeClusters</a> request exceed the
8734-
* value specified in <code>MaxRecords</code>, Amazon Web Services returns a value in the
8735-
* <code>Marker</code> field of the response. You can retrieve the next set of response
8736-
* records by providing the returned marker value in the <code>Marker</code> parameter and
8737-
* retrying the request. </p>
8738-
* <p>Constraints: You can specify either the <b>ClusterIdentifier</b> parameter or the <b>Marker</b> parameter, but not both. </p>
8739-
* @public
8740-
*/
8741-
Marker?: string | undefined;
8742-
8743-
/**
8744-
* <p>A tag key or keys for which you want to return all matching clusters that are
8745-
* associated with the specified key or keys. For example, suppose that you have clusters
8746-
* that are tagged with keys called <code>owner</code> and <code>environment</code>. If you
8747-
* specify both of these tag keys in the request, Amazon Redshift returns a response with the
8748-
* clusters that have either or both of these tag keys associated with them.</p>
8749-
* @public
8750-
*/
8751-
TagKeys?: string[] | undefined;
8752-
8753-
/**
8754-
* <p>A tag value or values for which you want to return all matching clusters that are
8755-
* associated with the specified tag value or values. For example, suppose that you have
8756-
* clusters that are tagged with values called <code>admin</code> and <code>test</code>. If
8757-
* you specify both of these tag values in the request, Amazon Redshift returns a response with
8758-
* the clusters that have either or both of these tag values associated with
8759-
* them.</p>
8760-
* @public
8761-
*/
8762-
TagValues?: string[] | undefined;
8763-
}
8764-
87658727
/**
87668728
* @internal
87678729
*/

0 commit comments

Comments
 (0)