com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient Maven / Gradle / Ivy
Show all versions of aws-java-sdk-ssm Show documentation
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.simplesystemsmanagement;
import org.w3c.dom.*;
import java.net.*;
import java.util.*;
import javax.annotation.Generated;
import org.apache.commons.logging.*;
import com.amazonaws.*;
import com.amazonaws.annotation.SdkInternalApi;
import com.amazonaws.auth.*;
import com.amazonaws.handlers.*;
import com.amazonaws.http.*;
import com.amazonaws.internal.*;
import com.amazonaws.internal.auth.*;
import com.amazonaws.metrics.*;
import com.amazonaws.regions.*;
import com.amazonaws.transform.*;
import com.amazonaws.util.*;
import com.amazonaws.protocol.json.*;
import com.amazonaws.util.AWSRequestMetrics.Field;
import com.amazonaws.annotation.ThreadSafe;
import com.amazonaws.client.AwsSyncClientParams;
import com.amazonaws.client.builder.AdvancedConfig;
import com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClientBuilder;
import com.amazonaws.services.simplesystemsmanagement.waiters.AWSSimpleSystemsManagementWaiters;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.services.simplesystemsmanagement.model.*;
import com.amazonaws.services.simplesystemsmanagement.model.transform.*;
/**
* Client for accessing Amazon SSM. All service calls made using this client are blocking, and will not return until the
* service call completes.
*
*
* Amazon Web Services Systems Manager is the operations hub for your Amazon Web Services applications and resources and
* a secure end-to-end management solution for hybrid cloud environments that enables safe and secure operations at
* scale.
*
*
* This 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.
*
*
* Related resources
*
*
* -
*
* 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
* Systems Manager Automation runbook reference .
*
*
* -
*
* For information about AppConfig, a capability of Systems Manager, see the AppConfig User Guide and the AppConfig API Reference .
*
*
* -
*
* For information about Incident Manager, a capability of Systems Manager, see the Systems Manager Incident Manager User Guide
* and the Systems Manager Incident
* Manager API Reference .
*
*
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AWSSimpleSystemsManagementClient extends AmazonWebServiceClient implements AWSSimpleSystemsManagement {
/** Provider for AWS credentials. */
private final AWSCredentialsProvider awsCredentialsProvider;
private static final Log log = LogFactory.getLog(AWSSimpleSystemsManagement.class);
/** Default signing name for the service. */
private static final String DEFAULT_SIGNING_NAME = "ssm";
private volatile AWSSimpleSystemsManagementWaiters waiters;
/** Client configuration factory providing ClientConfigurations tailored to this client */
protected static final ClientConfigurationFactory configFactory = new ClientConfigurationFactory();
private final AdvancedConfig advancedConfig;
private static final com.amazonaws.protocol.json.SdkJsonProtocolFactory protocolFactory = new com.amazonaws.protocol.json.SdkJsonProtocolFactory(
new JsonClientMetadata()
.withProtocolVersion("1.1")
.withSupportsCbor(false)
.withSupportsIon(false)
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("TargetNotConnected").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.TargetNotConnectedExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ItemSizeLimitExceededException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ItemSizeLimitExceededExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidParameters").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidParametersExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ParameterMaxVersionLimitExceeded").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ParameterMaxVersionLimitExceededExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("PoliciesLimitExceededException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.PoliciesLimitExceededExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidKeyId").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidKeyIdExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidFilter").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidFilterExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("AssociationExecutionDoesNotExist").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.AssociationExecutionDoesNotExistExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("OpsItemLimitExceededException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.OpsItemLimitExceededExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidSchedule").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidScheduleExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("UnsupportedInventorySchemaVersionException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.UnsupportedInventorySchemaVersionExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ResourceDataSyncAlreadyExistsException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ResourceDataSyncAlreadyExistsExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidPluginName").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidPluginNameExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("HierarchyTypeMismatchException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.HierarchyTypeMismatchExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("FeatureNotAvailableException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.FeatureNotAvailableExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidNextToken").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidNextTokenExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ResourceDataSyncInvalidConfigurationException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ResourceDataSyncInvalidConfigurationExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidActivationId").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidActivationIdExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvocationDoesNotExist").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvocationDoesNotExistExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("MalformedResourcePolicyDocumentException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.MalformedResourcePolicyDocumentExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("OpsItemInvalidParameterException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.OpsItemInvalidParameterExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("AlreadyExistsException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.AlreadyExistsExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("OpsMetadataTooManyUpdatesException")
.withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.OpsMetadataTooManyUpdatesExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("SubTypeCountLimitExceededException")
.withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.SubTypeCountLimitExceededExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ResourcePolicyNotFoundException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ResourcePolicyNotFoundExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidResourceId").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidResourceIdExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ResourcePolicyConflictException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ResourcePolicyConflictExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ParameterVersionNotFound").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ParameterVersionNotFoundExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ServiceSettingNotFound").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ServiceSettingNotFoundExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ResourceInUseException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ResourceInUseExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidDocument").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidDocumentExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidDocumentVersion").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidDocumentVersionExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidOptionException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidOptionExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidDocumentOperation").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidDocumentOperationExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ResourceDataSyncCountExceededException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ResourceDataSyncCountExceededExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ComplianceTypeCountLimitExceededException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ComplianceTypeCountLimitExceededExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidResourceType").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidResourceTypeExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("UnsupportedFeatureRequiredException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.UnsupportedFeatureRequiredExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("AutomationDefinitionNotFoundException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.AutomationDefinitionNotFoundExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidInstanceId").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidInstanceIdExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ItemContentMismatchException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ItemContentMismatchExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ResourceDataSyncNotFoundException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ResourceDataSyncNotFoundExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("OpsItemAlreadyExistsException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.OpsItemAlreadyExistsExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("DuplicateInstanceId").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.DuplicateInstanceIdExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidTag").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidTagExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidDocumentContent").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidDocumentContentExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("AutomationExecutionNotFoundException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.AutomationExecutionNotFoundExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("UnsupportedCalendarException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.UnsupportedCalendarExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("AssociationLimitExceeded").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.AssociationLimitExceededExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("OpsMetadataKeyLimitExceededException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.OpsMetadataKeyLimitExceededExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ResourceDataSyncConflictException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ResourceDataSyncConflictExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidInventoryGroupException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidInventoryGroupExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("AssociationVersionLimitExceeded").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.AssociationVersionLimitExceededExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidTarget").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidTargetExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("OpsMetadataInvalidArgumentException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.OpsMetadataInvalidArgumentExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("AutomationStepNotFoundException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.AutomationStepNotFoundExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidFilterValue").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidFilterValueExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ResourcePolicyLimitExceededException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ResourcePolicyLimitExceededExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("DocumentVersionLimitExceeded").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.DocumentVersionLimitExceededExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidItemContentException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidItemContentExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("TooManyTagsError").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.TooManyTagsErrorExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("UnsupportedParameterType").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.UnsupportedParameterTypeExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidAggregatorException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidAggregatorExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("UnsupportedInventoryItemContextException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.UnsupportedInventoryItemContextExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidPolicyAttributeException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidPolicyAttributeExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("IncompatiblePolicyException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.IncompatiblePolicyExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidUpdate").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidUpdateExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("AssociationAlreadyExists").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.AssociationAlreadyExistsExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("DuplicateDocumentContent").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.DuplicateDocumentContentExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidDocumentSchemaVersion").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidDocumentSchemaVersionExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ResourcePolicyInvalidParameterException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ResourcePolicyInvalidParameterExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ResourceNotFoundException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ResourceNotFoundExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidInventoryItemContextException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidInventoryItemContextExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidAssociation").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidAssociationExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidAutomationSignalException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidAutomationSignalExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidTargetMaps").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidTargetMapsExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidDocumentType").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidDocumentTypeExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("IdempotentParameterMismatch").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.IdempotentParameterMismatchExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidInventoryRequestException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidInventoryRequestExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidResultAttributeException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidResultAttributeExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("AutomationDefinitionVersionNotFoundException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.AutomationDefinitionVersionNotFoundExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidAutomationExecutionParametersException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidAutomationExecutionParametersExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ResourceLimitExceededException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ResourceLimitExceededExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidAllowedPatternException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidAllowedPatternExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidInstancePropertyFilterValue").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidInstancePropertyFilterValueExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("OpsItemNotFoundException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.OpsItemNotFoundExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidDeleteInventoryParametersException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidDeleteInventoryParametersExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidPermissionType").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidPermissionTypeExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("UnsupportedOperatingSystem").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.UnsupportedOperatingSystemExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("OpsMetadataAlreadyExistsException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.OpsMetadataAlreadyExistsExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidOutputFolder").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidOutputFolderExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("OpsItemRelatedItemAssociationNotFoundException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.OpsItemRelatedItemAssociationNotFoundExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("AutomationExecutionLimitExceededException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.AutomationExecutionLimitExceededExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("DuplicateDocumentVersionName").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.DuplicateDocumentVersionNameExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidNotificationConfig")
.withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidNotificationConfigExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidCommandId").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidCommandIdExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ParameterNotFound").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ParameterNotFoundExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ParameterVersionLabelLimitExceeded").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ParameterVersionLabelLimitExceededExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("DocumentPermissionLimit").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.DocumentPermissionLimitExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("DocumentLimitExceeded").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.DocumentLimitExceededExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("HierarchyLevelLimitExceededException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.HierarchyLevelLimitExceededExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("TotalSizeLimitExceededException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.TotalSizeLimitExceededExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("OpsMetadataLimitExceededException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.OpsMetadataLimitExceededExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidActivation").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidActivationExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("OpsItemRelatedItemAlreadyExistsException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.OpsItemRelatedItemAlreadyExistsExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("TooManyUpdates").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.TooManyUpdatesExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("OpsMetadataNotFoundException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.OpsMetadataNotFoundExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("DocumentAlreadyExists").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.DocumentAlreadyExistsExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("AutomationDefinitionNotApprovedException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.AutomationDefinitionNotApprovedExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidInstanceInformationFilterValue").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidInstanceInformationFilterValueExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidAssociationVersion")
.withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidAssociationVersionExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("StatusUnchanged").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.StatusUnchangedExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("TargetInUseException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.TargetInUseExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("AssociationDoesNotExist").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.AssociationDoesNotExistExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("UnsupportedPlatformType").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.UnsupportedPlatformTypeExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("MaxDocumentSizeExceeded").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.MaxDocumentSizeExceededExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidRole").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidRoleExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidDeletionIdException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidDeletionIdExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("OpsItemAccessDeniedException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.OpsItemAccessDeniedExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("AssociatedInstances").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.AssociatedInstancesExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidOutputLocation").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidOutputLocationExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidPolicyTypeException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidPolicyTypeExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ParameterLimitExceeded").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ParameterLimitExceededExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidTypeNameException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidTypeNameExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidAutomationStatusUpdateException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidAutomationStatusUpdateExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("OpsItemConflictException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.OpsItemConflictExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("DoesNotExistException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.DoesNotExistExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidFilterOption").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidFilterOptionExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("CustomSchemaCountLimitExceededException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.CustomSchemaCountLimitExceededExceptionUnmarshaller
.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ParameterPatternMismatchException").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ParameterPatternMismatchExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ParameterAlreadyExists").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.ParameterAlreadyExistsExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidFilterKey").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InvalidFilterKeyExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InternalServerError").withExceptionUnmarshaller(
com.amazonaws.services.simplesystemsmanagement.model.transform.InternalServerErrorExceptionUnmarshaller.getInstance()))
.withBaseServiceExceptionClass(com.amazonaws.services.simplesystemsmanagement.model.AWSSimpleSystemsManagementException.class));
/**
* Constructs a new client to invoke service methods on Amazon SSM. A credentials provider chain will be used that
* searches for credentials in this order:
*
* - Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
* - Java System Properties - aws.accessKeyId and aws.secretKey
* - Instance profile credentials delivered through the Amazon EC2 metadata service
*
*
*
* All service calls made using this new client object are blocking, and will not return until the service call
* completes.
*
* @see DefaultAWSCredentialsProviderChain
* @deprecated use {@link AWSSimpleSystemsManagementClientBuilder#defaultClient()}
*/
@Deprecated
public AWSSimpleSystemsManagementClient() {
this(DefaultAWSCredentialsProviderChain.getInstance(), configFactory.getConfig());
}
/**
* Constructs a new client to invoke service methods on Amazon SSM. A credentials provider chain will be used that
* searches for credentials in this order:
*
* - Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
* - Java System Properties - aws.accessKeyId and aws.secretKey
* - Instance profile credentials delivered through the Amazon EC2 metadata service
*
*
*
* All service calls made using this new client object are blocking, and will not return until the service call
* completes.
*
* @param clientConfiguration
* The client configuration options controlling how this client connects to Amazon SSM (ex: proxy settings,
* retry counts, etc.).
*
* @see DefaultAWSCredentialsProviderChain
* @deprecated use {@link AWSSimpleSystemsManagementClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AWSSimpleSystemsManagementClient(ClientConfiguration clientConfiguration) {
this(DefaultAWSCredentialsProviderChain.getInstance(), clientConfiguration);
}
/**
* Constructs a new client to invoke service methods on Amazon SSM using the specified AWS account credentials.
*
*
* All service calls made using this new client object are blocking, and will not return until the service call
* completes.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @deprecated use {@link AWSSimpleSystemsManagementClientBuilder#withCredentials(AWSCredentialsProvider)} for
* example:
* {@code AWSSimpleSystemsManagementClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build();}
*/
@Deprecated
public AWSSimpleSystemsManagementClient(AWSCredentials awsCredentials) {
this(awsCredentials, configFactory.getConfig());
}
/**
* Constructs a new client to invoke service methods on Amazon SSM using the specified AWS account credentials and
* client configuration options.
*
*
* All service calls made using this new client object are blocking, and will not return until the service call
* completes.
*
* @param awsCredentials
* The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
* @param clientConfiguration
* The client configuration options controlling how this client connects to Amazon SSM (ex: proxy settings,
* retry counts, etc.).
* @deprecated use {@link AWSSimpleSystemsManagementClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSSimpleSystemsManagementClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AWSSimpleSystemsManagementClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration) {
super(clientConfiguration);
this.awsCredentialsProvider = new StaticCredentialsProvider(awsCredentials);
this.advancedConfig = AdvancedConfig.EMPTY;
init();
}
/**
* Constructs a new client to invoke service methods on Amazon SSM using the specified AWS account credentials
* provider.
*
*
* All service calls made using this new client object are blocking, and will not return until the service call
* completes.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @deprecated use {@link AWSSimpleSystemsManagementClientBuilder#withCredentials(AWSCredentialsProvider)}
*/
@Deprecated
public AWSSimpleSystemsManagementClient(AWSCredentialsProvider awsCredentialsProvider) {
this(awsCredentialsProvider, configFactory.getConfig());
}
/**
* Constructs a new client to invoke service methods on Amazon SSM using the specified AWS account credentials
* provider and client configuration options.
*
*
* All service calls made using this new client object are blocking, and will not return until the service call
* completes.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* The client configuration options controlling how this client connects to Amazon SSM (ex: proxy settings,
* retry counts, etc.).
* @deprecated use {@link AWSSimpleSystemsManagementClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSSimpleSystemsManagementClientBuilder#withClientConfiguration(ClientConfiguration)}
*/
@Deprecated
public AWSSimpleSystemsManagementClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) {
this(awsCredentialsProvider, clientConfiguration, null);
}
/**
* Constructs a new client to invoke service methods on Amazon SSM using the specified AWS account credentials
* provider, client configuration options, and request metric collector.
*
*
* All service calls made using this new client object are blocking, and will not return until the service call
* completes.
*
* @param awsCredentialsProvider
* The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
* @param clientConfiguration
* The client configuration options controlling how this client connects to Amazon SSM (ex: proxy settings,
* retry counts, etc.).
* @param requestMetricCollector
* optional request metric collector
* @deprecated use {@link AWSSimpleSystemsManagementClientBuilder#withCredentials(AWSCredentialsProvider)} and
* {@link AWSSimpleSystemsManagementClientBuilder#withClientConfiguration(ClientConfiguration)} and
* {@link AWSSimpleSystemsManagementClientBuilder#withMetricsCollector(RequestMetricCollector)}
*/
@Deprecated
public AWSSimpleSystemsManagementClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector) {
super(clientConfiguration, requestMetricCollector);
this.awsCredentialsProvider = awsCredentialsProvider;
this.advancedConfig = AdvancedConfig.EMPTY;
init();
}
public static AWSSimpleSystemsManagementClientBuilder builder() {
return AWSSimpleSystemsManagementClientBuilder.standard();
}
/**
* Constructs a new client to invoke service methods on Amazon SSM using the specified parameters.
*
*
* All service calls made using this new client object are blocking, and will not return until the service call
* completes.
*
* @param clientParams
* Object providing client parameters.
*/
AWSSimpleSystemsManagementClient(AwsSyncClientParams clientParams) {
this(clientParams, false);
}
/**
* Constructs a new client to invoke service methods on Amazon SSM using the specified parameters.
*
*
* All service calls made using this new client object are blocking, and will not return until the service call
* completes.
*
* @param clientParams
* Object providing client parameters.
*/
AWSSimpleSystemsManagementClient(AwsSyncClientParams clientParams, boolean endpointDiscoveryEnabled) {
super(clientParams);
this.awsCredentialsProvider = clientParams.getCredentialsProvider();
this.advancedConfig = clientParams.getAdvancedConfig();
init();
}
private void init() {
setServiceNameIntern(DEFAULT_SIGNING_NAME);
setEndpointPrefix(ENDPOINT_PREFIX);
// calling this.setEndPoint(...) will also modify the signer accordingly
setEndpoint("https://ssm.us-east-1.amazonaws.com");
HandlerChainFactory chainFactory = new HandlerChainFactory();
requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com/amazonaws/services/simplesystemsmanagement/request.handlers"));
requestHandler2s.addAll(chainFactory.newRequestHandler2Chain("/com/amazonaws/services/simplesystemsmanagement/request.handler2s"));
requestHandler2s.addAll(chainFactory.getGlobalHandlers());
}
/**
*
* Adds or overwrites one or more tags for the specified resource. Tags are metadata that you can assign to
* your automations, documents, managed nodes, maintenance windows, Parameter Store parameters, and patch baselines.
* Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.
* Each tag consists of a key and an optional value, both of which you define. For example, you could define a set
* of tags for your account's managed nodes that helps you track each node's owner and stack level. For example:
*
*
* -
*
* Key=Owner,Value=DbAdmin
*
*
* -
*
* Key=Owner,Value=SysAdmin
*
*
* -
*
* Key=Owner,Value=Dev
*
*
* -
*
* Key=Stack,Value=Production
*
*
* -
*
* Key=Stack,Value=Pre-Production
*
*
* -
*
* Key=Stack,Value=Test
*
*
*
*
* Most resources can have a maximum of 50 tags. Automations can have a maximum of 5 tags.
*
*
* We recommend that you devise a set of tag keys that meets your needs for each resource type. Using a consistent
* set of tag keys makes it easier for you to manage your resources. You can search and filter the resources based
* on the tags you add. Tags don't have any semantic meaning to and are interpreted strictly as a string of
* characters.
*
*
* For more information about using tags with Amazon Elastic Compute Cloud (Amazon EC2) instances, see Tag your Amazon EC2 resources in
* the Amazon EC2 User Guide.
*
*
* @param addTagsToResourceRequest
* @return Result of the AddTagsToResource operation returned by the service.
* @throws InvalidResourceTypeException
* The resource type isn't valid. For example, if you are attempting to tag an EC2 instance, the instance
* must be a registered managed node.
* @throws InvalidResourceIdException
* The resource ID isn't valid. Verify that you entered the correct ID and try again.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws TooManyTagsErrorException
* The Targets
parameter includes too many tags. Remove one or more tags and try the command
* again.
* @throws TooManyUpdatesException
* There are concurrent updates for a resource that supports one update at a time.
* @sample AWSSimpleSystemsManagement.AddTagsToResource
* @see AWS API
* Documentation
*/
@Override
public AddTagsToResourceResult addTagsToResource(AddTagsToResourceRequest request) {
request = beforeClientExecution(request);
return executeAddTagsToResource(request);
}
@SdkInternalApi
final AddTagsToResourceResult executeAddTagsToResource(AddTagsToResourceRequest addTagsToResourceRequest) {
ExecutionContext executionContext = createExecutionContext(addTagsToResourceRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new AddTagsToResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(addTagsToResourceRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AddTagsToResource");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new AddTagsToResourceResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Associates a related item to a Systems Manager OpsCenter OpsItem. For example, you can associate an Incident
* Manager incident or analysis with an OpsItem. Incident Manager and OpsCenter are capabilities of Amazon Web
* Services Systems Manager.
*
*
* @param associateOpsItemRelatedItemRequest
* @return Result of the AssociateOpsItemRelatedItem operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws OpsItemNotFoundException
* The specified OpsItem ID doesn't exist. Verify the ID and try again.
* @throws OpsItemLimitExceededException
* The request caused OpsItems to exceed one or more quotas.
* @throws OpsItemInvalidParameterException
* A specified parameter argument isn't valid. Verify the available arguments and try again.
* @throws OpsItemRelatedItemAlreadyExistsException
* The Amazon Resource Name (ARN) is already associated with the OpsItem.
* @throws OpsItemConflictException
* The specified OpsItem is in the process of being deleted.
* @sample AWSSimpleSystemsManagement.AssociateOpsItemRelatedItem
* @see AWS API Documentation
*/
@Override
public AssociateOpsItemRelatedItemResult associateOpsItemRelatedItem(AssociateOpsItemRelatedItemRequest request) {
request = beforeClientExecution(request);
return executeAssociateOpsItemRelatedItem(request);
}
@SdkInternalApi
final AssociateOpsItemRelatedItemResult executeAssociateOpsItemRelatedItem(AssociateOpsItemRelatedItemRequest associateOpsItemRelatedItemRequest) {
ExecutionContext executionContext = createExecutionContext(associateOpsItemRelatedItemRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new AssociateOpsItemRelatedItemRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(associateOpsItemRelatedItemRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AssociateOpsItemRelatedItem");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new AssociateOpsItemRelatedItemResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Attempts to cancel the command specified by the Command ID. There is no guarantee that the command will be
* terminated and the underlying process stopped.
*
*
* @param cancelCommandRequest
* @return Result of the CancelCommand operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidCommandIdException
* The specified command ID isn't valid. Verify the ID and try again.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws DuplicateInstanceIdException
* You can't specify a managed node ID in more than one association.
* @sample AWSSimpleSystemsManagement.CancelCommand
* @see AWS API
* Documentation
*/
@Override
public CancelCommandResult cancelCommand(CancelCommandRequest request) {
request = beforeClientExecution(request);
return executeCancelCommand(request);
}
@SdkInternalApi
final CancelCommandResult executeCancelCommand(CancelCommandRequest cancelCommandRequest) {
ExecutionContext executionContext = createExecutionContext(cancelCommandRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CancelCommandRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(cancelCommandRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CancelCommand");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CancelCommandResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Stops a maintenance window execution that is already in progress and cancels any tasks in the window that haven't
* already starting running. Tasks already in progress will continue to completion.
*
*
* @param cancelMaintenanceWindowExecutionRequest
* @return Result of the CancelMaintenanceWindowExecution operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @sample AWSSimpleSystemsManagement.CancelMaintenanceWindowExecution
* @see AWS API Documentation
*/
@Override
public CancelMaintenanceWindowExecutionResult cancelMaintenanceWindowExecution(CancelMaintenanceWindowExecutionRequest request) {
request = beforeClientExecution(request);
return executeCancelMaintenanceWindowExecution(request);
}
@SdkInternalApi
final CancelMaintenanceWindowExecutionResult executeCancelMaintenanceWindowExecution(
CancelMaintenanceWindowExecutionRequest cancelMaintenanceWindowExecutionRequest) {
ExecutionContext executionContext = createExecutionContext(cancelMaintenanceWindowExecutionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CancelMaintenanceWindowExecutionRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(cancelMaintenanceWindowExecutionRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CancelMaintenanceWindowExecution");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CancelMaintenanceWindowExecutionResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Generates an activation code and activation ID you can use to register your on-premises servers, edge devices, or
* virtual machine (VM) with Amazon Web Services Systems Manager. Registering these machines with Systems Manager
* makes it possible to manage them using Systems Manager capabilities. You use the activation code and ID when
* installing SSM Agent on machines in your hybrid environment. For more information about requirements for managing
* on-premises machines using Systems Manager, see Setting
* up Amazon Web Services Systems Manager for hybrid and multicloud environments in the Amazon Web Services
* Systems Manager User Guide.
*
*
*
* Amazon Elastic Compute Cloud (Amazon EC2) instances, edge devices, and on-premises servers and VMs that are
* configured for Systems Manager are all called managed nodes.
*
*
*
* @param createActivationRequest
* @return Result of the CreateActivation operation returned by the service.
* @throws InvalidParametersException
* You must specify values for all required parameters in the Amazon Web Services Systems Manager document
* (SSM document). You can only supply values to parameters defined in the SSM document.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.CreateActivation
* @see AWS API
* Documentation
*/
@Override
public CreateActivationResult createActivation(CreateActivationRequest request) {
request = beforeClientExecution(request);
return executeCreateActivation(request);
}
@SdkInternalApi
final CreateActivationResult executeCreateActivation(CreateActivationRequest createActivationRequest) {
ExecutionContext executionContext = createExecutionContext(createActivationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateActivationRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createActivationRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateActivation");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateActivationResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* A State Manager association defines the state that you want to maintain on your managed nodes. For example, an
* association can specify that anti-virus software must be installed and running on your managed nodes, or that
* certain ports must be closed. For static targets, the association specifies a schedule for when the configuration
* is reapplied. For dynamic targets, such as an Amazon Web Services resource group or an Amazon Web Services
* autoscaling group, State Manager, a capability of Amazon Web Services Systems Manager applies the configuration
* when new managed nodes are added to the group. The association also specifies actions to take when applying the
* configuration. For example, an association for anti-virus software might run once a day. If the software isn't
* installed, then State Manager installs it. If the software is installed, but the service isn't running, then the
* association might instruct State Manager to start the service.
*
*
* @param createAssociationRequest
* @return Result of the CreateAssociation operation returned by the service.
* @throws AssociationAlreadyExistsException
* The specified association already exists.
* @throws AssociationLimitExceededException
* You can have at most 2,000 active associations.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws InvalidDocumentVersionException
* The document version isn't valid or doesn't exist.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws UnsupportedPlatformTypeException
* The document doesn't support the platform type of the given managed node IDs. For example, you sent an
* document for a Windows managed node to a Linux node.
* @throws InvalidOutputLocationException
* The output location isn't valid or doesn't exist.
* @throws InvalidParametersException
* You must specify values for all required parameters in the Amazon Web Services Systems Manager document
* (SSM document). You can only supply values to parameters defined in the SSM document.
* @throws InvalidTargetException
* The target isn't valid or doesn't exist. It might not be configured for Systems Manager or you might not
* have permission to perform the operation.
* @throws InvalidScheduleException
* The schedule is invalid. Verify your cron or rate expression and try again.
* @throws InvalidTargetMapsException
* TargetMap parameter isn't valid.
* @throws InvalidTagException
* The specified tag key or value isn't valid.
* @sample AWSSimpleSystemsManagement.CreateAssociation
* @see AWS API
* Documentation
*/
@Override
public CreateAssociationResult createAssociation(CreateAssociationRequest request) {
request = beforeClientExecution(request);
return executeCreateAssociation(request);
}
@SdkInternalApi
final CreateAssociationResult executeCreateAssociation(CreateAssociationRequest createAssociationRequest) {
ExecutionContext executionContext = createExecutionContext(createAssociationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateAssociationRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createAssociationRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAssociation");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateAssociationResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Associates the specified Amazon Web Services Systems Manager document (SSM document) with the specified managed
* nodes or targets.
*
*
* When you associate a document with one or more managed nodes using IDs or tags, Amazon Web Services Systems
* Manager Agent (SSM Agent) running on the managed node processes the document and configures the node as
* specified.
*
*
* If you associate a document with a managed node that already has an associated document, the system returns the
* AssociationAlreadyExists exception.
*
*
* @param createAssociationBatchRequest
* @return Result of the CreateAssociationBatch operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws InvalidDocumentVersionException
* The document version isn't valid or doesn't exist.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws InvalidParametersException
* You must specify values for all required parameters in the Amazon Web Services Systems Manager document
* (SSM document). You can only supply values to parameters defined in the SSM document.
* @throws DuplicateInstanceIdException
* You can't specify a managed node ID in more than one association.
* @throws AssociationLimitExceededException
* You can have at most 2,000 active associations.
* @throws UnsupportedPlatformTypeException
* The document doesn't support the platform type of the given managed node IDs. For example, you sent an
* document for a Windows managed node to a Linux node.
* @throws InvalidOutputLocationException
* The output location isn't valid or doesn't exist.
* @throws InvalidTargetException
* The target isn't valid or doesn't exist. It might not be configured for Systems Manager or you might not
* have permission to perform the operation.
* @throws InvalidScheduleException
* The schedule is invalid. Verify your cron or rate expression and try again.
* @throws InvalidTargetMapsException
* TargetMap parameter isn't valid.
* @sample AWSSimpleSystemsManagement.CreateAssociationBatch
* @see AWS API
* Documentation
*/
@Override
public CreateAssociationBatchResult createAssociationBatch(CreateAssociationBatchRequest request) {
request = beforeClientExecution(request);
return executeCreateAssociationBatch(request);
}
@SdkInternalApi
final CreateAssociationBatchResult executeCreateAssociationBatch(CreateAssociationBatchRequest createAssociationBatchRequest) {
ExecutionContext executionContext = createExecutionContext(createAssociationBatchRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateAssociationBatchRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createAssociationBatchRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAssociationBatch");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateAssociationBatchResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Creates a Amazon Web Services Systems Manager (SSM document). An SSM document defines the actions that Systems
* Manager performs on your managed nodes. For more information about SSM documents, including information about
* supported schemas, features, and syntax, see Amazon Web Services
* Systems Manager Documents in the Amazon Web Services Systems Manager User Guide.
*
*
* @param createDocumentRequest
* @return Result of the CreateDocument operation returned by the service.
* @throws DocumentAlreadyExistsException
* The specified document already exists.
* @throws MaxDocumentSizeExceededException
* The size limit of a document is 64 KB.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidDocumentContentException
* The content for the document isn't valid.
* @throws DocumentLimitExceededException
* You can have at most 500 active SSM documents.
* @throws InvalidDocumentSchemaVersionException
* The version of the document schema isn't supported.
* @sample AWSSimpleSystemsManagement.CreateDocument
* @see AWS API
* Documentation
*/
@Override
public CreateDocumentResult createDocument(CreateDocumentRequest request) {
request = beforeClientExecution(request);
return executeCreateDocument(request);
}
@SdkInternalApi
final CreateDocumentResult executeCreateDocument(CreateDocumentRequest createDocumentRequest) {
ExecutionContext executionContext = createExecutionContext(createDocumentRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateDocumentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createDocumentRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateDocument");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateDocumentResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Creates a new maintenance window.
*
*
*
* The value you specify for Duration
determines the specific end time for the maintenance window based
* on the time it begins. No maintenance window tasks are permitted to start after the resulting endtime minus the
* number of hours you specify for Cutoff
. For example, if the maintenance window starts at 3 PM, the
* duration is three hours, and the value you specify for Cutoff
is one hour, no maintenance window
* tasks can start after 5 PM.
*
*
*
* @param createMaintenanceWindowRequest
* @return Result of the CreateMaintenanceWindow operation returned by the service.
* @throws IdempotentParameterMismatchException
* Error returned when an idempotent operation is retried and the parameters don't match the original call
* to the API with the same idempotency token.
* @throws ResourceLimitExceededException
* Error returned when the caller has exceeded the default resource quotas. For example, too many
* maintenance windows or patch baselines have been created.
*
* For information about resource quotas in Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.CreateMaintenanceWindow
* @see AWS
* API Documentation
*/
@Override
public CreateMaintenanceWindowResult createMaintenanceWindow(CreateMaintenanceWindowRequest request) {
request = beforeClientExecution(request);
return executeCreateMaintenanceWindow(request);
}
@SdkInternalApi
final CreateMaintenanceWindowResult executeCreateMaintenanceWindow(CreateMaintenanceWindowRequest createMaintenanceWindowRequest) {
ExecutionContext executionContext = createExecutionContext(createMaintenanceWindowRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateMaintenanceWindowRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(createMaintenanceWindowRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateMaintenanceWindow");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateMaintenanceWindowResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Creates a new OpsItem. You must have permission in Identity and Access Management (IAM) to create a new OpsItem.
* For more information, see Set up OpsCenter in
* the Amazon Web Services Systems Manager User Guide.
*
*
* Operations engineers and IT professionals use Amazon Web Services Systems Manager OpsCenter to view, investigate,
* and remediate operational issues impacting the performance and health of their Amazon Web Services resources. For
* more information, see Amazon Web Services Systems
* Manager OpsCenter in the Amazon Web Services Systems Manager User Guide.
*
*
* @param createOpsItemRequest
* @return Result of the CreateOpsItem operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws OpsItemAlreadyExistsException
* The OpsItem already exists.
* @throws OpsItemLimitExceededException
* The request caused OpsItems to exceed one or more quotas.
* @throws OpsItemInvalidParameterException
* A specified parameter argument isn't valid. Verify the available arguments and try again.
* @throws OpsItemAccessDeniedException
* You don't have permission to view OpsItems in the specified account. Verify that your account is
* configured either as a Systems Manager delegated administrator or that you are logged into the
* Organizations management account.
* @sample AWSSimpleSystemsManagement.CreateOpsItem
* @see AWS API
* Documentation
*/
@Override
public CreateOpsItemResult createOpsItem(CreateOpsItemRequest request) {
request = beforeClientExecution(request);
return executeCreateOpsItem(request);
}
@SdkInternalApi
final CreateOpsItemResult executeCreateOpsItem(CreateOpsItemRequest createOpsItemRequest) {
ExecutionContext executionContext = createExecutionContext(createOpsItemRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateOpsItemRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createOpsItemRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateOpsItem");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateOpsItemResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* If you create a new application in Application Manager, Amazon Web Services Systems Manager calls this API
* operation to specify information about the new application, including the application type.
*
*
* @param createOpsMetadataRequest
* @return Result of the CreateOpsMetadata operation returned by the service.
* @throws OpsMetadataAlreadyExistsException
* An OpsMetadata object already exists for the selected resource.
* @throws OpsMetadataTooManyUpdatesException
* The system is processing too many concurrent updates. Wait a few moments and try again.
* @throws OpsMetadataInvalidArgumentException
* One of the arguments passed is invalid.
* @throws OpsMetadataLimitExceededException
* Your account reached the maximum number of OpsMetadata objects allowed by Application Manager. The
* maximum is 200 OpsMetadata objects. Delete one or more OpsMetadata object and try again.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.CreateOpsMetadata
* @see AWS API
* Documentation
*/
@Override
public CreateOpsMetadataResult createOpsMetadata(CreateOpsMetadataRequest request) {
request = beforeClientExecution(request);
return executeCreateOpsMetadata(request);
}
@SdkInternalApi
final CreateOpsMetadataResult executeCreateOpsMetadata(CreateOpsMetadataRequest createOpsMetadataRequest) {
ExecutionContext executionContext = createExecutionContext(createOpsMetadataRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateOpsMetadataRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createOpsMetadataRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateOpsMetadata");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateOpsMetadataResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Creates a patch baseline.
*
*
*
* For information about valid key-value pairs in PatchFilters
for each supported operating system
* type, see PatchFilter.
*
*
*
* @param createPatchBaselineRequest
* @return Result of the CreatePatchBaseline operation returned by the service.
* @throws IdempotentParameterMismatchException
* Error returned when an idempotent operation is retried and the parameters don't match the original call
* to the API with the same idempotency token.
* @throws ResourceLimitExceededException
* Error returned when the caller has exceeded the default resource quotas. For example, too many
* maintenance windows or patch baselines have been created.
*
* For information about resource quotas in Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.CreatePatchBaseline
* @see AWS API
* Documentation
*/
@Override
public CreatePatchBaselineResult createPatchBaseline(CreatePatchBaselineRequest request) {
request = beforeClientExecution(request);
return executeCreatePatchBaseline(request);
}
@SdkInternalApi
final CreatePatchBaselineResult executeCreatePatchBaseline(CreatePatchBaselineRequest createPatchBaselineRequest) {
ExecutionContext executionContext = createExecutionContext(createPatchBaselineRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreatePatchBaselineRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createPatchBaselineRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreatePatchBaseline");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreatePatchBaselineResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* A resource data sync helps you view data from multiple sources in a single location. Amazon Web Services Systems
* Manager offers two types of resource data sync: SyncToDestination
and SyncFromSource
.
*
*
* You can configure Systems Manager Inventory to use the SyncToDestination
type to synchronize
* Inventory data from multiple Amazon Web Services Regions to a single Amazon Simple Storage Service (Amazon S3)
* bucket. For more information, see Configuring
* resource data sync for Inventory in the Amazon Web Services Systems Manager User Guide.
*
*
* You can configure Systems Manager Explorer to use the SyncFromSource
type to synchronize operational
* work items (OpsItems) and operational data (OpsData) from multiple Amazon Web Services Regions to a single Amazon
* S3 bucket. This type can synchronize OpsItems and OpsData from multiple Amazon Web Services accounts and Amazon
* Web Services Regions or EntireOrganization
by using Organizations. For more information, see Setting up
* Systems Manager Explorer to display data from multiple accounts and Regions in the Amazon Web Services
* Systems Manager User Guide.
*
*
* A resource data sync is an asynchronous operation that returns immediately. After a successful initial sync is
* completed, the system continuously syncs data. To check the status of a sync, use the
* ListResourceDataSync.
*
*
*
* By default, data isn't encrypted in Amazon S3. We strongly recommend that you enable encryption in Amazon S3 to
* ensure secure data storage. We also recommend that you secure access to the Amazon S3 bucket by creating a
* restrictive bucket policy.
*
*
*
* @param createResourceDataSyncRequest
* @return Result of the CreateResourceDataSync operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws ResourceDataSyncCountExceededException
* You have exceeded the allowed maximum sync configurations.
* @throws ResourceDataSyncAlreadyExistsException
* A sync configuration with the same name already exists.
* @throws ResourceDataSyncInvalidConfigurationException
* The specified sync configuration is invalid.
* @sample AWSSimpleSystemsManagement.CreateResourceDataSync
* @see AWS API
* Documentation
*/
@Override
public CreateResourceDataSyncResult createResourceDataSync(CreateResourceDataSyncRequest request) {
request = beforeClientExecution(request);
return executeCreateResourceDataSync(request);
}
@SdkInternalApi
final CreateResourceDataSyncResult executeCreateResourceDataSync(CreateResourceDataSyncRequest createResourceDataSyncRequest) {
ExecutionContext executionContext = createExecutionContext(createResourceDataSyncRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateResourceDataSyncRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createResourceDataSyncRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateResourceDataSync");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateResourceDataSyncResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Deletes an activation. You aren't required to delete an activation. If you delete an activation, you can no
* longer use it to register additional managed nodes. Deleting an activation doesn't de-register managed nodes. You
* must manually de-register managed nodes.
*
*
* @param deleteActivationRequest
* @return Result of the DeleteActivation operation returned by the service.
* @throws InvalidActivationIdException
* The activation ID isn't valid. Verify the you entered the correct ActivationId or ActivationCode and try
* again.
* @throws InvalidActivationException
* The activation isn't valid. The activation might have been deleted, or the ActivationId and the
* ActivationCode don't match.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws TooManyUpdatesException
* There are concurrent updates for a resource that supports one update at a time.
* @sample AWSSimpleSystemsManagement.DeleteActivation
* @see AWS API
* Documentation
*/
@Override
public DeleteActivationResult deleteActivation(DeleteActivationRequest request) {
request = beforeClientExecution(request);
return executeDeleteActivation(request);
}
@SdkInternalApi
final DeleteActivationResult executeDeleteActivation(DeleteActivationRequest deleteActivationRequest) {
ExecutionContext executionContext = createExecutionContext(deleteActivationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteActivationRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteActivationRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteActivation");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteActivationResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Disassociates the specified Amazon Web Services Systems Manager document (SSM document) from the specified
* managed node. If you created the association by using the Targets
parameter, then you must delete
* the association by using the association ID.
*
*
* When you disassociate a document from a managed node, it doesn't change the configuration of the node. To change
* the configuration state of a managed node after you disassociate a document, you must create a new document with
* the desired configuration and associate it with the node.
*
*
* @param deleteAssociationRequest
* @return Result of the DeleteAssociation operation returned by the service.
* @throws AssociationDoesNotExistException
* The specified association doesn't exist.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws TooManyUpdatesException
* There are concurrent updates for a resource that supports one update at a time.
* @sample AWSSimpleSystemsManagement.DeleteAssociation
* @see AWS API
* Documentation
*/
@Override
public DeleteAssociationResult deleteAssociation(DeleteAssociationRequest request) {
request = beforeClientExecution(request);
return executeDeleteAssociation(request);
}
@SdkInternalApi
final DeleteAssociationResult executeDeleteAssociation(DeleteAssociationRequest deleteAssociationRequest) {
ExecutionContext executionContext = createExecutionContext(deleteAssociationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteAssociationRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteAssociationRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAssociation");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteAssociationResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Deletes the Amazon Web Services Systems Manager document (SSM document) and all managed node associations to the
* document.
*
*
* Before you delete the document, we recommend that you use DeleteAssociation to disassociate all managed
* nodes that are associated with the document.
*
*
* @param deleteDocumentRequest
* @return Result of the DeleteDocument operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws InvalidDocumentOperationException
* You attempted to delete a document while it is still shared. You must stop sharing the document before
* you can delete it.
* @throws AssociatedInstancesException
* You must disassociate a document from all managed nodes before you can delete it.
* @sample AWSSimpleSystemsManagement.DeleteDocument
* @see AWS API
* Documentation
*/
@Override
public DeleteDocumentResult deleteDocument(DeleteDocumentRequest request) {
request = beforeClientExecution(request);
return executeDeleteDocument(request);
}
@SdkInternalApi
final DeleteDocumentResult executeDeleteDocument(DeleteDocumentRequest deleteDocumentRequest) {
ExecutionContext executionContext = createExecutionContext(deleteDocumentRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteDocumentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteDocumentRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteDocument");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteDocumentResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Delete a custom inventory type or the data associated with a custom Inventory type. Deleting a custom inventory
* type is also referred to as deleting a custom inventory schema.
*
*
* @param deleteInventoryRequest
* @return Result of the DeleteInventory operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidTypeNameException
* The parameter type name isn't valid.
* @throws InvalidOptionException
* The delete inventory option specified isn't valid. Verify the option and try again.
* @throws InvalidDeleteInventoryParametersException
* One or more of the parameters specified for the delete operation isn't valid. Verify all parameters and
* try again.
* @throws InvalidInventoryRequestException
* The request isn't valid.
* @sample AWSSimpleSystemsManagement.DeleteInventory
* @see AWS API
* Documentation
*/
@Override
public DeleteInventoryResult deleteInventory(DeleteInventoryRequest request) {
request = beforeClientExecution(request);
return executeDeleteInventory(request);
}
@SdkInternalApi
final DeleteInventoryResult executeDeleteInventory(DeleteInventoryRequest deleteInventoryRequest) {
ExecutionContext executionContext = createExecutionContext(deleteInventoryRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteInventoryRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteInventoryRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteInventory");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteInventoryResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Deletes a maintenance window.
*
*
* @param deleteMaintenanceWindowRequest
* @return Result of the DeleteMaintenanceWindow operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DeleteMaintenanceWindow
* @see AWS
* API Documentation
*/
@Override
public DeleteMaintenanceWindowResult deleteMaintenanceWindow(DeleteMaintenanceWindowRequest request) {
request = beforeClientExecution(request);
return executeDeleteMaintenanceWindow(request);
}
@SdkInternalApi
final DeleteMaintenanceWindowResult executeDeleteMaintenanceWindow(DeleteMaintenanceWindowRequest deleteMaintenanceWindowRequest) {
ExecutionContext executionContext = createExecutionContext(deleteMaintenanceWindowRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteMaintenanceWindowRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(deleteMaintenanceWindowRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteMaintenanceWindow");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteMaintenanceWindowResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* 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.
*
*
*
*
*
* @param deleteOpsItemRequest
* @return Result of the DeleteOpsItem operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws OpsItemInvalidParameterException
* A specified parameter argument isn't valid. Verify the available arguments and try again.
* @sample AWSSimpleSystemsManagement.DeleteOpsItem
* @see AWS API
* Documentation
*/
@Override
public DeleteOpsItemResult deleteOpsItem(DeleteOpsItemRequest request) {
request = beforeClientExecution(request);
return executeDeleteOpsItem(request);
}
@SdkInternalApi
final DeleteOpsItemResult executeDeleteOpsItem(DeleteOpsItemRequest deleteOpsItemRequest) {
ExecutionContext executionContext = createExecutionContext(deleteOpsItemRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteOpsItemRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteOpsItemRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteOpsItem");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteOpsItemResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Delete OpsMetadata related to an application.
*
*
* @param deleteOpsMetadataRequest
* @return Result of the DeleteOpsMetadata operation returned by the service.
* @throws OpsMetadataNotFoundException
* The OpsMetadata object doesn't exist.
* @throws OpsMetadataInvalidArgumentException
* One of the arguments passed is invalid.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DeleteOpsMetadata
* @see AWS API
* Documentation
*/
@Override
public DeleteOpsMetadataResult deleteOpsMetadata(DeleteOpsMetadataRequest request) {
request = beforeClientExecution(request);
return executeDeleteOpsMetadata(request);
}
@SdkInternalApi
final DeleteOpsMetadataResult executeDeleteOpsMetadata(DeleteOpsMetadataRequest deleteOpsMetadataRequest) {
ExecutionContext executionContext = createExecutionContext(deleteOpsMetadataRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteOpsMetadataRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteOpsMetadataRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteOpsMetadata");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteOpsMetadataResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Delete a parameter from the system. After deleting a parameter, wait for at least 30 seconds to create a
* parameter with the same name.
*
*
* @param deleteParameterRequest
* @return Result of the DeleteParameter operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws ParameterNotFoundException
* The parameter couldn't be found. Verify the name and try again.
* @sample AWSSimpleSystemsManagement.DeleteParameter
* @see AWS API
* Documentation
*/
@Override
public DeleteParameterResult deleteParameter(DeleteParameterRequest request) {
request = beforeClientExecution(request);
return executeDeleteParameter(request);
}
@SdkInternalApi
final DeleteParameterResult executeDeleteParameter(DeleteParameterRequest deleteParameterRequest) {
ExecutionContext executionContext = createExecutionContext(deleteParameterRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteParameterRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteParameterRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteParameter");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteParameterResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Delete a list of parameters. After deleting a parameter, wait for at least 30 seconds to create a parameter with
* the same name.
*
*
* @param deleteParametersRequest
* @return Result of the DeleteParameters operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DeleteParameters
* @see AWS API
* Documentation
*/
@Override
public DeleteParametersResult deleteParameters(DeleteParametersRequest request) {
request = beforeClientExecution(request);
return executeDeleteParameters(request);
}
@SdkInternalApi
final DeleteParametersResult executeDeleteParameters(DeleteParametersRequest deleteParametersRequest) {
ExecutionContext executionContext = createExecutionContext(deleteParametersRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteParametersRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteParametersRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteParameters");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteParametersResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Deletes a patch baseline.
*
*
* @param deletePatchBaselineRequest
* @return Result of the DeletePatchBaseline operation returned by the service.
* @throws ResourceInUseException
* Error returned if an attempt is made to delete a patch baseline that is registered for a patch group.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DeletePatchBaseline
* @see AWS API
* Documentation
*/
@Override
public DeletePatchBaselineResult deletePatchBaseline(DeletePatchBaselineRequest request) {
request = beforeClientExecution(request);
return executeDeletePatchBaseline(request);
}
@SdkInternalApi
final DeletePatchBaselineResult executeDeletePatchBaseline(DeletePatchBaselineRequest deletePatchBaselineRequest) {
ExecutionContext executionContext = createExecutionContext(deletePatchBaselineRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeletePatchBaselineRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deletePatchBaselineRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeletePatchBaseline");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeletePatchBaselineResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Deletes a resource data sync configuration. After the configuration is deleted, changes to data on managed nodes
* are no longer synced to or from the target. Deleting a sync configuration doesn't delete data.
*
*
* @param deleteResourceDataSyncRequest
* @return Result of the DeleteResourceDataSync operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws ResourceDataSyncNotFoundException
* The specified sync name wasn't found.
* @throws ResourceDataSyncInvalidConfigurationException
* The specified sync configuration is invalid.
* @sample AWSSimpleSystemsManagement.DeleteResourceDataSync
* @see AWS API
* Documentation
*/
@Override
public DeleteResourceDataSyncResult deleteResourceDataSync(DeleteResourceDataSyncRequest request) {
request = beforeClientExecution(request);
return executeDeleteResourceDataSync(request);
}
@SdkInternalApi
final DeleteResourceDataSyncResult executeDeleteResourceDataSync(DeleteResourceDataSyncRequest deleteResourceDataSyncRequest) {
ExecutionContext executionContext = createExecutionContext(deleteResourceDataSyncRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteResourceDataSyncRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteResourceDataSyncRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteResourceDataSync");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteResourceDataSyncResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Deletes a Systems Manager resource policy. A resource policy helps you to define the IAM entity (for example, an
* Amazon Web Services account) that can manage your Systems Manager resources. The following resources support
* Systems Manager resource policies.
*
*
* -
*
* OpsItemGroup
- The resource policy for OpsItemGroup
enables Amazon Web Services
* accounts to view and interact with OpsCenter operational work items (OpsItems).
*
*
* -
*
* Parameter
- The resource policy is used to share a parameter with other accounts using Resource
* Access Manager (RAM). For more information about cross-account sharing of parameters, see Working with shared parameters in the Amazon Web Services Systems Manager User Guide.
*
*
*
*
* @param deleteResourcePolicyRequest
* @return Result of the DeleteResourcePolicy operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws ResourcePolicyInvalidParameterException
* One or more parameters specified for the call aren't valid. Verify the parameters and their values and
* try again.
* @throws ResourcePolicyConflictException
* The hash provided in the call doesn't match the stored hash. This exception is thrown when trying to
* update an obsolete policy version or when multiple requests to update a policy are sent.
* @throws ResourceNotFoundException
* The specified parameter to be shared could not be found.
* @throws MalformedResourcePolicyDocumentException
* The specified policy document is malformed or invalid, or excessive PutResourcePolicy
or
* DeleteResourcePolicy
calls have been made.
* @throws ResourcePolicyNotFoundException
* No policies with the specified policy ID and hash could be found.
* @sample AWSSimpleSystemsManagement.DeleteResourcePolicy
* @see AWS API
* Documentation
*/
@Override
public DeleteResourcePolicyResult deleteResourcePolicy(DeleteResourcePolicyRequest request) {
request = beforeClientExecution(request);
return executeDeleteResourcePolicy(request);
}
@SdkInternalApi
final DeleteResourcePolicyResult executeDeleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) {
ExecutionContext executionContext = createExecutionContext(deleteResourcePolicyRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteResourcePolicyRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteResourcePolicyRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteResourcePolicy");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteResourcePolicyResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Removes the server or virtual machine from the list of registered servers. You can reregister the node again at
* any time. If you don't plan to use Run Command on the server, we suggest uninstalling SSM Agent first.
*
*
* @param deregisterManagedInstanceRequest
* @return Result of the DeregisterManagedInstance operation returned by the service.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DeregisterManagedInstance
* @see AWS
* API Documentation
*/
@Override
public DeregisterManagedInstanceResult deregisterManagedInstance(DeregisterManagedInstanceRequest request) {
request = beforeClientExecution(request);
return executeDeregisterManagedInstance(request);
}
@SdkInternalApi
final DeregisterManagedInstanceResult executeDeregisterManagedInstance(DeregisterManagedInstanceRequest deregisterManagedInstanceRequest) {
ExecutionContext executionContext = createExecutionContext(deregisterManagedInstanceRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeregisterManagedInstanceRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(deregisterManagedInstanceRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeregisterManagedInstance");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeregisterManagedInstanceResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Removes a patch group from a patch baseline.
*
*
* @param deregisterPatchBaselineForPatchGroupRequest
* @return Result of the DeregisterPatchBaselineForPatchGroup operation returned by the service.
* @throws InvalidResourceIdException
* The resource ID isn't valid. Verify that you entered the correct ID and try again.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DeregisterPatchBaselineForPatchGroup
* @see AWS API Documentation
*/
@Override
public DeregisterPatchBaselineForPatchGroupResult deregisterPatchBaselineForPatchGroup(DeregisterPatchBaselineForPatchGroupRequest request) {
request = beforeClientExecution(request);
return executeDeregisterPatchBaselineForPatchGroup(request);
}
@SdkInternalApi
final DeregisterPatchBaselineForPatchGroupResult executeDeregisterPatchBaselineForPatchGroup(
DeregisterPatchBaselineForPatchGroupRequest deregisterPatchBaselineForPatchGroupRequest) {
ExecutionContext executionContext = createExecutionContext(deregisterPatchBaselineForPatchGroupRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeregisterPatchBaselineForPatchGroupRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(deregisterPatchBaselineForPatchGroupRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeregisterPatchBaselineForPatchGroup");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeregisterPatchBaselineForPatchGroupResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Removes a target from a maintenance window.
*
*
* @param deregisterTargetFromMaintenanceWindowRequest
* @return Result of the DeregisterTargetFromMaintenanceWindow operation returned by the service.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws TargetInUseException
* You specified the Safe
option for the DeregisterTargetFromMaintenanceWindow operation, but
* the target is still referenced in a task.
* @sample AWSSimpleSystemsManagement.DeregisterTargetFromMaintenanceWindow
* @see AWS API Documentation
*/
@Override
public DeregisterTargetFromMaintenanceWindowResult deregisterTargetFromMaintenanceWindow(DeregisterTargetFromMaintenanceWindowRequest request) {
request = beforeClientExecution(request);
return executeDeregisterTargetFromMaintenanceWindow(request);
}
@SdkInternalApi
final DeregisterTargetFromMaintenanceWindowResult executeDeregisterTargetFromMaintenanceWindow(
DeregisterTargetFromMaintenanceWindowRequest deregisterTargetFromMaintenanceWindowRequest) {
ExecutionContext executionContext = createExecutionContext(deregisterTargetFromMaintenanceWindowRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeregisterTargetFromMaintenanceWindowRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(deregisterTargetFromMaintenanceWindowRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeregisterTargetFromMaintenanceWindow");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeregisterTargetFromMaintenanceWindowResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Removes a task from a maintenance window.
*
*
* @param deregisterTaskFromMaintenanceWindowRequest
* @return Result of the DeregisterTaskFromMaintenanceWindow operation returned by the service.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DeregisterTaskFromMaintenanceWindow
* @see AWS API Documentation
*/
@Override
public DeregisterTaskFromMaintenanceWindowResult deregisterTaskFromMaintenanceWindow(DeregisterTaskFromMaintenanceWindowRequest request) {
request = beforeClientExecution(request);
return executeDeregisterTaskFromMaintenanceWindow(request);
}
@SdkInternalApi
final DeregisterTaskFromMaintenanceWindowResult executeDeregisterTaskFromMaintenanceWindow(
DeregisterTaskFromMaintenanceWindowRequest deregisterTaskFromMaintenanceWindowRequest) {
ExecutionContext executionContext = createExecutionContext(deregisterTaskFromMaintenanceWindowRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeregisterTaskFromMaintenanceWindowRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(deregisterTaskFromMaintenanceWindowRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeregisterTaskFromMaintenanceWindow");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeregisterTaskFromMaintenanceWindowResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Describes details about the activation, such as the date and time the activation was created, its expiration
* date, the Identity and Access Management (IAM) role assigned to the managed nodes in the activation, and the
* number of nodes registered by using this activation.
*
*
* @param describeActivationsRequest
* @return Result of the DescribeActivations operation returned by the service.
* @throws InvalidFilterException
* The filter name isn't valid. Verify the you entered the correct name and try again.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DescribeActivations
* @see AWS API
* Documentation
*/
@Override
public DescribeActivationsResult describeActivations(DescribeActivationsRequest request) {
request = beforeClientExecution(request);
return executeDescribeActivations(request);
}
@SdkInternalApi
final DescribeActivationsResult executeDescribeActivations(DescribeActivationsRequest describeActivationsRequest) {
ExecutionContext executionContext = createExecutionContext(describeActivationsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeActivationsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeActivationsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeActivations");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeActivationsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Describes the association for the specified target or managed node. If you created the association by using the
* Targets
parameter, then you must retrieve the association by using the association ID.
*
*
* @param describeAssociationRequest
* @return Result of the DescribeAssociation operation returned by the service.
* @throws AssociationDoesNotExistException
* The specified association doesn't exist.
* @throws InvalidAssociationVersionException
* The version you specified isn't valid. Use ListAssociationVersions to view all versions of an association
* according to the association ID. Or, use the $LATEST
parameter to view the latest version of
* the association.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @sample AWSSimpleSystemsManagement.DescribeAssociation
* @see AWS API
* Documentation
*/
@Override
public DescribeAssociationResult describeAssociation(DescribeAssociationRequest request) {
request = beforeClientExecution(request);
return executeDescribeAssociation(request);
}
@SdkInternalApi
final DescribeAssociationResult executeDescribeAssociation(DescribeAssociationRequest describeAssociationRequest) {
ExecutionContext executionContext = createExecutionContext(describeAssociationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeAssociationRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeAssociationRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAssociation");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeAssociationResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Views information about a specific execution of a specific association.
*
*
* @param describeAssociationExecutionTargetsRequest
* @return Result of the DescribeAssociationExecutionTargets operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws AssociationDoesNotExistException
* The specified association doesn't exist.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @throws AssociationExecutionDoesNotExistException
* The specified execution ID doesn't exist. Verify the ID number and try again.
* @sample AWSSimpleSystemsManagement.DescribeAssociationExecutionTargets
* @see AWS API Documentation
*/
@Override
public DescribeAssociationExecutionTargetsResult describeAssociationExecutionTargets(DescribeAssociationExecutionTargetsRequest request) {
request = beforeClientExecution(request);
return executeDescribeAssociationExecutionTargets(request);
}
@SdkInternalApi
final DescribeAssociationExecutionTargetsResult executeDescribeAssociationExecutionTargets(
DescribeAssociationExecutionTargetsRequest describeAssociationExecutionTargetsRequest) {
ExecutionContext executionContext = createExecutionContext(describeAssociationExecutionTargetsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeAssociationExecutionTargetsRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeAssociationExecutionTargetsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAssociationExecutionTargets");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeAssociationExecutionTargetsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Views all executions for a specific association ID.
*
*
* @param describeAssociationExecutionsRequest
* @return Result of the DescribeAssociationExecutions operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws AssociationDoesNotExistException
* The specified association doesn't exist.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.DescribeAssociationExecutions
* @see AWS API Documentation
*/
@Override
public DescribeAssociationExecutionsResult describeAssociationExecutions(DescribeAssociationExecutionsRequest request) {
request = beforeClientExecution(request);
return executeDescribeAssociationExecutions(request);
}
@SdkInternalApi
final DescribeAssociationExecutionsResult executeDescribeAssociationExecutions(DescribeAssociationExecutionsRequest describeAssociationExecutionsRequest) {
ExecutionContext executionContext = createExecutionContext(describeAssociationExecutionsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeAssociationExecutionsRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeAssociationExecutionsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAssociationExecutions");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeAssociationExecutionsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Provides details about all active and terminated Automation executions.
*
*
* @param describeAutomationExecutionsRequest
* @return Result of the DescribeAutomationExecutions operation returned by the service.
* @throws InvalidFilterKeyException
* The specified key isn't valid.
* @throws InvalidFilterValueException
* The filter value isn't valid. Verify the value and try again.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DescribeAutomationExecutions
* @see AWS API Documentation
*/
@Override
public DescribeAutomationExecutionsResult describeAutomationExecutions(DescribeAutomationExecutionsRequest request) {
request = beforeClientExecution(request);
return executeDescribeAutomationExecutions(request);
}
@SdkInternalApi
final DescribeAutomationExecutionsResult executeDescribeAutomationExecutions(DescribeAutomationExecutionsRequest describeAutomationExecutionsRequest) {
ExecutionContext executionContext = createExecutionContext(describeAutomationExecutionsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeAutomationExecutionsRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeAutomationExecutionsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAutomationExecutions");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeAutomationExecutionsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Information about all active and terminated step executions in an Automation workflow.
*
*
* @param describeAutomationStepExecutionsRequest
* @return Result of the DescribeAutomationStepExecutions operation returned by the service.
* @throws AutomationExecutionNotFoundException
* There is no automation execution information for the requested automation execution ID.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @throws InvalidFilterKeyException
* The specified key isn't valid.
* @throws InvalidFilterValueException
* The filter value isn't valid. Verify the value and try again.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DescribeAutomationStepExecutions
* @see AWS API Documentation
*/
@Override
public DescribeAutomationStepExecutionsResult describeAutomationStepExecutions(DescribeAutomationStepExecutionsRequest request) {
request = beforeClientExecution(request);
return executeDescribeAutomationStepExecutions(request);
}
@SdkInternalApi
final DescribeAutomationStepExecutionsResult executeDescribeAutomationStepExecutions(
DescribeAutomationStepExecutionsRequest describeAutomationStepExecutionsRequest) {
ExecutionContext executionContext = createExecutionContext(describeAutomationStepExecutionsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeAutomationStepExecutionsRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeAutomationStepExecutionsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAutomationStepExecutions");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeAutomationStepExecutionsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Lists all patches eligible to be included in a patch baseline.
*
*
*
* Currently, DescribeAvailablePatches
supports only the Amazon Linux 1, Amazon Linux 2, and Windows
* Server operating systems.
*
*
*
* @param describeAvailablePatchesRequest
* @return Result of the DescribeAvailablePatches operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DescribeAvailablePatches
* @see AWS
* API Documentation
*/
@Override
public DescribeAvailablePatchesResult describeAvailablePatches(DescribeAvailablePatchesRequest request) {
request = beforeClientExecution(request);
return executeDescribeAvailablePatches(request);
}
@SdkInternalApi
final DescribeAvailablePatchesResult executeDescribeAvailablePatches(DescribeAvailablePatchesRequest describeAvailablePatchesRequest) {
ExecutionContext executionContext = createExecutionContext(describeAvailablePatchesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeAvailablePatchesRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeAvailablePatchesRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAvailablePatches");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeAvailablePatchesResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Describes the specified Amazon Web Services Systems Manager document (SSM document).
*
*
* @param describeDocumentRequest
* @return Result of the DescribeDocument operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws InvalidDocumentVersionException
* The document version isn't valid or doesn't exist.
* @sample AWSSimpleSystemsManagement.DescribeDocument
* @see AWS API
* Documentation
*/
@Override
public DescribeDocumentResult describeDocument(DescribeDocumentRequest request) {
request = beforeClientExecution(request);
return executeDescribeDocument(request);
}
@SdkInternalApi
final DescribeDocumentResult executeDescribeDocument(DescribeDocumentRequest describeDocumentRequest) {
ExecutionContext executionContext = createExecutionContext(describeDocumentRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeDocumentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeDocumentRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDocument");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeDocumentResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Describes the permissions for a Amazon Web Services Systems Manager document (SSM document). If you created the
* document, you are the owner. If a document is shared, it can either be shared privately (by specifying a user's
* Amazon Web Services account ID) or publicly (All).
*
*
* @param describeDocumentPermissionRequest
* @return Result of the DescribeDocumentPermission operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @throws InvalidPermissionTypeException
* The permission type isn't supported. Share is the only supported permission type.
* @throws InvalidDocumentOperationException
* You attempted to delete a document while it is still shared. You must stop sharing the document before
* you can delete it.
* @sample AWSSimpleSystemsManagement.DescribeDocumentPermission
* @see AWS
* API Documentation
*/
@Override
public DescribeDocumentPermissionResult describeDocumentPermission(DescribeDocumentPermissionRequest request) {
request = beforeClientExecution(request);
return executeDescribeDocumentPermission(request);
}
@SdkInternalApi
final DescribeDocumentPermissionResult executeDescribeDocumentPermission(DescribeDocumentPermissionRequest describeDocumentPermissionRequest) {
ExecutionContext executionContext = createExecutionContext(describeDocumentPermissionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeDocumentPermissionRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeDocumentPermissionRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDocumentPermission");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeDocumentPermissionResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* All associations for the managed nodes.
*
*
* @param describeEffectiveInstanceAssociationsRequest
* @return Result of the DescribeEffectiveInstanceAssociations operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.DescribeEffectiveInstanceAssociations
* @see AWS API Documentation
*/
@Override
public DescribeEffectiveInstanceAssociationsResult describeEffectiveInstanceAssociations(DescribeEffectiveInstanceAssociationsRequest request) {
request = beforeClientExecution(request);
return executeDescribeEffectiveInstanceAssociations(request);
}
@SdkInternalApi
final DescribeEffectiveInstanceAssociationsResult executeDescribeEffectiveInstanceAssociations(
DescribeEffectiveInstanceAssociationsRequest describeEffectiveInstanceAssociationsRequest) {
ExecutionContext executionContext = createExecutionContext(describeEffectiveInstanceAssociationsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeEffectiveInstanceAssociationsRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeEffectiveInstanceAssociationsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeEffectiveInstanceAssociations");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeEffectiveInstanceAssociationsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves the current effective patches (the patch and the approval state) for the specified patch baseline.
* Applies to patch baselines for Windows only.
*
*
* @param describeEffectivePatchesForPatchBaselineRequest
* @return Result of the DescribeEffectivePatchesForPatchBaseline operation returned by the service.
* @throws InvalidResourceIdException
* The resource ID isn't valid. Verify that you entered the correct ID and try again.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws UnsupportedOperatingSystemException
* The operating systems you specified isn't supported, or the operation isn't supported for the operating
* system.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DescribeEffectivePatchesForPatchBaseline
* @see AWS API Documentation
*/
@Override
public DescribeEffectivePatchesForPatchBaselineResult describeEffectivePatchesForPatchBaseline(DescribeEffectivePatchesForPatchBaselineRequest request) {
request = beforeClientExecution(request);
return executeDescribeEffectivePatchesForPatchBaseline(request);
}
@SdkInternalApi
final DescribeEffectivePatchesForPatchBaselineResult executeDescribeEffectivePatchesForPatchBaseline(
DescribeEffectivePatchesForPatchBaselineRequest describeEffectivePatchesForPatchBaselineRequest) {
ExecutionContext executionContext = createExecutionContext(describeEffectivePatchesForPatchBaselineRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeEffectivePatchesForPatchBaselineRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeEffectivePatchesForPatchBaselineRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeEffectivePatchesForPatchBaseline");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory
.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeEffectivePatchesForPatchBaselineResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* The status of the associations for the managed nodes.
*
*
* @param describeInstanceAssociationsStatusRequest
* @return Result of the DescribeInstanceAssociationsStatus operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.DescribeInstanceAssociationsStatus
* @see AWS API Documentation
*/
@Override
public DescribeInstanceAssociationsStatusResult describeInstanceAssociationsStatus(DescribeInstanceAssociationsStatusRequest request) {
request = beforeClientExecution(request);
return executeDescribeInstanceAssociationsStatus(request);
}
@SdkInternalApi
final DescribeInstanceAssociationsStatusResult executeDescribeInstanceAssociationsStatus(
DescribeInstanceAssociationsStatusRequest describeInstanceAssociationsStatusRequest) {
ExecutionContext executionContext = createExecutionContext(describeInstanceAssociationsStatusRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeInstanceAssociationsStatusRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeInstanceAssociationsStatusRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeInstanceAssociationsStatus");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeInstanceAssociationsStatusResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Provides information about one or more of your managed nodes, including the operating system platform, SSM Agent
* version, association status, and IP address. This operation does not return information for nodes that are either
* Stopped or Terminated.
*
*
* If you specify one or more node IDs, the operation returns information for those managed nodes. If you don't
* specify node IDs, it returns information for all your managed nodes. If you specify a node ID that isn't valid or
* a node that you don't own, you receive an error.
*
*
*
* The IamRole
field returned for this API operation is the Identity and Access Management (IAM) role
* assigned to on-premises managed nodes. This operation does not return the IAM role for EC2 instances.
*
*
*
* @param describeInstanceInformationRequest
* @return Result of the DescribeInstanceInformation operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @throws InvalidInstanceInformationFilterValueException
* The specified filter value isn't valid.
* @throws InvalidFilterKeyException
* The specified key isn't valid.
* @sample AWSSimpleSystemsManagement.DescribeInstanceInformation
* @see AWS API Documentation
*/
@Override
public DescribeInstanceInformationResult describeInstanceInformation(DescribeInstanceInformationRequest request) {
request = beforeClientExecution(request);
return executeDescribeInstanceInformation(request);
}
@SdkInternalApi
final DescribeInstanceInformationResult executeDescribeInstanceInformation(DescribeInstanceInformationRequest describeInstanceInformationRequest) {
ExecutionContext executionContext = createExecutionContext(describeInstanceInformationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeInstanceInformationRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeInstanceInformationRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeInstanceInformation");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeInstanceInformationResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves the high-level patch state of one or more managed nodes.
*
*
* @param describeInstancePatchStatesRequest
* @return Result of the DescribeInstancePatchStates operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.DescribeInstancePatchStates
* @see AWS API Documentation
*/
@Override
public DescribeInstancePatchStatesResult describeInstancePatchStates(DescribeInstancePatchStatesRequest request) {
request = beforeClientExecution(request);
return executeDescribeInstancePatchStates(request);
}
@SdkInternalApi
final DescribeInstancePatchStatesResult executeDescribeInstancePatchStates(DescribeInstancePatchStatesRequest describeInstancePatchStatesRequest) {
ExecutionContext executionContext = createExecutionContext(describeInstancePatchStatesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeInstancePatchStatesRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeInstancePatchStatesRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeInstancePatchStates");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeInstancePatchStatesResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves the high-level patch state for the managed nodes in the specified patch group.
*
*
* @param describeInstancePatchStatesForPatchGroupRequest
* @return Result of the DescribeInstancePatchStatesForPatchGroup operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidFilterException
* The filter name isn't valid. Verify the you entered the correct name and try again.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.DescribeInstancePatchStatesForPatchGroup
* @see AWS API Documentation
*/
@Override
public DescribeInstancePatchStatesForPatchGroupResult describeInstancePatchStatesForPatchGroup(DescribeInstancePatchStatesForPatchGroupRequest request) {
request = beforeClientExecution(request);
return executeDescribeInstancePatchStatesForPatchGroup(request);
}
@SdkInternalApi
final DescribeInstancePatchStatesForPatchGroupResult executeDescribeInstancePatchStatesForPatchGroup(
DescribeInstancePatchStatesForPatchGroupRequest describeInstancePatchStatesForPatchGroupRequest) {
ExecutionContext executionContext = createExecutionContext(describeInstancePatchStatesForPatchGroupRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeInstancePatchStatesForPatchGroupRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeInstancePatchStatesForPatchGroupRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeInstancePatchStatesForPatchGroup");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory
.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeInstancePatchStatesForPatchGroupResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves information about the patches on the specified managed node and their state relative to the patch
* baseline being used for the node.
*
*
* @param describeInstancePatchesRequest
* @return Result of the DescribeInstancePatches operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws InvalidFilterException
* The filter name isn't valid. Verify the you entered the correct name and try again.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.DescribeInstancePatches
* @see AWS
* API Documentation
*/
@Override
public DescribeInstancePatchesResult describeInstancePatches(DescribeInstancePatchesRequest request) {
request = beforeClientExecution(request);
return executeDescribeInstancePatches(request);
}
@SdkInternalApi
final DescribeInstancePatchesResult executeDescribeInstancePatches(DescribeInstancePatchesRequest describeInstancePatchesRequest) {
ExecutionContext executionContext = createExecutionContext(describeInstancePatchesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeInstancePatchesRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeInstancePatchesRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeInstancePatches");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeInstancePatchesResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* An API operation used by the Systems Manager console to display information about Systems Manager managed nodes.
*
*
* @param describeInstancePropertiesRequest
* @return Result of the DescribeInstanceProperties operation returned by the service.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @throws InvalidFilterKeyException
* The specified key isn't valid.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws InvalidActivationIdException
* The activation ID isn't valid. Verify the you entered the correct ActivationId or ActivationCode and try
* again.
* @throws InvalidInstancePropertyFilterValueException
* The specified filter value isn't valid.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @sample AWSSimpleSystemsManagement.DescribeInstanceProperties
* @see AWS
* API Documentation
*/
@Override
public DescribeInstancePropertiesResult describeInstanceProperties(DescribeInstancePropertiesRequest request) {
request = beforeClientExecution(request);
return executeDescribeInstanceProperties(request);
}
@SdkInternalApi
final DescribeInstancePropertiesResult executeDescribeInstanceProperties(DescribeInstancePropertiesRequest describeInstancePropertiesRequest) {
ExecutionContext executionContext = createExecutionContext(describeInstancePropertiesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeInstancePropertiesRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeInstancePropertiesRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeInstanceProperties");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeInstancePropertiesResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Describes a specific delete inventory operation.
*
*
* @param describeInventoryDeletionsRequest
* @return Result of the DescribeInventoryDeletions operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidDeletionIdException
* The ID specified for the delete operation doesn't exist or isn't valid. Verify the ID and try again.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.DescribeInventoryDeletions
* @see AWS
* API Documentation
*/
@Override
public DescribeInventoryDeletionsResult describeInventoryDeletions(DescribeInventoryDeletionsRequest request) {
request = beforeClientExecution(request);
return executeDescribeInventoryDeletions(request);
}
@SdkInternalApi
final DescribeInventoryDeletionsResult executeDescribeInventoryDeletions(DescribeInventoryDeletionsRequest describeInventoryDeletionsRequest) {
ExecutionContext executionContext = createExecutionContext(describeInventoryDeletionsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeInventoryDeletionsRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeInventoryDeletionsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeInventoryDeletions");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeInventoryDeletionsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves the individual task executions (one per target) for a particular task run as part of a maintenance
* window execution.
*
*
* @param describeMaintenanceWindowExecutionTaskInvocationsRequest
* @return Result of the DescribeMaintenanceWindowExecutionTaskInvocations operation returned by the service.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DescribeMaintenanceWindowExecutionTaskInvocations
* @see AWS API Documentation
*/
@Override
public DescribeMaintenanceWindowExecutionTaskInvocationsResult describeMaintenanceWindowExecutionTaskInvocations(
DescribeMaintenanceWindowExecutionTaskInvocationsRequest request) {
request = beforeClientExecution(request);
return executeDescribeMaintenanceWindowExecutionTaskInvocations(request);
}
@SdkInternalApi
final DescribeMaintenanceWindowExecutionTaskInvocationsResult executeDescribeMaintenanceWindowExecutionTaskInvocations(
DescribeMaintenanceWindowExecutionTaskInvocationsRequest describeMaintenanceWindowExecutionTaskInvocationsRequest) {
ExecutionContext executionContext = createExecutionContext(describeMaintenanceWindowExecutionTaskInvocationsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeMaintenanceWindowExecutionTaskInvocationsRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeMaintenanceWindowExecutionTaskInvocationsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeMaintenanceWindowExecutionTaskInvocations");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory
.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeMaintenanceWindowExecutionTaskInvocationsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* For a given maintenance window execution, lists the tasks that were run.
*
*
* @param describeMaintenanceWindowExecutionTasksRequest
* @return Result of the DescribeMaintenanceWindowExecutionTasks operation returned by the service.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DescribeMaintenanceWindowExecutionTasks
* @see AWS API Documentation
*/
@Override
public DescribeMaintenanceWindowExecutionTasksResult describeMaintenanceWindowExecutionTasks(DescribeMaintenanceWindowExecutionTasksRequest request) {
request = beforeClientExecution(request);
return executeDescribeMaintenanceWindowExecutionTasks(request);
}
@SdkInternalApi
final DescribeMaintenanceWindowExecutionTasksResult executeDescribeMaintenanceWindowExecutionTasks(
DescribeMaintenanceWindowExecutionTasksRequest describeMaintenanceWindowExecutionTasksRequest) {
ExecutionContext executionContext = createExecutionContext(describeMaintenanceWindowExecutionTasksRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeMaintenanceWindowExecutionTasksRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeMaintenanceWindowExecutionTasksRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeMaintenanceWindowExecutionTasks");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory
.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeMaintenanceWindowExecutionTasksResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Lists the executions of a maintenance window. This includes information about when the maintenance window was
* scheduled to be active, and information about tasks registered and run with the maintenance window.
*
*
* @param describeMaintenanceWindowExecutionsRequest
* @return Result of the DescribeMaintenanceWindowExecutions operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DescribeMaintenanceWindowExecutions
* @see AWS API Documentation
*/
@Override
public DescribeMaintenanceWindowExecutionsResult describeMaintenanceWindowExecutions(DescribeMaintenanceWindowExecutionsRequest request) {
request = beforeClientExecution(request);
return executeDescribeMaintenanceWindowExecutions(request);
}
@SdkInternalApi
final DescribeMaintenanceWindowExecutionsResult executeDescribeMaintenanceWindowExecutions(
DescribeMaintenanceWindowExecutionsRequest describeMaintenanceWindowExecutionsRequest) {
ExecutionContext executionContext = createExecutionContext(describeMaintenanceWindowExecutionsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeMaintenanceWindowExecutionsRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeMaintenanceWindowExecutionsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeMaintenanceWindowExecutions");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeMaintenanceWindowExecutionsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves information about upcoming executions of a maintenance window.
*
*
* @param describeMaintenanceWindowScheduleRequest
* @return Result of the DescribeMaintenanceWindowSchedule operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @sample AWSSimpleSystemsManagement.DescribeMaintenanceWindowSchedule
* @see AWS API Documentation
*/
@Override
public DescribeMaintenanceWindowScheduleResult describeMaintenanceWindowSchedule(DescribeMaintenanceWindowScheduleRequest request) {
request = beforeClientExecution(request);
return executeDescribeMaintenanceWindowSchedule(request);
}
@SdkInternalApi
final DescribeMaintenanceWindowScheduleResult executeDescribeMaintenanceWindowSchedule(
DescribeMaintenanceWindowScheduleRequest describeMaintenanceWindowScheduleRequest) {
ExecutionContext executionContext = createExecutionContext(describeMaintenanceWindowScheduleRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeMaintenanceWindowScheduleRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeMaintenanceWindowScheduleRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeMaintenanceWindowSchedule");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeMaintenanceWindowScheduleResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Lists the targets registered with the maintenance window.
*
*
* @param describeMaintenanceWindowTargetsRequest
* @return Result of the DescribeMaintenanceWindowTargets operation returned by the service.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DescribeMaintenanceWindowTargets
* @see AWS API Documentation
*/
@Override
public DescribeMaintenanceWindowTargetsResult describeMaintenanceWindowTargets(DescribeMaintenanceWindowTargetsRequest request) {
request = beforeClientExecution(request);
return executeDescribeMaintenanceWindowTargets(request);
}
@SdkInternalApi
final DescribeMaintenanceWindowTargetsResult executeDescribeMaintenanceWindowTargets(
DescribeMaintenanceWindowTargetsRequest describeMaintenanceWindowTargetsRequest) {
ExecutionContext executionContext = createExecutionContext(describeMaintenanceWindowTargetsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeMaintenanceWindowTargetsRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeMaintenanceWindowTargetsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeMaintenanceWindowTargets");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeMaintenanceWindowTargetsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Lists the tasks in a maintenance window.
*
*
*
* For maintenance window tasks without a specified target, you can't supply values for --max-errors
* and --max-concurrency
. Instead, the system inserts a placeholder value of 1
, which may
* be reported in the response to this command. These values don't affect the running of your task and can be
* ignored.
*
*
*
* @param describeMaintenanceWindowTasksRequest
* @return Result of the DescribeMaintenanceWindowTasks operation returned by the service.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DescribeMaintenanceWindowTasks
* @see AWS API Documentation
*/
@Override
public DescribeMaintenanceWindowTasksResult describeMaintenanceWindowTasks(DescribeMaintenanceWindowTasksRequest request) {
request = beforeClientExecution(request);
return executeDescribeMaintenanceWindowTasks(request);
}
@SdkInternalApi
final DescribeMaintenanceWindowTasksResult executeDescribeMaintenanceWindowTasks(DescribeMaintenanceWindowTasksRequest describeMaintenanceWindowTasksRequest) {
ExecutionContext executionContext = createExecutionContext(describeMaintenanceWindowTasksRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeMaintenanceWindowTasksRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeMaintenanceWindowTasksRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeMaintenanceWindowTasks");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeMaintenanceWindowTasksResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves the maintenance windows in an Amazon Web Services account.
*
*
* @param describeMaintenanceWindowsRequest
* @return Result of the DescribeMaintenanceWindows operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DescribeMaintenanceWindows
* @see AWS
* API Documentation
*/
@Override
public DescribeMaintenanceWindowsResult describeMaintenanceWindows(DescribeMaintenanceWindowsRequest request) {
request = beforeClientExecution(request);
return executeDescribeMaintenanceWindows(request);
}
@SdkInternalApi
final DescribeMaintenanceWindowsResult executeDescribeMaintenanceWindows(DescribeMaintenanceWindowsRequest describeMaintenanceWindowsRequest) {
ExecutionContext executionContext = createExecutionContext(describeMaintenanceWindowsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeMaintenanceWindowsRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeMaintenanceWindowsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeMaintenanceWindows");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeMaintenanceWindowsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves information about the maintenance window targets or tasks that a managed node is associated with.
*
*
* @param describeMaintenanceWindowsForTargetRequest
* @return Result of the DescribeMaintenanceWindowsForTarget operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DescribeMaintenanceWindowsForTarget
* @see AWS API Documentation
*/
@Override
public DescribeMaintenanceWindowsForTargetResult describeMaintenanceWindowsForTarget(DescribeMaintenanceWindowsForTargetRequest request) {
request = beforeClientExecution(request);
return executeDescribeMaintenanceWindowsForTarget(request);
}
@SdkInternalApi
final DescribeMaintenanceWindowsForTargetResult executeDescribeMaintenanceWindowsForTarget(
DescribeMaintenanceWindowsForTargetRequest describeMaintenanceWindowsForTargetRequest) {
ExecutionContext executionContext = createExecutionContext(describeMaintenanceWindowsForTargetRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeMaintenanceWindowsForTargetRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeMaintenanceWindowsForTargetRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeMaintenanceWindowsForTarget");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeMaintenanceWindowsForTargetResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Query a set of OpsItems. You must have permission in Identity and Access Management (IAM) to query a list of
* OpsItems. For more information, see Set up OpsCenter in
* the Amazon Web Services Systems Manager User Guide.
*
*
* Operations engineers and IT professionals use Amazon Web Services Systems Manager OpsCenter to view, investigate,
* and remediate operational issues impacting the performance and health of their Amazon Web Services resources. For
* more information, see Amazon Web Services Systems
* Manager OpsCenter in the Amazon Web Services Systems Manager User Guide.
*
*
* @param describeOpsItemsRequest
* @return Result of the DescribeOpsItems operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DescribeOpsItems
* @see AWS API
* Documentation
*/
@Override
public DescribeOpsItemsResult describeOpsItems(DescribeOpsItemsRequest request) {
request = beforeClientExecution(request);
return executeDescribeOpsItems(request);
}
@SdkInternalApi
final DescribeOpsItemsResult executeDescribeOpsItems(DescribeOpsItemsRequest describeOpsItemsRequest) {
ExecutionContext executionContext = createExecutionContext(describeOpsItemsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeOpsItemsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeOpsItemsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeOpsItems");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeOpsItemsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Lists the parameters in your Amazon Web Services account or the parameters shared with you when you enable the Shared option.
*
*
* Request results are returned on a best-effort basis. If you specify MaxResults
in the request, the
* response includes information up to the limit specified. The number of items returned, however, can be between
* zero and the value of MaxResults
. If the service reaches an internal limit while processing the
* results, it stops the operation and returns the matching values up to that point and a NextToken
.
* You can specify the NextToken
in a subsequent call to get the next set of results.
*
*
*
* If you change the KMS key alias for the KMS key used to encrypt a parameter, then you must also update the key
* alias the parameter uses to reference KMS. Otherwise, DescribeParameters
retrieves whatever the
* original key alias was referencing.
*
*
*
* @param describeParametersRequest
* @return Result of the DescribeParameters operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidFilterKeyException
* The specified key isn't valid.
* @throws InvalidFilterOptionException
* The specified filter option isn't valid. Valid options are Equals and BeginsWith. For Path filter, valid
* options are Recursive and OneLevel.
* @throws InvalidFilterValueException
* The filter value isn't valid. Verify the value and try again.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.DescribeParameters
* @see AWS API
* Documentation
*/
@Override
public DescribeParametersResult describeParameters(DescribeParametersRequest request) {
request = beforeClientExecution(request);
return executeDescribeParameters(request);
}
@SdkInternalApi
final DescribeParametersResult executeDescribeParameters(DescribeParametersRequest describeParametersRequest) {
ExecutionContext executionContext = createExecutionContext(describeParametersRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeParametersRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeParametersRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeParameters");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeParametersResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Lists the patch baselines in your Amazon Web Services account.
*
*
* @param describePatchBaselinesRequest
* @return Result of the DescribePatchBaselines operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DescribePatchBaselines
* @see AWS API
* Documentation
*/
@Override
public DescribePatchBaselinesResult describePatchBaselines(DescribePatchBaselinesRequest request) {
request = beforeClientExecution(request);
return executeDescribePatchBaselines(request);
}
@SdkInternalApi
final DescribePatchBaselinesResult executeDescribePatchBaselines(DescribePatchBaselinesRequest describePatchBaselinesRequest) {
ExecutionContext executionContext = createExecutionContext(describePatchBaselinesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribePatchBaselinesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describePatchBaselinesRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribePatchBaselines");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribePatchBaselinesResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Returns high-level aggregated patch compliance state information for a patch group.
*
*
* @param describePatchGroupStateRequest
* @return Result of the DescribePatchGroupState operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.DescribePatchGroupState
* @see AWS
* API Documentation
*/
@Override
public DescribePatchGroupStateResult describePatchGroupState(DescribePatchGroupStateRequest request) {
request = beforeClientExecution(request);
return executeDescribePatchGroupState(request);
}
@SdkInternalApi
final DescribePatchGroupStateResult executeDescribePatchGroupState(DescribePatchGroupStateRequest describePatchGroupStateRequest) {
ExecutionContext executionContext = createExecutionContext(describePatchGroupStateRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribePatchGroupStateRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describePatchGroupStateRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribePatchGroupState");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribePatchGroupStateResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Lists all patch groups that have been registered with patch baselines.
*
*
* @param describePatchGroupsRequest
* @return Result of the DescribePatchGroups operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DescribePatchGroups
* @see AWS API
* Documentation
*/
@Override
public DescribePatchGroupsResult describePatchGroups(DescribePatchGroupsRequest request) {
request = beforeClientExecution(request);
return executeDescribePatchGroups(request);
}
@SdkInternalApi
final DescribePatchGroupsResult executeDescribePatchGroups(DescribePatchGroupsRequest describePatchGroupsRequest) {
ExecutionContext executionContext = createExecutionContext(describePatchGroupsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribePatchGroupsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describePatchGroupsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribePatchGroups");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribePatchGroupsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Lists the properties of available patches organized by product, product family, classification, severity, and
* other properties of available patches. You can use the reported properties in the filters you specify in requests
* for operations such as CreatePatchBaseline, UpdatePatchBaseline, DescribeAvailablePatches,
* and DescribePatchBaselines.
*
*
* The following section lists the properties that can be used in filters for each major operating system type:
*
*
* - AMAZON_LINUX
* -
*
* Valid properties: PRODUCT
| CLASSIFICATION
| SEVERITY
*
*
* - AMAZON_LINUX_2
* -
*
* Valid properties: PRODUCT
| CLASSIFICATION
| SEVERITY
*
*
* - CENTOS
* -
*
* Valid properties: PRODUCT
| CLASSIFICATION
| SEVERITY
*
*
* - DEBIAN
* -
*
* Valid properties: PRODUCT
| PRIORITY
*
*
* - MACOS
* -
*
* Valid properties: PRODUCT
| CLASSIFICATION
*
*
* - ORACLE_LINUX
* -
*
* Valid properties: PRODUCT
| CLASSIFICATION
| SEVERITY
*
*
* - REDHAT_ENTERPRISE_LINUX
* -
*
* Valid properties: PRODUCT
| CLASSIFICATION
| SEVERITY
*
*
* - SUSE
* -
*
* Valid properties: PRODUCT
| CLASSIFICATION
| SEVERITY
*
*
* - UBUNTU
* -
*
* Valid properties: PRODUCT
| PRIORITY
*
*
* - WINDOWS
* -
*
* Valid properties: PRODUCT
| PRODUCT_FAMILY
| CLASSIFICATION
|
* MSRC_SEVERITY
*
*
*
*
* @param describePatchPropertiesRequest
* @return Result of the DescribePatchProperties operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.DescribePatchProperties
* @see AWS
* API Documentation
*/
@Override
public DescribePatchPropertiesResult describePatchProperties(DescribePatchPropertiesRequest request) {
request = beforeClientExecution(request);
return executeDescribePatchProperties(request);
}
@SdkInternalApi
final DescribePatchPropertiesResult executeDescribePatchProperties(DescribePatchPropertiesRequest describePatchPropertiesRequest) {
ExecutionContext executionContext = createExecutionContext(describePatchPropertiesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribePatchPropertiesRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describePatchPropertiesRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribePatchProperties");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribePatchPropertiesResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves a list of all active sessions (both connected and disconnected) or terminated sessions from the past 30
* days.
*
*
* @param describeSessionsRequest
* @return Result of the DescribeSessions operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidFilterKeyException
* The specified key isn't valid.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.DescribeSessions
* @see AWS API
* Documentation
*/
@Override
public DescribeSessionsResult describeSessions(DescribeSessionsRequest request) {
request = beforeClientExecution(request);
return executeDescribeSessions(request);
}
@SdkInternalApi
final DescribeSessionsResult executeDescribeSessions(DescribeSessionsRequest describeSessionsRequest) {
ExecutionContext executionContext = createExecutionContext(describeSessionsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeSessionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeSessionsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeSessions");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeSessionsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Deletes the association between an OpsItem and a related item. For example, this API operation can delete an
* Incident Manager incident from an OpsItem. Incident Manager is a capability of Amazon Web Services Systems
* Manager.
*
*
* @param disassociateOpsItemRelatedItemRequest
* @return Result of the DisassociateOpsItemRelatedItem operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws OpsItemRelatedItemAssociationNotFoundException
* The association wasn't found using the parameters you specified in the call. Verify the information and
* try again.
* @throws OpsItemNotFoundException
* The specified OpsItem ID doesn't exist. Verify the ID and try again.
* @throws OpsItemInvalidParameterException
* A specified parameter argument isn't valid. Verify the available arguments and try again.
* @throws OpsItemConflictException
* The specified OpsItem is in the process of being deleted.
* @sample AWSSimpleSystemsManagement.DisassociateOpsItemRelatedItem
* @see AWS API Documentation
*/
@Override
public DisassociateOpsItemRelatedItemResult disassociateOpsItemRelatedItem(DisassociateOpsItemRelatedItemRequest request) {
request = beforeClientExecution(request);
return executeDisassociateOpsItemRelatedItem(request);
}
@SdkInternalApi
final DisassociateOpsItemRelatedItemResult executeDisassociateOpsItemRelatedItem(DisassociateOpsItemRelatedItemRequest disassociateOpsItemRelatedItemRequest) {
ExecutionContext executionContext = createExecutionContext(disassociateOpsItemRelatedItemRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DisassociateOpsItemRelatedItemRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(disassociateOpsItemRelatedItemRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DisassociateOpsItemRelatedItem");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DisassociateOpsItemRelatedItemResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Get detailed information about a particular Automation execution.
*
*
* @param getAutomationExecutionRequest
* @return Result of the GetAutomationExecution operation returned by the service.
* @throws AutomationExecutionNotFoundException
* There is no automation execution information for the requested automation execution ID.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.GetAutomationExecution
* @see AWS API
* Documentation
*/
@Override
public GetAutomationExecutionResult getAutomationExecution(GetAutomationExecutionRequest request) {
request = beforeClientExecution(request);
return executeGetAutomationExecution(request);
}
@SdkInternalApi
final GetAutomationExecutionResult executeGetAutomationExecution(GetAutomationExecutionRequest getAutomationExecutionRequest) {
ExecutionContext executionContext = createExecutionContext(getAutomationExecutionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetAutomationExecutionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getAutomationExecutionRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetAutomationExecution");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetAutomationExecutionResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Gets the state of a Amazon Web Services Systems Manager change calendar at the current time or a specified time.
* If you specify a time, GetCalendarState
returns the state of the calendar at that specific time, and
* returns the next time that the change calendar state will transition. If you don't specify a time,
* GetCalendarState
uses the current time. Change Calendar entries have two possible states:
* OPEN
or CLOSED
.
*
*
* If you specify more than one calendar in a request, the command returns the status of OPEN
only if
* all calendars in the request are open. If one or more calendars in the request are closed, the status returned is
* CLOSED
.
*
*
* For more information about Change Calendar, a capability of Amazon Web Services Systems Manager, see Amazon
* Web Services Systems Manager Change Calendar in the Amazon Web Services Systems Manager User Guide.
*
*
* @param getCalendarStateRequest
* @return Result of the GetCalendarState operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws InvalidDocumentTypeException
* The SSM document type isn't valid. Valid document types are described in the DocumentType
* property.
* @throws UnsupportedCalendarException
* The calendar entry contained in the specified SSM document isn't supported.
* @sample AWSSimpleSystemsManagement.GetCalendarState
* @see AWS API
* Documentation
*/
@Override
public GetCalendarStateResult getCalendarState(GetCalendarStateRequest request) {
request = beforeClientExecution(request);
return executeGetCalendarState(request);
}
@SdkInternalApi
final GetCalendarStateResult executeGetCalendarState(GetCalendarStateRequest getCalendarStateRequest) {
ExecutionContext executionContext = createExecutionContext(getCalendarStateRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetCalendarStateRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getCalendarStateRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetCalendarState");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetCalendarStateResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Returns detailed information about command execution for an invocation or plugin.
*
*
* GetCommandInvocation
only gives the execution status of a plugin in a document. To get the command
* execution status on a specific managed node, use ListCommandInvocations. To get the command execution
* status across managed nodes, use ListCommands.
*
*
* @param getCommandInvocationRequest
* @return Result of the GetCommandInvocation operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidCommandIdException
* The specified command ID isn't valid. Verify the ID and try again.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws InvalidPluginNameException
* The plugin name isn't valid.
* @throws InvocationDoesNotExistException
* The command ID and managed node ID you specified didn't match any invocations. Verify the command ID and
* the managed node ID and try again.
* @sample AWSSimpleSystemsManagement.GetCommandInvocation
* @see AWS API
* Documentation
*/
@Override
public GetCommandInvocationResult getCommandInvocation(GetCommandInvocationRequest request) {
request = beforeClientExecution(request);
return executeGetCommandInvocation(request);
}
@SdkInternalApi
final GetCommandInvocationResult executeGetCommandInvocation(GetCommandInvocationRequest getCommandInvocationRequest) {
ExecutionContext executionContext = createExecutionContext(getCommandInvocationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetCommandInvocationRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getCommandInvocationRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetCommandInvocation");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetCommandInvocationResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves the Session Manager connection status for a managed node to determine whether it is running and ready
* to receive Session Manager connections.
*
*
* @param getConnectionStatusRequest
* @return Result of the GetConnectionStatus operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.GetConnectionStatus
* @see AWS API
* Documentation
*/
@Override
public GetConnectionStatusResult getConnectionStatus(GetConnectionStatusRequest request) {
request = beforeClientExecution(request);
return executeGetConnectionStatus(request);
}
@SdkInternalApi
final GetConnectionStatusResult executeGetConnectionStatus(GetConnectionStatusRequest getConnectionStatusRequest) {
ExecutionContext executionContext = createExecutionContext(getConnectionStatusRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetConnectionStatusRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getConnectionStatusRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetConnectionStatus");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetConnectionStatusResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves the default patch baseline. Amazon Web Services Systems Manager supports creating multiple default
* patch baselines. For example, you can create a default patch baseline for each operating system.
*
*
* If you don't specify an operating system value, the default patch baseline for Windows is returned.
*
*
* @param getDefaultPatchBaselineRequest
* @return Result of the GetDefaultPatchBaseline operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.GetDefaultPatchBaseline
* @see AWS
* API Documentation
*/
@Override
public GetDefaultPatchBaselineResult getDefaultPatchBaseline(GetDefaultPatchBaselineRequest request) {
request = beforeClientExecution(request);
return executeGetDefaultPatchBaseline(request);
}
@SdkInternalApi
final GetDefaultPatchBaselineResult executeGetDefaultPatchBaseline(GetDefaultPatchBaselineRequest getDefaultPatchBaselineRequest) {
ExecutionContext executionContext = createExecutionContext(getDefaultPatchBaselineRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetDefaultPatchBaselineRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(getDefaultPatchBaselineRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetDefaultPatchBaseline");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetDefaultPatchBaselineResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves the current snapshot for the patch baseline the managed node uses. This API is primarily used by the
* AWS-RunPatchBaseline
Systems Manager document (SSM document).
*
*
*
* If you run the command locally, such as with the Command Line Interface (CLI), the system attempts to use your
* local Amazon Web Services credentials and the operation fails. To avoid this, you can run the command in the
* Amazon Web Services Systems Manager console. Use Run Command, a capability of Amazon Web Services Systems
* Manager, with an SSM document that enables you to target a managed node with a script or command. For example,
* run the command using the AWS-RunShellScript
document or the AWS-RunPowerShellScript
* document.
*
*
*
* @param getDeployablePatchSnapshotForInstanceRequest
* @return Result of the GetDeployablePatchSnapshotForInstance operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws UnsupportedOperatingSystemException
* The operating systems you specified isn't supported, or the operation isn't supported for the operating
* system.
* @throws UnsupportedFeatureRequiredException
* Patching for applications released by Microsoft is only available on EC2 instances and advanced
* instances. To patch applications released by Microsoft on on-premises servers and VMs, you must enable
* advanced instances. For more information, see Turning on the advanced-instances tier in the Amazon Web Services Systems Manager User Guide.
* @sample AWSSimpleSystemsManagement.GetDeployablePatchSnapshotForInstance
* @see AWS API Documentation
*/
@Override
public GetDeployablePatchSnapshotForInstanceResult getDeployablePatchSnapshotForInstance(GetDeployablePatchSnapshotForInstanceRequest request) {
request = beforeClientExecution(request);
return executeGetDeployablePatchSnapshotForInstance(request);
}
@SdkInternalApi
final GetDeployablePatchSnapshotForInstanceResult executeGetDeployablePatchSnapshotForInstance(
GetDeployablePatchSnapshotForInstanceRequest getDeployablePatchSnapshotForInstanceRequest) {
ExecutionContext executionContext = createExecutionContext(getDeployablePatchSnapshotForInstanceRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetDeployablePatchSnapshotForInstanceRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(getDeployablePatchSnapshotForInstanceRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetDeployablePatchSnapshotForInstance");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetDeployablePatchSnapshotForInstanceResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Gets the contents of the specified Amazon Web Services Systems Manager document (SSM document).
*
*
* @param getDocumentRequest
* @return Result of the GetDocument operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws InvalidDocumentVersionException
* The document version isn't valid or doesn't exist.
* @sample AWSSimpleSystemsManagement.GetDocument
* @see AWS API
* Documentation
*/
@Override
public GetDocumentResult getDocument(GetDocumentRequest request) {
request = beforeClientExecution(request);
return executeGetDocument(request);
}
@SdkInternalApi
final GetDocumentResult executeGetDocument(GetDocumentRequest getDocumentRequest) {
ExecutionContext executionContext = createExecutionContext(getDocumentRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetDocumentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getDocumentRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetDocument");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetDocumentResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Query inventory information. This includes managed node status, such as Stopped
or
* Terminated
.
*
*
* @param getInventoryRequest
* @return Result of the GetInventory operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidFilterException
* The filter name isn't valid. Verify the you entered the correct name and try again.
* @throws InvalidInventoryGroupException
* The specified inventory group isn't valid.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @throws InvalidTypeNameException
* The parameter type name isn't valid.
* @throws InvalidAggregatorException
* The specified aggregator isn't valid for inventory groups. Verify that the aggregator uses a valid
* inventory type such as AWS:Application
or AWS:InstanceInformation
.
* @throws InvalidResultAttributeException
* The specified inventory item result attribute isn't valid.
* @sample AWSSimpleSystemsManagement.GetInventory
* @see AWS API
* Documentation
*/
@Override
public GetInventoryResult getInventory(GetInventoryRequest request) {
request = beforeClientExecution(request);
return executeGetInventory(request);
}
@SdkInternalApi
final GetInventoryResult executeGetInventory(GetInventoryRequest getInventoryRequest) {
ExecutionContext executionContext = createExecutionContext(getInventoryRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetInventoryRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getInventoryRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetInventory");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetInventoryResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Return a list of inventory type names for the account, or return a list of attribute names for a specific
* Inventory item type.
*
*
* @param getInventorySchemaRequest
* @return Result of the GetInventorySchema operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidTypeNameException
* The parameter type name isn't valid.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.GetInventorySchema
* @see AWS API
* Documentation
*/
@Override
public GetInventorySchemaResult getInventorySchema(GetInventorySchemaRequest request) {
request = beforeClientExecution(request);
return executeGetInventorySchema(request);
}
@SdkInternalApi
final GetInventorySchemaResult executeGetInventorySchema(GetInventorySchemaRequest getInventorySchemaRequest) {
ExecutionContext executionContext = createExecutionContext(getInventorySchemaRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetInventorySchemaRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getInventorySchemaRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetInventorySchema");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetInventorySchemaResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves a maintenance window.
*
*
* @param getMaintenanceWindowRequest
* @return Result of the GetMaintenanceWindow operation returned by the service.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.GetMaintenanceWindow
* @see AWS API
* Documentation
*/
@Override
public GetMaintenanceWindowResult getMaintenanceWindow(GetMaintenanceWindowRequest request) {
request = beforeClientExecution(request);
return executeGetMaintenanceWindow(request);
}
@SdkInternalApi
final GetMaintenanceWindowResult executeGetMaintenanceWindow(GetMaintenanceWindowRequest getMaintenanceWindowRequest) {
ExecutionContext executionContext = createExecutionContext(getMaintenanceWindowRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetMaintenanceWindowRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getMaintenanceWindowRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetMaintenanceWindow");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetMaintenanceWindowResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves details about a specific a maintenance window execution.
*
*
* @param getMaintenanceWindowExecutionRequest
* @return Result of the GetMaintenanceWindowExecution operation returned by the service.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.GetMaintenanceWindowExecution
* @see AWS API Documentation
*/
@Override
public GetMaintenanceWindowExecutionResult getMaintenanceWindowExecution(GetMaintenanceWindowExecutionRequest request) {
request = beforeClientExecution(request);
return executeGetMaintenanceWindowExecution(request);
}
@SdkInternalApi
final GetMaintenanceWindowExecutionResult executeGetMaintenanceWindowExecution(GetMaintenanceWindowExecutionRequest getMaintenanceWindowExecutionRequest) {
ExecutionContext executionContext = createExecutionContext(getMaintenanceWindowExecutionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetMaintenanceWindowExecutionRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(getMaintenanceWindowExecutionRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetMaintenanceWindowExecution");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetMaintenanceWindowExecutionResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves the details about a specific task run as part of a maintenance window execution.
*
*
* @param getMaintenanceWindowExecutionTaskRequest
* @return Result of the GetMaintenanceWindowExecutionTask operation returned by the service.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.GetMaintenanceWindowExecutionTask
* @see AWS API Documentation
*/
@Override
public GetMaintenanceWindowExecutionTaskResult getMaintenanceWindowExecutionTask(GetMaintenanceWindowExecutionTaskRequest request) {
request = beforeClientExecution(request);
return executeGetMaintenanceWindowExecutionTask(request);
}
@SdkInternalApi
final GetMaintenanceWindowExecutionTaskResult executeGetMaintenanceWindowExecutionTask(
GetMaintenanceWindowExecutionTaskRequest getMaintenanceWindowExecutionTaskRequest) {
ExecutionContext executionContext = createExecutionContext(getMaintenanceWindowExecutionTaskRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetMaintenanceWindowExecutionTaskRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(getMaintenanceWindowExecutionTaskRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetMaintenanceWindowExecutionTask");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetMaintenanceWindowExecutionTaskResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves information about a specific task running on a specific target.
*
*
* @param getMaintenanceWindowExecutionTaskInvocationRequest
* @return Result of the GetMaintenanceWindowExecutionTaskInvocation operation returned by the service.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.GetMaintenanceWindowExecutionTaskInvocation
* @see AWS API Documentation
*/
@Override
public GetMaintenanceWindowExecutionTaskInvocationResult getMaintenanceWindowExecutionTaskInvocation(
GetMaintenanceWindowExecutionTaskInvocationRequest request) {
request = beforeClientExecution(request);
return executeGetMaintenanceWindowExecutionTaskInvocation(request);
}
@SdkInternalApi
final GetMaintenanceWindowExecutionTaskInvocationResult executeGetMaintenanceWindowExecutionTaskInvocation(
GetMaintenanceWindowExecutionTaskInvocationRequest getMaintenanceWindowExecutionTaskInvocationRequest) {
ExecutionContext executionContext = createExecutionContext(getMaintenanceWindowExecutionTaskInvocationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetMaintenanceWindowExecutionTaskInvocationRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(getMaintenanceWindowExecutionTaskInvocationRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetMaintenanceWindowExecutionTaskInvocation");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory
.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetMaintenanceWindowExecutionTaskInvocationResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves the details of a maintenance window task.
*
*
*
* For maintenance window tasks without a specified target, you can't supply values for --max-errors
* and --max-concurrency
. Instead, the system inserts a placeholder value of 1
, which may
* be reported in the response to this command. These values don't affect the running of your task and can be
* ignored.
*
*
*
* To retrieve a list of tasks in a maintenance window, instead use the DescribeMaintenanceWindowTasks
* command.
*
*
* @param getMaintenanceWindowTaskRequest
* @return Result of the GetMaintenanceWindowTask operation returned by the service.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.GetMaintenanceWindowTask
* @see AWS
* API Documentation
*/
@Override
public GetMaintenanceWindowTaskResult getMaintenanceWindowTask(GetMaintenanceWindowTaskRequest request) {
request = beforeClientExecution(request);
return executeGetMaintenanceWindowTask(request);
}
@SdkInternalApi
final GetMaintenanceWindowTaskResult executeGetMaintenanceWindowTask(GetMaintenanceWindowTaskRequest getMaintenanceWindowTaskRequest) {
ExecutionContext executionContext = createExecutionContext(getMaintenanceWindowTaskRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetMaintenanceWindowTaskRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(getMaintenanceWindowTaskRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetMaintenanceWindowTask");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetMaintenanceWindowTaskResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Get information about an OpsItem by using the ID. You must have permission in Identity and Access Management
* (IAM) to view information about an OpsItem. For more information, see Set up OpsCenter in
* the Amazon Web Services Systems Manager User Guide.
*
*
* Operations engineers and IT professionals use Amazon Web Services Systems Manager OpsCenter to view, investigate,
* and remediate operational issues impacting the performance and health of their Amazon Web Services resources. For
* more information, see Amazon Web Services Systems
* Manager OpsCenter in the Amazon Web Services Systems Manager User Guide.
*
*
* @param getOpsItemRequest
* @return Result of the GetOpsItem operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws OpsItemNotFoundException
* The specified OpsItem ID doesn't exist. Verify the ID and try again.
* @throws OpsItemAccessDeniedException
* You don't have permission to view OpsItems in the specified account. Verify that your account is
* configured either as a Systems Manager delegated administrator or that you are logged into the
* Organizations management account.
* @sample AWSSimpleSystemsManagement.GetOpsItem
* @see AWS API
* Documentation
*/
@Override
public GetOpsItemResult getOpsItem(GetOpsItemRequest request) {
request = beforeClientExecution(request);
return executeGetOpsItem(request);
}
@SdkInternalApi
final GetOpsItemResult executeGetOpsItem(GetOpsItemRequest getOpsItemRequest) {
ExecutionContext executionContext = createExecutionContext(getOpsItemRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetOpsItemRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getOpsItemRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetOpsItem");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata()
.withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetOpsItemResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* View operational metadata related to an application in Application Manager.
*
*
* @param getOpsMetadataRequest
* @return Result of the GetOpsMetadata operation returned by the service.
* @throws OpsMetadataNotFoundException
* The OpsMetadata object doesn't exist.
* @throws OpsMetadataInvalidArgumentException
* One of the arguments passed is invalid.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.GetOpsMetadata
* @see AWS API
* Documentation
*/
@Override
public GetOpsMetadataResult getOpsMetadata(GetOpsMetadataRequest request) {
request = beforeClientExecution(request);
return executeGetOpsMetadata(request);
}
@SdkInternalApi
final GetOpsMetadataResult executeGetOpsMetadata(GetOpsMetadataRequest getOpsMetadataRequest) {
ExecutionContext executionContext = createExecutionContext(getOpsMetadataRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetOpsMetadataRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getOpsMetadataRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetOpsMetadata");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetOpsMetadataResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* View a summary of operations metadata (OpsData) based on specified filters and aggregators. OpsData can include
* information about Amazon Web Services Systems Manager OpsCenter operational workitems (OpsItems) as well as
* information about any Amazon Web Services resource or service configured to report OpsData to Amazon Web Services
* Systems Manager Explorer.
*
*
* @param getOpsSummaryRequest
* @return Result of the GetOpsSummary operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws ResourceDataSyncNotFoundException
* The specified sync name wasn't found.
* @throws InvalidFilterException
* The filter name isn't valid. Verify the you entered the correct name and try again.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @throws InvalidTypeNameException
* The parameter type name isn't valid.
* @throws InvalidAggregatorException
* The specified aggregator isn't valid for inventory groups. Verify that the aggregator uses a valid
* inventory type such as AWS:Application
or AWS:InstanceInformation
.
* @sample AWSSimpleSystemsManagement.GetOpsSummary
* @see AWS API
* Documentation
*/
@Override
public GetOpsSummaryResult getOpsSummary(GetOpsSummaryRequest request) {
request = beforeClientExecution(request);
return executeGetOpsSummary(request);
}
@SdkInternalApi
final GetOpsSummaryResult executeGetOpsSummary(GetOpsSummaryRequest getOpsSummaryRequest) {
ExecutionContext executionContext = createExecutionContext(getOpsSummaryRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetOpsSummaryRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getOpsSummaryRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetOpsSummary");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetOpsSummaryResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Get information about a single parameter by specifying the parameter name.
*
*
*
* To get information about more than one parameter at a time, use the GetParameters operation.
*
*
*
* @param getParameterRequest
* @return Result of the GetParameter operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidKeyIdException
* The query key ID isn't valid.
* @throws ParameterNotFoundException
* The parameter couldn't be found. Verify the name and try again.
* @throws ParameterVersionNotFoundException
* The specified parameter version wasn't found. Verify the parameter name and version, and try again.
* @sample AWSSimpleSystemsManagement.GetParameter
* @see AWS API
* Documentation
*/
@Override
public GetParameterResult getParameter(GetParameterRequest request) {
request = beforeClientExecution(request);
return executeGetParameter(request);
}
@SdkInternalApi
final GetParameterResult executeGetParameter(GetParameterRequest getParameterRequest) {
ExecutionContext executionContext = createExecutionContext(getParameterRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetParameterRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getParameterRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetParameter");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetParameterResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves the history of all changes to a parameter.
*
*
*
* If you change the KMS key alias for the KMS key used to encrypt a parameter, then you must also update the key
* alias the parameter uses to reference KMS. Otherwise, GetParameterHistory
retrieves whatever the
* original key alias was referencing.
*
*
*
* @param getParameterHistoryRequest
* @return Result of the GetParameterHistory operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws ParameterNotFoundException
* The parameter couldn't be found. Verify the name and try again.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @throws InvalidKeyIdException
* The query key ID isn't valid.
* @sample AWSSimpleSystemsManagement.GetParameterHistory
* @see AWS API
* Documentation
*/
@Override
public GetParameterHistoryResult getParameterHistory(GetParameterHistoryRequest request) {
request = beforeClientExecution(request);
return executeGetParameterHistory(request);
}
@SdkInternalApi
final GetParameterHistoryResult executeGetParameterHistory(GetParameterHistoryRequest getParameterHistoryRequest) {
ExecutionContext executionContext = createExecutionContext(getParameterHistoryRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetParameterHistoryRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getParameterHistoryRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetParameterHistory");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetParameterHistoryResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Get information about one or more parameters by specifying multiple parameter names.
*
*
*
* To get information about a single parameter, you can use the GetParameter operation instead.
*
*
*
* @param getParametersRequest
* @return Result of the GetParameters operation returned by the service.
* @throws InvalidKeyIdException
* The query key ID isn't valid.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.GetParameters
* @see AWS API
* Documentation
*/
@Override
public GetParametersResult getParameters(GetParametersRequest request) {
request = beforeClientExecution(request);
return executeGetParameters(request);
}
@SdkInternalApi
final GetParametersResult executeGetParameters(GetParametersRequest getParametersRequest) {
ExecutionContext executionContext = createExecutionContext(getParametersRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetParametersRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getParametersRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetParameters");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetParametersResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieve information about one or more parameters in a specific hierarchy.
*
*
* Request results are returned on a best-effort basis. If you specify MaxResults
in the request, the
* response includes information up to the limit specified. The number of items returned, however, can be between
* zero and the value of MaxResults
. If the service reaches an internal limit while processing the
* results, it stops the operation and returns the matching values up to that point and a NextToken
.
* You can specify the NextToken
in a subsequent call to get the next set of results.
*
*
* @param getParametersByPathRequest
* @return Result of the GetParametersByPath operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidFilterKeyException
* The specified key isn't valid.
* @throws InvalidFilterOptionException
* The specified filter option isn't valid. Valid options are Equals and BeginsWith. For Path filter, valid
* options are Recursive and OneLevel.
* @throws InvalidFilterValueException
* The filter value isn't valid. Verify the value and try again.
* @throws InvalidKeyIdException
* The query key ID isn't valid.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.GetParametersByPath
* @see AWS API
* Documentation
*/
@Override
public GetParametersByPathResult getParametersByPath(GetParametersByPathRequest request) {
request = beforeClientExecution(request);
return executeGetParametersByPath(request);
}
@SdkInternalApi
final GetParametersByPathResult executeGetParametersByPath(GetParametersByPathRequest getParametersByPathRequest) {
ExecutionContext executionContext = createExecutionContext(getParametersByPathRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetParametersByPathRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getParametersByPathRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetParametersByPath");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetParametersByPathResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves information about a patch baseline.
*
*
* @param getPatchBaselineRequest
* @return Result of the GetPatchBaseline operation returned by the service.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InvalidResourceIdException
* The resource ID isn't valid. Verify that you entered the correct ID and try again.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.GetPatchBaseline
* @see AWS API
* Documentation
*/
@Override
public GetPatchBaselineResult getPatchBaseline(GetPatchBaselineRequest request) {
request = beforeClientExecution(request);
return executeGetPatchBaseline(request);
}
@SdkInternalApi
final GetPatchBaselineResult executeGetPatchBaseline(GetPatchBaselineRequest getPatchBaselineRequest) {
ExecutionContext executionContext = createExecutionContext(getPatchBaselineRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetPatchBaselineRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getPatchBaselineRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetPatchBaseline");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetPatchBaselineResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves the patch baseline that should be used for the specified patch group.
*
*
* @param getPatchBaselineForPatchGroupRequest
* @return Result of the GetPatchBaselineForPatchGroup operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.GetPatchBaselineForPatchGroup
* @see AWS API Documentation
*/
@Override
public GetPatchBaselineForPatchGroupResult getPatchBaselineForPatchGroup(GetPatchBaselineForPatchGroupRequest request) {
request = beforeClientExecution(request);
return executeGetPatchBaselineForPatchGroup(request);
}
@SdkInternalApi
final GetPatchBaselineForPatchGroupResult executeGetPatchBaselineForPatchGroup(GetPatchBaselineForPatchGroupRequest getPatchBaselineForPatchGroupRequest) {
ExecutionContext executionContext = createExecutionContext(getPatchBaselineForPatchGroupRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetPatchBaselineForPatchGroupRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(getPatchBaselineForPatchGroupRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetPatchBaselineForPatchGroup");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new GetPatchBaselineForPatchGroupResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Returns an array of the Policy
object.
*
*
* @param getResourcePoliciesRequest
* @return Result of the GetResourcePolicies operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws ResourcePolicyInvalidParameterException
* One or more parameters specified for the call aren't valid. Verify the parameters and their values and
* try again.
* @throws ResourceNotFoundException
* The specified parameter to be shared could not be found.
* @sample AWSSimpleSystemsManagement.GetResourcePolicies
* @see AWS API
* Documentation
*/
@Override
public GetResourcePoliciesResult getResourcePolicies(GetResourcePoliciesRequest request) {
request = beforeClientExecution(request);
return executeGetResourcePolicies(request);
}
@SdkInternalApi
final GetResourcePoliciesResult executeGetResourcePolicies(GetResourcePoliciesRequest getResourcePoliciesRequest) {
ExecutionContext executionContext = createExecutionContext(getResourcePoliciesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetResourcePoliciesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getResourcePoliciesRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetResourcePolicies");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetResourcePoliciesResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* ServiceSetting
is an account-level setting for an Amazon Web Services service. This setting defines
* how a user interacts with or uses a service or a feature of a service. For example, if an Amazon Web Services
* service charges money to the account based on feature or service usage, then the Amazon Web Services service team
* might create a default setting of false
. This means the user can't use this feature unless they
* change the setting to true
and intentionally opt in for a paid feature.
*
*
* Services map a SettingId
object to a setting value. Amazon Web Services services teams define the
* default value for a SettingId
. You can't create a new SettingId
, but you can overwrite
* the default value if you have the ssm:UpdateServiceSetting
permission for the setting. Use the
* UpdateServiceSetting API operation to change the default setting. Or use the ResetServiceSetting to
* change the value back to the original value defined by the Amazon Web Services service team.
*
*
* Query the current service setting for the Amazon Web Services account.
*
*
* @param getServiceSettingRequest
* The request body of the GetServiceSetting API operation.
* @return Result of the GetServiceSetting operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws ServiceSettingNotFoundException
* The specified service setting wasn't found. Either the service name or the setting hasn't been
* provisioned by the Amazon Web Services service team.
* @sample AWSSimpleSystemsManagement.GetServiceSetting
* @see AWS API
* Documentation
*/
@Override
public GetServiceSettingResult getServiceSetting(GetServiceSettingRequest request) {
request = beforeClientExecution(request);
return executeGetServiceSetting(request);
}
@SdkInternalApi
final GetServiceSettingResult executeGetServiceSetting(GetServiceSettingRequest getServiceSettingRequest) {
ExecutionContext executionContext = createExecutionContext(getServiceSettingRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new GetServiceSettingRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getServiceSettingRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetServiceSetting");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetServiceSettingResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* A parameter label is a user-defined alias to help you manage different versions of a parameter. When you modify a
* parameter, Amazon Web Services Systems Manager automatically saves a new version and increments the version
* number by one. A label can help you remember the purpose of a parameter when there are multiple versions.
*
*
* Parameter labels have the following requirements and restrictions.
*
*
* -
*
* A version of a parameter can have a maximum of 10 labels.
*
*
* -
*
* You can't attach the same label to different versions of the same parameter. For example, if version 1 has the
* label Production, then you can't attach Production to version 2.
*
*
* -
*
* You can move a label from one version of a parameter to another.
*
*
* -
*
* You can't create a label when you create a new parameter. You must attach a label to a specific version of a
* parameter.
*
*
* -
*
* If you no longer want to use a parameter label, then you can either delete it or move it to a different version
* of a parameter.
*
*
* -
*
* A label can have a maximum of 100 characters.
*
*
* -
*
* Labels can contain letters (case sensitive), numbers, periods (.), hyphens (-), or underscores (_).
*
*
* -
*
* Labels can't begin with a number, "aws
" or "ssm
" (not case sensitive). If a label fails
* to meet these requirements, then the label isn't associated with a parameter and the system displays it in the
* list of InvalidLabels.
*
*
*
*
* @param labelParameterVersionRequest
* @return Result of the LabelParameterVersion operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws TooManyUpdatesException
* There are concurrent updates for a resource that supports one update at a time.
* @throws ParameterNotFoundException
* The parameter couldn't be found. Verify the name and try again.
* @throws ParameterVersionNotFoundException
* The specified parameter version wasn't found. Verify the parameter name and version, and try again.
* @throws ParameterVersionLabelLimitExceededException
* A parameter version can have a maximum of ten labels.
* @sample AWSSimpleSystemsManagement.LabelParameterVersion
* @see AWS API
* Documentation
*/
@Override
public LabelParameterVersionResult labelParameterVersion(LabelParameterVersionRequest request) {
request = beforeClientExecution(request);
return executeLabelParameterVersion(request);
}
@SdkInternalApi
final LabelParameterVersionResult executeLabelParameterVersion(LabelParameterVersionRequest labelParameterVersionRequest) {
ExecutionContext executionContext = createExecutionContext(labelParameterVersionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new LabelParameterVersionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(labelParameterVersionRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "LabelParameterVersion");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory
.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new LabelParameterVersionResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves all versions of an association for a specific association ID.
*
*
* @param listAssociationVersionsRequest
* @return Result of the ListAssociationVersions operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @throws AssociationDoesNotExistException
* The specified association doesn't exist.
* @sample AWSSimpleSystemsManagement.ListAssociationVersions
* @see AWS
* API Documentation
*/
@Override
public ListAssociationVersionsResult listAssociationVersions(ListAssociationVersionsRequest request) {
request = beforeClientExecution(request);
return executeListAssociationVersions(request);
}
@SdkInternalApi
final ListAssociationVersionsResult executeListAssociationVersions(ListAssociationVersionsRequest listAssociationVersionsRequest) {
ExecutionContext executionContext = createExecutionContext(listAssociationVersionsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListAssociationVersionsRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(listAssociationVersionsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAssociationVersions");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new ListAssociationVersionsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Returns all State Manager associations in the current Amazon Web Services account and Amazon Web Services Region.
* You can limit the results to a specific State Manager association document or managed node by specifying a
* filter. State Manager is a capability of Amazon Web Services Systems Manager.
*
*
* @param listAssociationsRequest
* @return Result of the ListAssociations operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.ListAssociations
* @see AWS API
* Documentation
*/
@Override
public ListAssociationsResult listAssociations(ListAssociationsRequest request) {
request = beforeClientExecution(request);
return executeListAssociations(request);
}
@SdkInternalApi
final ListAssociationsResult executeListAssociations(ListAssociationsRequest listAssociationsRequest) {
ExecutionContext executionContext = createExecutionContext(listAssociationsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListAssociationsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listAssociationsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAssociations");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListAssociationsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* An invocation is copy of a command sent to a specific managed node. A command can apply to one or more managed
* nodes. A command invocation applies to one managed node. For example, if a user runs SendCommand
* against three managed nodes, then a command invocation is created for each requested managed node ID.
* ListCommandInvocations
provide status about command execution.
*
*
* @param listCommandInvocationsRequest
* @return Result of the ListCommandInvocations operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidCommandIdException
* The specified command ID isn't valid. Verify the ID and try again.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws InvalidFilterKeyException
* The specified key isn't valid.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.ListCommandInvocations
* @see AWS API
* Documentation
*/
@Override
public ListCommandInvocationsResult listCommandInvocations(ListCommandInvocationsRequest request) {
request = beforeClientExecution(request);
return executeListCommandInvocations(request);
}
@SdkInternalApi
final ListCommandInvocationsResult executeListCommandInvocations(ListCommandInvocationsRequest listCommandInvocationsRequest) {
ExecutionContext executionContext = createExecutionContext(listCommandInvocationsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListCommandInvocationsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listCommandInvocationsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListCommandInvocations");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new ListCommandInvocationsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Lists the commands requested by users of the Amazon Web Services account.
*
*
* @param listCommandsRequest
* @return Result of the ListCommands operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidCommandIdException
* The specified command ID isn't valid. Verify the ID and try again.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws InvalidFilterKeyException
* The specified key isn't valid.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.ListCommands
* @see AWS API
* Documentation
*/
@Override
public ListCommandsResult listCommands(ListCommandsRequest request) {
request = beforeClientExecution(request);
return executeListCommands(request);
}
@SdkInternalApi
final ListCommandsResult executeListCommands(ListCommandsRequest listCommandsRequest) {
ExecutionContext executionContext = createExecutionContext(listCommandsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListCommandsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listCommandsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListCommands");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListCommandsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* For a specified resource ID, this API operation returns a list of compliance statuses for different resource
* types. Currently, you can only specify one resource ID per call. List results depend on the criteria specified in
* the filter.
*
*
* @param listComplianceItemsRequest
* @return Result of the ListComplianceItems operation returned by the service.
* @throws InvalidResourceTypeException
* The resource type isn't valid. For example, if you are attempting to tag an EC2 instance, the instance
* must be a registered managed node.
* @throws InvalidResourceIdException
* The resource ID isn't valid. Verify that you entered the correct ID and try again.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidFilterException
* The filter name isn't valid. Verify the you entered the correct name and try again.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.ListComplianceItems
* @see AWS API
* Documentation
*/
@Override
public ListComplianceItemsResult listComplianceItems(ListComplianceItemsRequest request) {
request = beforeClientExecution(request);
return executeListComplianceItems(request);
}
@SdkInternalApi
final ListComplianceItemsResult executeListComplianceItems(ListComplianceItemsRequest listComplianceItemsRequest) {
ExecutionContext executionContext = createExecutionContext(listComplianceItemsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListComplianceItemsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listComplianceItemsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListComplianceItems");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListComplianceItemsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Returns a summary count of compliant and non-compliant resources for a compliance type. For example, this call
* can return State Manager associations, patches, or custom compliance types according to the filter criteria that
* you specify.
*
*
* @param listComplianceSummariesRequest
* @return Result of the ListComplianceSummaries operation returned by the service.
* @throws InvalidFilterException
* The filter name isn't valid. Verify the you entered the correct name and try again.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.ListComplianceSummaries
* @see AWS
* API Documentation
*/
@Override
public ListComplianceSummariesResult listComplianceSummaries(ListComplianceSummariesRequest request) {
request = beforeClientExecution(request);
return executeListComplianceSummaries(request);
}
@SdkInternalApi
final ListComplianceSummariesResult executeListComplianceSummaries(ListComplianceSummariesRequest listComplianceSummariesRequest) {
ExecutionContext executionContext = createExecutionContext(listComplianceSummariesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListComplianceSummariesRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(listComplianceSummariesRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListComplianceSummaries");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new ListComplianceSummariesResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Information about approval reviews for a version of a change template in Change Manager.
*
*
* @param listDocumentMetadataHistoryRequest
* @return Result of the ListDocumentMetadataHistory operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws InvalidDocumentVersionException
* The document version isn't valid or doesn't exist.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.ListDocumentMetadataHistory
* @see AWS API Documentation
*/
@Override
public ListDocumentMetadataHistoryResult listDocumentMetadataHistory(ListDocumentMetadataHistoryRequest request) {
request = beforeClientExecution(request);
return executeListDocumentMetadataHistory(request);
}
@SdkInternalApi
final ListDocumentMetadataHistoryResult executeListDocumentMetadataHistory(ListDocumentMetadataHistoryRequest listDocumentMetadataHistoryRequest) {
ExecutionContext executionContext = createExecutionContext(listDocumentMetadataHistoryRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListDocumentMetadataHistoryRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(listDocumentMetadataHistoryRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDocumentMetadataHistory");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new ListDocumentMetadataHistoryResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* List all versions for a document.
*
*
* @param listDocumentVersionsRequest
* @return Result of the ListDocumentVersions operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @sample AWSSimpleSystemsManagement.ListDocumentVersions
* @see AWS API
* Documentation
*/
@Override
public ListDocumentVersionsResult listDocumentVersions(ListDocumentVersionsRequest request) {
request = beforeClientExecution(request);
return executeListDocumentVersions(request);
}
@SdkInternalApi
final ListDocumentVersionsResult executeListDocumentVersions(ListDocumentVersionsRequest listDocumentVersionsRequest) {
ExecutionContext executionContext = createExecutionContext(listDocumentVersionsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListDocumentVersionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listDocumentVersionsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDocumentVersions");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListDocumentVersionsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Returns all Systems Manager (SSM) documents in the current Amazon Web Services account and Amazon Web Services
* Region. You can limit the results of this request by using a filter.
*
*
* @param listDocumentsRequest
* @return Result of the ListDocuments operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @throws InvalidFilterKeyException
* The specified key isn't valid.
* @sample AWSSimpleSystemsManagement.ListDocuments
* @see AWS API
* Documentation
*/
@Override
public ListDocumentsResult listDocuments(ListDocumentsRequest request) {
request = beforeClientExecution(request);
return executeListDocuments(request);
}
@SdkInternalApi
final ListDocumentsResult executeListDocuments(ListDocumentsRequest listDocumentsRequest) {
ExecutionContext executionContext = createExecutionContext(listDocumentsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListDocumentsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listDocumentsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDocuments");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListDocumentsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
@Override
public ListDocumentsResult listDocuments() {
return listDocuments(new ListDocumentsRequest());
}
/**
*
* A list of inventory items returned by the request.
*
*
* @param listInventoryEntriesRequest
* @return Result of the ListInventoryEntries operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws InvalidTypeNameException
* The parameter type name isn't valid.
* @throws InvalidFilterException
* The filter name isn't valid. Verify the you entered the correct name and try again.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.ListInventoryEntries
* @see AWS API
* Documentation
*/
@Override
public ListInventoryEntriesResult listInventoryEntries(ListInventoryEntriesRequest request) {
request = beforeClientExecution(request);
return executeListInventoryEntries(request);
}
@SdkInternalApi
final ListInventoryEntriesResult executeListInventoryEntries(ListInventoryEntriesRequest listInventoryEntriesRequest) {
ExecutionContext executionContext = createExecutionContext(listInventoryEntriesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListInventoryEntriesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listInventoryEntriesRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListInventoryEntries");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListInventoryEntriesResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Returns a list of all OpsItem events in the current Amazon Web Services Region and Amazon Web Services account.
* You can limit the results to events associated with specific OpsItems by specifying a filter.
*
*
* @param listOpsItemEventsRequest
* @return Result of the ListOpsItemEvents operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws OpsItemNotFoundException
* The specified OpsItem ID doesn't exist. Verify the ID and try again.
* @throws OpsItemLimitExceededException
* The request caused OpsItems to exceed one or more quotas.
* @throws OpsItemInvalidParameterException
* A specified parameter argument isn't valid. Verify the available arguments and try again.
* @sample AWSSimpleSystemsManagement.ListOpsItemEvents
* @see AWS API
* Documentation
*/
@Override
public ListOpsItemEventsResult listOpsItemEvents(ListOpsItemEventsRequest request) {
request = beforeClientExecution(request);
return executeListOpsItemEvents(request);
}
@SdkInternalApi
final ListOpsItemEventsResult executeListOpsItemEvents(ListOpsItemEventsRequest listOpsItemEventsRequest) {
ExecutionContext executionContext = createExecutionContext(listOpsItemEventsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListOpsItemEventsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listOpsItemEventsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListOpsItemEvents");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListOpsItemEventsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Lists all related-item resources associated with a Systems Manager OpsCenter OpsItem. OpsCenter is a capability
* of Amazon Web Services Systems Manager.
*
*
* @param listOpsItemRelatedItemsRequest
* @return Result of the ListOpsItemRelatedItems operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws OpsItemInvalidParameterException
* A specified parameter argument isn't valid. Verify the available arguments and try again.
* @sample AWSSimpleSystemsManagement.ListOpsItemRelatedItems
* @see AWS
* API Documentation
*/
@Override
public ListOpsItemRelatedItemsResult listOpsItemRelatedItems(ListOpsItemRelatedItemsRequest request) {
request = beforeClientExecution(request);
return executeListOpsItemRelatedItems(request);
}
@SdkInternalApi
final ListOpsItemRelatedItemsResult executeListOpsItemRelatedItems(ListOpsItemRelatedItemsRequest listOpsItemRelatedItemsRequest) {
ExecutionContext executionContext = createExecutionContext(listOpsItemRelatedItemsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListOpsItemRelatedItemsRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(listOpsItemRelatedItemsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListOpsItemRelatedItems");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new ListOpsItemRelatedItemsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Amazon Web Services Systems Manager calls this API operation when displaying all Application Manager OpsMetadata
* objects or blobs.
*
*
* @param listOpsMetadataRequest
* @return Result of the ListOpsMetadata operation returned by the service.
* @throws OpsMetadataInvalidArgumentException
* One of the arguments passed is invalid.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.ListOpsMetadata
* @see AWS API
* Documentation
*/
@Override
public ListOpsMetadataResult listOpsMetadata(ListOpsMetadataRequest request) {
request = beforeClientExecution(request);
return executeListOpsMetadata(request);
}
@SdkInternalApi
final ListOpsMetadataResult executeListOpsMetadata(ListOpsMetadataRequest listOpsMetadataRequest) {
ExecutionContext executionContext = createExecutionContext(listOpsMetadataRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListOpsMetadataRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listOpsMetadataRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListOpsMetadata");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListOpsMetadataResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Returns a resource-level summary count. The summary includes information about compliant and non-compliant
* statuses and detailed compliance-item severity counts, according to the filter criteria you specify.
*
*
* @param listResourceComplianceSummariesRequest
* @return Result of the ListResourceComplianceSummaries operation returned by the service.
* @throws InvalidFilterException
* The filter name isn't valid. Verify the you entered the correct name and try again.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.ListResourceComplianceSummaries
* @see AWS API Documentation
*/
@Override
public ListResourceComplianceSummariesResult listResourceComplianceSummaries(ListResourceComplianceSummariesRequest request) {
request = beforeClientExecution(request);
return executeListResourceComplianceSummaries(request);
}
@SdkInternalApi
final ListResourceComplianceSummariesResult executeListResourceComplianceSummaries(
ListResourceComplianceSummariesRequest listResourceComplianceSummariesRequest) {
ExecutionContext executionContext = createExecutionContext(listResourceComplianceSummariesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListResourceComplianceSummariesRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(listResourceComplianceSummariesRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListResourceComplianceSummaries");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new ListResourceComplianceSummariesResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Lists your resource data sync configurations. Includes information about the last time a sync attempted to start,
* the last sync status, and the last time a sync successfully completed.
*
*
* The number of sync configurations might be too large to return using a single call to
* ListResourceDataSync
. You can limit the number of sync configurations returned by using the
* MaxResults
parameter. To determine whether there are more sync configurations to list, check the
* value of NextToken
in the output. If there are more sync configurations to list, you can request
* them by specifying the NextToken
returned in the call to the parameter of a subsequent call.
*
*
* @param listResourceDataSyncRequest
* @return Result of the ListResourceDataSync operation returned by the service.
* @throws ResourceDataSyncInvalidConfigurationException
* The specified sync configuration is invalid.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidNextTokenException
* The specified token isn't valid.
* @sample AWSSimpleSystemsManagement.ListResourceDataSync
* @see AWS API
* Documentation
*/
@Override
public ListResourceDataSyncResult listResourceDataSync(ListResourceDataSyncRequest request) {
request = beforeClientExecution(request);
return executeListResourceDataSync(request);
}
@SdkInternalApi
final ListResourceDataSyncResult executeListResourceDataSync(ListResourceDataSyncRequest listResourceDataSyncRequest) {
ExecutionContext executionContext = createExecutionContext(listResourceDataSyncRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListResourceDataSyncRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listResourceDataSyncRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListResourceDataSync");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListResourceDataSyncResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Returns a list of the tags assigned to the specified resource.
*
*
* For information about the ID format for each supported resource type, see AddTagsToResource.
*
*
* @param listTagsForResourceRequest
* @return Result of the ListTagsForResource operation returned by the service.
* @throws InvalidResourceTypeException
* The resource type isn't valid. For example, if you are attempting to tag an EC2 instance, the instance
* must be a registered managed node.
* @throws InvalidResourceIdException
* The resource ID isn't valid. Verify that you entered the correct ID and try again.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.ListTagsForResource
* @see AWS API
* Documentation
*/
@Override
public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) {
request = beforeClientExecution(request);
return executeListTagsForResource(request);
}
@SdkInternalApi
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {
ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListTagsForResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTagsForResourceRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTagsForResourceResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Shares a Amazon Web Services Systems Manager document (SSM document)publicly or privately. If you share a
* document privately, you must specify the Amazon Web Services user IDs for those people who can use the document.
* If you share a document publicly, you must specify All as the account ID.
*
*
* @param modifyDocumentPermissionRequest
* @return Result of the ModifyDocumentPermission operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws InvalidPermissionTypeException
* The permission type isn't supported. Share is the only supported permission type.
* @throws DocumentPermissionLimitException
* The document can't be shared with more Amazon Web Services accounts. You can specify a maximum of 20
* accounts per API operation to share a private document.
*
* By default, you can share a private document with a maximum of 1,000 accounts and publicly share up to
* five documents.
*
*
* If you need to increase the quota for privately or publicly shared Systems Manager documents, contact
* Amazon Web Services Support.
* @throws DocumentLimitExceededException
* You can have at most 500 active SSM documents.
* @sample AWSSimpleSystemsManagement.ModifyDocumentPermission
* @see AWS
* API Documentation
*/
@Override
public ModifyDocumentPermissionResult modifyDocumentPermission(ModifyDocumentPermissionRequest request) {
request = beforeClientExecution(request);
return executeModifyDocumentPermission(request);
}
@SdkInternalApi
final ModifyDocumentPermissionResult executeModifyDocumentPermission(ModifyDocumentPermissionRequest modifyDocumentPermissionRequest) {
ExecutionContext executionContext = createExecutionContext(modifyDocumentPermissionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ModifyDocumentPermissionRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(modifyDocumentPermissionRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ModifyDocumentPermission");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new ModifyDocumentPermissionResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Registers a compliance type and other compliance details on a designated resource. This operation lets you
* register custom compliance details with a resource. This call overwrites existing compliance information on the
* resource, so you must provide a full list of compliance items each time that you send the request.
*
*
* ComplianceType can be one of the following:
*
*
* -
*
* ExecutionId: The execution ID when the patch, association, or custom compliance item was applied.
*
*
* -
*
* ExecutionType: Specify patch, association, or Custom:string
.
*
*
* -
*
* ExecutionTime. The time the patch, association, or custom compliance item was applied to the managed node.
*
*
* -
*
* Id: The patch, association, or custom compliance ID.
*
*
* -
*
* Title: A title.
*
*
* -
*
* Status: The status of the compliance item. For example, approved
for patches, or Failed
* for associations.
*
*
* -
*
* Severity: A patch severity. For example, Critical
.
*
*
* -
*
* DocumentName: An SSM document name. For example, AWS-RunPatchBaseline
.
*
*
* -
*
* DocumentVersion: An SSM document version number. For example, 4.
*
*
* -
*
* Classification: A patch classification. For example, security updates
.
*
*
* -
*
* PatchBaselineId: A patch baseline ID.
*
*
* -
*
* PatchSeverity: A patch severity. For example, Critical
.
*
*
* -
*
* PatchState: A patch state. For example, InstancesWithFailedPatches
.
*
*
* -
*
* PatchGroup: The name of a patch group.
*
*
* -
*
* InstalledTime: The time the association, patch, or custom compliance item was applied to the resource. Specify
* the time by using the following format: yyyy-MM-dd'T'HH:mm:ss'Z'
*
*
*
*
* @param putComplianceItemsRequest
* @return Result of the PutComplianceItems operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidItemContentException
* One or more content items isn't valid.
* @throws TotalSizeLimitExceededException
* The size of inventory data has exceeded the total size limit for the resource.
* @throws ItemSizeLimitExceededException
* The inventory item size has exceeded the size limit.
* @throws ComplianceTypeCountLimitExceededException
* You specified too many custom compliance types. You can specify a maximum of 10 different types.
* @throws InvalidResourceTypeException
* The resource type isn't valid. For example, if you are attempting to tag an EC2 instance, the instance
* must be a registered managed node.
* @throws InvalidResourceIdException
* The resource ID isn't valid. Verify that you entered the correct ID and try again.
* @sample AWSSimpleSystemsManagement.PutComplianceItems
* @see AWS API
* Documentation
*/
@Override
public PutComplianceItemsResult putComplianceItems(PutComplianceItemsRequest request) {
request = beforeClientExecution(request);
return executePutComplianceItems(request);
}
@SdkInternalApi
final PutComplianceItemsResult executePutComplianceItems(PutComplianceItemsRequest putComplianceItemsRequest) {
ExecutionContext executionContext = createExecutionContext(putComplianceItemsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new PutComplianceItemsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(putComplianceItemsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutComplianceItems");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new PutComplianceItemsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Bulk update custom inventory items on one or more managed nodes. The request adds an inventory item, if it
* doesn't already exist, or updates an inventory item, if it does exist.
*
*
* @param putInventoryRequest
* @return Result of the PutInventory operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws InvalidTypeNameException
* The parameter type name isn't valid.
* @throws InvalidItemContentException
* One or more content items isn't valid.
* @throws TotalSizeLimitExceededException
* The size of inventory data has exceeded the total size limit for the resource.
* @throws ItemSizeLimitExceededException
* The inventory item size has exceeded the size limit.
* @throws ItemContentMismatchException
* The inventory item has invalid content.
* @throws CustomSchemaCountLimitExceededException
* You have exceeded the limit for custom schemas. Delete one or more custom schemas and try again.
* @throws UnsupportedInventorySchemaVersionException
* Inventory item type schema version has to match supported versions in the service. Check output of
* GetInventorySchema to see the available schema version for each type.
* @throws UnsupportedInventoryItemContextException
* The Context
attribute that you specified for the InventoryItem
isn't allowed
* for this inventory type. You can only use the Context
attribute with inventory types like
* AWS:ComplianceItem
.
* @throws InvalidInventoryItemContextException
* You specified invalid keys or values in the Context
attribute for InventoryItem
* . Verify the keys and values, and try again.
* @throws SubTypeCountLimitExceededException
* The sub-type count exceeded the limit for the inventory type.
* @sample AWSSimpleSystemsManagement.PutInventory
* @see AWS API
* Documentation
*/
@Override
public PutInventoryResult putInventory(PutInventoryRequest request) {
request = beforeClientExecution(request);
return executePutInventory(request);
}
@SdkInternalApi
final PutInventoryResult executePutInventory(PutInventoryRequest putInventoryRequest) {
ExecutionContext executionContext = createExecutionContext(putInventoryRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new PutInventoryRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(putInventoryRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutInventory");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new PutInventoryResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Add a parameter to the system.
*
*
* @param putParameterRequest
* @return Result of the PutParameter operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidKeyIdException
* The query key ID isn't valid.
* @throws ParameterLimitExceededException
* You have exceeded the number of parameters for this Amazon Web Services account. Delete one or more
* parameters and try again.
* @throws TooManyUpdatesException
* There are concurrent updates for a resource that supports one update at a time.
* @throws ParameterAlreadyExistsException
* The parameter already exists. You can't create duplicate parameters.
* @throws HierarchyLevelLimitExceededException
* A hierarchy can have a maximum of 15 levels. For more information, see Requirements and constraints for parameter names in the Amazon Web Services Systems Manager User
* Guide.
* @throws HierarchyTypeMismatchException
* Parameter Store doesn't support changing a parameter type in a hierarchy. For example, you can't change a
* parameter from a String
type to a SecureString
type. You must create a new,
* unique parameter.
* @throws InvalidAllowedPatternException
* The request doesn't meet the regular expression requirement.
* @throws ParameterMaxVersionLimitExceededException
* Parameter Store retains the 100 most recently created versions of a parameter. After this number of
* versions has been created, Parameter Store deletes the oldest version when a new one is created. However,
* if the oldest version has a label attached to it, Parameter Store won't delete the version and
* instead presents this error message:
*
* An error occurred (ParameterMaxVersionLimitExceeded) when calling the PutParameter operation: You attempted to create a new version of parameter-name by calling the PutParameter API with the overwrite flag. Version version-number, the oldest version, can't be deleted because it has a label associated with it. Move the label to another version of the parameter, and try again.
*
*
* This safeguard is to prevent parameter versions with mission critical labels assigned to them from being
* deleted. To continue creating new parameters, first move the label from the oldest version of the
* parameter to a newer one for use in your operations. For information about moving parameter labels, see
* Move a parameter label (console) or Move a parameter label (CLI) in the Amazon Web Services Systems Manager User Guide.
* @throws ParameterPatternMismatchException
* The parameter name isn't valid.
* @throws UnsupportedParameterTypeException
* The parameter type isn't supported.
* @throws PoliciesLimitExceededException
* You specified more than the maximum number of allowed policies for the parameter. The maximum is 10.
* @throws InvalidPolicyTypeException
* The policy type isn't supported. Parameter Store supports the following policy types: Expiration,
* ExpirationNotification, and NoChangeNotification.
* @throws InvalidPolicyAttributeException
* A policy attribute or its value is invalid.
* @throws IncompatiblePolicyException
* There is a conflict in the policies specified for this parameter. You can't, for example, specify two
* Expiration policies for a parameter. Review your policies, and try again.
* @sample AWSSimpleSystemsManagement.PutParameter
* @see AWS API
* Documentation
*/
@Override
public PutParameterResult putParameter(PutParameterRequest request) {
request = beforeClientExecution(request);
return executePutParameter(request);
}
@SdkInternalApi
final PutParameterResult executePutParameter(PutParameterRequest putParameterRequest) {
ExecutionContext executionContext = createExecutionContext(putParameterRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new PutParameterRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(putParameterRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutParameter");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new PutParameterResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Creates or updates a Systems Manager resource policy. A resource policy helps you to define the IAM entity (for
* example, an Amazon Web Services account) that can manage your Systems Manager resources. The following resources
* support Systems Manager resource policies.
*
*
* -
*
* OpsItemGroup
- The resource policy for OpsItemGroup
enables Amazon Web Services
* accounts to view and interact with OpsCenter operational work items (OpsItems).
*
*
* -
*
* Parameter
- The resource policy is used to share a parameter with other accounts using Resource
* Access Manager (RAM).
*
*
* To share a parameter, it must be in the advanced parameter tier. For information about parameter tiers, see
* Managing parameter tiers. For information about changing an existing standard parameter to an advanced
* parameter, see Changing a standard parameter to an advanced parameter.
*
*
* To share a SecureString
parameter, it must be encrypted with a customer managed key, and you must
* share the key separately through Key Management Service. Amazon Web Services managed keys cannot be shared.
* Parameters encrypted with the default Amazon Web Services managed key can be updated to use a customer managed
* key instead. For KMS key definitions, see KMS concepts in the Key
* Management Service Developer Guide.
*
*
*
* While you can share a parameter using the Systems Manager PutResourcePolicy
operation, we recommend
* using Resource Access Manager (RAM) instead. This is because using PutResourcePolicy
requires the
* extra step of promoting the parameter to a standard RAM Resource Share using the RAM PromoteResourceShareCreatedFromPolicy API operation. Otherwise, the parameter won't be returned by the
* Systems Manager DescribeParameters API operation using the --shared
option.
*
*
* For more information, see Sharing a parameter in the Amazon Web Services Systems Manager User Guide
*
*
*
*
* @param putResourcePolicyRequest
* @return Result of the PutResourcePolicy operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws ResourcePolicyInvalidParameterException
* One or more parameters specified for the call aren't valid. Verify the parameters and their values and
* try again.
* @throws ResourcePolicyLimitExceededException
* The PutResourcePolicy API action enforces two limits. A policy can't be greater than 1024 bytes in
* size. And only one policy can be attached to OpsItemGroup
. Verify these limits and try
* again.
* @throws ResourcePolicyConflictException
* The hash provided in the call doesn't match the stored hash. This exception is thrown when trying to
* update an obsolete policy version or when multiple requests to update a policy are sent.
* @throws ResourceNotFoundException
* The specified parameter to be shared could not be found.
* @throws MalformedResourcePolicyDocumentException
* The specified policy document is malformed or invalid, or excessive PutResourcePolicy
or
* DeleteResourcePolicy
calls have been made.
* @throws ResourcePolicyNotFoundException
* No policies with the specified policy ID and hash could be found.
* @sample AWSSimpleSystemsManagement.PutResourcePolicy
* @see AWS API
* Documentation
*/
@Override
public PutResourcePolicyResult putResourcePolicy(PutResourcePolicyRequest request) {
request = beforeClientExecution(request);
return executePutResourcePolicy(request);
}
@SdkInternalApi
final PutResourcePolicyResult executePutResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) {
ExecutionContext executionContext = createExecutionContext(putResourcePolicyRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new PutResourcePolicyRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(putResourcePolicyRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutResourcePolicy");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new PutResourcePolicyResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Defines the default patch baseline for the relevant operating system.
*
*
* To reset the Amazon Web Services-predefined patch baseline as the default, specify the full patch baseline Amazon
* Resource Name (ARN) as the baseline ID value. For example, for CentOS, specify
* arn:aws:ssm:us-east-2:733109147000:patchbaseline/pb-0574b43a65ea646ed
instead of
* pb-0574b43a65ea646ed
.
*
*
* @param registerDefaultPatchBaselineRequest
* @return Result of the RegisterDefaultPatchBaseline operation returned by the service.
* @throws InvalidResourceIdException
* The resource ID isn't valid. Verify that you entered the correct ID and try again.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.RegisterDefaultPatchBaseline
* @see AWS API Documentation
*/
@Override
public RegisterDefaultPatchBaselineResult registerDefaultPatchBaseline(RegisterDefaultPatchBaselineRequest request) {
request = beforeClientExecution(request);
return executeRegisterDefaultPatchBaseline(request);
}
@SdkInternalApi
final RegisterDefaultPatchBaselineResult executeRegisterDefaultPatchBaseline(RegisterDefaultPatchBaselineRequest registerDefaultPatchBaselineRequest) {
ExecutionContext executionContext = createExecutionContext(registerDefaultPatchBaselineRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new RegisterDefaultPatchBaselineRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(registerDefaultPatchBaselineRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RegisterDefaultPatchBaseline");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new RegisterDefaultPatchBaselineResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Registers a patch baseline for a patch group.
*
*
* @param registerPatchBaselineForPatchGroupRequest
* @return Result of the RegisterPatchBaselineForPatchGroup operation returned by the service.
* @throws AlreadyExistsException
* Error returned if an attempt is made to register a patch group with a patch baseline that is already
* registered with a different patch baseline.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InvalidResourceIdException
* The resource ID isn't valid. Verify that you entered the correct ID and try again.
* @throws ResourceLimitExceededException
* Error returned when the caller has exceeded the default resource quotas. For example, too many
* maintenance windows or patch baselines have been created.
*
*
* For information about resource quotas in Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.RegisterPatchBaselineForPatchGroup
* @see AWS API Documentation
*/
@Override
public RegisterPatchBaselineForPatchGroupResult registerPatchBaselineForPatchGroup(RegisterPatchBaselineForPatchGroupRequest request) {
request = beforeClientExecution(request);
return executeRegisterPatchBaselineForPatchGroup(request);
}
@SdkInternalApi
final RegisterPatchBaselineForPatchGroupResult executeRegisterPatchBaselineForPatchGroup(
RegisterPatchBaselineForPatchGroupRequest registerPatchBaselineForPatchGroupRequest) {
ExecutionContext executionContext = createExecutionContext(registerPatchBaselineForPatchGroupRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new RegisterPatchBaselineForPatchGroupRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(registerPatchBaselineForPatchGroupRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RegisterPatchBaselineForPatchGroup");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new RegisterPatchBaselineForPatchGroupResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Registers a target with a maintenance window.
*
*
* @param registerTargetWithMaintenanceWindowRequest
* @return Result of the RegisterTargetWithMaintenanceWindow operation returned by the service.
* @throws IdempotentParameterMismatchException
* Error returned when an idempotent operation is retried and the parameters don't match the original call
* to the API with the same idempotency token.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws ResourceLimitExceededException
* Error returned when the caller has exceeded the default resource quotas. For example, too many
* maintenance windows or patch baselines have been created.
*
*
* For information about resource quotas in Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.RegisterTargetWithMaintenanceWindow
* @see AWS API Documentation
*/
@Override
public RegisterTargetWithMaintenanceWindowResult registerTargetWithMaintenanceWindow(RegisterTargetWithMaintenanceWindowRequest request) {
request = beforeClientExecution(request);
return executeRegisterTargetWithMaintenanceWindow(request);
}
@SdkInternalApi
final RegisterTargetWithMaintenanceWindowResult executeRegisterTargetWithMaintenanceWindow(
RegisterTargetWithMaintenanceWindowRequest registerTargetWithMaintenanceWindowRequest) {
ExecutionContext executionContext = createExecutionContext(registerTargetWithMaintenanceWindowRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new RegisterTargetWithMaintenanceWindowRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(registerTargetWithMaintenanceWindowRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RegisterTargetWithMaintenanceWindow");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new RegisterTargetWithMaintenanceWindowResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Adds a new task to a maintenance window.
*
*
* @param registerTaskWithMaintenanceWindowRequest
* @return Result of the RegisterTaskWithMaintenanceWindow operation returned by the service.
* @throws IdempotentParameterMismatchException
* Error returned when an idempotent operation is retried and the parameters don't match the original call
* to the API with the same idempotency token.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws ResourceLimitExceededException
* Error returned when the caller has exceeded the default resource quotas. For example, too many
* maintenance windows or patch baselines have been created.
*
*
* For information about resource quotas in Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws FeatureNotAvailableException
* You attempted to register a LAMBDA
or STEP_FUNCTIONS
task in a region where the
* corresponding service isn't available.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.RegisterTaskWithMaintenanceWindow
* @see AWS API Documentation
*/
@Override
public RegisterTaskWithMaintenanceWindowResult registerTaskWithMaintenanceWindow(RegisterTaskWithMaintenanceWindowRequest request) {
request = beforeClientExecution(request);
return executeRegisterTaskWithMaintenanceWindow(request);
}
@SdkInternalApi
final RegisterTaskWithMaintenanceWindowResult executeRegisterTaskWithMaintenanceWindow(
RegisterTaskWithMaintenanceWindowRequest registerTaskWithMaintenanceWindowRequest) {
ExecutionContext executionContext = createExecutionContext(registerTaskWithMaintenanceWindowRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new RegisterTaskWithMaintenanceWindowRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(registerTaskWithMaintenanceWindowRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RegisterTaskWithMaintenanceWindow");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new RegisterTaskWithMaintenanceWindowResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Removes tag keys from the specified resource.
*
*
* @param removeTagsFromResourceRequest
* @return Result of the RemoveTagsFromResource operation returned by the service.
* @throws InvalidResourceTypeException
* The resource type isn't valid. For example, if you are attempting to tag an EC2 instance, the instance
* must be a registered managed node.
* @throws InvalidResourceIdException
* The resource ID isn't valid. Verify that you entered the correct ID and try again.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws TooManyUpdatesException
* There are concurrent updates for a resource that supports one update at a time.
* @sample AWSSimpleSystemsManagement.RemoveTagsFromResource
* @see AWS API
* Documentation
*/
@Override
public RemoveTagsFromResourceResult removeTagsFromResource(RemoveTagsFromResourceRequest request) {
request = beforeClientExecution(request);
return executeRemoveTagsFromResource(request);
}
@SdkInternalApi
final RemoveTagsFromResourceResult executeRemoveTagsFromResource(RemoveTagsFromResourceRequest removeTagsFromResourceRequest) {
ExecutionContext executionContext = createExecutionContext(removeTagsFromResourceRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new RemoveTagsFromResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(removeTagsFromResourceRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RemoveTagsFromResource");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new RemoveTagsFromResourceResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* ServiceSetting
is an account-level setting for an Amazon Web Services service. This setting defines
* how a user interacts with or uses a service or a feature of a service. For example, if an Amazon Web Services
* service charges money to the account based on feature or service usage, then the Amazon Web Services service team
* might create a default setting of "false". This means the user can't use this feature unless they change the
* setting to "true" and intentionally opt in for a paid feature.
*
*
* Services map a SettingId
object to a setting value. Amazon Web Services services teams define the
* default value for a SettingId
. You can't create a new SettingId
, but you can overwrite
* the default value if you have the ssm:UpdateServiceSetting
permission for the setting. Use the
* GetServiceSetting API operation to view the current value. Use the UpdateServiceSetting API
* operation to change the default setting.
*
*
* Reset the service setting for the account to the default value as provisioned by the Amazon Web Services service
* team.
*
*
* @param resetServiceSettingRequest
* The request body of the ResetServiceSetting API operation.
* @return Result of the ResetServiceSetting operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws ServiceSettingNotFoundException
* The specified service setting wasn't found. Either the service name or the setting hasn't been
* provisioned by the Amazon Web Services service team.
* @throws TooManyUpdatesException
* There are concurrent updates for a resource that supports one update at a time.
* @sample AWSSimpleSystemsManagement.ResetServiceSetting
* @see AWS API
* Documentation
*/
@Override
public ResetServiceSettingResult resetServiceSetting(ResetServiceSettingRequest request) {
request = beforeClientExecution(request);
return executeResetServiceSetting(request);
}
@SdkInternalApi
final ResetServiceSettingResult executeResetServiceSetting(ResetServiceSettingRequest resetServiceSettingRequest) {
ExecutionContext executionContext = createExecutionContext(resetServiceSettingRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ResetServiceSettingRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(resetServiceSettingRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ResetServiceSetting");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ResetServiceSettingResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Reconnects a session to a managed node after it has been disconnected. Connections can be resumed for
* disconnected sessions, but not terminated sessions.
*
*
*
* This command is primarily for use by client machines to automatically reconnect during intermittent network
* issues. It isn't intended for any other use.
*
*
*
* @param resumeSessionRequest
* @return Result of the ResumeSession operation returned by the service.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.ResumeSession
* @see AWS API
* Documentation
*/
@Override
public ResumeSessionResult resumeSession(ResumeSessionRequest request) {
request = beforeClientExecution(request);
return executeResumeSession(request);
}
@SdkInternalApi
final ResumeSessionResult executeResumeSession(ResumeSessionRequest resumeSessionRequest) {
ExecutionContext executionContext = createExecutionContext(resumeSessionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ResumeSessionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(resumeSessionRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ResumeSession");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ResumeSessionResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Sends a signal to an Automation execution to change the current behavior or status of the execution.
*
*
* @param sendAutomationSignalRequest
* @return Result of the SendAutomationSignal operation returned by the service.
* @throws AutomationExecutionNotFoundException
* There is no automation execution information for the requested automation execution ID.
* @throws AutomationStepNotFoundException
* The specified step name and execution ID don't exist. Verify the information and try again.
* @throws InvalidAutomationSignalException
* The signal isn't valid for the current Automation execution.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.SendAutomationSignal
* @see AWS API
* Documentation
*/
@Override
public SendAutomationSignalResult sendAutomationSignal(SendAutomationSignalRequest request) {
request = beforeClientExecution(request);
return executeSendAutomationSignal(request);
}
@SdkInternalApi
final SendAutomationSignalResult executeSendAutomationSignal(SendAutomationSignalRequest sendAutomationSignalRequest) {
ExecutionContext executionContext = createExecutionContext(sendAutomationSignalRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new SendAutomationSignalRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(sendAutomationSignalRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SendAutomationSignal");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SendAutomationSignalResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Runs commands on one or more managed nodes.
*
*
* @param sendCommandRequest
* @return Result of the SendCommand operation returned by the service.
* @throws DuplicateInstanceIdException
* You can't specify a managed node ID in more than one association.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws InvalidDocumentVersionException
* The document version isn't valid or doesn't exist.
* @throws InvalidOutputFolderException
* The S3 bucket doesn't exist.
* @throws InvalidParametersException
* You must specify values for all required parameters in the Amazon Web Services Systems Manager document
* (SSM document). You can only supply values to parameters defined in the SSM document.
* @throws UnsupportedPlatformTypeException
* The document doesn't support the platform type of the given managed node IDs. For example, you sent an
* document for a Windows managed node to a Linux node.
* @throws MaxDocumentSizeExceededException
* The size limit of a document is 64 KB.
* @throws InvalidRoleException
* The role name can't contain invalid characters. Also verify that you specified an IAM role for
* notifications that includes the required trust policy. For information about configuring the IAM role for
* Run Command notifications, see Monitoring Systems Manager status changes using Amazon SNS notifications in the Amazon Web
* Services Systems Manager User Guide.
* @throws InvalidNotificationConfigException
* One or more configuration items isn't valid. Verify that a valid Amazon Resource Name (ARN) was provided
* for an Amazon Simple Notification Service topic.
* @sample AWSSimpleSystemsManagement.SendCommand
* @see AWS API
* Documentation
*/
@Override
public SendCommandResult sendCommand(SendCommandRequest request) {
request = beforeClientExecution(request);
return executeSendCommand(request);
}
@SdkInternalApi
final SendCommandResult executeSendCommand(SendCommandRequest sendCommandRequest) {
ExecutionContext executionContext = createExecutionContext(sendCommandRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new SendCommandRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(sendCommandRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SendCommand");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SendCommandResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Runs an association immediately and only one time. This operation can be helpful when troubleshooting
* associations.
*
*
* @param startAssociationsOnceRequest
* @return Result of the StartAssociationsOnce operation returned by the service.
* @throws InvalidAssociationException
* The association isn't valid or doesn't exist.
* @throws AssociationDoesNotExistException
* The specified association doesn't exist.
* @sample AWSSimpleSystemsManagement.StartAssociationsOnce
* @see AWS API
* Documentation
*/
@Override
public StartAssociationsOnceResult startAssociationsOnce(StartAssociationsOnceRequest request) {
request = beforeClientExecution(request);
return executeStartAssociationsOnce(request);
}
@SdkInternalApi
final StartAssociationsOnceResult executeStartAssociationsOnce(StartAssociationsOnceRequest startAssociationsOnceRequest) {
ExecutionContext executionContext = createExecutionContext(startAssociationsOnceRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new StartAssociationsOnceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(startAssociationsOnceRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartAssociationsOnce");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory
.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new StartAssociationsOnceResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Initiates execution of an Automation runbook.
*
*
* @param startAutomationExecutionRequest
* @return Result of the StartAutomationExecution operation returned by the service.
* @throws AutomationDefinitionNotFoundException
* An Automation runbook with the specified name couldn't be found.
* @throws InvalidAutomationExecutionParametersException
* The supplied parameters for invoking the specified Automation runbook are incorrect. For example, they
* may not match the set of parameters permitted for the specified Automation document.
* @throws AutomationExecutionLimitExceededException
* The number of simultaneously running Automation executions exceeded the allowable limit.
* @throws AutomationDefinitionVersionNotFoundException
* An Automation runbook with the specified name and version couldn't be found.
* @throws IdempotentParameterMismatchException
* Error returned when an idempotent operation is retried and the parameters don't match the original call
* to the API with the same idempotency token.
* @throws InvalidTargetException
* The target isn't valid or doesn't exist. It might not be configured for Systems Manager or you might not
* have permission to perform the operation.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.StartAutomationExecution
* @see AWS
* API Documentation
*/
@Override
public StartAutomationExecutionResult startAutomationExecution(StartAutomationExecutionRequest request) {
request = beforeClientExecution(request);
return executeStartAutomationExecution(request);
}
@SdkInternalApi
final StartAutomationExecutionResult executeStartAutomationExecution(StartAutomationExecutionRequest startAutomationExecutionRequest) {
ExecutionContext executionContext = createExecutionContext(startAutomationExecutionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new StartAutomationExecutionRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(startAutomationExecutionRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartAutomationExecution");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new StartAutomationExecutionResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Creates a change request for Change Manager. The Automation runbooks specified in the change request run only
* after all required approvals for the change request have been received.
*
*
* @param startChangeRequestExecutionRequest
* @return Result of the StartChangeRequestExecution operation returned by the service.
* @throws AutomationDefinitionNotFoundException
* An Automation runbook with the specified name couldn't be found.
* @throws InvalidAutomationExecutionParametersException
* The supplied parameters for invoking the specified Automation runbook are incorrect. For example, they
* may not match the set of parameters permitted for the specified Automation document.
* @throws AutomationExecutionLimitExceededException
* The number of simultaneously running Automation executions exceeded the allowable limit.
* @throws AutomationDefinitionVersionNotFoundException
* An Automation runbook with the specified name and version couldn't be found.
* @throws IdempotentParameterMismatchException
* Error returned when an idempotent operation is retried and the parameters don't match the original call
* to the API with the same idempotency token.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws AutomationDefinitionNotApprovedException
* Indicates that the Change Manager change template used in the change request was rejected or is still in
* a pending state.
* @sample AWSSimpleSystemsManagement.StartChangeRequestExecution
* @see AWS API Documentation
*/
@Override
public StartChangeRequestExecutionResult startChangeRequestExecution(StartChangeRequestExecutionRequest request) {
request = beforeClientExecution(request);
return executeStartChangeRequestExecution(request);
}
@SdkInternalApi
final StartChangeRequestExecutionResult executeStartChangeRequestExecution(StartChangeRequestExecutionRequest startChangeRequestExecutionRequest) {
ExecutionContext executionContext = createExecutionContext(startChangeRequestExecutionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new StartChangeRequestExecutionRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(startChangeRequestExecutionRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartChangeRequestExecution");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new StartChangeRequestExecutionResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Initiates a connection to a target (for example, a managed node) for a Session Manager session. Returns a URL and
* token that can be used to open a WebSocket connection for sending input and receiving outputs.
*
*
*
* Amazon Web Services CLI usage: start-session
is an interactive command that requires the Session
* Manager plugin to be installed on the client machine making the call. For information, see Install the Session Manager plugin for the Amazon Web Services CLI in the Amazon Web Services Systems
* Manager User Guide.
*
*
* Amazon Web Services Tools for PowerShell usage: Start-SSMSession isn't currently supported by Amazon Web Services
* Tools for PowerShell on Windows local machines.
*
*
*
* @param startSessionRequest
* @return Result of the StartSession operation returned by the service.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws TargetNotConnectedException
* The specified target managed node for the session isn't fully configured for use with Session Manager.
* For more information, see Getting started with Session Manager in the Amazon Web Services Systems Manager User Guide.
* This error is also returned if you attempt to start a session on a managed node that is located in a
* different account or Region
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.StartSession
* @see AWS API
* Documentation
*/
@Override
public StartSessionResult startSession(StartSessionRequest request) {
request = beforeClientExecution(request);
return executeStartSession(request);
}
@SdkInternalApi
final StartSessionResult executeStartSession(StartSessionRequest startSessionRequest) {
ExecutionContext executionContext = createExecutionContext(startSessionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new StartSessionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(startSessionRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartSession");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StartSessionResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Stop an Automation that is currently running.
*
*
* @param stopAutomationExecutionRequest
* @return Result of the StopAutomationExecution operation returned by the service.
* @throws AutomationExecutionNotFoundException
* There is no automation execution information for the requested automation execution ID.
* @throws InvalidAutomationStatusUpdateException
* The specified update status operation isn't valid.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.StopAutomationExecution
* @see AWS
* API Documentation
*/
@Override
public StopAutomationExecutionResult stopAutomationExecution(StopAutomationExecutionRequest request) {
request = beforeClientExecution(request);
return executeStopAutomationExecution(request);
}
@SdkInternalApi
final StopAutomationExecutionResult executeStopAutomationExecution(StopAutomationExecutionRequest stopAutomationExecutionRequest) {
ExecutionContext executionContext = createExecutionContext(stopAutomationExecutionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new StopAutomationExecutionRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(stopAutomationExecutionRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopAutomationExecution");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new StopAutomationExecutionResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Permanently ends a session and closes the data connection between the Session Manager client and SSM Agent on the
* managed node. A terminated session can't be resumed.
*
*
* @param terminateSessionRequest
* @return Result of the TerminateSession operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.TerminateSession
* @see AWS API
* Documentation
*/
@Override
public TerminateSessionResult terminateSession(TerminateSessionRequest request) {
request = beforeClientExecution(request);
return executeTerminateSession(request);
}
@SdkInternalApi
final TerminateSessionResult executeTerminateSession(TerminateSessionRequest terminateSessionRequest) {
ExecutionContext executionContext = createExecutionContext(terminateSessionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new TerminateSessionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(terminateSessionRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "TerminateSession");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new TerminateSessionResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Remove a label or labels from a parameter.
*
*
* @param unlabelParameterVersionRequest
* @return Result of the UnlabelParameterVersion operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws TooManyUpdatesException
* There are concurrent updates for a resource that supports one update at a time.
* @throws ParameterNotFoundException
* The parameter couldn't be found. Verify the name and try again.
* @throws ParameterVersionNotFoundException
* The specified parameter version wasn't found. Verify the parameter name and version, and try again.
* @sample AWSSimpleSystemsManagement.UnlabelParameterVersion
* @see AWS
* API Documentation
*/
@Override
public UnlabelParameterVersionResult unlabelParameterVersion(UnlabelParameterVersionRequest request) {
request = beforeClientExecution(request);
return executeUnlabelParameterVersion(request);
}
@SdkInternalApi
final UnlabelParameterVersionResult executeUnlabelParameterVersion(UnlabelParameterVersionRequest unlabelParameterVersionRequest) {
ExecutionContext executionContext = createExecutionContext(unlabelParameterVersionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UnlabelParameterVersionRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(unlabelParameterVersionRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UnlabelParameterVersion");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new UnlabelParameterVersionResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Updates an association. You can update the association name and version, the document version, schedule,
* parameters, and Amazon Simple Storage Service (Amazon S3) output. When you call UpdateAssociation
,
* the system removes all optional parameters from the request and overwrites the association with null values for
* those parameters. This is by design. You must specify all optional parameters in the call, even if you are not
* changing the parameters. This includes the Name
parameter. Before calling this API action, we
* recommend that you call the DescribeAssociation API operation and make a note of all optional parameters
* required for your UpdateAssociation
call.
*
*
* In order to call this API operation, a user, group, or role must be granted permission to call the
* DescribeAssociation API operation. If you don't have permission to call DescribeAssociation
,
* then you receive the following error:
* An error occurred (AccessDeniedException) when calling the UpdateAssociation operation: User: <user_arn> isn't authorized to perform: ssm:DescribeAssociation on resource: <resource_arn>
*
*
*
* When you update an association, the association immediately runs against the specified targets. You can add the
* ApplyOnlyAtCronInterval
parameter to run the association during the next schedule run.
*
*
*
* @param updateAssociationRequest
* @return Result of the UpdateAssociation operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidScheduleException
* The schedule is invalid. Verify your cron or rate expression and try again.
* @throws InvalidParametersException
* You must specify values for all required parameters in the Amazon Web Services Systems Manager document
* (SSM document). You can only supply values to parameters defined in the SSM document.
* @throws InvalidOutputLocationException
* The output location isn't valid or doesn't exist.
* @throws InvalidDocumentVersionException
* The document version isn't valid or doesn't exist.
* @throws AssociationDoesNotExistException
* The specified association doesn't exist.
* @throws InvalidUpdateException
* The update isn't valid.
* @throws TooManyUpdatesException
* There are concurrent updates for a resource that supports one update at a time.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws InvalidTargetException
* The target isn't valid or doesn't exist. It might not be configured for Systems Manager or you might not
* have permission to perform the operation.
* @throws InvalidAssociationVersionException
* The version you specified isn't valid. Use ListAssociationVersions to view all versions of an association
* according to the association ID. Or, use the $LATEST
parameter to view the latest version of
* the association.
* @throws AssociationVersionLimitExceededException
* You have reached the maximum number versions allowed for an association. Each association has a limit of
* 1,000 versions.
* @throws InvalidTargetMapsException
* TargetMap parameter isn't valid.
* @sample AWSSimpleSystemsManagement.UpdateAssociation
* @see AWS API
* Documentation
*/
@Override
public UpdateAssociationResult updateAssociation(UpdateAssociationRequest request) {
request = beforeClientExecution(request);
return executeUpdateAssociation(request);
}
@SdkInternalApi
final UpdateAssociationResult executeUpdateAssociation(UpdateAssociationRequest updateAssociationRequest) {
ExecutionContext executionContext = createExecutionContext(updateAssociationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateAssociationRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateAssociationRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAssociation");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateAssociationResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Updates the status of the Amazon Web Services Systems Manager document (SSM document) associated with the
* specified managed node.
*
*
* UpdateAssociationStatus
is primarily used by the Amazon Web Services Systems Manager Agent (SSM
* Agent) to report status updates about your associations and is only used for associations created with the
* InstanceId
legacy parameter.
*
*
* @param updateAssociationStatusRequest
* @return Result of the UpdateAssociationStatus operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws AssociationDoesNotExistException
* The specified association doesn't exist.
* @throws StatusUnchangedException
* The updated status is the same as the current status.
* @throws TooManyUpdatesException
* There are concurrent updates for a resource that supports one update at a time.
* @sample AWSSimpleSystemsManagement.UpdateAssociationStatus
* @see AWS
* API Documentation
*/
@Override
public UpdateAssociationStatusResult updateAssociationStatus(UpdateAssociationStatusRequest request) {
request = beforeClientExecution(request);
return executeUpdateAssociationStatus(request);
}
@SdkInternalApi
final UpdateAssociationStatusResult executeUpdateAssociationStatus(UpdateAssociationStatusRequest updateAssociationStatusRequest) {
ExecutionContext executionContext = createExecutionContext(updateAssociationStatusRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateAssociationStatusRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(updateAssociationStatusRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAssociationStatus");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new UpdateAssociationStatusResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Updates one or more values for an SSM document.
*
*
* @param updateDocumentRequest
* @return Result of the UpdateDocument operation returned by the service.
* @throws MaxDocumentSizeExceededException
* The size limit of a document is 64 KB.
* @throws DocumentVersionLimitExceededException
* The document has too many versions. Delete one or more document versions and try again.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws DuplicateDocumentContentException
* The content of the association document matches another document. Change the content of the document and
* try again.
* @throws DuplicateDocumentVersionNameException
* The version name has already been used in this document. Specify a different version name, and then try
* again.
* @throws InvalidDocumentContentException
* The content for the document isn't valid.
* @throws InvalidDocumentVersionException
* The document version isn't valid or doesn't exist.
* @throws InvalidDocumentSchemaVersionException
* The version of the document schema isn't supported.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws InvalidDocumentOperationException
* You attempted to delete a document while it is still shared. You must stop sharing the document before
* you can delete it.
* @sample AWSSimpleSystemsManagement.UpdateDocument
* @see AWS API
* Documentation
*/
@Override
public UpdateDocumentResult updateDocument(UpdateDocumentRequest request) {
request = beforeClientExecution(request);
return executeUpdateDocument(request);
}
@SdkInternalApi
final UpdateDocumentResult executeUpdateDocument(UpdateDocumentRequest updateDocumentRequest) {
ExecutionContext executionContext = createExecutionContext(updateDocumentRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateDocumentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateDocumentRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDocument");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateDocumentResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Set the default version of a document.
*
*
*
* If you change a document version for a State Manager association, Systems Manager immediately runs the
* association unless you previously specifed the apply-only-at-cron-interval
parameter.
*
*
*
* @param updateDocumentDefaultVersionRequest
* @return Result of the UpdateDocumentDefaultVersion operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws InvalidDocumentVersionException
* The document version isn't valid or doesn't exist.
* @throws InvalidDocumentSchemaVersionException
* The version of the document schema isn't supported.
* @sample AWSSimpleSystemsManagement.UpdateDocumentDefaultVersion
* @see AWS API Documentation
*/
@Override
public UpdateDocumentDefaultVersionResult updateDocumentDefaultVersion(UpdateDocumentDefaultVersionRequest request) {
request = beforeClientExecution(request);
return executeUpdateDocumentDefaultVersion(request);
}
@SdkInternalApi
final UpdateDocumentDefaultVersionResult executeUpdateDocumentDefaultVersion(UpdateDocumentDefaultVersionRequest updateDocumentDefaultVersionRequest) {
ExecutionContext executionContext = createExecutionContext(updateDocumentDefaultVersionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateDocumentDefaultVersionRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(updateDocumentDefaultVersionRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDocumentDefaultVersion");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new UpdateDocumentDefaultVersionResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Updates information related to approval reviews for a specific version of a change template in Change Manager.
*
*
* @param updateDocumentMetadataRequest
* @return Result of the UpdateDocumentMetadata operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws InvalidDocumentException
* The specified SSM document doesn't exist.
* @throws InvalidDocumentOperationException
* You attempted to delete a document while it is still shared. You must stop sharing the document before
* you can delete it.
* @throws InvalidDocumentVersionException
* The document version isn't valid or doesn't exist.
* @sample AWSSimpleSystemsManagement.UpdateDocumentMetadata
* @see AWS API
* Documentation
*/
@Override
public UpdateDocumentMetadataResult updateDocumentMetadata(UpdateDocumentMetadataRequest request) {
request = beforeClientExecution(request);
return executeUpdateDocumentMetadata(request);
}
@SdkInternalApi
final UpdateDocumentMetadataResult executeUpdateDocumentMetadata(UpdateDocumentMetadataRequest updateDocumentMetadataRequest) {
ExecutionContext executionContext = createExecutionContext(updateDocumentMetadataRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateDocumentMetadataRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateDocumentMetadataRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDocumentMetadata");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new UpdateDocumentMetadataResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Updates an existing maintenance window. Only specified parameters are modified.
*
*
*
* The value you specify for Duration
determines the specific end time for the maintenance window based
* on the time it begins. No maintenance window tasks are permitted to start after the resulting endtime minus the
* number of hours you specify for Cutoff
. For example, if the maintenance window starts at 3 PM, the
* duration is three hours, and the value you specify for Cutoff
is one hour, no maintenance window
* tasks can start after 5 PM.
*
*
*
* @param updateMaintenanceWindowRequest
* @return Result of the UpdateMaintenanceWindow operation returned by the service.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.UpdateMaintenanceWindow
* @see AWS
* API Documentation
*/
@Override
public UpdateMaintenanceWindowResult updateMaintenanceWindow(UpdateMaintenanceWindowRequest request) {
request = beforeClientExecution(request);
return executeUpdateMaintenanceWindow(request);
}
@SdkInternalApi
final UpdateMaintenanceWindowResult executeUpdateMaintenanceWindow(UpdateMaintenanceWindowRequest updateMaintenanceWindowRequest) {
ExecutionContext executionContext = createExecutionContext(updateMaintenanceWindowRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateMaintenanceWindowRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(updateMaintenanceWindowRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateMaintenanceWindow");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new UpdateMaintenanceWindowResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Modifies the target of an existing maintenance window. You can change the following:
*
*
* -
*
* Name
*
*
* -
*
* Description
*
*
* -
*
* Owner
*
*
* -
*
* IDs for an ID target
*
*
* -
*
* Tags for a Tag target
*
*
* -
*
* From any supported tag type to another. The three supported tag types are ID target, Tag target, and resource
* group. For more information, see Target.
*
*
*
*
*
* If a parameter is null, then the corresponding field isn't modified.
*
*
*
* @param updateMaintenanceWindowTargetRequest
* @return Result of the UpdateMaintenanceWindowTarget operation returned by the service.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.UpdateMaintenanceWindowTarget
* @see AWS API Documentation
*/
@Override
public UpdateMaintenanceWindowTargetResult updateMaintenanceWindowTarget(UpdateMaintenanceWindowTargetRequest request) {
request = beforeClientExecution(request);
return executeUpdateMaintenanceWindowTarget(request);
}
@SdkInternalApi
final UpdateMaintenanceWindowTargetResult executeUpdateMaintenanceWindowTarget(UpdateMaintenanceWindowTargetRequest updateMaintenanceWindowTargetRequest) {
ExecutionContext executionContext = createExecutionContext(updateMaintenanceWindowTargetRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateMaintenanceWindowTargetRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(updateMaintenanceWindowTargetRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateMaintenanceWindowTarget");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new UpdateMaintenanceWindowTargetResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Modifies a task assigned to a maintenance window. You can't change the task type, but you can change the
* following values:
*
*
* -
*
* TaskARN
. For example, you can change a RUN_COMMAND
task from
* AWS-RunPowerShellScript
to AWS-RunShellScript
.
*
*
* -
*
* ServiceRoleArn
*
*
* -
*
* TaskInvocationParameters
*
*
* -
*
* Priority
*
*
* -
*
* MaxConcurrency
*
*
* -
*
* MaxErrors
*
*
*
*
*
* One or more targets must be specified for maintenance window Run Command-type tasks. Depending on the task,
* targets are optional for other maintenance window task types (Automation, Lambda, and Step Functions). For more
* information about running tasks that don't specify targets, see Registering maintenance window tasks without targets in the Amazon Web Services Systems Manager User
* Guide.
*
*
*
* If the value for a parameter in UpdateMaintenanceWindowTask
is null, then the corresponding field
* isn't modified. If you set Replace
to true, then all fields required by the
* RegisterTaskWithMaintenanceWindow operation are required for this request. Optional fields that aren't
* specified are set to null.
*
*
*
* When you update a maintenance window task that has options specified in TaskInvocationParameters
,
* you must provide again all the TaskInvocationParameters
values that you want to retain. The values
* you don't specify again are removed. For example, suppose that when you registered a Run Command task, you
* specified TaskInvocationParameters
values for Comment
, NotificationConfig
,
* and OutputS3BucketName
. If you update the maintenance window task and specify only a different
* OutputS3BucketName
value, the values for Comment
and NotificationConfig
* are removed.
*
*
*
* @param updateMaintenanceWindowTaskRequest
* @return Result of the UpdateMaintenanceWindowTask operation returned by the service.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.UpdateMaintenanceWindowTask
* @see AWS API Documentation
*/
@Override
public UpdateMaintenanceWindowTaskResult updateMaintenanceWindowTask(UpdateMaintenanceWindowTaskRequest request) {
request = beforeClientExecution(request);
return executeUpdateMaintenanceWindowTask(request);
}
@SdkInternalApi
final UpdateMaintenanceWindowTaskResult executeUpdateMaintenanceWindowTask(UpdateMaintenanceWindowTaskRequest updateMaintenanceWindowTaskRequest) {
ExecutionContext executionContext = createExecutionContext(updateMaintenanceWindowTaskRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateMaintenanceWindowTaskRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(updateMaintenanceWindowTaskRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateMaintenanceWindowTask");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new UpdateMaintenanceWindowTaskResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Changes the Identity and Access Management (IAM) role that is assigned to the on-premises server, edge device, or
* virtual machines (VM). IAM roles are first assigned to these hybrid nodes during the activation process. For more
* information, see CreateActivation.
*
*
* @param updateManagedInstanceRoleRequest
* @return Result of the UpdateManagedInstanceRole operation returned by the service.
* @throws InvalidInstanceIdException
* The following problems can cause this exception:
*
* -
*
* You don't have permission to access the managed node.
*
*
* -
*
* Amazon Web Services Systems Manager Agent (SSM Agent) isn't running. Verify that SSM Agent is running.
*
*
* -
*
* SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.
*
*
* -
*
* The managed node isn't in a valid state. Valid states are: Running
, Pending
,
* Stopped
, and Stopping
. Invalid states are: Shutting-down
and
* Terminated
.
*
*
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.UpdateManagedInstanceRole
* @see AWS
* API Documentation
*/
@Override
public UpdateManagedInstanceRoleResult updateManagedInstanceRole(UpdateManagedInstanceRoleRequest request) {
request = beforeClientExecution(request);
return executeUpdateManagedInstanceRole(request);
}
@SdkInternalApi
final UpdateManagedInstanceRoleResult executeUpdateManagedInstanceRole(UpdateManagedInstanceRoleRequest updateManagedInstanceRoleRequest) {
ExecutionContext executionContext = createExecutionContext(updateManagedInstanceRoleRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateManagedInstanceRoleRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(updateManagedInstanceRoleRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateManagedInstanceRole");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new UpdateManagedInstanceRoleResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Edit or change an OpsItem. You must have permission in Identity and Access Management (IAM) to update an OpsItem.
* For more information, see Set up OpsCenter in
* the Amazon Web Services Systems Manager User Guide.
*
*
* Operations engineers and IT professionals use Amazon Web Services Systems Manager OpsCenter to view, investigate,
* and remediate operational issues impacting the performance and health of their Amazon Web Services resources. For
* more information, see Amazon Web Services Systems
* Manager OpsCenter in the Amazon Web Services Systems Manager User Guide.
*
*
* @param updateOpsItemRequest
* @return Result of the UpdateOpsItem operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws OpsItemNotFoundException
* The specified OpsItem ID doesn't exist. Verify the ID and try again.
* @throws OpsItemAlreadyExistsException
* The OpsItem already exists.
* @throws OpsItemLimitExceededException
* The request caused OpsItems to exceed one or more quotas.
* @throws OpsItemInvalidParameterException
* A specified parameter argument isn't valid. Verify the available arguments and try again.
* @throws OpsItemAccessDeniedException
* You don't have permission to view OpsItems in the specified account. Verify that your account is
* configured either as a Systems Manager delegated administrator or that you are logged into the
* Organizations management account.
* @throws OpsItemConflictException
* The specified OpsItem is in the process of being deleted.
* @sample AWSSimpleSystemsManagement.UpdateOpsItem
* @see AWS API
* Documentation
*/
@Override
public UpdateOpsItemResult updateOpsItem(UpdateOpsItemRequest request) {
request = beforeClientExecution(request);
return executeUpdateOpsItem(request);
}
@SdkInternalApi
final UpdateOpsItemResult executeUpdateOpsItem(UpdateOpsItemRequest updateOpsItemRequest) {
ExecutionContext executionContext = createExecutionContext(updateOpsItemRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateOpsItemRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateOpsItemRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateOpsItem");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateOpsItemResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Amazon Web Services Systems Manager calls this API operation when you edit OpsMetadata in Application Manager.
*
*
* @param updateOpsMetadataRequest
* @return Result of the UpdateOpsMetadata operation returned by the service.
* @throws OpsMetadataNotFoundException
* The OpsMetadata object doesn't exist.
* @throws OpsMetadataInvalidArgumentException
* One of the arguments passed is invalid.
* @throws OpsMetadataKeyLimitExceededException
* The OpsMetadata object exceeds the maximum number of OpsMetadata keys that you can assign to an
* application in Application Manager.
* @throws OpsMetadataTooManyUpdatesException
* The system is processing too many concurrent updates. Wait a few moments and try again.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.UpdateOpsMetadata
* @see AWS API
* Documentation
*/
@Override
public UpdateOpsMetadataResult updateOpsMetadata(UpdateOpsMetadataRequest request) {
request = beforeClientExecution(request);
return executeUpdateOpsMetadata(request);
}
@SdkInternalApi
final UpdateOpsMetadataResult executeUpdateOpsMetadata(UpdateOpsMetadataRequest updateOpsMetadataRequest) {
ExecutionContext executionContext = createExecutionContext(updateOpsMetadataRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateOpsMetadataRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateOpsMetadataRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateOpsMetadata");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateOpsMetadataResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Modifies an existing patch baseline. Fields not specified in the request are left unchanged.
*
*
*
* For information about valid key-value pairs in PatchFilters
for each supported operating system
* type, see PatchFilter.
*
*
*
* @param updatePatchBaselineRequest
* @return Result of the UpdatePatchBaseline operation returned by the service.
* @throws DoesNotExistException
* Error returned when the ID specified for a resource, such as a maintenance window or patch baseline,
* doesn't exist.
*
* For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service
* quotas in the Amazon Web Services General Reference.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.UpdatePatchBaseline
* @see AWS API
* Documentation
*/
@Override
public UpdatePatchBaselineResult updatePatchBaseline(UpdatePatchBaselineRequest request) {
request = beforeClientExecution(request);
return executeUpdatePatchBaseline(request);
}
@SdkInternalApi
final UpdatePatchBaselineResult executeUpdatePatchBaseline(UpdatePatchBaselineRequest updatePatchBaselineRequest) {
ExecutionContext executionContext = createExecutionContext(updatePatchBaselineRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdatePatchBaselineRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updatePatchBaselineRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdatePatchBaseline");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdatePatchBaselineResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* 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
.
*
*
*
* @param updateResourceDataSyncRequest
* @return Result of the UpdateResourceDataSync operation returned by the service.
* @throws ResourceDataSyncNotFoundException
* The specified sync name wasn't found.
* @throws ResourceDataSyncInvalidConfigurationException
* The specified sync configuration is invalid.
* @throws ResourceDataSyncConflictException
* Another UpdateResourceDataSync
request is being processed. Wait a few minutes and try again.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @sample AWSSimpleSystemsManagement.UpdateResourceDataSync
* @see AWS API
* Documentation
*/
@Override
public UpdateResourceDataSyncResult updateResourceDataSync(UpdateResourceDataSyncRequest request) {
request = beforeClientExecution(request);
return executeUpdateResourceDataSync(request);
}
@SdkInternalApi
final UpdateResourceDataSyncResult executeUpdateResourceDataSync(UpdateResourceDataSyncRequest updateResourceDataSyncRequest) {
ExecutionContext executionContext = createExecutionContext(updateResourceDataSyncRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateResourceDataSyncRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateResourceDataSyncRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateResourceDataSync");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new UpdateResourceDataSyncResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* ServiceSetting
is an account-level setting for an Amazon Web Services service. This setting defines
* how a user interacts with or uses a service or a feature of a service. For example, if an Amazon Web Services
* service charges money to the account based on feature or service usage, then the Amazon Web Services service team
* might create a default setting of "false". This means the user can't use this feature unless they change the
* setting to "true" and intentionally opt in for a paid feature.
*
*
* Services map a SettingId
object to a setting value. Amazon Web Services services teams define the
* default value for a SettingId
. You can't create a new SettingId
, but you can overwrite
* the default value if you have the ssm:UpdateServiceSetting
permission for the setting. Use the
* GetServiceSetting API operation to view the current value. Or, use the ResetServiceSetting to
* change the value back to the original value defined by the Amazon Web Services service team.
*
*
* Update the service setting for the account.
*
*
* @param updateServiceSettingRequest
* The request body of the UpdateServiceSetting API operation.
* @return Result of the UpdateServiceSetting operation returned by the service.
* @throws InternalServerErrorException
* An error occurred on the server side.
* @throws ServiceSettingNotFoundException
* The specified service setting wasn't found. Either the service name or the setting hasn't been
* provisioned by the Amazon Web Services service team.
* @throws TooManyUpdatesException
* There are concurrent updates for a resource that supports one update at a time.
* @sample AWSSimpleSystemsManagement.UpdateServiceSetting
* @see AWS API
* Documentation
*/
@Override
public UpdateServiceSettingResult updateServiceSetting(UpdateServiceSettingRequest request) {
request = beforeClientExecution(request);
return executeUpdateServiceSetting(request);
}
@SdkInternalApi
final UpdateServiceSettingResult executeUpdateServiceSetting(UpdateServiceSettingRequest updateServiceSettingRequest) {
ExecutionContext executionContext = createExecutionContext(updateServiceSettingRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateServiceSettingRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateServiceSettingRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SSM");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateServiceSetting");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateServiceSettingResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
* Returns additional metadata for a previously executed successful, request, typically used for debugging issues
* where a service isn't acting as expected. This data isn't considered part of the result data returned by an
* operation, so it's available through this separate, diagnostic interface.
*
* Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic
* information for an executed request, you should use this method to retrieve it as soon as possible after
* executing the request.
*
* @param request
* The originally executed request
*
* @return The response metadata for the specified request, or null if none is available.
*/
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
return client.getResponseMetadataForRequest(request);
}
/**
* Normal invoke with authentication. Credentials are required and may be overriden at the request level.
**/
private Response