Skip to content

Commit 4ceb486

Browse files
author
awstools
committed
feat(client-config-service): This release adds resourceType enums for AppConfig, AppSync, DataSync, EC2, EKS, Glue, GuardDuty, SageMaker, ServiceDiscovery, SES, Route53 types.
1 parent 74a0d2e commit 4ceb486

File tree

100 files changed

+5581
-1441
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+5581
-1441
lines changed

clients/client-config-service/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@aws-sdk/hash-node": "*",
2727
"@aws-sdk/invalid-dependency": "*",
2828
"@aws-sdk/middleware-content-length": "*",
29+
"@aws-sdk/middleware-endpoint": "*",
2930
"@aws-sdk/middleware-host-header": "*",
3031
"@aws-sdk/middleware-logger": "*",
3132
"@aws-sdk/middleware-recursion-detection": "*",

clients/client-config-service/src/ConfigService.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ export class ConfigService extends ConfigServiceClient {
817817

818818
/**
819819
* <p>Deletes the specified organization Config rule and all of its evaluation results from all member accounts in that organization. </p>
820-
* <p>Only a master account and a delegated administrator account can delete an organization Config rule.
820+
* <p>Only a management account and a delegated administrator account can delete an organization Config rule.
821821
* When calling this API with a delegated administrator, you must ensure Organizations
822822
* <code>ListDelegatedAdministrator</code> permissions are added.</p>
823823
* <p>Config sets the state of a rule to DELETE_IN_PROGRESS until the deletion is complete.
@@ -855,7 +855,7 @@ export class ConfigService extends ConfigServiceClient {
855855
/**
856856
* <p>Deletes the specified organization conformance pack and all of the Config rules and remediation actions from
857857
* all member accounts in that organization. </p>
858-
* <p> Only a master account or a delegated administrator account can delete an organization conformance pack.
858+
* <p> Only a management account or a delegated administrator account can delete an organization conformance pack.
859859
* When calling this API with a delegated administrator, you must ensure Organizations
860860
* <code>ListDelegatedAdministrator</code> permissions are added.</p>
861861
* <p>Config sets the state of a conformance pack to DELETE_IN_PROGRESS until the deletion is complete.
@@ -2866,7 +2866,7 @@ export class ConfigService extends ConfigServiceClient {
28662866
/**
28672867
* <p>Returns a list of conformance pack compliance scores.
28682868
* A compliance score is the percentage of the number of compliant rule-resource combinations in a conformance pack compared to the number of total possible rule-resource combinations in the conformance pack.
2869-
* This metric provides you with a high-level view of the compliance state of your conformance packs, and can be used to identify, investigate, and understand
2869+
* This metric provides you with a high-level view of the compliance state of your conformance packs. You can use it to identify, investigate, and understand
28702870
* the level of compliance in your conformance packs.</p>
28712871
* <note>
28722872
* <p>Conformance packs with no evaluation results will have a compliance score of <code>INSUFFICIENT_DATA</code>.</p>
@@ -3210,15 +3210,15 @@ export class ConfigService extends ConfigServiceClient {
32103210
}
32113211

32123212
/**
3213-
* <p>Creates or updates a conformance pack. A conformance pack is a collection of Config rules that can be easily deployed in an account and a region and across Amazon Web Services Organization.
3213+
* <p>Creates or updates a conformance pack. A conformance pack is a collection of Config rules that can be easily deployed in an account and a region and across an organization.
32143214
* For information on how many conformance packs you can have per account,
32153215
* see <a href="https://docs.aws.amazon.com/config/latest/developerguide/configlimits.html">
32163216
* <b>Service Limits</b>
32173217
* </a> in the Config Developer Guide.</p>
32183218
* <p>This API creates a service-linked role <code>AWSServiceRoleForConfigConforms</code> in your account.
32193219
* The service-linked role is created only when the role does not exist in your account. </p>
32203220
* <note>
3221-
* <p>You must specify one and only one of the<code>TemplateS3Uri</code>, <code>TemplateBody</code> or <code>TemplateSSMDocumentDetails</code> parameters.</p>
3221+
* <p>You must specify only one of the follow parameters: <code>TemplateS3Uri</code>, <code>TemplateBody</code> or <code>TemplateSSMDocumentDetails</code>.</p>
32223222
* </note>
32233223
*/
32243224
public putConformancePack(
@@ -3371,11 +3371,11 @@ export class ConfigService extends ConfigServiceClient {
33713371
* see <a href="https://docs.aws.amazon.com/config/latest/developerguide/configlimits.html">
33723372
* <b>Service Limits</b>
33733373
* </a> in the <i>Config Developer Guide</i>.</p>
3374-
* <p> Only a master account and a delegated administrator can create or update an organization Config rule.
3374+
* <p> Only a management account and a delegated administrator can create or update an organization Config rule.
33753375
* When calling this API with a delegated administrator, you must ensure Organizations
33763376
* <code>ListDelegatedAdministrator</code> permissions are added. An organization can have up to 3 delegated administrators.</p>
33773377
* <p>This API enables organization service access through the <code>EnableAWSServiceAccess</code> action and creates a service-linked
3378-
* role <code>AWSServiceRoleForConfigMultiAccountSetup</code> in the master or delegated administrator account of your organization.
3378+
* role <code>AWSServiceRoleForConfigMultiAccountSetup</code> in the management or delegated administrator account of your organization.
33793379
* The service-linked role is created only when the role does not exist in the caller account.
33803380
* Config verifies the existence of role with <code>GetRole</code> action.</p>
33813381
* <p>To use this API with delegated administrator, register a delegated administrator by calling Amazon Web Services Organization
@@ -3388,7 +3388,7 @@ export class ConfigService extends ConfigServiceClient {
33883388
* Guard (<a href="https://github.com/aws-cloudformation/cloudformation-guard">Guard GitHub
33893389
* Repository</a>) is a policy-as-code language that allows you to write policies that
33903390
* are enforced by Config Custom Policy rules. Lambda uses custom code that you upload to
3391-
* evaluate a custom rule. If you are adding a new Custom Lambda rule, you first need to create an Lambda function in the master account or a delegated
3391+
* evaluate a custom rule. If you are adding a new Custom Lambda rule, you first need to create an Lambda function in the management account or a delegated
33923392
* administrator that the rule invokes to evaluate your resources. You also need to create an IAM role in the managed account that can be assumed by the Lambda function.
33933393
* When you use <code>PutOrganizationConfigRule</code> to add a Custom Lambda rule to Config, you must
33943394
* specify the Amazon Resource Name (ARN) that Lambda assigns to the function.</p>
@@ -3438,12 +3438,12 @@ export class ConfigService extends ConfigServiceClient {
34383438
* see <a href="https://docs.aws.amazon.com/config/latest/developerguide/configlimits.html">
34393439
* <b>Service Limits</b>
34403440
* </a> in the Config Developer Guide.</p>
3441-
* <p>Only a master account and a delegated administrator can call this API.
3441+
* <p>Only a management account and a delegated administrator can call this API.
34423442
* When calling this API with a delegated administrator, you must ensure Organizations
34433443
* <code>ListDelegatedAdministrator</code> permissions are added. An organization can have up to 3 delegated administrators.</p>
34443444
* <p>This API enables organization service access for <code>config-multiaccountsetup.amazonaws.com</code>
34453445
* through the <code>EnableAWSServiceAccess</code> action and creates a
3446-
* service-linked role <code>AWSServiceRoleForConfigMultiAccountSetup</code> in the master or delegated administrator account of your organization.
3446+
* service-linked role <code>AWSServiceRoleForConfigMultiAccountSetup</code> in the management or delegated administrator account of your organization.
34473447
* The service-linked role is created only when the role does not exist in the caller account.
34483448
* To use this API with delegated administrator, register a delegated administrator by calling Amazon Web Services Organization
34493449
* <code>register-delegate-admin</code> for <code>config-multiaccountsetup.amazonaws.com</code>.</p>

clients/client-config-service/src/ConfigServiceClient.ts

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
// smithy-typescript generated code
2-
import {
3-
EndpointsInputConfig,
4-
EndpointsResolvedConfig,
5-
RegionInputConfig,
6-
RegionResolvedConfig,
7-
resolveEndpointsConfig,
8-
resolveRegionConfig,
9-
} from "@aws-sdk/config-resolver";
2+
import { RegionInputConfig, RegionResolvedConfig, resolveRegionConfig } from "@aws-sdk/config-resolver";
103
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4+
import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
115
import {
126
getHostHeaderPlugin,
137
HostHeaderInputConfig,
@@ -41,13 +35,13 @@ import {
4135
Credentials as __Credentials,
4236
Decoder as __Decoder,
4337
Encoder as __Encoder,
38+
EndpointV2 as __EndpointV2,
4439
Hash as __Hash,
4540
HashConstructor as __HashConstructor,
4641
HttpHandlerOptions as __HttpHandlerOptions,
4742
Logger as __Logger,
4843
Provider as __Provider,
4944
Provider,
50-
RegionInfoProvider,
5145
StreamCollector as __StreamCollector,
5246
UrlParser as __UrlParser,
5347
UserAgent as __UserAgent,
@@ -373,6 +367,12 @@ import {
373367
} from "./commands/StopConfigurationRecorderCommand";
374368
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
375369
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
370+
import {
371+
ClientInputEndpointParameters,
372+
ClientResolvedEndpointParameters,
373+
EndpointParameters,
374+
resolveClientEndpointParameters,
375+
} from "./endpoint/EndpointParameters";
376376
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
377377

378378
export type ServiceInputTypes =
@@ -666,12 +666,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
666666
*/
667667
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
668668

669-
/**
670-
* Fetch related hostname, signing name or signing region with given region.
671-
* @internal
672-
*/
673-
regionInfoProvider?: RegionInfoProvider;
674-
675669
/**
676670
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
677671
* @internal
@@ -687,11 +681,12 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
687681
type ConfigServiceClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
688682
ClientDefaults &
689683
RegionInputConfig &
690-
EndpointsInputConfig &
684+
EndpointInputConfig<EndpointParameters> &
691685
RetryInputConfig &
692686
HostHeaderInputConfig &
693687
AwsAuthInputConfig &
694-
UserAgentInputConfig;
688+
UserAgentInputConfig &
689+
ClientInputEndpointParameters;
695690
/**
696691
* The configuration interface of ConfigServiceClient class constructor that set the region, credentials and other options.
697692
*/
@@ -700,11 +695,12 @@ export interface ConfigServiceClientConfig extends ConfigServiceClientConfigType
700695
type ConfigServiceClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
701696
Required<ClientDefaults> &
702697
RegionResolvedConfig &
703-
EndpointsResolvedConfig &
698+
EndpointResolvedConfig<EndpointParameters> &
704699
RetryResolvedConfig &
705700
HostHeaderResolvedConfig &
706701
AwsAuthResolvedConfig &
707-
UserAgentResolvedConfig;
702+
UserAgentResolvedConfig &
703+
ClientResolvedEndpointParameters;
708704
/**
709705
* The resolved configuration interface of ConfigServiceClient class. This is resolved and normalized from the {@link ConfigServiceClientConfig | constructor configuration interface}.
710706
*/
@@ -748,14 +744,15 @@ export class ConfigServiceClient extends __Client<
748744

749745
constructor(configuration: ConfigServiceClientConfig) {
750746
const _config_0 = __getRuntimeConfig(configuration);
751-
const _config_1 = resolveRegionConfig(_config_0);
752-
const _config_2 = resolveEndpointsConfig(_config_1);
753-
const _config_3 = resolveRetryConfig(_config_2);
754-
const _config_4 = resolveHostHeaderConfig(_config_3);
755-
const _config_5 = resolveAwsAuthConfig(_config_4);
756-
const _config_6 = resolveUserAgentConfig(_config_5);
757-
super(_config_6);
758-
this.config = _config_6;
747+
const _config_1 = resolveClientEndpointParameters(_config_0);
748+
const _config_2 = resolveRegionConfig(_config_1);
749+
const _config_3 = resolveEndpointConfig(_config_2);
750+
const _config_4 = resolveRetryConfig(_config_3);
751+
const _config_5 = resolveHostHeaderConfig(_config_4);
752+
const _config_6 = resolveAwsAuthConfig(_config_5);
753+
const _config_7 = resolveUserAgentConfig(_config_6);
754+
super(_config_7);
755+
this.config = _config_7;
759756
this.middlewareStack.use(getRetryPlugin(this.config));
760757
this.middlewareStack.use(getContentLengthPlugin(this.config));
761758
this.middlewareStack.use(getHostHeaderPlugin(this.config));

clients/client-config-service/src/commands/BatchGetAggregateResourceConfigCommand.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -66,6 +67,15 @@ export class BatchGetAggregateResourceConfigCommand extends $Command<
6667
// Start section: command_properties
6768
// End section: command_properties
6869

70+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
71+
return {
72+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
73+
Endpoint: { type: "builtInParams", name: "endpoint" },
74+
Region: { type: "builtInParams", name: "region" },
75+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
76+
};
77+
}
78+
6979
constructor(readonly input: BatchGetAggregateResourceConfigCommandInput) {
7080
// Start section: command_constructor
7181
super();
@@ -81,6 +91,9 @@ export class BatchGetAggregateResourceConfigCommand extends $Command<
8191
options?: __HttpHandlerOptions
8292
): Handler<BatchGetAggregateResourceConfigCommandInput, BatchGetAggregateResourceConfigCommandOutput> {
8393
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
94+
this.middlewareStack.use(
95+
getEndpointPlugin(configuration, BatchGetAggregateResourceConfigCommand.getEndpointParameterInstructions())
96+
);
8497

8598
const stack = clientStack.concat(this.middlewareStack);
8699

clients/client-config-service/src/commands/BatchGetResourceConfigCommand.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -70,6 +71,15 @@ export class BatchGetResourceConfigCommand extends $Command<
7071
// Start section: command_properties
7172
// End section: command_properties
7273

74+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
75+
return {
76+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
77+
Endpoint: { type: "builtInParams", name: "endpoint" },
78+
Region: { type: "builtInParams", name: "region" },
79+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
80+
};
81+
}
82+
7383
constructor(readonly input: BatchGetResourceConfigCommandInput) {
7484
// Start section: command_constructor
7585
super();
@@ -85,6 +95,9 @@ export class BatchGetResourceConfigCommand extends $Command<
8595
options?: __HttpHandlerOptions
8696
): Handler<BatchGetResourceConfigCommandInput, BatchGetResourceConfigCommandOutput> {
8797
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
98+
this.middlewareStack.use(
99+
getEndpointPlugin(configuration, BatchGetResourceConfigCommand.getEndpointParameterInstructions())
100+
);
88101

89102
const stack = clientStack.concat(this.middlewareStack);
90103

clients/client-config-service/src/commands/DeleteAggregationAuthorizationCommand.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -51,6 +52,15 @@ export class DeleteAggregationAuthorizationCommand extends $Command<
5152
// Start section: command_properties
5253
// End section: command_properties
5354

55+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
56+
return {
57+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
58+
Endpoint: { type: "builtInParams", name: "endpoint" },
59+
Region: { type: "builtInParams", name: "region" },
60+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
61+
};
62+
}
63+
5464
constructor(readonly input: DeleteAggregationAuthorizationCommandInput) {
5565
// Start section: command_constructor
5666
super();
@@ -66,6 +76,9 @@ export class DeleteAggregationAuthorizationCommand extends $Command<
6676
options?: __HttpHandlerOptions
6777
): Handler<DeleteAggregationAuthorizationCommandInput, DeleteAggregationAuthorizationCommandOutput> {
6878
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
79+
this.middlewareStack.use(
80+
getEndpointPlugin(configuration, DeleteAggregationAuthorizationCommand.getEndpointParameterInstructions())
81+
);
6982

7083
const stack = clientStack.concat(this.middlewareStack);
7184

clients/client-config-service/src/commands/DeleteConfigRuleCommand.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -55,6 +56,15 @@ export class DeleteConfigRuleCommand extends $Command<
5556
// Start section: command_properties
5657
// End section: command_properties
5758

59+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
60+
return {
61+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
62+
Endpoint: { type: "builtInParams", name: "endpoint" },
63+
Region: { type: "builtInParams", name: "region" },
64+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
65+
};
66+
}
67+
5868
constructor(readonly input: DeleteConfigRuleCommandInput) {
5969
// Start section: command_constructor
6070
super();
@@ -70,6 +80,9 @@ export class DeleteConfigRuleCommand extends $Command<
7080
options?: __HttpHandlerOptions
7181
): Handler<DeleteConfigRuleCommandInput, DeleteConfigRuleCommandOutput> {
7282
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
83+
this.middlewareStack.use(
84+
getEndpointPlugin(configuration, DeleteConfigRuleCommand.getEndpointParameterInstructions())
85+
);
7386

7487
const stack = clientStack.concat(this.middlewareStack);
7588

0 commit comments

Comments
 (0)