|
| 1 | +// smithy-typescript generated code |
| 2 | +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; |
| 3 | +import { Command as $Command } from "@smithy/smithy-client"; |
| 4 | +import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; |
| 5 | + |
| 6 | +import type { DataZoneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataZoneClient"; |
| 7 | +import { commonParams } from "../endpoint/EndpointParameters"; |
| 8 | +import type { DeleteDataExportConfigurationInput, DeleteDataExportConfigurationOutput } from "../models/models_1"; |
| 9 | +import { DeleteDataExportConfiguration$ } from "../schemas/schemas_0"; |
| 10 | + |
| 11 | +/** |
| 12 | + * @public |
| 13 | + */ |
| 14 | +export type { __MetadataBearer }; |
| 15 | +export { $Command }; |
| 16 | +/** |
| 17 | + * @public |
| 18 | + * |
| 19 | + * The input for {@link DeleteDataExportConfigurationCommand}. |
| 20 | + */ |
| 21 | +export interface DeleteDataExportConfigurationCommandInput extends DeleteDataExportConfigurationInput {} |
| 22 | +/** |
| 23 | + * @public |
| 24 | + * |
| 25 | + * The output of {@link DeleteDataExportConfigurationCommand}. |
| 26 | + */ |
| 27 | +export interface DeleteDataExportConfigurationCommandOutput extends DeleteDataExportConfigurationOutput, __MetadataBearer {} |
| 28 | + |
| 29 | +/** |
| 30 | + * <p>Deletes data export configuration for a domain.</p> <p>This operation does not delete the S3 table created by the PutDataExportConfiguration operation.</p> <p>To temporarily disable export without deleting the configuration, use the PutDataExportConfiguration operation with the <code>--no-enable-export</code> flag instead. This allows you to re-enable export for the same domain using the <code>--enable-export</code> flag without deleting S3 table.</p> |
| 31 | + * @example |
| 32 | + * Use a bare-bones client and the command you need to make an API call. |
| 33 | + * ```javascript |
| 34 | + * import { DataZoneClient, DeleteDataExportConfigurationCommand } from "@aws-sdk/client-datazone"; // ES Modules import |
| 35 | + * // const { DataZoneClient, DeleteDataExportConfigurationCommand } = require("@aws-sdk/client-datazone"); // CommonJS import |
| 36 | + * // import type { DataZoneClientConfig } from "@aws-sdk/client-datazone"; |
| 37 | + * const config = {}; // type is DataZoneClientConfig |
| 38 | + * const client = new DataZoneClient(config); |
| 39 | + * const input = { // DeleteDataExportConfigurationInput |
| 40 | + * domainIdentifier: "STRING_VALUE", // required |
| 41 | + * }; |
| 42 | + * const command = new DeleteDataExportConfigurationCommand(input); |
| 43 | + * const response = await client.send(command); |
| 44 | + * // {}; |
| 45 | + * |
| 46 | + * ``` |
| 47 | + * |
| 48 | + * @param DeleteDataExportConfigurationCommandInput - {@link DeleteDataExportConfigurationCommandInput} |
| 49 | + * @returns {@link DeleteDataExportConfigurationCommandOutput} |
| 50 | + * @see {@link DeleteDataExportConfigurationCommandInput} for command's `input` shape. |
| 51 | + * @see {@link DeleteDataExportConfigurationCommandOutput} for command's `response` shape. |
| 52 | + * @see {@link DataZoneClientResolvedConfig | config} for DataZoneClient's `config` shape. |
| 53 | + * |
| 54 | + * @throws {@link AccessDeniedException} (client fault) |
| 55 | + * <p>You do not have sufficient access to perform this action.</p> |
| 56 | + * |
| 57 | + * @throws {@link ConflictException} (client fault) |
| 58 | + * <p>There is a conflict while performing this action.</p> |
| 59 | + * |
| 60 | + * @throws {@link InternalServerException} (server fault) |
| 61 | + * <p>The request has failed because of an unknown error, exception or failure.</p> |
| 62 | + * |
| 63 | + * @throws {@link ResourceNotFoundException} (client fault) |
| 64 | + * <p>The specified resource cannot be found.</p> |
| 65 | + * |
| 66 | + * @throws {@link ThrottlingException} (client fault) |
| 67 | + * <p>The request was denied due to request throttling.</p> |
| 68 | + * |
| 69 | + * @throws {@link ValidationException} (client fault) |
| 70 | + * <p>The input fails to satisfy the constraints specified by the Amazon Web Services service.</p> |
| 71 | + * |
| 72 | + * @throws {@link UnauthorizedException} (client fault) |
| 73 | + * <p>You do not have permission to perform this action.</p> |
| 74 | + * |
| 75 | + * @throws {@link DataZoneServiceException} |
| 76 | + * <p>Base exception class for all service exceptions from DataZone service.</p> |
| 77 | + * |
| 78 | + * |
| 79 | + * @public |
| 80 | + */ |
| 81 | +export class DeleteDataExportConfigurationCommand extends $Command |
| 82 | + .classBuilder< |
| 83 | + DeleteDataExportConfigurationCommandInput, |
| 84 | + DeleteDataExportConfigurationCommandOutput, |
| 85 | + DataZoneClientResolvedConfig, |
| 86 | + ServiceInputTypes, |
| 87 | + ServiceOutputTypes |
| 88 | + >() |
| 89 | + .ep(commonParams) |
| 90 | + .m(function (this: any, Command: any, cs: any, config: DataZoneClientResolvedConfig, o: any) { |
| 91 | + return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; |
| 92 | + }) |
| 93 | + .s("DataZone", "DeleteDataExportConfiguration", {}) |
| 94 | + .n("DataZoneClient", "DeleteDataExportConfigurationCommand") |
| 95 | + .sc(DeleteDataExportConfiguration$) |
| 96 | + .build() { |
| 97 | + /** @internal type navigation helper, not in runtime. */ |
| 98 | + protected declare static __types: { |
| 99 | + api: { |
| 100 | + input: DeleteDataExportConfigurationInput; |
| 101 | + output: {}; |
| 102 | + }; |
| 103 | + sdk: { |
| 104 | + input: DeleteDataExportConfigurationCommandInput; |
| 105 | + output: DeleteDataExportConfigurationCommandOutput; |
| 106 | + }; |
| 107 | + }; |
| 108 | +} |
0 commit comments