import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { UpdateResourceDataSyncRequest, UpdateResourceDataSyncResult } from "../models/models_2"; import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateResourceDataSyncCommand}. */ export interface UpdateResourceDataSyncCommandInput extends UpdateResourceDataSyncRequest { } /** * @public * * The output of {@link UpdateResourceDataSyncCommand}. */ export interface UpdateResourceDataSyncCommandOutput extends UpdateResourceDataSyncResult, __MetadataBearer { } declare const UpdateResourceDataSyncCommand_base: { new (input: UpdateResourceDataSyncCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: UpdateResourceDataSyncCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Update a resource data sync. After you create a resource data sync for a Region, you can't * change the account options for that sync. For example, if you create a sync in the us-east-2 * (Ohio) Region and you choose the Include only the current account option, you can't * edit that sync later and choose the Include all accounts from my Organizations * configuration option. Instead, you must delete the first resource data sync, and create a * new one.

* *

This API operation only supports a resource data sync that was created with a * SyncFromSource SyncType.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, UpdateResourceDataSyncCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, UpdateResourceDataSyncCommand } = require("@aws-sdk/client-ssm"); // CommonJS import * const client = new SSMClient(config); * const input = { // UpdateResourceDataSyncRequest * SyncName: "STRING_VALUE", // required * SyncType: "STRING_VALUE", // required * SyncSource: { // ResourceDataSyncSource * SourceType: "STRING_VALUE", // required * AwsOrganizationsSource: { // ResourceDataSyncAwsOrganizationsSource * OrganizationSourceType: "STRING_VALUE", // required * OrganizationalUnits: [ // ResourceDataSyncOrganizationalUnitList * { // ResourceDataSyncOrganizationalUnit * OrganizationalUnitId: "STRING_VALUE", * }, * ], * }, * SourceRegions: [ // ResourceDataSyncSourceRegionList // required * "STRING_VALUE", * ], * IncludeFutureRegions: true || false, * EnableAllOpsDataSources: true || false, * }, * }; * const command = new UpdateResourceDataSyncCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param UpdateResourceDataSyncCommandInput - {@link UpdateResourceDataSyncCommandInput} * @returns {@link UpdateResourceDataSyncCommandOutput} * @see {@link UpdateResourceDataSyncCommandInput} for command's `input` shape. * @see {@link UpdateResourceDataSyncCommandOutput} for command's `response` shape. * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. * * @throws {@link InternalServerError} (server fault) *

An error occurred on the server side.

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

Another UpdateResourceDataSync request is being processed. Wait a few minutes * and try again.

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

The specified sync configuration is invalid.

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

The specified sync name wasn't found.

* * @throws {@link SSMServiceException} *

Base exception class for all service exceptions from SSM service.

* * * @public */ export declare class UpdateResourceDataSyncCommand extends UpdateResourceDataSyncCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateResourceDataSyncRequest; output: {}; }; sdk: { input: UpdateResourceDataSyncCommandInput; output: UpdateResourceDataSyncCommandOutput; }; }; }