public class AWSSimpleSystemsManagementClient extends AmazonWebServiceClient implements AWSSimpleSystemsManagement
Amazon EC2 Simple Systems Manager (SSM) enables you to configure and manage your EC2 instances. You can create a configuration document and then associate it with one or more running instances.
You can use a configuration document to automate the following tasks for your Windows instances:
Join an AWS Directory
Install, repair, or uninstall software using an MSI package
Run PowerShell scripts
Configure CloudWatch Logs to monitor applications and systems
Note that configuration documents are not supported on Linux instances.
Modifier and Type | Field and Description |
---|---|
protected List<com.amazonaws.transform.JsonErrorUnmarshaller> |
jsonErrorUnmarshallers
List of exception unmarshallers for all AWSSimpleSystemsManagement exceptions.
|
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
Constructor and Description |
---|
AWSSimpleSystemsManagementClient()
Constructs a new client to invoke service methods on
AWSSimpleSystemsManagement.
|
AWSSimpleSystemsManagementClient(AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on
AWSSimpleSystemsManagement using the specified AWS account credentials.
|
AWSSimpleSystemsManagementClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on
AWSSimpleSystemsManagement using the specified AWS account credentials
and client configuration options.
|
AWSSimpleSystemsManagementClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new client to invoke service methods on
AWSSimpleSystemsManagement using the specified AWS account credentials provider.
|
AWSSimpleSystemsManagementClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on
AWSSimpleSystemsManagement using the specified AWS account credentials
provider and client configuration options.
|
AWSSimpleSystemsManagementClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
Constructs a new client to invoke service methods on
AWSSimpleSystemsManagement using the specified AWS account credentials
provider, client configuration options and request metric collector.
|
AWSSimpleSystemsManagementClient(ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on
AWSSimpleSystemsManagement.
|
Modifier and Type | Method and Description |
---|---|
CreateAssociationResult |
createAssociation(CreateAssociationRequest createAssociationRequest)
Associates the specified configuration document with the specified
instance.
|
CreateAssociationBatchResult |
createAssociationBatch(CreateAssociationBatchRequest createAssociationBatchRequest)
Associates the specified configuration documents with the specified
instances.
|
CreateDocumentResult |
createDocument(CreateDocumentRequest createDocumentRequest)
Creates a configuration document.
|
DeleteAssociationResult |
deleteAssociation(DeleteAssociationRequest deleteAssociationRequest)
Disassociates the specified configuration document from the specified
instance.
|
DeleteDocumentResult |
deleteDocument(DeleteDocumentRequest deleteDocumentRequest)
Deletes the specified configuration document.
|
DescribeAssociationResult |
describeAssociation(DescribeAssociationRequest describeAssociationRequest)
Describes the associations for the specified configuration document
or instance.
|
DescribeDocumentResult |
describeDocument(DescribeDocumentRequest describeDocumentRequest)
Describes the specified configuration document.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for
debugging issues where a service isn't acting as expected.
|
GetDocumentResult |
getDocument(GetDocumentRequest getDocumentRequest)
Gets the contents of the specified configuration document.
|
ListAssociationsResult |
listAssociations(ListAssociationsRequest listAssociationsRequest)
Lists the associations for the specified configuration document or
instance.
|
ListDocumentsResult |
listDocuments()
Describes one or more of your configuration documents.
|
ListDocumentsResult |
listDocuments(ListDocumentsRequest listDocumentsRequest)
Describes one or more of your configuration documents.
|
void |
setEndpoint(String endpoint)
Overrides the default endpoint for this client ("https://ssm.us-east-1.amazonaws.com/").
|
void |
setEndpoint(String endpoint,
String serviceName,
String regionId) |
UpdateAssociationStatusResult |
updateAssociationStatus(UpdateAssociationStatusRequest updateAssociationStatusRequest)
Updates the status of the configuration document associated with the
specified instance.
|
addRequestHandler, addRequestHandler, beforeMarshalling, configSigner, configSigner, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setRegion, shutdown
protected List<com.amazonaws.transform.JsonErrorUnmarshaller> jsonErrorUnmarshallers
public AWSSimpleSystemsManagementClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
public AWSSimpleSystemsManagementClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling how this
client connects to AWSSimpleSystemsManagement
(ex: proxy settings, retry counts, etc.).DefaultAWSCredentialsProviderChain
public AWSSimpleSystemsManagementClient(AWSCredentials awsCredentials)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.public AWSSimpleSystemsManagementClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.clientConfiguration
- The client configuration options controlling how this
client connects to AWSSimpleSystemsManagement
(ex: proxy settings, retry counts, etc.).public AWSSimpleSystemsManagementClient(AWSCredentialsProvider awsCredentialsProvider)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.public AWSSimpleSystemsManagementClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.clientConfiguration
- The client configuration options controlling how this
client connects to AWSSimpleSystemsManagement
(ex: proxy settings, retry counts, etc.).public AWSSimpleSystemsManagementClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.clientConfiguration
- The client configuration options controlling how this
client connects to AWSSimpleSystemsManagement
(ex: proxy settings, retry counts, etc.).requestMetricCollector
- optional request metric collectorpublic DeleteDocumentResult deleteDocument(DeleteDocumentRequest deleteDocumentRequest)
Deletes the specified configuration document.
You must use DeleteAssociation to disassociate all instances that are associated with the configuration document before you can delete it.
deleteDocument
in interface AWSSimpleSystemsManagement
deleteDocumentRequest
- Container for the necessary parameters to
execute the DeleteDocument service method on
AWSSimpleSystemsManagement.InternalServerErrorException
AssociatedInstancesException
InvalidDocumentException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSSimpleSystemsManagement indicating
either a problem with the data in the request, or a server side issue.public DescribeAssociationResult describeAssociation(DescribeAssociationRequest describeAssociationRequest)
Describes the associations for the specified configuration document or instance.
describeAssociation
in interface AWSSimpleSystemsManagement
describeAssociationRequest
- Container for the necessary
parameters to execute the DescribeAssociation service method on
AWSSimpleSystemsManagement.InternalServerErrorException
InvalidInstanceIdException
InvalidDocumentException
AssociationDoesNotExistException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSSimpleSystemsManagement indicating
either a problem with the data in the request, or a server side issue.public CreateAssociationResult createAssociation(CreateAssociationRequest createAssociationRequest)
Associates the specified configuration document with the specified instance.
When you associate a configuration document with an instance, the configuration agent on the instance processes the configuration document and configures the instance as specified.
If you associate a configuration document with an instance that already has an associated configuration document, we replace the current configuration document with the new configuration document.
createAssociation
in interface AWSSimpleSystemsManagement
createAssociationRequest
- Container for the necessary parameters
to execute the CreateAssociation service method on
AWSSimpleSystemsManagement.AssociationLimitExceededException
InternalServerErrorException
InvalidInstanceIdException
InvalidDocumentException
AssociationAlreadyExistsException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSSimpleSystemsManagement indicating
either a problem with the data in the request, or a server side issue.public CreateAssociationBatchResult createAssociationBatch(CreateAssociationBatchRequest createAssociationBatchRequest)
Associates the specified configuration documents with the specified instances.
When you associate a configuration document with an instance, the configuration agent on the instance processes the configuration document and configures the instance as specified.
If you associate a configuration document with an instance that already has an associated configuration document, we replace the current configuration document with the new configuration document.
createAssociationBatch
in interface AWSSimpleSystemsManagement
createAssociationBatchRequest
- Container for the necessary
parameters to execute the CreateAssociationBatch service method on
AWSSimpleSystemsManagement.DuplicateInstanceIdException
InternalServerErrorException
AssociationLimitExceededException
InvalidInstanceIdException
InvalidDocumentException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSSimpleSystemsManagement indicating
either a problem with the data in the request, or a server side issue.public DescribeDocumentResult describeDocument(DescribeDocumentRequest describeDocumentRequest)
Describes the specified configuration document.
describeDocument
in interface AWSSimpleSystemsManagement
describeDocumentRequest
- Container for the necessary parameters
to execute the DescribeDocument service method on
AWSSimpleSystemsManagement.InternalServerErrorException
InvalidDocumentException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSSimpleSystemsManagement indicating
either a problem with the data in the request, or a server side issue.public UpdateAssociationStatusResult updateAssociationStatus(UpdateAssociationStatusRequest updateAssociationStatusRequest)
Updates the status of the configuration document associated with the specified instance.
updateAssociationStatus
in interface AWSSimpleSystemsManagement
updateAssociationStatusRequest
- Container for the necessary
parameters to execute the UpdateAssociationStatus service method on
AWSSimpleSystemsManagement.InternalServerErrorException
InvalidInstanceIdException
InvalidDocumentException
StatusUnchangedException
TooManyUpdatesException
AssociationDoesNotExistException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSSimpleSystemsManagement indicating
either a problem with the data in the request, or a server side issue.public ListAssociationsResult listAssociations(ListAssociationsRequest listAssociationsRequest)
Lists the associations for the specified configuration document or instance.
listAssociations
in interface AWSSimpleSystemsManagement
listAssociationsRequest
- Container for the necessary parameters
to execute the ListAssociations service method on
AWSSimpleSystemsManagement.InternalServerErrorException
InvalidNextTokenException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSSimpleSystemsManagement indicating
either a problem with the data in the request, or a server side issue.public ListDocumentsResult listDocuments(ListDocumentsRequest listDocumentsRequest)
Describes one or more of your configuration documents.
listDocuments
in interface AWSSimpleSystemsManagement
listDocumentsRequest
- Container for the necessary parameters to
execute the ListDocuments service method on
AWSSimpleSystemsManagement.InternalServerErrorException
InvalidNextTokenException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSSimpleSystemsManagement indicating
either a problem with the data in the request, or a server side issue.public DeleteAssociationResult deleteAssociation(DeleteAssociationRequest deleteAssociationRequest)
Disassociates the specified configuration document from the specified instance.
When you disassociate a configuration document from an instance, it does not change the configuration of the instance. To change the configuration state of an instance after you disassociate a configuration document, you must create a new configuration document with the desired configuration and associate it with the instance.
deleteAssociation
in interface AWSSimpleSystemsManagement
deleteAssociationRequest
- Container for the necessary parameters
to execute the DeleteAssociation service method on
AWSSimpleSystemsManagement.InternalServerErrorException
InvalidInstanceIdException
InvalidDocumentException
TooManyUpdatesException
AssociationDoesNotExistException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSSimpleSystemsManagement indicating
either a problem with the data in the request, or a server side issue.public CreateDocumentResult createDocument(CreateDocumentRequest createDocumentRequest)
Creates a configuration document.
After you create a configuration document, you can use CreateAssociation to associate it with one or more running instances.
createDocument
in interface AWSSimpleSystemsManagement
createDocumentRequest
- Container for the necessary parameters to
execute the CreateDocument service method on
AWSSimpleSystemsManagement.InternalServerErrorException
DocumentAlreadyExistsException
MaxDocumentSizeExceededException
InvalidDocumentContentException
DocumentLimitExceededException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSSimpleSystemsManagement indicating
either a problem with the data in the request, or a server side issue.public GetDocumentResult getDocument(GetDocumentRequest getDocumentRequest)
Gets the contents of the specified configuration document.
getDocument
in interface AWSSimpleSystemsManagement
getDocumentRequest
- Container for the necessary parameters to
execute the GetDocument service method on AWSSimpleSystemsManagement.InternalServerErrorException
InvalidDocumentException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSSimpleSystemsManagement indicating
either a problem with the data in the request, or a server side issue.public ListDocumentsResult listDocuments() throws AmazonServiceException, AmazonClientException
Describes one or more of your configuration documents.
listDocuments
in interface AWSSimpleSystemsManagement
InternalServerErrorException
InvalidNextTokenException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSSimpleSystemsManagement indicating
either a problem with the data in the request, or a server side issue.public void setEndpoint(String endpoint)
AWSSimpleSystemsManagement
Callers can pass in just the endpoint (ex: "ssm.us-east-1.amazonaws.com/") or a full
URL, including the protocol (ex: "https://ssm.us-east-1.amazonaws.com/"). If the
protocol is not specified here, the default protocol from this client's
ClientConfiguration
will be used, which by default is HTTPS.
For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912
This method is not threadsafe. An endpoint should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
setEndpoint
in interface AWSSimpleSystemsManagement
setEndpoint
in class AmazonWebServiceClient
endpoint
- The endpoint (ex: "ssm.us-east-1.amazonaws.com/") or a full URL,
including the protocol (ex: "https://ssm.us-east-1.amazonaws.com/") of
the region specific AWS endpoint this client will communicate
with.public void setEndpoint(String endpoint, String serviceName, String regionId) throws IllegalArgumentException
setEndpoint
in class AmazonWebServiceClient
IllegalArgumentException
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
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.
getCachedResponseMetadata
in interface AWSSimpleSystemsManagement
request
- The originally executed requestCopyright © 2015. All rights reserved.