-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(clients): update clients as of 04/14/2021 (#2258)
- Loading branch information
Showing
3,267 changed files
with
474,984 additions
and
78,085 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
clients/client-accessanalyzer/commands/ApplyArchiveRuleCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient"; | ||
import { ApplyArchiveRuleRequest } from "../models/models_0"; | ||
import { | ||
deserializeAws_restJson1ApplyArchiveRuleCommand, | ||
serializeAws_restJson1ApplyArchiveRuleCommand, | ||
} from "../protocols/Aws_restJson1"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; | ||
import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { | ||
FinalizeHandlerArguments, | ||
Handler, | ||
HandlerExecutionContext, | ||
MiddlewareStack, | ||
HttpHandlerOptions as __HttpHandlerOptions, | ||
MetadataBearer as __MetadataBearer, | ||
SerdeContext as __SerdeContext, | ||
} from "@aws-sdk/types"; | ||
|
||
export type ApplyArchiveRuleCommandInput = ApplyArchiveRuleRequest; | ||
export type ApplyArchiveRuleCommandOutput = __MetadataBearer; | ||
|
||
/** | ||
* <p>Retroactively applies the archive rule to existing findings that meet the archive rule | ||
* criteria.</p> | ||
*/ | ||
export class ApplyArchiveRuleCommand extends $Command< | ||
ApplyArchiveRuleCommandInput, | ||
ApplyArchiveRuleCommandOutput, | ||
AccessAnalyzerClientResolvedConfig | ||
> { | ||
// Start section: command_properties | ||
// End section: command_properties | ||
|
||
constructor(readonly input: ApplyArchiveRuleCommandInput) { | ||
// Start section: command_constructor | ||
super(); | ||
// End section: command_constructor | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
resolveMiddleware( | ||
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, | ||
configuration: AccessAnalyzerClientResolvedConfig, | ||
options?: __HttpHandlerOptions | ||
): Handler<ApplyArchiveRuleCommandInput, ApplyArchiveRuleCommandOutput> { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
|
||
const stack = clientStack.concat(this.middlewareStack); | ||
|
||
const { logger } = configuration; | ||
const clientName = "AccessAnalyzerClient"; | ||
const commandName = "ApplyArchiveRuleCommand"; | ||
const handlerExecutionContext: HandlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: ApplyArchiveRuleRequest.filterSensitiveLog, | ||
outputFilterSensitiveLog: (output: any) => output, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve( | ||
(request: FinalizeHandlerArguments<any>) => | ||
requestHandler.handle(request.request as __HttpRequest, options || {}), | ||
handlerExecutionContext | ||
); | ||
} | ||
|
||
private serialize(input: ApplyArchiveRuleCommandInput, context: __SerdeContext): Promise<__HttpRequest> { | ||
return serializeAws_restJson1ApplyArchiveRuleCommand(input, context); | ||
} | ||
|
||
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ApplyArchiveRuleCommandOutput> { | ||
return deserializeAws_restJson1ApplyArchiveRuleCommand(output, context); | ||
} | ||
|
||
// Start section: command_body_extra | ||
// End section: command_body_extra | ||
} |
80 changes: 80 additions & 0 deletions
80
clients/client-accessanalyzer/commands/CancelPolicyGenerationCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
import { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient"; | ||
import { CancelPolicyGenerationRequest, CancelPolicyGenerationResponse } from "../models/models_0"; | ||
import { | ||
deserializeAws_restJson1CancelPolicyGenerationCommand, | ||
serializeAws_restJson1CancelPolicyGenerationCommand, | ||
} from "../protocols/Aws_restJson1"; | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; | ||
import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { | ||
FinalizeHandlerArguments, | ||
Handler, | ||
HandlerExecutionContext, | ||
MiddlewareStack, | ||
HttpHandlerOptions as __HttpHandlerOptions, | ||
MetadataBearer as __MetadataBearer, | ||
SerdeContext as __SerdeContext, | ||
} from "@aws-sdk/types"; | ||
|
||
export type CancelPolicyGenerationCommandInput = CancelPolicyGenerationRequest; | ||
export type CancelPolicyGenerationCommandOutput = CancelPolicyGenerationResponse & __MetadataBearer; | ||
|
||
/** | ||
* <p>Cancels the requested policy generation.</p> | ||
*/ | ||
export class CancelPolicyGenerationCommand extends $Command< | ||
CancelPolicyGenerationCommandInput, | ||
CancelPolicyGenerationCommandOutput, | ||
AccessAnalyzerClientResolvedConfig | ||
> { | ||
// Start section: command_properties | ||
// End section: command_properties | ||
|
||
constructor(readonly input: CancelPolicyGenerationCommandInput) { | ||
// Start section: command_constructor | ||
super(); | ||
// End section: command_constructor | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
resolveMiddleware( | ||
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, | ||
configuration: AccessAnalyzerClientResolvedConfig, | ||
options?: __HttpHandlerOptions | ||
): Handler<CancelPolicyGenerationCommandInput, CancelPolicyGenerationCommandOutput> { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
|
||
const stack = clientStack.concat(this.middlewareStack); | ||
|
||
const { logger } = configuration; | ||
const clientName = "AccessAnalyzerClient"; | ||
const commandName = "CancelPolicyGenerationCommand"; | ||
const handlerExecutionContext: HandlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: CancelPolicyGenerationRequest.filterSensitiveLog, | ||
outputFilterSensitiveLog: CancelPolicyGenerationResponse.filterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve( | ||
(request: FinalizeHandlerArguments<any>) => | ||
requestHandler.handle(request.request as __HttpRequest, options || {}), | ||
handlerExecutionContext | ||
); | ||
} | ||
|
||
private serialize(input: CancelPolicyGenerationCommandInput, context: __SerdeContext): Promise<__HttpRequest> { | ||
return serializeAws_restJson1CancelPolicyGenerationCommand(input, context); | ||
} | ||
|
||
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CancelPolicyGenerationCommandOutput> { | ||
return deserializeAws_restJson1CancelPolicyGenerationCommand(output, context); | ||
} | ||
|
||
// Start section: command_body_extra | ||
// End section: command_body_extra | ||
} |
Oops, something went wrong.