Skip to content

Commit 1a047d1

Browse files
author
awstools
committed
feat(client-lakeformation): This release adds a new parameter "Parameters" in the DataLakeSettings.
1 parent 38acfdd commit 1a047d1

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ export interface DataLakeSettings {
11201120
DataLakeAdmins?: DataLakePrincipal[];
11211121

11221122
/**
1123-
* <p>Specifies whether access control on newly created database is managed by Lake Formation permissions or exclusively by IAM permissions. You can override this default setting when you create a database.</p>
1123+
* <p>Specifies whether access control on newly created database is managed by Lake Formation permissions or exclusively by IAM permissions.</p>
11241124
*
11251125
* <p>A null value indicates access control by Lake Formation permissions. A value that assigns ALL to IAM_ALLOWED_PRINCIPALS indicates access control by IAM permissions. This is referred to as the setting "Use only IAM access control," and is for backward compatibility with the Glue permission model implemented by IAM permissions.</p>
11261126
*
@@ -1141,6 +1141,11 @@ export interface DataLakeSettings {
11411141
*/
11421142
CreateTableDefaultPermissions?: PrincipalPermissions[];
11431143

1144+
/**
1145+
* <p>A key-value map that provides an additional configuration on your data lake. CrossAccountVersion is the key you can configure in the Parameters field. Accepted values for the CrossAccountVersion key are 1, 2, and 3.</p>
1146+
*/
1147+
Parameters?: Record<string, string>;
1148+
11441149
/**
11451150
* <p>A list of the resource-owning account IDs that the caller's account can use to share their user access details (user ARNs). The user ARNs can be logged in the resource owner's CloudTrail log.</p>
11461151
*
@@ -2270,7 +2275,7 @@ export interface RegisterResourceRequest {
22702275
/**
22712276
* <p>Designates an Identity and Access Management (IAM) service-linked role by registering this role with the Data Catalog. A service-linked role is a unique type of IAM role that is linked directly to Lake Formation.</p>
22722277
*
2273-
* <p>For more information, see <a href="https://docs-aws.amazon.com/lake-formation/latest/dg/service-linked-roles.html">Using Service-Linked Roles for Lake Formation</a>.</p>
2278+
* <p>For more information, see <a href="https://docs.aws.amazon.com/lake-formation/latest/dg/service-linked-roles.html">Using Service-Linked Roles for Lake Formation</a>.</p>
22742279
*/
22752280
UseServiceLinkedRole?: boolean;
22762281

clients/client-lakeformation/src/protocols/Aws_restJson1.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4298,6 +4298,7 @@ const serializeAws_restJson1DataLakeSettings = (input: DataLakeSettings, context
42984298
context
42994299
),
43004300
}),
4301+
...(input.Parameters != null && { Parameters: serializeAws_restJson1ParametersMap(input.Parameters, context) }),
43014302
...(input.TrustedResourceOwners != null && {
43024303
TrustedResourceOwners: serializeAws_restJson1TrustedResourceOwners(input.TrustedResourceOwners, context),
43034304
}),
@@ -4386,6 +4387,18 @@ const serializeAws_restJson1LFTagsList = (input: LFTagPair[], context: __SerdeCo
43864387
});
43874388
};
43884389

4390+
const serializeAws_restJson1ParametersMap = (input: Record<string, string>, context: __SerdeContext): any => {
4391+
return Object.entries(input).reduce((acc: Record<string, any>, [key, value]: [string, any]) => {
4392+
if (value === null) {
4393+
return acc;
4394+
}
4395+
return {
4396+
...acc,
4397+
[key]: value,
4398+
};
4399+
}, {});
4400+
};
4401+
43894402
const serializeAws_restJson1PartitionValueList = (input: PartitionValueList, context: __SerdeContext): any => {
43904403
return {
43914404
...(input.Values != null && { Values: serializeAws_restJson1ValueStringList(input.Values, context) }),
@@ -4815,6 +4828,8 @@ const deserializeAws_restJson1DataLakeSettings = (output: any, context: __SerdeC
48154828
output.ExternalDataFilteringAllowList != null
48164829
? deserializeAws_restJson1DataLakePrincipalList(output.ExternalDataFilteringAllowList, context)
48174830
: undefined,
4831+
Parameters:
4832+
output.Parameters != null ? deserializeAws_restJson1ParametersMap(output.Parameters, context) : undefined,
48184833
TrustedResourceOwners:
48194834
output.TrustedResourceOwners != null
48204835
? deserializeAws_restJson1TrustedResourceOwners(output.TrustedResourceOwners, context)
@@ -4927,6 +4942,18 @@ const deserializeAws_restJson1LFTagsList = (output: any, context: __SerdeContext
49274942
return retVal;
49284943
};
49294944

4945+
const deserializeAws_restJson1ParametersMap = (output: any, context: __SerdeContext): Record<string, string> => {
4946+
return Object.entries(output).reduce((acc: Record<string, string>, [key, value]: [string, any]) => {
4947+
if (value === null) {
4948+
return acc;
4949+
}
4950+
return {
4951+
...acc,
4952+
[key]: __expectString(value) as any,
4953+
};
4954+
}, {});
4955+
};
4956+
49304957
const deserializeAws_restJson1PartitionedTableObjectsList = (
49314958
output: any,
49324959
context: __SerdeContext

0 commit comments

Comments
 (0)