Creates an assignment with one specified IAM policy, identified by its Amazon Resource Name - * (ARN). This policy assignment is attached to the specified groups or users of Amazon QuickSight. - * Assignment names are unique per Amazon Web Services account. To avoid overwriting rules in other namespaces, - * use assignment names that are unique.
+ *Creates an assignment with one specified IAM policy, identified by its + * Amazon Resource Name (ARN). This policy assignment is attached to the specified groups + * or users of Amazon QuickSight. Assignment names are unique per Amazon Web Services + * account. To avoid overwriting rules in other namespaces, use assignment names that are + * unique.
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-quicksight/src/commands/CreateTemplateCommand.ts b/clients/client-quicksight/src/commands/CreateTemplateCommand.ts index 3fa7b63b34bb..81fe2fbe2ddc 100644 --- a/clients/client-quicksight/src/commands/CreateTemplateCommand.ts +++ b/clients/client-quicksight/src/commands/CreateTemplateCommand.ts @@ -1014,6 +1014,9 @@ export interface CreateTemplateCommandOutput extends CreateTemplateResponse, __M * "STRING_VALUE", * ], * SelectedFieldOptions: "ALL_FIELDS", + * SelectedColumns: [ // CustomActionColumnList + * "Creates a new Q topic.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, CreateTopicCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, CreateTopicCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // CreateTopicRequest + * AwsAccountId: "STRING_VALUE", // required + * TopicId: "STRING_VALUE", // required + * Topic: { // TopicDetails + * Name: "STRING_VALUE", + * Description: "STRING_VALUE", + * DataSets: [ // Datasets + * { // DatasetMetadata + * DatasetArn: "STRING_VALUE", // required + * DatasetName: "STRING_VALUE", + * DatasetDescription: "STRING_VALUE", + * DataAggregation: { // DataAggregation + * DatasetRowDateGranularity: "SECOND" || "MINUTE" || "HOUR" || "DAY" || "WEEK" || "MONTH" || "QUARTER" || "YEAR", + * DefaultDateColumnName: "STRING_VALUE", + * }, + * Filters: [ // TopicFilters + * { // TopicFilter + * FilterDescription: "STRING_VALUE", + * FilterClass: "ENFORCED_VALUE_FILTER" || "CONDITIONAL_VALUE_FILTER" || "NAMED_VALUE_FILTER", + * FilterName: "STRING_VALUE", // required + * FilterSynonyms: [ // Synonyms + * "STRING_VALUE", + * ], + * OperandFieldName: "STRING_VALUE", // required + * FilterType: "CATEGORY_FILTER" || "NUMERIC_EQUALITY_FILTER" || "NUMERIC_RANGE_FILTER" || "DATE_RANGE_FILTER" || "RELATIVE_DATE_FILTER", + * CategoryFilter: { // TopicCategoryFilter + * CategoryFilterFunction: "EXACT" || "CONTAINS", + * CategoryFilterType: "CUSTOM_FILTER" || "CUSTOM_FILTER_LIST" || "FILTER_LIST", + * Constant: { // TopicCategoryFilterConstant + * ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * SingularConstant: "STRING_VALUE", + * CollectiveConstant: { // CollectiveConstant + * ValueList: [ // StringList + * "STRING_VALUE", + * ], + * }, + * }, + * Inverse: true || false, + * }, + * NumericEqualityFilter: { // TopicNumericEqualityFilter + * Constant: { // TopicSingularFilterConstant + * ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * SingularConstant: "STRING_VALUE", + * }, + * Aggregation: "NO_AGGREGATION" || "SUM" || "AVERAGE" || "COUNT" || "DISTINCT_COUNT" || "MAX" || "MEDIAN" || "MIN" || "STDEV" || "STDEVP" || "VAR" || "VARP", + * }, + * NumericRangeFilter: { // TopicNumericRangeFilter + * Inclusive: true || false, + * Constant: { // TopicRangeFilterConstant + * ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * RangeConstant: { // RangeConstant + * Minimum: "STRING_VALUE", + * Maximum: "STRING_VALUE", + * }, + * }, + * Aggregation: "NO_AGGREGATION" || "SUM" || "AVERAGE" || "COUNT" || "DISTINCT_COUNT" || "MAX" || "MEDIAN" || "MIN" || "STDEV" || "STDEVP" || "VAR" || "VARP", + * }, + * DateRangeFilter: { // TopicDateRangeFilter + * Inclusive: true || false, + * Constant: { + * ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * RangeConstant: { + * Minimum: "STRING_VALUE", + * Maximum: "STRING_VALUE", + * }, + * }, + * }, + * RelativeDateFilter: { // TopicRelativeDateFilter + * TimeGranularity: "SECOND" || "MINUTE" || "HOUR" || "DAY" || "WEEK" || "MONTH" || "QUARTER" || "YEAR", + * RelativeDateFilterFunction: "PREVIOUS" || "THIS" || "LAST" || "NEXT" || "NOW", + * Constant: { + * ConstantType: "SINGULAR" || "RANGE" || "COLLECTIVE", + * SingularConstant: "STRING_VALUE", + * }, + * }, + * }, + * ], + * Columns: [ // TopicColumns + * { // TopicColumn + * ColumnName: "STRING_VALUE", // required + * ColumnFriendlyName: "STRING_VALUE", + * ColumnDescription: "STRING_VALUE", + * ColumnSynonyms: [ + * "STRING_VALUE", + * ], + * ColumnDataRole: "DIMENSION" || "MEASURE", + * Aggregation: "SUM" || "MAX" || "MIN" || "COUNT" || "DISTINCT_COUNT" || "AVERAGE", + * IsIncludedInTopic: true || false, + * DisableIndexing: true || false, + * ComparativeOrder: { // ComparativeOrder + * UseOrdering: "GREATER_IS_BETTER" || "LESSER_IS_BETTER" || "SPECIFIED", + * SpecifedOrder: [ + * "STRING_VALUE", + * ], + * TreatUndefinedSpecifiedValues: "LEAST" || "MOST", + * }, + * SemanticType: { // SemanticType + * TypeName: "STRING_VALUE", + * SubTypeName: "STRING_VALUE", + * TypeParameters: { // TypeParameters + * "You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.
+ * + * @throws {@link ConflictException} (client fault) + *Updating or deleting a resource can cause an inconsistent state.
+ * + * @throws {@link InternalFailureException} (server fault) + *An internal failure occurred.
+ * + * @throws {@link InvalidParameterValueException} (client fault) + *One or more parameters has a value that isn't valid.
+ * + * @throws {@link LimitExceededException} (client fault) + *A limit is exceeded.
+ * + * @throws {@link ResourceExistsException} (client fault) + *The resource specified already exists.
+ * + * @throws {@link ResourceNotFoundException} (client fault) + *One or more resources can't be found.
+ * + * @throws {@link ThrottlingException} (client fault) + *Access is throttled.
+ * + * @throws {@link QuickSightServiceException} + *Base exception class for all service exceptions from QuickSight service.
+ * + */ +export class CreateTopicCommand extends $Command< + CreateTopicCommandInput, + CreateTopicCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CreateTopicCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackCreates a topic refresh schedule.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, CreateTopicRefreshScheduleCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, CreateTopicRefreshScheduleCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // CreateTopicRefreshScheduleRequest + * AwsAccountId: "STRING_VALUE", // required + * TopicId: "STRING_VALUE", // required + * DatasetArn: "STRING_VALUE", // required + * DatasetName: "STRING_VALUE", + * RefreshSchedule: { // TopicRefreshSchedule + * IsEnabled: true || false, // required + * BasedOnSpiceSchedule: true || false, // required + * StartingAt: new Date("TIMESTAMP"), + * Timezone: "STRING_VALUE", + * RepeatAt: "STRING_VALUE", + * TopicScheduleType: "HOURLY" || "DAILY" || "WEEKLY" || "MONTHLY", + * }, + * }; + * const command = new CreateTopicRefreshScheduleCommand(input); + * const response = await client.send(command); + * // { // CreateTopicRefreshScheduleResponse + * // TopicId: "STRING_VALUE", + * // TopicArn: "STRING_VALUE", + * // DatasetArn: "STRING_VALUE", + * // Status: Number("int"), + * // RequestId: "STRING_VALUE", + * // }; + * + * ``` + * + * @param CreateTopicRefreshScheduleCommandInput - {@link CreateTopicRefreshScheduleCommandInput} + * @returns {@link CreateTopicRefreshScheduleCommandOutput} + * @see {@link CreateTopicRefreshScheduleCommandInput} for command's `input` shape. + * @see {@link CreateTopicRefreshScheduleCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.
+ * + * @throws {@link ConflictException} (client fault) + *Updating or deleting a resource can cause an inconsistent state.
+ * + * @throws {@link InternalFailureException} (server fault) + *An internal failure occurred.
+ * + * @throws {@link InvalidParameterValueException} (client fault) + *One or more parameters has a value that isn't valid.
+ * + * @throws {@link LimitExceededException} (client fault) + *A limit is exceeded.
+ * + * @throws {@link ResourceExistsException} (client fault) + *The resource specified already exists.
+ * + * @throws {@link ResourceNotFoundException} (client fault) + *One or more resources can't be found.
+ * + * @throws {@link ThrottlingException} (client fault) + *Access is throttled.
+ * + * @throws {@link QuickSightServiceException} + *Base exception class for all service exceptions from QuickSight service.
+ * + */ +export class CreateTopicRefreshScheduleCommand extends $Command< + CreateTopicRefreshScheduleCommandInput, + CreateTopicRefreshScheduleCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CreateTopicRefreshScheduleCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackCreates a new VPC connection.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, CreateVPCConnectionCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, CreateVPCConnectionCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // CreateVPCConnectionRequest + * AwsAccountId: "STRING_VALUE", // required + * VPCConnectionId: "STRING_VALUE", // required + * Name: "STRING_VALUE", // required + * SubnetIds: [ // SubnetIdList // required + * "STRING_VALUE", + * ], + * SecurityGroupIds: [ // SecurityGroupIdList // required + * "STRING_VALUE", + * ], + * DnsResolvers: [ // DnsResolverList + * "STRING_VALUE", + * ], + * RoleArn: "STRING_VALUE", // required + * Tags: [ // TagList + * { // Tag + * Key: "STRING_VALUE", // required + * Value: "STRING_VALUE", // required + * }, + * ], + * }; + * const command = new CreateVPCConnectionCommand(input); + * const response = await client.send(command); + * // { // CreateVPCConnectionResponse + * // Arn: "STRING_VALUE", + * // VPCConnectionId: "STRING_VALUE", + * // CreationStatus: "CREATION_IN_PROGRESS" || "CREATION_SUCCESSFUL" || "CREATION_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_SUCCESSFUL" || "UPDATE_FAILED" || "DELETION_IN_PROGRESS" || "DELETION_FAILED" || "DELETED", + * // AvailabilityStatus: "AVAILABLE" || "UNAVAILABLE" || "PARTIALLY_AVAILABLE", + * // RequestId: "STRING_VALUE", + * // Status: Number("int"), + * // }; + * + * ``` + * + * @param CreateVPCConnectionCommandInput - {@link CreateVPCConnectionCommandInput} + * @returns {@link CreateVPCConnectionCommandOutput} + * @see {@link CreateVPCConnectionCommandInput} for command's `input` shape. + * @see {@link CreateVPCConnectionCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.
+ * + * @throws {@link ConflictException} (client fault) + *Updating or deleting a resource can cause an inconsistent state.
+ * + * @throws {@link InternalFailureException} (server fault) + *An internal failure occurred.
+ * + * @throws {@link InvalidParameterValueException} (client fault) + *One or more parameters has a value that isn't valid.
+ * + * @throws {@link LimitExceededException} (client fault) + *A limit is exceeded.
+ * + * @throws {@link ResourceExistsException} (client fault) + *The resource specified already exists.
+ * + * @throws {@link ThrottlingException} (client fault) + *Access is throttled.
+ * + * @throws {@link UnsupportedUserEditionException} (client fault) + *This error indicates that you are calling an operation on an Amazon QuickSight + * subscription where the edition doesn't include support for that operation. Amazon + * Amazon QuickSight currently has Standard Edition and Enterprise Edition. Not every operation and + * capability is available in every edition.
+ * + * @throws {@link QuickSightServiceException} + *Base exception class for all service exceptions from QuickSight service.
+ * + */ +export class CreateVPCConnectionCommand extends $Command< + CreateVPCConnectionCommandInput, + CreateVPCConnectionCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CreateVPCConnectionCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackDeletes a topic.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, DeleteTopicCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, DeleteTopicCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // DeleteTopicRequest + * AwsAccountId: "STRING_VALUE", // required + * TopicId: "STRING_VALUE", // required + * }; + * const command = new DeleteTopicCommand(input); + * const response = await client.send(command); + * // { // DeleteTopicResponse + * // Arn: "STRING_VALUE", + * // TopicId: "STRING_VALUE", + * // RequestId: "STRING_VALUE", + * // Status: Number("int"), + * // }; + * + * ``` + * + * @param DeleteTopicCommandInput - {@link DeleteTopicCommandInput} + * @returns {@link DeleteTopicCommandOutput} + * @see {@link DeleteTopicCommandInput} for command's `input` shape. + * @see {@link DeleteTopicCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.
+ * + * @throws {@link ConflictException} (client fault) + *Updating or deleting a resource can cause an inconsistent state.
+ * + * @throws {@link InternalFailureException} (server fault) + *An internal failure occurred.
+ * + * @throws {@link InvalidParameterValueException} (client fault) + *One or more parameters has a value that isn't valid.
+ * + * @throws {@link ResourceNotFoundException} (client fault) + *One or more resources can't be found.
+ * + * @throws {@link ThrottlingException} (client fault) + *Access is throttled.
+ * + * @throws {@link QuickSightServiceException} + *Base exception class for all service exceptions from QuickSight service.
+ * + */ +export class DeleteTopicCommand extends $Command< + DeleteTopicCommandInput, + DeleteTopicCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DeleteTopicCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackDeletes a topic refresh schedule.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, DeleteTopicRefreshScheduleCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, DeleteTopicRefreshScheduleCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // DeleteTopicRefreshScheduleRequest + * AwsAccountId: "STRING_VALUE", // required + * TopicId: "STRING_VALUE", // required + * DatasetId: "STRING_VALUE", // required + * }; + * const command = new DeleteTopicRefreshScheduleCommand(input); + * const response = await client.send(command); + * // { // DeleteTopicRefreshScheduleResponse + * // TopicId: "STRING_VALUE", + * // TopicArn: "STRING_VALUE", + * // DatasetArn: "STRING_VALUE", + * // Status: Number("int"), + * // RequestId: "STRING_VALUE", + * // }; + * + * ``` + * + * @param DeleteTopicRefreshScheduleCommandInput - {@link DeleteTopicRefreshScheduleCommandInput} + * @returns {@link DeleteTopicRefreshScheduleCommandOutput} + * @see {@link DeleteTopicRefreshScheduleCommandInput} for command's `input` shape. + * @see {@link DeleteTopicRefreshScheduleCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.
+ * + * @throws {@link ConflictException} (client fault) + *Updating or deleting a resource can cause an inconsistent state.
+ * + * @throws {@link InternalFailureException} (server fault) + *An internal failure occurred.
+ * + * @throws {@link InvalidParameterValueException} (client fault) + *One or more parameters has a value that isn't valid.
+ * + * @throws {@link LimitExceededException} (client fault) + *A limit is exceeded.
+ * + * @throws {@link ResourceExistsException} (client fault) + *The resource specified already exists.
+ * + * @throws {@link ResourceNotFoundException} (client fault) + *One or more resources can't be found.
+ * + * @throws {@link ThrottlingException} (client fault) + *Access is throttled.
+ * + * @throws {@link QuickSightServiceException} + *Base exception class for all service exceptions from QuickSight service.
+ * + */ +export class DeleteTopicRefreshScheduleCommand extends $Command< + DeleteTopicRefreshScheduleCommandInput, + DeleteTopicRefreshScheduleCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DeleteTopicRefreshScheduleCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackDeletes a VPC connection.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { QuickSightClient, DeleteVPCConnectionCommand } from "@aws-sdk/client-quicksight"; // ES Modules import + * // const { QuickSightClient, DeleteVPCConnectionCommand } = require("@aws-sdk/client-quicksight"); // CommonJS import + * const client = new QuickSightClient(config); + * const input = { // DeleteVPCConnectionRequest + * AwsAccountId: "STRING_VALUE", // required + * VPCConnectionId: "STRING_VALUE", // required + * }; + * const command = new DeleteVPCConnectionCommand(input); + * const response = await client.send(command); + * // { // DeleteVPCConnectionResponse + * // Arn: "STRING_VALUE", + * // VPCConnectionId: "STRING_VALUE", + * // DeletionStatus: "CREATION_IN_PROGRESS" || "CREATION_SUCCESSFUL" || "CREATION_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_SUCCESSFUL" || "UPDATE_FAILED" || "DELETION_IN_PROGRESS" || "DELETION_FAILED" || "DELETED", + * // AvailabilityStatus: "AVAILABLE" || "UNAVAILABLE" || "PARTIALLY_AVAILABLE", + * // RequestId: "STRING_VALUE", + * // Status: Number("int"), + * // }; + * + * ``` + * + * @param DeleteVPCConnectionCommandInput - {@link DeleteVPCConnectionCommandInput} + * @returns {@link DeleteVPCConnectionCommandOutput} + * @see {@link DeleteVPCConnectionCommandInput} for command's `input` shape. + * @see {@link DeleteVPCConnectionCommandOutput} for command's `response` shape. + * @see {@link QuickSightClientResolvedConfig | config} for QuickSightClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *You don't have access to this item. The provided credentials couldn't be + * validated. You might not be authorized to carry out the request. Make sure that your + * account is authorized to use the Amazon QuickSight service, that your policies have the + * correct permissions, and that you are using the correct credentials.
+ * + * @throws {@link ConflictException} (client fault) + *Updating or deleting a resource can cause an inconsistent state.
+ * + * @throws {@link InternalFailureException} (server fault) + *An internal failure occurred.
+ * + * @throws {@link InvalidParameterValueException} (client fault) + *One or more parameters has a value that isn't valid.
+ * + * @throws {@link ResourceNotFoundException} (client fault) + *One or more resources can't be found.
+ * + * @throws {@link ThrottlingException} (client fault) + *Access is throttled.
+ * + * @throws {@link UnsupportedUserEditionException} (client fault) + *This error indicates that you are calling an operation on an Amazon QuickSight + * subscription where the edition doesn't include support for that operation. Amazon + * Amazon QuickSight currently has Standard Edition and Enterprise Edition. Not every operation and + * capability is available in every edition.
+ * + * @throws {@link QuickSightServiceException} + *Base exception class for all service exceptions from QuickSight service.
+ * + */ +export class DeleteVPCConnectionCommand extends $Command< + DeleteVPCConnectionCommandInput, + DeleteVPCConnectionCommandOutput, + QuickSightClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DeleteVPCConnectionCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack