Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-workspaces): This release introduces ModifySamlProperties…
…, a new API that allows control of SAML properties associated with a WorkSpaces directory. The DescribeWorkspaceDirectories API will now additionally return SAML properties in its responses.
- Loading branch information
awstools
committed
Aug 1, 2022
1 parent
8630419
commit 5d254af
Showing
8 changed files
with
529 additions
and
1 deletion.
There are no files selected for viewing
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
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
103 changes: 103 additions & 0 deletions
103
clients/client-workspaces/src/commands/ModifySamlPropertiesCommand.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,103 @@ | ||
// smithy-typescript generated code | ||
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, | ||
HttpHandlerOptions as __HttpHandlerOptions, | ||
MetadataBearer as __MetadataBearer, | ||
MiddlewareStack, | ||
SerdeContext as __SerdeContext, | ||
} from "@aws-sdk/types"; | ||
|
||
import { | ||
ModifySamlPropertiesRequest, | ||
ModifySamlPropertiesRequestFilterSensitiveLog, | ||
ModifySamlPropertiesResult, | ||
ModifySamlPropertiesResultFilterSensitiveLog, | ||
} from "../models/models_0"; | ||
import { | ||
deserializeAws_json1_1ModifySamlPropertiesCommand, | ||
serializeAws_json1_1ModifySamlPropertiesCommand, | ||
} from "../protocols/Aws_json1_1"; | ||
import { ServiceInputTypes, ServiceOutputTypes, WorkSpacesClientResolvedConfig } from "../WorkSpacesClient"; | ||
|
||
export interface ModifySamlPropertiesCommandInput extends ModifySamlPropertiesRequest {} | ||
export interface ModifySamlPropertiesCommandOutput extends ModifySamlPropertiesResult, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Modifies multiple properties related to SAML 2.0 authentication, including the enablement status, | ||
* user access URL, and relay state parameter name that are used for configuring federation with an | ||
* SAML 2.0 identity provider.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { WorkSpacesClient, ModifySamlPropertiesCommand } from "@aws-sdk/client-workspaces"; // ES Modules import | ||
* // const { WorkSpacesClient, ModifySamlPropertiesCommand } = require("@aws-sdk/client-workspaces"); // CommonJS import | ||
* const client = new WorkSpacesClient(config); | ||
* const command = new ModifySamlPropertiesCommand(input); | ||
* const response = await client.send(command); | ||
* ``` | ||
* | ||
* @see {@link ModifySamlPropertiesCommandInput} for command's `input` shape. | ||
* @see {@link ModifySamlPropertiesCommandOutput} for command's `response` shape. | ||
* @see {@link WorkSpacesClientResolvedConfig | config} for WorkSpacesClient's `config` shape. | ||
* | ||
*/ | ||
export class ModifySamlPropertiesCommand extends $Command< | ||
ModifySamlPropertiesCommandInput, | ||
ModifySamlPropertiesCommandOutput, | ||
WorkSpacesClientResolvedConfig | ||
> { | ||
// Start section: command_properties | ||
// End section: command_properties | ||
|
||
constructor(readonly input: ModifySamlPropertiesCommandInput) { | ||
// Start section: command_constructor | ||
super(); | ||
// End section: command_constructor | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
resolveMiddleware( | ||
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, | ||
configuration: WorkSpacesClientResolvedConfig, | ||
options?: __HttpHandlerOptions | ||
): Handler<ModifySamlPropertiesCommandInput, ModifySamlPropertiesCommandOutput> { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
|
||
const stack = clientStack.concat(this.middlewareStack); | ||
|
||
const { logger } = configuration; | ||
const clientName = "WorkSpacesClient"; | ||
const commandName = "ModifySamlPropertiesCommand"; | ||
const handlerExecutionContext: HandlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: ModifySamlPropertiesRequestFilterSensitiveLog, | ||
outputFilterSensitiveLog: ModifySamlPropertiesResultFilterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve( | ||
(request: FinalizeHandlerArguments<any>) => | ||
requestHandler.handle(request.request as __HttpRequest, options || {}), | ||
handlerExecutionContext | ||
); | ||
} | ||
|
||
private serialize(input: ModifySamlPropertiesCommandInput, context: __SerdeContext): Promise<__HttpRequest> { | ||
return serializeAws_json1_1ModifySamlPropertiesCommand(input, context); | ||
} | ||
|
||
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ModifySamlPropertiesCommandOutput> { | ||
return deserializeAws_json1_1ModifySamlPropertiesCommand(output, context); | ||
} | ||
|
||
// Start section: command_body_extra | ||
// End section: command_body_extra | ||
} |
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
Oops, something went wrong.