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): Added APIs that allow you to customize the l…
…ogo, login message, and help links in the WorkSpaces client login page. To learn more, visit https://docs.aws.amazon.com/workspaces/latest/adminguide/customize-branding.html
- Loading branch information
awstools
committed
Mar 31, 2022
1 parent
a83077b
commit f7d75a0
Showing
32 changed files
with
8,406 additions
and
6,386 deletions.
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
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
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
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
100 changes: 100 additions & 0 deletions
100
clients/client-workspaces/src/commands/DeleteClientBrandingCommand.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,100 @@ | ||
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 { DeleteClientBrandingRequest, DeleteClientBrandingResult } from "../models/models_0"; | ||
import { | ||
deserializeAws_json1_1DeleteClientBrandingCommand, | ||
serializeAws_json1_1DeleteClientBrandingCommand, | ||
} from "../protocols/Aws_json1_1"; | ||
import { ServiceInputTypes, ServiceOutputTypes, WorkSpacesClientResolvedConfig } from "../WorkSpacesClient"; | ||
|
||
export interface DeleteClientBrandingCommandInput extends DeleteClientBrandingRequest {} | ||
export interface DeleteClientBrandingCommandOutput extends DeleteClientBrandingResult, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Deletes customized client branding. Client branding allows you to customize your | ||
* WorkSpace's client login portal. You can tailor your login portal company logo, the support | ||
* email address, support link, link to reset password, and a custom message for users trying | ||
* to sign in.</p> | ||
* <p>After you delete your customized client branding, your login portal reverts to the | ||
* default client branding.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { WorkSpacesClient, DeleteClientBrandingCommand } from "@aws-sdk/client-workspaces"; // ES Modules import | ||
* // const { WorkSpacesClient, DeleteClientBrandingCommand } = require("@aws-sdk/client-workspaces"); // CommonJS import | ||
* const client = new WorkSpacesClient(config); | ||
* const command = new DeleteClientBrandingCommand(input); | ||
* const response = await client.send(command); | ||
* ``` | ||
* | ||
* @see {@link DeleteClientBrandingCommandInput} for command's `input` shape. | ||
* @see {@link DeleteClientBrandingCommandOutput} for command's `response` shape. | ||
* @see {@link WorkSpacesClientResolvedConfig | config} for WorkSpacesClient's `config` shape. | ||
* | ||
*/ | ||
export class DeleteClientBrandingCommand extends $Command< | ||
DeleteClientBrandingCommandInput, | ||
DeleteClientBrandingCommandOutput, | ||
WorkSpacesClientResolvedConfig | ||
> { | ||
// Start section: command_properties | ||
// End section: command_properties | ||
|
||
constructor(readonly input: DeleteClientBrandingCommandInput) { | ||
// Start section: command_constructor | ||
super(); | ||
// End section: command_constructor | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
resolveMiddleware( | ||
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, | ||
configuration: WorkSpacesClientResolvedConfig, | ||
options?: __HttpHandlerOptions | ||
): Handler<DeleteClientBrandingCommandInput, DeleteClientBrandingCommandOutput> { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
|
||
const stack = clientStack.concat(this.middlewareStack); | ||
|
||
const { logger } = configuration; | ||
const clientName = "WorkSpacesClient"; | ||
const commandName = "DeleteClientBrandingCommand"; | ||
const handlerExecutionContext: HandlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: DeleteClientBrandingRequest.filterSensitiveLog, | ||
outputFilterSensitiveLog: DeleteClientBrandingResult.filterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve( | ||
(request: FinalizeHandlerArguments<any>) => | ||
requestHandler.handle(request.request as __HttpRequest, options || {}), | ||
handlerExecutionContext | ||
); | ||
} | ||
|
||
private serialize(input: DeleteClientBrandingCommandInput, context: __SerdeContext): Promise<__HttpRequest> { | ||
return serializeAws_json1_1DeleteClientBrandingCommand(input, context); | ||
} | ||
|
||
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteClientBrandingCommandOutput> { | ||
return deserializeAws_json1_1DeleteClientBrandingCommand(output, context); | ||
} | ||
|
||
// Start section: command_body_extra | ||
// End section: command_body_extra | ||
} |
Oops, something went wrong.