From 7120ec94caccdbea61b2ec593c25d60c23bbef64 Mon Sep 17 00:00:00 2001
From: awstools
For information about each of the capabilities that comprise Systems Manager, see Systems Manager capabilities in the Amazon Web Services Systems Manager User Guide.
+For information about each of the capabilities that comprise Systems Manager, see Systems Manager capabilities in the Amazon Web Services Systems Manager User Guide.
For details about predefined runbooks for Automation, a capability of Amazon Web Services Systems Manager, see the
@@ -381,6 +381,14 @@ DeleteMaintenanceWindow
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deletemaintenancewindowcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deletemaintenancewindowcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deletemaintenancewindowcommandoutput.html)
+
+
+DeleteOpsItem
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deleteopsitemcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteopsitemcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteopsitemcommandoutput.html)
+
diff --git a/clients/client-ssm/src/SSM.ts b/clients/client-ssm/src/SSM.ts
index 732ba8b4bfe3..076bf8f49d74 100644
--- a/clients/client-ssm/src/SSM.ts
+++ b/clients/client-ssm/src/SSM.ts
@@ -92,6 +92,11 @@ import {
DeleteMaintenanceWindowCommandInput,
DeleteMaintenanceWindowCommandOutput,
} from "./commands/DeleteMaintenanceWindowCommand";
+import {
+ DeleteOpsItemCommand,
+ DeleteOpsItemCommandInput,
+ DeleteOpsItemCommandOutput,
+} from "./commands/DeleteOpsItemCommand";
import {
DeleteOpsMetadataCommand,
DeleteOpsMetadataCommandInput,
@@ -701,6 +706,7 @@ const commands = {
DeleteDocumentCommand,
DeleteInventoryCommand,
DeleteMaintenanceWindowCommand,
+ DeleteOpsItemCommand,
DeleteOpsMetadataCommand,
DeleteParameterCommand,
DeleteParametersCommand,
@@ -1109,6 +1115,17 @@ export interface SSM {
cb: (err: any, data?: DeleteMaintenanceWindowCommandOutput) => void
): void;
+ /**
+ * @see {@link DeleteOpsItemCommand}
+ */
+ deleteOpsItem(args: DeleteOpsItemCommandInput, options?: __HttpHandlerOptions): Promise
For information about each of the capabilities that comprise Systems Manager, see Systems Manager capabilities in the Amazon Web Services Systems Manager User Guide.
+ *For information about each of the capabilities that comprise Systems Manager, see Systems Manager capabilities in the Amazon Web Services Systems Manager User Guide.
*For details about predefined runbooks for Automation, a capability of Amazon Web Services Systems Manager, see the diff --git a/clients/client-ssm/src/SSMClient.ts b/clients/client-ssm/src/SSMClient.ts index dc5351ae0d02..141baf001a62 100644 --- a/clients/client-ssm/src/SSMClient.ts +++ b/clients/client-ssm/src/SSMClient.ts @@ -89,6 +89,7 @@ import { DeleteMaintenanceWindowCommandInput, DeleteMaintenanceWindowCommandOutput, } from "./commands/DeleteMaintenanceWindowCommand"; +import { DeleteOpsItemCommandInput, DeleteOpsItemCommandOutput } from "./commands/DeleteOpsItemCommand"; import { DeleteOpsMetadataCommandInput, DeleteOpsMetadataCommandOutput } from "./commands/DeleteOpsMetadataCommand"; import { DeleteParameterCommandInput, DeleteParameterCommandOutput } from "./commands/DeleteParameterCommand"; import { DeleteParametersCommandInput, DeleteParametersCommandOutput } from "./commands/DeleteParametersCommand"; @@ -497,6 +498,7 @@ export type ServiceInputTypes = | DeleteDocumentCommandInput | DeleteInventoryCommandInput | DeleteMaintenanceWindowCommandInput + | DeleteOpsItemCommandInput | DeleteOpsMetadataCommandInput | DeleteParameterCommandInput | DeleteParametersCommandInput @@ -640,6 +642,7 @@ export type ServiceOutputTypes = | DeleteDocumentCommandOutput | DeleteInventoryCommandOutput | DeleteMaintenanceWindowCommandOutput + | DeleteOpsItemCommandOutput | DeleteOpsMetadataCommandOutput | DeleteParameterCommandOutput | DeleteParametersCommandOutput @@ -942,7 +945,7 @@ export interface SSMClientResolvedConfig extends SSMClientResolvedConfigType {} *
*For information about each of the capabilities that comprise Systems Manager, see Systems Manager capabilities in the Amazon Web Services Systems Manager User Guide.
+ *For information about each of the capabilities that comprise Systems Manager, see Systems Manager capabilities in the Amazon Web Services Systems Manager User Guide.
*For details about predefined runbooks for Automation, a capability of Amazon Web Services Systems Manager, see the diff --git a/clients/client-ssm/src/commands/AssociateOpsItemRelatedItemCommand.ts b/clients/client-ssm/src/commands/AssociateOpsItemRelatedItemCommand.ts index b9afb61e07bc..feded8a710ce 100644 --- a/clients/client-ssm/src/commands/AssociateOpsItemRelatedItemCommand.ts +++ b/clients/client-ssm/src/commands/AssociateOpsItemRelatedItemCommand.ts @@ -71,6 +71,9 @@ export interface AssociateOpsItemRelatedItemCommandOutput * @throws {@link InternalServerError} (server fault) *
An error occurred on the server side.
* + * @throws {@link OpsItemConflictException} (client fault) + *The specified OpsItem is in the process of being deleted.
+ * * @throws {@link OpsItemInvalidParameterException} (client fault) *A specified parameter argument isn't valid. Verify the available arguments and try * again.
diff --git a/clients/client-ssm/src/commands/DeleteOpsItemCommand.ts b/clients/client-ssm/src/commands/DeleteOpsItemCommand.ts new file mode 100644 index 000000000000..1d3d7a8486de --- /dev/null +++ b/clients/client-ssm/src/commands/DeleteOpsItemCommand.ts @@ -0,0 +1,177 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, + SMITHY_CONTEXT_KEY, +} from "@smithy/types"; + +import { DeleteOpsItemRequest, DeleteOpsItemResponse } from "../models/models_0"; +import { de_DeleteOpsItemCommand, se_DeleteOpsItemCommand } from "../protocols/Aws_json1_1"; +import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DeleteOpsItemCommand}. + */ +export interface DeleteOpsItemCommandInput extends DeleteOpsItemRequest {} +/** + * @public + * + * The output of {@link DeleteOpsItemCommand}. + */ +export interface DeleteOpsItemCommandOutput extends DeleteOpsItemResponse, __MetadataBearer {} + +/** + * @public + *Delete an OpsItem. You must have permission in Identity and Access Management (IAM) to + * delete an OpsItem.
+ *Note the following important information about this operation.
+ *Deleting an OpsItem is irreversible. You can't restore a deleted OpsItem.
+ *This operation uses an eventual consistency model, which means the + * system can take a few minutes to complete this operation. If you delete an OpsItem and + * immediately call, for example, GetOpsItem, the deleted OpsItem might still + * appear in the response.
+ *This operation is idempotent. The system doesn't throw an exception if you repeatedly + * call this operation for the same OpsItem. If the first call is successful, all additional calls + * return the same successful response as the first call.
+ *This operation doesn't support cross-account calls. A delegated administrator or + * management account can't delete OpsItems in other accounts, even if OpsCenter has been set up for + * cross-account administration. For more information about cross-account administration, see + * Setting up + * OpsCenter to centrally manage OpsItems across accounts in the Systems Manager User Guide.
+ *An error occurred on the server side.
+ * + * @throws {@link OpsItemInvalidParameterException} (client fault) + *A specified parameter argument isn't valid. Verify the available arguments and try + * again.
+ * + * @throws {@link SSMServiceException} + *Base exception class for all service exceptions from SSM service.
+ * + */ +export class DeleteOpsItemCommand extends $Command< + DeleteOpsItemCommandInput, + DeleteOpsItemCommandOutput, + SSMClientResolvedConfig +> { + // 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: DeleteOpsItemCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStackAn error occurred on the server side.
* + * @throws {@link OpsItemConflictException} (client fault) + *The specified OpsItem is in the process of being deleted.
+ * * @throws {@link OpsItemInvalidParameterException} (client fault) *A specified parameter argument isn't valid. Verify the available arguments and try * again.
diff --git a/clients/client-ssm/src/commands/UnlabelParameterVersionCommand.ts b/clients/client-ssm/src/commands/UnlabelParameterVersionCommand.ts index b6f870b42d3b..e4f4dbd04c88 100644 --- a/clients/client-ssm/src/commands/UnlabelParameterVersionCommand.ts +++ b/clients/client-ssm/src/commands/UnlabelParameterVersionCommand.ts @@ -14,7 +14,7 @@ import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { UnlabelParameterVersionRequest, UnlabelParameterVersionResult } from "../models/models_1"; +import { UnlabelParameterVersionRequest, UnlabelParameterVersionResult } from "../models/models_2"; import { de_UnlabelParameterVersionCommand, se_UnlabelParameterVersionCommand } from "../protocols/Aws_json1_1"; import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; diff --git a/clients/client-ssm/src/commands/UpdateOpsItemCommand.ts b/clients/client-ssm/src/commands/UpdateOpsItemCommand.ts index a93d1e361289..f7d882eca2f0 100644 --- a/clients/client-ssm/src/commands/UpdateOpsItemCommand.ts +++ b/clients/client-ssm/src/commands/UpdateOpsItemCommand.ts @@ -105,6 +105,9 @@ export interface UpdateOpsItemCommandOutput extends UpdateOpsItemResponse, __Met * @throws {@link OpsItemAlreadyExistsException} (client fault) *The OpsItem already exists.
* + * @throws {@link OpsItemConflictException} (client fault) + *The specified OpsItem is in the process of being deleted.
+ * * @throws {@link OpsItemInvalidParameterException} (client fault) *A specified parameter argument isn't valid. Verify the available arguments and try * again.
diff --git a/clients/client-ssm/src/commands/index.ts b/clients/client-ssm/src/commands/index.ts index 27a1e6afab85..ee030cf93628 100644 --- a/clients/client-ssm/src/commands/index.ts +++ b/clients/client-ssm/src/commands/index.ts @@ -17,6 +17,7 @@ export * from "./DeleteAssociationCommand"; export * from "./DeleteDocumentCommand"; export * from "./DeleteInventoryCommand"; export * from "./DeleteMaintenanceWindowCommand"; +export * from "./DeleteOpsItemCommand"; export * from "./DeleteOpsMetadataCommand"; export * from "./DeleteParameterCommand"; export * from "./DeleteParametersCommand"; diff --git a/clients/client-ssm/src/endpoint/ruleset.ts b/clients/client-ssm/src/endpoint/ruleset.ts index 52c492a8daed..b5d943100505 100644 --- a/clients/client-ssm/src/endpoint/ruleset.ts +++ b/clients/client-ssm/src/endpoint/ruleset.ts @@ -6,27 +6,29 @@ import { RuleSetObject } from "@smithy/types"; or see "smithy.rules#endpointRuleSet" in codegen/sdk-codegen/aws-models/ssm.json */ -const s="required", -t="fn", -u="argv", -v="ref"; -const a="isSet", -b="tree", -c="error", -d="endpoint", -e="PartitionResult", -f="getAttr", -g={[s]:false,"type":"String"}, -h={[s]:true,"default":false,"type":"Boolean"}, -i={[v]:"Endpoint"}, -j={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]}, -k={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]}, -l={}, -m={[t]:"booleanEquals",[u]:[true,{[t]:f,[u]:[{[v]:e},"supportsFIPS"]}]}, -n={[v]:e}, -o={[t]:"booleanEquals",[u]:[true,{[t]:f,[u]:[n,"supportsDualStack"]}]}, -p=[j], -q=[k], -r=[{[v]:"Region"}]; -const _data={version:"1.0",parameters:{Region:g,UseDualStack:h,UseFIPS:h,Endpoint:g},rules:[{conditions:[{[t]:a,[u]:[i]}],type:b,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:i,properties:l,headers:l},type:d}]},{conditions:[{[t]:a,[u]:r}],type:b,rules:[{conditions:[{[t]:"aws.partition",[u]:r,assign:e}],type:b,rules:[{conditions:[j,k],type:b,rules:[{conditions:[m,o],type:b,rules:[{endpoint:{url:"https://ssm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:p,type:b,rules:[{conditions:[m],type:b,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:f,[u]:[n,"name"]}]}],endpoint:{url:"https://ssm.{Region}.amazonaws.com",properties:l,headers:l},type:d},{endpoint:{url:"https://ssm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:q,type:b,rules:[{conditions:[o],type:b,rules:[{endpoint:{url:"https://ssm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://ssm.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}; +const u="required", +v="fn", +w="argv", +x="ref"; +const a=true, +b="isSet", +c="booleanEquals", +d="error", +e="endpoint", +f="tree", +g="PartitionResult", +h="getAttr", +i={[u]:false,"type":"String"}, +j={[u]:true,"default":false,"type":"Boolean"}, +k={[x]:"Endpoint"}, +l={[v]:c,[w]:[{[x]:"UseFIPS"},true]}, +m={[v]:c,[w]:[{[x]:"UseDualStack"},true]}, +n={}, +o={[v]:h,[w]:[{[x]:g},"supportsFIPS"]}, +p={[x]:g}, +q={[v]:c,[w]:[true,{[v]:h,[w]:[p,"supportsDualStack"]}]}, +r=[l], +s=[m], +t=[{[x]:"Region"}]; +const _data={version:"1.0",parameters:{Region:i,UseDualStack:j,UseFIPS:j,Endpoint:i},rules:[{conditions:[{[v]:b,[w]:[k]}],rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:d},{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:d},{endpoint:{url:k,properties:n,headers:n},type:e}],type:f},{conditions:[{[v]:b,[w]:t}],rules:[{conditions:[{[v]:"aws.partition",[w]:t,assign:g}],rules:[{conditions:[l,m],rules:[{conditions:[{[v]:c,[w]:[a,o]},q],rules:[{endpoint:{url:"https://ssm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:e}],type:f},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:d}],type:f},{conditions:r,rules:[{conditions:[{[v]:c,[w]:[o,a]}],rules:[{conditions:[{[v]:"stringEquals",[w]:[{[v]:h,[w]:[p,"name"]},"aws-us-gov"]}],endpoint:{url:"https://ssm.{Region}.amazonaws.com",properties:n,headers:n},type:e},{endpoint:{url:"https://ssm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:e}],type:f},{error:"FIPS is enabled but this partition does not support FIPS",type:d}],type:f},{conditions:s,rules:[{conditions:[q],rules:[{endpoint:{url:"https://ssm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:e}],type:f},{error:"DualStack is enabled but this partition does not support DualStack",type:d}],type:f},{endpoint:{url:"https://ssm.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:e}],type:f}],type:f},{error:"Invalid Configuration: Missing Region",type:d}]}; export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-ssm/src/index.ts b/clients/client-ssm/src/index.ts index 0cd890699ae1..d9426a2ad5c0 100644 --- a/clients/client-ssm/src/index.ts +++ b/clients/client-ssm/src/index.ts @@ -10,7 +10,7 @@ * *For information about each of the capabilities that comprise Systems Manager, see Systems Manager capabilities in the Amazon Web Services Systems Manager User Guide.
+ *For information about each of the capabilities that comprise Systems Manager, see Systems Manager capabilities in the Amazon Web Services Systems Manager User Guide.
*For details about predefined runbooks for Automation, a capability of Amazon Web Services Systems Manager, see the diff --git a/clients/client-ssm/src/models/models_0.ts b/clients/client-ssm/src/models/models_0.ts index 08925c2f3c14..12bf72f1225c 100644 --- a/clients/client-ssm/src/models/models_0.ts +++ b/clients/client-ssm/src/models/models_0.ts @@ -442,6 +442,28 @@ export interface AssociateOpsItemRelatedItemResponse { AssociationId?: string; } +/** + * @public + *
The specified OpsItem is in the process of being deleted.
+ */ +export class OpsItemConflictException extends __BaseException { + readonly name: "OpsItemConflictException" = "OpsItemConflictException"; + readonly $fault: "client" = "client"; + Message?: string; + /** + * @internal + */ + constructor(opts: __ExceptionOptionTypeA specified parameter argument isn't valid. Verify the available arguments and try @@ -3064,11 +3086,10 @@ export interface RelatedOpsItem { export interface CreateOpsItemRequest { /** * @public - *
User-defined text that contains information about the OpsItem, in Markdown format. - *
+ *User-defined text that contains information about the OpsItem, in Markdown format.
*Provide enough information so that users viewing this OpsItem for the first time - * understand the issue.
+ *Provide enough information so that users viewing this OpsItem for the first time understand + * the issue.
*
- * /aws/insight
+ * /aws/insights
*
This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate * OpsItems.
@@ -4518,6 +4539,22 @@ export interface DeleteMaintenanceWindowResult { WindowId?: string; } +/** + * @public + */ +export interface DeleteOpsItemRequest { + /** + * @public + *The ID of the OpsItem that you want to delete.
+ */ + OpsItemId: string | undefined; +} + +/** + * @public + */ +export interface DeleteOpsItemResponse {} + /** * @public */ @@ -9406,80 +9443,6 @@ export interface MaintenanceWindowTask { AlarmConfiguration?: AlarmConfiguration; } -/** - * @public - */ -export interface DescribeMaintenanceWindowTasksResult { - /** - * @public - *Information about the tasks in the maintenance window.
- */ - Tasks?: MaintenanceWindowTask[]; - - /** - * @public - *The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.
- */ - NextToken?: string; -} - -/** - * @public - * @enum - */ -export const OpsItemFilterKey = { - ACCOUNT_ID: "AccountId", - ACTUAL_END_TIME: "ActualEndTime", - ACTUAL_START_TIME: "ActualStartTime", - AUTOMATION_ID: "AutomationId", - CATEGORY: "Category", - CHANGE_REQUEST_APPROVER_ARN: "ChangeRequestByApproverArn", - CHANGE_REQUEST_APPROVER_NAME: "ChangeRequestByApproverName", - CHANGE_REQUEST_REQUESTER_ARN: "ChangeRequestByRequesterArn", - CHANGE_REQUEST_REQUESTER_NAME: "ChangeRequestByRequesterName", - CHANGE_REQUEST_TARGETS_RESOURCE_GROUP: "ChangeRequestByTargetsResourceGroup", - CHANGE_REQUEST_TEMPLATE: "ChangeRequestByTemplate", - CREATED_BY: "CreatedBy", - CREATED_TIME: "CreatedTime", - INSIGHT_TYPE: "InsightByType", - LAST_MODIFIED_TIME: "LastModifiedTime", - OPERATIONAL_DATA: "OperationalData", - OPERATIONAL_DATA_KEY: "OperationalDataKey", - OPERATIONAL_DATA_VALUE: "OperationalDataValue", - OPSITEM_ID: "OpsItemId", - OPSITEM_TYPE: "OpsItemType", - PLANNED_END_TIME: "PlannedEndTime", - PLANNED_START_TIME: "PlannedStartTime", - PRIORITY: "Priority", - RESOURCE_ID: "ResourceId", - SEVERITY: "Severity", - SOURCE: "Source", - STATUS: "Status", - TITLE: "Title", -} as const; - -/** - * @public - */ -export type OpsItemFilterKey = (typeof OpsItemFilterKey)[keyof typeof OpsItemFilterKey]; - -/** - * @public - * @enum - */ -export const OpsItemFilterOperator = { - CONTAINS: "Contains", - EQUAL: "Equal", - GREATER_THAN: "GreaterThan", - LESS_THAN: "LessThan", -} as const; - -/** - * @public - */ -export type OpsItemFilterOperator = (typeof OpsItemFilterOperator)[keyof typeof OpsItemFilterOperator]; - /** * @internal */ @@ -9685,13 +9648,3 @@ export const MaintenanceWindowTaskFilterSensitiveLog = (obj: MaintenanceWindowTa ...(obj.TaskParameters && { TaskParameters: SENSITIVE_STRING }), ...(obj.Description && { Description: SENSITIVE_STRING }), }); - -/** - * @internal - */ -export const DescribeMaintenanceWindowTasksResultFilterSensitiveLog = ( - obj: DescribeMaintenanceWindowTasksResult -): any => ({ - ...obj, - ...(obj.Tasks && { Tasks: obj.Tasks.map((item) => MaintenanceWindowTaskFilterSensitiveLog(item)) }), -}); diff --git a/clients/client-ssm/src/models/models_1.ts b/clients/client-ssm/src/models/models_1.ts index 3f12170f3ba4..16706d2c78ab 100644 --- a/clients/client-ssm/src/models/models_1.ts +++ b/clients/client-ssm/src/models/models_1.ts @@ -20,14 +20,14 @@ import { LoggingInfo, MaintenanceWindowExecutionStatus, MaintenanceWindowResourceType, + MaintenanceWindowTask, MaintenanceWindowTaskCutoffBehavior, + MaintenanceWindowTaskFilterSensitiveLog, MaintenanceWindowTaskParameterValueExpression, MaintenanceWindowTaskType, MetadataValue, OperatingSystem, OpsItemDataValue, - OpsItemFilterKey, - OpsItemFilterOperator, OpsItemNotification, PatchAction, PatchComplianceLevel, @@ -51,6 +51,80 @@ import { } from "./models_0"; import { SSMServiceException as __BaseException } from "./SSMServiceException"; +/** + * @public + */ +export interface DescribeMaintenanceWindowTasksResult { + /** + * @public + *Information about the tasks in the maintenance window.
+ */ + Tasks?: MaintenanceWindowTask[]; + + /** + * @public + *The token to use when requesting the next set of items. If there are no additional items to + * return, the string is empty.
+ */ + NextToken?: string; +} + +/** + * @public + * @enum + */ +export const OpsItemFilterKey = { + ACCOUNT_ID: "AccountId", + ACTUAL_END_TIME: "ActualEndTime", + ACTUAL_START_TIME: "ActualStartTime", + AUTOMATION_ID: "AutomationId", + CATEGORY: "Category", + CHANGE_REQUEST_APPROVER_ARN: "ChangeRequestByApproverArn", + CHANGE_REQUEST_APPROVER_NAME: "ChangeRequestByApproverName", + CHANGE_REQUEST_REQUESTER_ARN: "ChangeRequestByRequesterArn", + CHANGE_REQUEST_REQUESTER_NAME: "ChangeRequestByRequesterName", + CHANGE_REQUEST_TARGETS_RESOURCE_GROUP: "ChangeRequestByTargetsResourceGroup", + CHANGE_REQUEST_TEMPLATE: "ChangeRequestByTemplate", + CREATED_BY: "CreatedBy", + CREATED_TIME: "CreatedTime", + INSIGHT_TYPE: "InsightByType", + LAST_MODIFIED_TIME: "LastModifiedTime", + OPERATIONAL_DATA: "OperationalData", + OPERATIONAL_DATA_KEY: "OperationalDataKey", + OPERATIONAL_DATA_VALUE: "OperationalDataValue", + OPSITEM_ID: "OpsItemId", + OPSITEM_TYPE: "OpsItemType", + PLANNED_END_TIME: "PlannedEndTime", + PLANNED_START_TIME: "PlannedStartTime", + PRIORITY: "Priority", + RESOURCE_ID: "ResourceId", + SEVERITY: "Severity", + SOURCE: "Source", + STATUS: "Status", + TITLE: "Title", +} as const; + +/** + * @public + */ +export type OpsItemFilterKey = (typeof OpsItemFilterKey)[keyof typeof OpsItemFilterKey]; + +/** + * @public + * @enum + */ +export const OpsItemFilterOperator = { + CONTAINS: "Contains", + EQUAL: "Equal", + GREATER_THAN: "GreaterThan", + LESS_THAN: "LessThan", +} as const; + +/** + * @public + */ +export type OpsItemFilterOperator = (typeof OpsItemFilterOperator)[keyof typeof OpsItemFilterOperator]; + /** * @public *Describes an OpsItem filter.
@@ -293,7 +367,7 @@ export interface OpsItemSummary { *
- * /aws/insight
+ * /aws/insights
*
This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate * OpsItems.
@@ -3696,7 +3770,7 @@ export interface OpsItem { *
- * /aws/insight
+ * /aws/insights
*
This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate * OpsItems.
@@ -10674,68 +10748,14 @@ export interface TerminateSessionResponse { } /** - * @public - */ -export interface UnlabelParameterVersionRequest { - /** - * @public - *The name of the parameter from which you want to delete one or more labels.
- */ - Name: string | undefined; - - /** - * @public - *The specific version of the parameter which you want to delete one or more labels from. If - * it isn't present, the call will fail.
- */ - ParameterVersion: number | undefined; - - /** - * @public - *One or more labels to delete from the specified parameter version.
- */ - Labels: string[] | undefined; -} - -/** - * @public - */ -export interface UnlabelParameterVersionResult { - /** - * @public - *A list of all labels deleted from the parameter.
- */ - RemovedLabels?: string[]; - - /** - * @public - *The labels that aren't attached to the given parameter version.
- */ - InvalidLabels?: string[]; -} - -/** - * @public - *You have reached the maximum number versions allowed for an association. Each association - * has a limit of 1,000 versions.
+ * @internal */ -export class AssociationVersionLimitExceeded extends __BaseException { - readonly name: "AssociationVersionLimitExceeded" = "AssociationVersionLimitExceeded"; - readonly $fault: "client" = "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionTypeThe name of the parameter from which you want to delete one or more labels.
+ */ + Name: string | undefined; + + /** + * @public + *The specific version of the parameter which you want to delete one or more labels from. If + * it isn't present, the call will fail.
+ */ + ParameterVersion: number | undefined; + + /** + * @public + *One or more labels to delete from the specified parameter version.
+ */ + Labels: string[] | undefined; +} + +/** + * @public + */ +export interface UnlabelParameterVersionResult { + /** + * @public + *A list of all labels deleted from the parameter.
+ */ + RemovedLabels?: string[]; + + /** + * @public + *The labels that aren't attached to the given parameter version.
+ */ + InvalidLabels?: string[]; +} + +/** + * @public + *You have reached the maximum number versions allowed for an association. Each association + * has a limit of 1,000 versions.
+ */ +export class AssociationVersionLimitExceeded extends __BaseException { + readonly name: "AssociationVersionLimitExceeded" = "AssociationVersionLimitExceeded"; + readonly $fault: "client" = "client"; + Message?: string; + /** + * @internal + */ + constructor(opts: __ExceptionOptionTypeThe update isn't valid.
diff --git a/clients/client-ssm/src/protocols/Aws_json1_1.ts b/clients/client-ssm/src/protocols/Aws_json1_1.ts index f99ea9b691e2..fba77d9cb43f 100644 --- a/clients/client-ssm/src/protocols/Aws_json1_1.ts +++ b/clients/client-ssm/src/protocols/Aws_json1_1.ts @@ -61,6 +61,7 @@ import { DeleteMaintenanceWindowCommandInput, DeleteMaintenanceWindowCommandOutput, } from "../commands/DeleteMaintenanceWindowCommand"; +import { DeleteOpsItemCommandInput, DeleteOpsItemCommandOutput } from "../commands/DeleteOpsItemCommand"; import { DeleteOpsMetadataCommandInput, DeleteOpsMetadataCommandOutput } from "../commands/DeleteOpsMetadataCommand"; import { DeleteParameterCommandInput, DeleteParameterCommandOutput } from "../commands/DeleteParameterCommand"; import { DeleteParametersCommandInput, DeleteParametersCommandOutput } from "../commands/DeleteParametersCommand"; @@ -478,6 +479,7 @@ import { DeleteDocumentRequest, DeleteInventoryRequest, DeleteMaintenanceWindowRequest, + DeleteOpsItemRequest, DeleteOpsMetadataRequest, DeleteParameterRequest, DeleteParametersRequest, @@ -588,6 +590,7 @@ import { MetadataValue, OpsItemAccessDeniedException, OpsItemAlreadyExistsException, + OpsItemConflictException, OpsItemDataValue, OpsItemInvalidParameterException, OpsItemLimitExceededException, @@ -642,7 +645,6 @@ import { Association, AssociationFilter, AssociationVersionInfo, - AssociationVersionLimitExceeded, AutomationDefinitionNotApprovedException, AutomationDefinitionNotFoundException, AutomationDefinitionVersionNotFoundException, @@ -840,7 +842,6 @@ import { TargetNotConnected, TerminateSessionRequest, TotalSizeLimitExceededException, - UnlabelParameterVersionRequest, UnsupportedCalendarException, UnsupportedFeatureRequiredException, UnsupportedInventoryItemContextException, @@ -848,6 +849,7 @@ import { UnsupportedParameterType, } from "../models/models_1"; import { + AssociationVersionLimitExceeded, DocumentReviews, DocumentVersionLimitExceeded, DuplicateDocumentContent, @@ -860,6 +862,7 @@ import { OpsMetadataKeyLimitExceededException, ResourceDataSyncConflictException, StatusUnchanged, + UnlabelParameterVersionRequest, UpdateAssociationRequest, UpdateAssociationResult, UpdateAssociationStatusRequest, @@ -1116,6 +1119,19 @@ export const se_DeleteMaintenanceWindowCommand = async ( return buildHttpRpcRequest(context, headers, "/", undefined, body); }; +/** + * serializeAws_json1_1DeleteOpsItemCommand + */ +export const se_DeleteOpsItemCommand = async ( + input: DeleteOpsItemCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const headers: __HeaderBag = sharedHeaders("DeleteOpsItem"); + let body: any; + body = JSON.stringify(_json(input)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; + /** * serializeAws_json1_1DeleteOpsMetadataCommand */ @@ -2770,6 +2786,9 @@ const de_AssociateOpsItemRelatedItemCommandError = async ( case "InternalServerError": case "com.amazonaws.ssm#InternalServerError": throw await de_InternalServerErrorRes(parsedOutput, context); + case "OpsItemConflictException": + case "com.amazonaws.ssm#OpsItemConflictException": + throw await de_OpsItemConflictExceptionRes(parsedOutput, context); case "OpsItemInvalidParameterException": case "com.amazonaws.ssm#OpsItemInvalidParameterException": throw await de_OpsItemInvalidParameterExceptionRes(parsedOutput, context); @@ -3714,6 +3733,55 @@ const de_DeleteMaintenanceWindowCommandError = async ( } }; +/** + * deserializeAws_json1_1DeleteOpsItemCommand + */ +export const de_DeleteOpsItemCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): PromiseAmazon Web Services Systems Manager is the operations hub for your Amazon Web Services applications and resources and a secure\n end-to-end management solution for hybrid cloud environments that enables safe and secure\n operations at scale.
\nThis reference is intended to be used with the Amazon Web Services Systems Manager User Guide. To get started, see Setting up Amazon Web Services Systems Manager.
\n\n Related resources\n
\nFor information about each of the capabilities that comprise Systems Manager, see Systems Manager capabilities in the Amazon Web Services Systems Manager User Guide.
\nFor details about predefined runbooks for Automation, a capability of Amazon Web Services Systems Manager, see the\n \n Systems Manager Automation runbook reference\n .
\nFor information about AppConfig, a capability of Systems Manager, see the \n AppConfig User Guide\n \n and the \n AppConfig\n API Reference\n .
\nFor information about Incident Manager, a capability of Systems Manager, see the \n Systems Manager Incident Manager User\n Guide\n and the \n Systems Manager Incident Manager API\n Reference\n .
\nAmazon Web Services Systems Manager is the operations hub for your Amazon Web Services applications and resources and a secure\n end-to-end management solution for hybrid cloud environments that enables safe and secure\n operations at scale.
\nThis reference is intended to be used with the Amazon Web Services Systems Manager User Guide. To get started, see Setting up Amazon Web Services Systems Manager.
\n\n Related resources\n
\nFor information about each of the capabilities that comprise Systems Manager, see Systems Manager capabilities in the Amazon Web Services Systems Manager User Guide.
\nFor details about predefined runbooks for Automation, a capability of Amazon Web Services Systems Manager, see the\n \n Systems Manager Automation runbook reference\n .
\nFor information about AppConfig, a capability of Systems Manager, see the \n AppConfig User Guide\n \n and the \n AppConfig\n API Reference\n .
\nFor information about Incident Manager, a capability of Systems Manager, see the \n Systems Manager Incident Manager User\n Guide\n and the \n Systems Manager Incident Manager API\n Reference\n .
\nUser-defined text that contains information about the OpsItem, in Markdown format.\n
\nProvide enough information so that users viewing this OpsItem for the first time \n understand the issue.
\nUser-defined text that contains information about the OpsItem, in Markdown format.
\nProvide enough information so that users viewing this OpsItem for the first time understand\n the issue.
\nThe type of OpsItem to create. Systems Manager supports the following types of OpsItems:
\n\n /aws/issue
\n
This type of OpsItem is used for default OpsItems created by OpsCenter.
\n\n /aws/changerequest
\n
This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change\n requests.
\n\n /aws/insight
\n
This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate\n OpsItems.
\nThe type of OpsItem to create. Systems Manager supports the following types of OpsItems:
\n\n /aws/issue
\n
This type of OpsItem is used for default OpsItems created by OpsCenter.
\n\n /aws/changerequest
\n
This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change\n requests.
\n\n /aws/insights
\n
This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate\n OpsItems.
\nDelete an OpsItem. You must have permission in Identity and Access Management (IAM) to\n delete an OpsItem.
\nNote the following important information about this operation.
\nDeleting an OpsItem is irreversible. You can't restore a deleted OpsItem.
\nThis operation uses an eventual consistency model, which means the\n system can take a few minutes to complete this operation. If you delete an OpsItem and\n immediately call, for example, GetOpsItem, the deleted OpsItem might still\n appear in the response.
\nThis operation is idempotent. The system doesn't throw an exception if you repeatedly\n call this operation for the same OpsItem. If the first call is successful, all additional calls\n return the same successful response as the first call.
\nThis operation doesn't support cross-account calls. A delegated administrator or\n management account can't delete OpsItems in other accounts, even if OpsCenter has been set up for\n cross-account administration. For more information about cross-account administration, see\n Setting up\n OpsCenter to centrally manage OpsItems across accounts in the Systems Manager User Guide.
\nThe ID of the OpsItem that you want to delete.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.ssm#DeleteOpsItemResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.ssm#DeleteOpsMetadata": { "type": "operation", "input": { @@ -10309,6 +10357,9 @@ { "target": "com.amazonaws.ssm#InternalServerError" }, + { + "target": "com.amazonaws.ssm#OpsItemConflictException" + }, { "target": "com.amazonaws.ssm#OpsItemInvalidParameterException" }, @@ -20113,7 +20164,7 @@ "OpsItemType": { "target": "com.amazonaws.ssm#OpsItemType", "traits": { - "smithy.api#documentation": "The type of OpsItem. Systems Manager supports the following types of OpsItems:
\n\n /aws/issue
\n
This type of OpsItem is used for default OpsItems created by OpsCenter.
\n\n /aws/changerequest
\n
This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change\n requests.
\n\n /aws/insight
\n
This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate\n OpsItems.
\nThe type of OpsItem. Systems Manager supports the following types of OpsItems:
\n\n /aws/issue
\n
This type of OpsItem is used for default OpsItems created by OpsCenter.
\n\n /aws/changerequest
\n
This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change\n requests.
\n\n /aws/insights
\n
This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate\n OpsItems.
\nThe specified OpsItem is in the process of being deleted.
", + "smithy.api#error": "client" + } + }, "com.amazonaws.ssm#OpsItemDataKey": { "type": "string", "traits": { @@ -21313,7 +21380,7 @@ "OpsItemType": { "target": "com.amazonaws.ssm#OpsItemType", "traits": { - "smithy.api#documentation": "The type of OpsItem. Systems Manager supports the following types of OpsItems:
\n\n /aws/issue
\n
This type of OpsItem is used for default OpsItems created by OpsCenter.
\n\n /aws/changerequest
\n
This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change\n requests.
\n\n /aws/insight
\n
This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate\n OpsItems.
\nThe type of OpsItem. Systems Manager supports the following types of OpsItems:
\n\n /aws/issue
\n
This type of OpsItem is used for default OpsItems created by OpsCenter.
\n\n /aws/changerequest
\n
This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change\n requests.
\n\n /aws/insights
\n
This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate\n OpsItems.
\n