Skip to content

Commit

Permalink
feat(client-rds): This deployment adds ClientPasswordAuthType field t…
Browse files Browse the repository at this point in the history
…o the Auth structure of the DBProxy.
  • Loading branch information
awstools committed Dec 13, 2022
1 parent 07c2d21 commit 1df4e07
Show file tree
Hide file tree
Showing 5 changed files with 487 additions and 302 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ import {
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";

import { DescribeDBProxyEndpointsRequest, DescribeDBProxyEndpointsRequestFilterSensitiveLog } from "../models/models_0";
import {
DescribeDBProxyEndpointsRequest,
DescribeDBProxyEndpointsRequestFilterSensitiveLog,
DescribeDBProxyEndpointsResponse,
DescribeDBProxyEndpointsResponseFilterSensitiveLog,
} from "../models/models_0";
} from "../models/models_1";
import {
deserializeAws_queryDescribeDBProxyEndpointsCommand,
serializeAws_queryDescribeDBProxyEndpointsCommand,
Expand Down
38 changes: 17 additions & 21 deletions clients/client-rds/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8469,6 +8469,13 @@ export enum AuthScheme {
SECRETS = "SECRETS",
}

export enum ClientPasswordAuthType {
MYSQL_NATIVE_PASSWORD = "MYSQL_NATIVE_PASSWORD",
POSTGRES_MD5 = "POSTGRES_MD5",
POSTGRES_SCRAM_SHA_256 = "POSTGRES_SCRAM_SHA_256",
SQL_SERVER_AUTHENTICATION = "SQL_SERVER_AUTHENTICATION",
}

export enum IAMAuthMode {
DISABLED = "DISABLED",
ENABLED = "ENABLED",
Expand Down Expand Up @@ -8505,6 +8512,11 @@ export interface UserAuthConfig {
* The <code>ENABLED</code> value is valid only for proxies with RDS for Microsoft SQL Server.</p>
*/
IAMAuth?: IAMAuthMode | string;

/**
* <p>The type of authentication the proxy uses for connections from clients.</p>
*/
ClientPasswordAuthType?: ClientPasswordAuthType | string;
}

export enum EngineFamily {
Expand Down Expand Up @@ -8606,6 +8618,11 @@ export interface UserAuthConfigInfo {
* The <code>ENABLED</code> value is valid only for proxies with RDS for Microsoft SQL Server.</p>
*/
IAMAuth?: IAMAuthMode | string;

/**
* <p>The type of authentication the proxy uses for connections from clients.</p>
*/
ClientPasswordAuthType?: ClientPasswordAuthType | string;
}

export enum DBProxyStatus {
Expand Down Expand Up @@ -12330,20 +12347,6 @@ export interface DescribeDBProxyEndpointsRequest {
MaxRecords?: number;
}

export interface DescribeDBProxyEndpointsResponse {
/**
* <p>The list of <code>ProxyEndpoint</code> objects returned by the API operation.</p>
*/
DBProxyEndpoints?: DBProxyEndpoint[];

/**
* <p>An optional pagination token provided by a previous request.
* If this parameter is specified, the response includes only records beyond the marker,
* up to the value specified by <code>MaxRecords</code>.</p>
*/
Marker?: string;
}

/**
* @internal
*/
Expand Down Expand Up @@ -13662,10 +13665,3 @@ export const DescribeDBProxiesResponseFilterSensitiveLog = (obj: DescribeDBProxi
export const DescribeDBProxyEndpointsRequestFilterSensitiveLog = (obj: DescribeDBProxyEndpointsRequest): any => ({
...obj,
});

/**
* @internal
*/
export const DescribeDBProxyEndpointsResponseFilterSensitiveLog = (obj: DescribeDBProxyEndpointsResponse): any => ({
...obj,
});
21 changes: 21 additions & 0 deletions clients/client-rds/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@ import {
} from "./models_0";
import { RDSServiceException as __BaseException } from "./RDSServiceException";

export interface DescribeDBProxyEndpointsResponse {
/**
* <p>The list of <code>ProxyEndpoint</code> objects returned by the API operation.</p>
*/
DBProxyEndpoints?: DBProxyEndpoint[];

/**
* <p>An optional pagination token provided by a previous request.
* If this parameter is specified, the response includes only records beyond the marker,
* up to the value specified by <code>MaxRecords</code>.</p>
*/
Marker?: string;
}

export interface DescribeDBProxyTargetGroupsRequest {
/**
* <p>The identifier of the <code>DBProxy</code> associated with the target group.</p>
Expand Down Expand Up @@ -9000,6 +9014,13 @@ export interface SwitchoverReadReplicaResult {
DBInstance?: DBInstance;
}

/**
* @internal
*/
export const DescribeDBProxyEndpointsResponseFilterSensitiveLog = (obj: DescribeDBProxyEndpointsResponse): any => ({
...obj,
});

/**
* @internal
*/
Expand Down
9 changes: 8 additions & 1 deletion clients/client-rds/src/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,6 @@ import {
DescribeDBProxiesRequest,
DescribeDBProxiesResponse,
DescribeDBProxyEndpointsRequest,
DescribeDBProxyEndpointsResponse,
DomainMembership,
DomainNotFoundFault,
EC2SecurityGroup,
Expand Down Expand Up @@ -786,6 +785,7 @@ import {
DBSnapshotMessage,
DBSubnetGroupMessage,
DBUpgradeDependencyFailureFault,
DescribeDBProxyEndpointsResponse,
DescribeDBProxyTargetGroupsRequest,
DescribeDBProxyTargetGroupsResponse,
DescribeDBProxyTargetsRequest,
Expand Down Expand Up @@ -17156,6 +17156,9 @@ const serializeAws_queryUserAuthConfig = (input: UserAuthConfig, context: __Serd
if (input.IAMAuth != null) {
entries["IAMAuth"] = input.IAMAuth;
}
if (input.ClientPasswordAuthType != null) {
entries["ClientPasswordAuthType"] = input.ClientPasswordAuthType;
}
return entries;
};

Expand Down Expand Up @@ -25157,6 +25160,7 @@ const deserializeAws_queryUserAuthConfigInfo = (output: any, context: __SerdeCon
AuthScheme: undefined,
SecretArn: undefined,
IAMAuth: undefined,
ClientPasswordAuthType: undefined,
};
if (output["Description"] !== undefined) {
contents.Description = __expectString(output["Description"]);
Expand All @@ -25173,6 +25177,9 @@ const deserializeAws_queryUserAuthConfigInfo = (output: any, context: __SerdeCon
if (output["IAMAuth"] !== undefined) {
contents.IAMAuth = __expectString(output["IAMAuth"]);
}
if (output["ClientPasswordAuthType"] !== undefined) {
contents.ClientPasswordAuthType = __expectString(output["ClientPasswordAuthType"]);
}
return contents;
};

Expand Down
Loading

0 comments on commit 1df4e07

Please sign in to comment.