import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ResetNotificationSettingsRequest, ResetNotificationSettingsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ResetNotificationSettingsCommand}. */ export interface ResetNotificationSettingsCommandInput extends ResetNotificationSettingsRequest { } /** * @public * * The output of {@link ResetNotificationSettingsCommand}. */ export interface ResetNotificationSettingsCommandOutput extends ResetNotificationSettingsResponse, __MetadataBearer { } declare const ResetNotificationSettingsCommand_base: { new (input: ResetNotificationSettingsCommandInput): import("@smithy/core/client").CommandImpl; new (input: ResetNotificationSettingsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Resets the custom notification setting to IAM Roles Anywhere default setting.

Required permissions: rolesanywhere:ResetNotificationSettings.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RolesAnywhereClient, ResetNotificationSettingsCommand } from "@aws-sdk/client-rolesanywhere"; // ES Modules import * // const { RolesAnywhereClient, ResetNotificationSettingsCommand } = require("@aws-sdk/client-rolesanywhere"); // CommonJS import * // import type { RolesAnywhereClientConfig } from "@aws-sdk/client-rolesanywhere"; * const config = {}; // type is RolesAnywhereClientConfig * const client = new RolesAnywhereClient(config); * const input = { // ResetNotificationSettingsRequest * trustAnchorId: "STRING_VALUE", // required * notificationSettingKeys: [ // NotificationSettingKeys // required * { // NotificationSettingKey * event: "STRING_VALUE", // required * channel: "STRING_VALUE", * }, * ], * }; * const command = new ResetNotificationSettingsCommand(input); * const response = await client.send(command); * // { // ResetNotificationSettingsResponse * // trustAnchor: { // TrustAnchorDetail * // trustAnchorId: "STRING_VALUE", * // trustAnchorArn: "STRING_VALUE", * // name: "STRING_VALUE", * // source: { // Source * // sourceType: "STRING_VALUE", * // sourceData: { // SourceData Union: only one key present * // x509CertificateData: "STRING_VALUE", * // acmPcaArn: "STRING_VALUE", * // }, * // }, * // enabled: true || false, * // createdAt: new Date("TIMESTAMP"), * // updatedAt: new Date("TIMESTAMP"), * // notificationSettings: [ // NotificationSettingDetails * // { // NotificationSettingDetail * // enabled: true || false, // required * // event: "STRING_VALUE", // required * // threshold: Number("int"), * // channel: "STRING_VALUE", * // configuredBy: "STRING_VALUE", * // }, * // ], * // }, * // }; * * ``` * * @param ResetNotificationSettingsCommandInput - {@link ResetNotificationSettingsCommandInput} * @returns {@link ResetNotificationSettingsCommandOutput} * @see {@link ResetNotificationSettingsCommandInput} for command's `input` shape. * @see {@link ResetNotificationSettingsCommandOutput} for command's `response` shape. * @see {@link RolesAnywhereClientResolvedConfig | config} for RolesAnywhereClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

* * @throws {@link ResourceNotFoundException} (client fault) *

The resource could not be found.

* * @throws {@link ValidationException} (client fault) *

Validation exception error.

* * @throws {@link RolesAnywhereServiceException} *

Base exception class for all service exceptions from RolesAnywhere service.

* * * @example ResetNotificationSettings - Resets to IAM Roles Anywhere defined default notification settings * ```javascript * // * const input = { * notificationSettingKeys: [ * { * event: "END_ENTITY_CERTIFICATE_EXPIRY" * } * ], * trustAnchorId: "c2505e61-2fc1-4a18-9fcf-94e18a22928b" * }; * const command = new ResetNotificationSettingsCommand(input); * const response = await client.send(command); * /* response is * { * trustAnchor: { * createdAt: "2021-07-19T15:55:25.986591Z", * enabled: true, * name: "ResetNotificationSettings - TA with PCA - example", * notificationSettings: [ * { * channel: "ALL", * configuredBy: "rolesanywhere.amazonaws.com", * enabled: true, * event: "CA_CERTIFICATE_EXPIRY", * threshold: 45 * }, * { * channel: "ALL", * configuredBy: "123456789012", * enabled: true, * event: "END_ENTITY_CERTIFICATE_EXPIRY", * threshold: 45 * } * ], * source: { * sourceData: { * acmPcaArn: "arn:aws:acm-pca:us-west-2:123456789012:certificate-authority/123abc00-1233-12b3-1a33-54cb9c1ce2f3" * }, * sourceType: "AWS_ACM_PCA" * }, * trustAnchorArn: "arn:aws:rolesanywhere:us-west-2:123456789012:trust-anchor/c2505e61-2fc1-4a18-9fcf-94e18a22928b", * trustAnchorId: "c2505e61-2fc1-4a18-9fcf-94e18a22928b", * updatedAt: "2021-07-19T15:55:25.986591Z" * } * } * *\/ * ``` * * @public */ export declare class ResetNotificationSettingsCommand extends ResetNotificationSettingsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ResetNotificationSettingsRequest; output: ResetNotificationSettingsResponse; }; sdk: { input: ResetNotificationSettingsCommandInput; output: ResetNotificationSettingsCommandOutput; }; }; }