cdk-real-drift 0.6.2 → 0.7.0
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/dist/cli.js +19 -1
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -33,7 +33,7 @@ import { CognitoSyncClient, GetCognitoEventsCommand, SetCognitoEventsCommand } f
|
|
|
33
33
|
import { BatchGetProjectsCommand, BatchGetReportGroupsCommand, CodeBuildClient, UpdateReportGroupCommand } from "@aws-sdk/client-codebuild";
|
|
34
34
|
import { DescribeDBClustersCommand as DescribeDBClustersCommand$1, DescribeDBInstancesCommand as DescribeDBInstancesCommand$1, DocDBClient, ModifyDBClusterCommand, ModifyDBInstanceCommand } from "@aws-sdk/client-docdb";
|
|
35
35
|
import { DAXClient, DescribeClustersCommand, DescribeParameterGroupsCommand, DescribeParametersCommand, DescribeSubnetGroupsCommand, UpdateClusterCommand, UpdateParameterGroupCommand } from "@aws-sdk/client-dax";
|
|
36
|
-
import { GetClassifierCommand, GetConnectionCommand, GetJobCommand, GetTableCommand, GetWorkflowCommand, GlueClient, UpdateClassifierCommand, UpdateConnectionCommand, UpdateJobCommand, UpdateTableCommand, UpdateWorkflowCommand } from "@aws-sdk/client-glue";
|
|
36
|
+
import { GetClassifierCommand, GetConnectionCommand, GetJobCommand, GetSecurityConfigurationCommand, GetTableCommand, GetWorkflowCommand, GlueClient, UpdateClassifierCommand, UpdateConnectionCommand, UpdateJobCommand, UpdateTableCommand, UpdateWorkflowCommand } from "@aws-sdk/client-glue";
|
|
37
37
|
import { AttachGroupPolicyCommand, AttachRolePolicyCommand, AttachUserPolicyCommand, CreatePolicyVersionCommand, DeletePolicyVersionCommand, DeleteRolePolicyCommand, DetachGroupPolicyCommand, DetachRolePolicyCommand, DetachUserPolicyCommand, GetGroupPolicyCommand, GetPolicyCommand as GetPolicyCommand$1, GetPolicyVersionCommand, GetRolePolicyCommand, GetUserPolicyCommand, IAMClient, ListAccessKeysCommand, ListEntitiesForPolicyCommand, ListPolicyVersionsCommand, PutGroupPolicyCommand, PutRolePolicyCommand, PutUserPolicyCommand } from "@aws-sdk/client-iam";
|
|
38
38
|
import { DeleteBucketPolicyCommand, GetBucketPolicyCommand, PutBucketPolicyCommand, S3Client } from "@aws-sdk/client-s3";
|
|
39
39
|
import { DescribeCacheClustersCommand, DescribeCacheParameterGroupsCommand, DescribeCacheParametersCommand, DescribeReplicationGroupsCommand, DescribeUsersCommand, ElastiCacheClient, ModifyCacheParameterGroupCommand, ResetCacheParameterGroupCommand } from "@aws-sdk/client-elasticache";
|
|
@@ -8686,6 +8686,23 @@ const readGlueConnection = async ({ physicalId, declared, region }) => {
|
|
|
8686
8686
|
if (catalogId) out.CatalogId = catalogId;
|
|
8687
8687
|
return out;
|
|
8688
8688
|
};
|
|
8689
|
+
const readGlueSecurityConfiguration = async ({ physicalId, declared, region }) => {
|
|
8690
|
+
const name = str$1(physicalId) ?? str$1(declared.Name);
|
|
8691
|
+
if (!name) return void 0;
|
|
8692
|
+
const sc = (await new GlueClient({
|
|
8693
|
+
region,
|
|
8694
|
+
...READ_RETRY
|
|
8695
|
+
}).send(new GetSecurityConfigurationCommand({ Name: name }))).SecurityConfiguration;
|
|
8696
|
+
if (!sc) throw new ResourceGoneError(`Glue SecurityConfiguration ${name} absent`);
|
|
8697
|
+
const enc = sc.EncryptionConfiguration;
|
|
8698
|
+
const ec = {};
|
|
8699
|
+
if (Array.isArray(enc?.S3Encryption) && enc.S3Encryption.length > 0) ec.S3Encryptions = enc.S3Encryption;
|
|
8700
|
+
if (enc?.CloudWatchEncryption !== void 0) ec.CloudWatchEncryption = enc.CloudWatchEncryption;
|
|
8701
|
+
if (enc?.JobBookmarksEncryption !== void 0) ec.JobBookmarksEncryption = enc.JobBookmarksEncryption;
|
|
8702
|
+
const model = { Name: sc.Name ?? name };
|
|
8703
|
+
if (Object.keys(ec).length > 0) model.EncryptionConfiguration = ec;
|
|
8704
|
+
return model;
|
|
8705
|
+
};
|
|
8689
8706
|
const readMetricFilter = async ({ physicalId, declared, region }) => {
|
|
8690
8707
|
const logGroup = str$1(declared.LogGroupName);
|
|
8691
8708
|
const filterName = str$1(physicalId) ?? str$1(declared.FilterName);
|
|
@@ -9143,6 +9160,7 @@ const SDK_OVERRIDES = {
|
|
|
9143
9160
|
"AWS::Glue::Classifier": readGlueClassifier,
|
|
9144
9161
|
"AWS::Glue::Workflow": readGlueWorkflow,
|
|
9145
9162
|
"AWS::Glue::Connection": readGlueConnection,
|
|
9163
|
+
"AWS::Glue::SecurityConfiguration": readGlueSecurityConfiguration,
|
|
9146
9164
|
"AWS::Logs::MetricFilter": readMetricFilter,
|
|
9147
9165
|
"AWS::Scheduler::Schedule": readSchedulerSchedule
|
|
9148
9166
|
};
|