Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
15 changes: 15 additions & 0 deletions clients/client-accessanalyzer/src/AccessAnalyzerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
getHttpAuthSchemeEndpointRuleSetPlugin,
getHttpSigningPlugin,
} from "@smithy/core";
import { getSchemaSerdePlugin } from "@smithy/core/schema";
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@smithy/middleware-endpoint";
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
Expand All @@ -34,11 +35,14 @@ import {
BodyLengthCalculator as __BodyLengthCalculator,
CheckOptionalClientConfig as __CheckOptionalClientConfig,
ChecksumConstructor as __ChecksumConstructor,
ClientProtocol,
Decoder as __Decoder,
Encoder as __Encoder,
EndpointV2 as __EndpointV2,
HashConstructor as __HashConstructor,
HttpHandlerOptions as __HttpHandlerOptions,
HttpRequest,
HttpResponse,
Logger as __Logger,
Provider as __Provider,
Provider,
Expand Down Expand Up @@ -369,6 +373,16 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
*/
extensions?: RuntimeExtension[];

/**
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
* may be overridden. A default will always be set by the client.
* Available options depend on the service's supported protocols and will not be validated by
* the client.
* @alpha
*
*/
protocol?: ClientProtocol<HttpRequest, HttpResponse>;

/**
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
*/
Expand Down Expand Up @@ -442,6 +456,7 @@ export class AccessAnalyzerClient extends __Client<
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
this.config = _config_8;
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
this.middlewareStack.use(getUserAgentPlugin(this.config));
this.middlewareStack.use(getRetryPlugin(this.config));
this.middlewareStack.use(getContentLengthPlugin(this.config));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { ApplyArchiveRuleRequest } from "../models/models_0";
import { de_ApplyArchiveRuleCommand, se_ApplyArchiveRuleCommand } from "../protocols/Aws_restJson1";
import { ApplyArchiveRule } from "../schemas/schemas_5_Archive";

/**
* @public
Expand Down Expand Up @@ -85,16 +84,11 @@ export class ApplyArchiveRuleCommand extends $Command
>()
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AccessAnalyzer", "ApplyArchiveRule", {})
.n("AccessAnalyzerClient", "ApplyArchiveRuleCommand")
.f(void 0, void 0)
.ser(se_ApplyArchiveRuleCommand)
.de(de_ApplyArchiveRuleCommand)
.sc(ApplyArchiveRule)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { CancelPolicyGenerationRequest, CancelPolicyGenerationResponse } from "../models/models_0";
import { de_CancelPolicyGenerationCommand, se_CancelPolicyGenerationCommand } from "../protocols/Aws_restJson1";
import { CancelPolicyGeneration } from "../schemas/schemas_6_Policy";

/**
* @public
Expand Down Expand Up @@ -80,16 +79,11 @@ export class CancelPolicyGenerationCommand extends $Command
>()
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AccessAnalyzer", "CancelPolicyGeneration", {})
.n("AccessAnalyzerClient", "CancelPolicyGenerationCommand")
.f(void 0, void 0)
.ser(se_CancelPolicyGenerationCommand)
.de(de_CancelPolicyGenerationCommand)
.sc(CancelPolicyGeneration)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
import { commonParams } from "../endpoint/EndpointParameters";
import {
CheckAccessNotGrantedRequest,
CheckAccessNotGrantedRequestFilterSensitiveLog,
CheckAccessNotGrantedResponse,
} from "../models/models_0";
import { de_CheckAccessNotGrantedCommand, se_CheckAccessNotGrantedCommand } from "../protocols/Aws_restJson1";
import { CheckAccessNotGrantedRequest, CheckAccessNotGrantedResponse } from "../models/models_0";
import { CheckAccessNotGranted } from "../schemas/schemas_7_Access";

/**
* @public
Expand Down Expand Up @@ -190,16 +185,11 @@ export class CheckAccessNotGrantedCommand extends $Command
>()
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AccessAnalyzer", "CheckAccessNotGranted", {})
.n("AccessAnalyzerClient", "CheckAccessNotGrantedCommand")
.f(CheckAccessNotGrantedRequestFilterSensitiveLog, void 0)
.ser(se_CheckAccessNotGrantedCommand)
.de(de_CheckAccessNotGrantedCommand)
.sc(CheckAccessNotGranted)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
import { commonParams } from "../endpoint/EndpointParameters";
import {
CheckNoNewAccessRequest,
CheckNoNewAccessRequestFilterSensitiveLog,
CheckNoNewAccessResponse,
} from "../models/models_0";
import { de_CheckNoNewAccessCommand, se_CheckNoNewAccessCommand } from "../protocols/Aws_restJson1";
import { CheckNoNewAccessRequest, CheckNoNewAccessResponse } from "../models/models_0";
import { CheckNoNewAccess } from "../schemas/schemas_7_Access";

/**
* @public
Expand Down Expand Up @@ -102,16 +97,11 @@ export class CheckNoNewAccessCommand extends $Command
>()
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AccessAnalyzer", "CheckNoNewAccess", {})
.n("AccessAnalyzerClient", "CheckNoNewAccessCommand")
.f(CheckNoNewAccessRequestFilterSensitiveLog, void 0)
.ser(se_CheckNoNewAccessCommand)
.de(de_CheckNoNewAccessCommand)
.sc(CheckNoNewAccess)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
import { commonParams } from "../endpoint/EndpointParameters";
import {
CheckNoPublicAccessRequest,
CheckNoPublicAccessRequestFilterSensitiveLog,
CheckNoPublicAccessResponse,
} from "../models/models_0";
import { de_CheckNoPublicAccessCommand, se_CheckNoPublicAccessCommand } from "../protocols/Aws_restJson1";
import { CheckNoPublicAccessRequest, CheckNoPublicAccessResponse } from "../models/models_0";
import { CheckNoPublicAccess } from "../schemas/schemas_7_Access";

/**
* @public
Expand Down Expand Up @@ -142,16 +137,11 @@ export class CheckNoPublicAccessCommand extends $Command
>()
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AccessAnalyzer", "CheckNoPublicAccess", {})
.n("AccessAnalyzerClient", "CheckNoPublicAccessCommand")
.f(CheckNoPublicAccessRequestFilterSensitiveLog, void 0)
.ser(se_CheckNoPublicAccessCommand)
.de(de_CheckNoPublicAccessCommand)
.sc(CheckNoPublicAccess)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { CreateAccessPreviewRequest, CreateAccessPreviewResponse } from "../models/models_0";
import { de_CreateAccessPreviewCommand, se_CreateAccessPreviewCommand } from "../protocols/Aws_restJson1";
import { CreateAccessPreview } from "../schemas/schemas_10_Create";

/**
* @public
Expand Down Expand Up @@ -218,16 +217,11 @@ export class CreateAccessPreviewCommand extends $Command
>()
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AccessAnalyzer", "CreateAccessPreview", {})
.n("AccessAnalyzerClient", "CreateAccessPreviewCommand")
.f(void 0, void 0)
.ser(se_CreateAccessPreviewCommand)
.de(de_CreateAccessPreviewCommand)
.sc(CreateAccessPreview)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { CreateAnalyzerRequest, CreateAnalyzerResponse } from "../models/models_0";
import { de_CreateAnalyzerCommand, se_CreateAnalyzerCommand } from "../protocols/Aws_restJson1";
import { CreateAnalyzer } from "../schemas/schemas_5_Archive";

/**
* @public
Expand Down Expand Up @@ -148,16 +147,11 @@ export class CreateAnalyzerCommand extends $Command
>()
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AccessAnalyzer", "CreateAnalyzer", {})
.n("AccessAnalyzerClient", "CreateAnalyzerCommand")
.f(void 0, void 0)
.ser(se_CreateAnalyzerCommand)
.de(de_CreateAnalyzerCommand)
.sc(CreateAnalyzer)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { CreateArchiveRuleRequest } from "../models/models_0";
import { de_CreateArchiveRuleCommand, se_CreateArchiveRuleCommand } from "../protocols/Aws_restJson1";
import { CreateArchiveRule } from "../schemas/schemas_5_Archive";

/**
* @public
Expand Down Expand Up @@ -105,16 +104,11 @@ export class CreateArchiveRuleCommand extends $Command
>()
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AccessAnalyzer", "CreateArchiveRule", {})
.n("AccessAnalyzerClient", "CreateArchiveRuleCommand")
.f(void 0, void 0)
.ser(se_CreateArchiveRuleCommand)
.de(de_CreateArchiveRuleCommand)
.sc(CreateArchiveRule)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// smithy-typescript generated code
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteAnalyzerRequest } from "../models/models_0";
import { de_DeleteAnalyzerCommand, se_DeleteAnalyzerCommand } from "../protocols/Aws_restJson1";
import { DeleteAnalyzer } from "../schemas/schemas_5_Archive";

/**
* @public
Expand Down Expand Up @@ -84,16 +83,11 @@ export class DeleteAnalyzerCommand extends $Command
>()
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: AccessAnalyzerClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
})
.s("AccessAnalyzer", "DeleteAnalyzer", {})
.n("AccessAnalyzerClient", "DeleteAnalyzerCommand")
.f(void 0, void 0)
.ser(se_DeleteAnalyzerCommand)
.de(de_DeleteAnalyzerCommand)
.sc(DeleteAnalyzer)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down
Loading
Loading