ssm function

Amazon Simple Systems Manager (SSM)

Amazon Simple Systems Manager (SSM)

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

ssm(config = list(), credentials = list(), endpoint = NULL, region = NULL)

Arguments

  • config: Optional configuration of credentials, endpoint, and/or region.

    • credentials :

      • creds :

        • access_key_id : AWS access key ID
        • secret_access_key : AWS secret access key
        • session_token : AWS temporary session token
      • profile : The name of a profile to use. If not given, then the default profile is used.

      • anonymous : Set anonymous credentials.

    • endpoint : The complete URL to use for the constructed client.

    • region : The AWS Region used in instantiating the client.

    • close_connection : Immediately close all HTTP connections.

    • timeout : The time in seconds till a timeout exception is thrown when attempting to make a connection. The default is 60 seconds.

    • s3_force_path_style : Set this to true to force the request to use path-style addressing, i.e. http://s3.amazonaws.com/BUCKET/KEY.

    • sts_regional_endpoint : Set sts regional endpoint resolver to regional or legacy https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html

  • credentials: Optional credentials shorthand for the config parameter

    • creds :

      • access_key_id : AWS access key ID
      • secret_access_key : AWS secret access key
      • session_token : AWS temporary session token
    • profile : The name of a profile to use. If not given, then the default profile is used.

    • anonymous : Set anonymous credentials.

  • endpoint: Optional shorthand for complete URL to use for the constructed client.

  • region: Optional shorthand for AWS Region used in instantiating the client.

Returns

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Service syntax

svc <- ssm(
  config = list(
    credentials = list(
 creds = list(
   access_key_id = "string",
   secret_access_key = "string",
   session_token = "string"
 ),
 profile = "string",
 anonymous = "logical"
    ),
    endpoint = "string",
    region = "string",
    close_connection = "logical",
    timeout = "numeric",
    s3_force_path_style = "logical",
    sts_regional_endpoint = "string"
  ),
  credentials = list(
    creds = list(
 access_key_id = "string",
 secret_access_key = "string",
 session_token = "string"
    ),
    profile = "string",
    anonymous = "logical"
  ),
  endpoint = "string",
  region = "string"
)

Operations

add_tags_to_resourceAdds or overwrites one or more tags for the specified resource
associate_ops_item_related_itemAssociates a related item to a Systems Manager OpsCenter OpsItem
cancel_commandAttempts to cancel the command specified by the Command ID
cancel_maintenance_window_executionStops a maintenance window execution that is already in progress and cancels any tasks in the window that haven't already starting running
create_activationGenerates 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
create_associationA State Manager association defines the state that you want to maintain on your managed nodes
create_association_batchAssociates the specified Amazon Web Services Systems Manager document (SSM document) with the specified managed nodes or targets
create_documentCreates a Amazon Web Services Systems Manager (SSM document)
create_maintenance_windowCreates a new maintenance window
create_ops_itemCreates a new OpsItem
create_ops_metadataIf 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
create_patch_baselineCreates a patch baseline
create_resource_data_syncA resource data sync helps you view data from multiple sources in a single location
delete_activationDeletes an activation
delete_associationDisassociates the specified Amazon Web Services Systems Manager document (SSM document) from the specified managed node
delete_documentDeletes the Amazon Web Services Systems Manager document (SSM document) and all managed node associations to the document
delete_inventoryDelete a custom inventory type or the data associated with a custom Inventory type
delete_maintenance_windowDeletes a maintenance window
delete_ops_itemDelete an OpsItem
delete_ops_metadataDelete OpsMetadata related to an application
delete_parameterDelete a parameter from the system
delete_parametersDelete a list of parameters
delete_patch_baselineDeletes a patch baseline
delete_resource_data_syncDeletes a resource data sync configuration
delete_resource_policyDeletes a Systems Manager resource policy
deregister_managed_instanceRemoves the server or virtual machine from the list of registered servers
deregister_patch_baseline_for_patch_groupRemoves a patch group from a patch baseline
deregister_target_from_maintenance_windowRemoves a target from a maintenance window
deregister_task_from_maintenance_windowRemoves a task from a maintenance window
describe_activationsDescribes 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
describe_associationDescribes the association for the specified target or managed node
describe_association_executionsViews all executions for a specific association ID
describe_association_execution_targetsViews information about a specific execution of a specific association
describe_automation_executionsProvides details about all active and terminated Automation executions
describe_automation_step_executionsInformation about all active and terminated step executions in an Automation workflow
describe_available_patchesLists all patches eligible to be included in a patch baseline
describe_documentDescribes the specified Amazon Web Services Systems Manager document (SSM document)
describe_document_permissionDescribes the permissions for a Amazon Web Services Systems Manager document (SSM document)
describe_effective_instance_associationsAll associations for the managed nodes
describe_effective_patches_for_patch_baselineRetrieves the current effective patches (the patch and the approval state) for the specified patch baseline
describe_instance_associations_statusThe status of the associations for the managed nodes
describe_instance_informationProvides information about one or more of your managed nodes, including the operating system platform, SSM Agent version, association status, and IP address
describe_instance_patchesRetrieves information about the patches on the specified managed node and their state relative to the patch baseline being used for the node
describe_instance_patch_statesRetrieves the high-level patch state of one or more managed nodes
describe_instance_patch_states_for_patch_groupRetrieves the high-level patch state for the managed nodes in the specified patch group
describe_instance_propertiesAn API operation used by the Systems Manager console to display information about Systems Manager managed nodes
describe_inventory_deletionsDescribes a specific delete inventory operation
describe_maintenance_window_executionsLists the executions of a maintenance window
describe_maintenance_window_execution_task_invocationsRetrieves the individual task executions (one per target) for a particular task run as part of a maintenance window execution
describe_maintenance_window_execution_tasksFor a given maintenance window execution, lists the tasks that were run
describe_maintenance_windowsRetrieves the maintenance windows in an Amazon Web Services account
describe_maintenance_window_scheduleRetrieves information about upcoming executions of a maintenance window
describe_maintenance_windows_for_targetRetrieves information about the maintenance window targets or tasks that a managed node is associated with
describe_maintenance_window_targetsLists the targets registered with the maintenance window
describe_maintenance_window_tasksLists the tasks in a maintenance window
describe_ops_itemsQuery a set of OpsItems
describe_parametersLists the parameters in your Amazon Web Services account or the parameters shared with you when you enable the Shared option
describe_patch_baselinesLists the patch baselines in your Amazon Web Services account
describe_patch_groupsLists all patch groups that have been registered with patch baselines
describe_patch_group_stateReturns high-level aggregated patch compliance state information for a patch group
describe_patch_propertiesLists the properties of available patches organized by product, product family, classification, severity, and other properties of available patches
describe_sessionsRetrieves a list of all active sessions (both connected and disconnected) or terminated sessions from the past 30 days
disassociate_ops_item_related_itemDeletes the association between an OpsItem and a related item
get_automation_executionGet detailed information about a particular Automation execution
get_calendar_stateGets the state of a Amazon Web Services Systems Manager change calendar at the current time or a specified time
get_command_invocationReturns detailed information about command execution for an invocation or plugin
get_connection_statusRetrieves the Session Manager connection status for a managed node to determine whether it is running and ready to receive Session Manager connections
get_default_patch_baselineRetrieves the default patch baseline
get_deployable_patch_snapshot_for_instanceRetrieves the current snapshot for the patch baseline the managed node uses
get_documentGets the contents of the specified Amazon Web Services Systems Manager document (SSM document)
get_execution_previewInitiates the process of retrieving an existing preview that shows the effects that running a specified Automation runbook would have on the targeted resources
get_inventoryQuery inventory information
get_inventory_schemaReturn a list of inventory type names for the account, or return a list of attribute names for a specific Inventory item type
get_maintenance_windowRetrieves a maintenance window
get_maintenance_window_executionRetrieves details about a specific a maintenance window execution
get_maintenance_window_execution_taskRetrieves the details about a specific task run as part of a maintenance window execution
get_maintenance_window_execution_task_invocationRetrieves information about a specific task running on a specific target
get_maintenance_window_taskRetrieves the details of a maintenance window task
get_ops_itemGet information about an OpsItem by using the ID
get_ops_metadataView operational metadata related to an application in Application Manager
get_ops_summaryView a summary of operations metadata (OpsData) based on specified filters and aggregators
get_parameterGet information about a single parameter by specifying the parameter name
get_parameter_historyRetrieves the history of all changes to a parameter
get_parametersGet information about one or more parameters by specifying multiple parameter names
get_parameters_by_pathRetrieve information about one or more parameters under a specified level in a hierarchy
get_patch_baselineRetrieves information about a patch baseline
get_patch_baseline_for_patch_groupRetrieves the patch baseline that should be used for the specified patch group
get_resource_policiesReturns an array of the Policy object
get_service_settingServiceSetting is an account-level setting for an Amazon Web Services service
label_parameter_versionA parameter label is a user-defined alias to help you manage different versions of a parameter
list_associationsReturns all State Manager associations in the current Amazon Web Services account and Amazon Web Services Region
list_association_versionsRetrieves all versions of an association for a specific association ID
list_command_invocationsAn invocation is copy of a command sent to a specific managed node
list_commandsLists the commands requested by users of the Amazon Web Services account
list_compliance_itemsFor a specified resource ID, this API operation returns a list of compliance statuses for different resource types
list_compliance_summariesReturns a summary count of compliant and non-compliant resources for a compliance type
list_document_metadata_historyInformation about approval reviews for a version of a change template in Change Manager
list_documentsReturns all Systems Manager (SSM) documents in the current Amazon Web Services account and Amazon Web Services Region
list_document_versionsList all versions for a document
list_inventory_entriesA list of inventory items returned by the request
list_nodesTakes in filters and returns a list of managed nodes matching the filter criteria
list_nodes_summaryGenerates a summary of managed instance/node metadata based on the filters and aggregators you specify
list_ops_item_eventsReturns a list of all OpsItem events in the current Amazon Web Services Region and Amazon Web Services account
list_ops_item_related_itemsLists all related-item resources associated with a Systems Manager OpsCenter OpsItem
list_ops_metadataAmazon Web Services Systems Manager calls this API operation when displaying all Application Manager OpsMetadata objects or blobs
list_resource_compliance_summariesReturns a resource-level summary count
list_resource_data_syncLists your resource data sync configurations
list_tags_for_resourceReturns a list of the tags assigned to the specified resource
modify_document_permissionShares a Amazon Web Services Systems Manager document (SSM document)publicly or privately
put_compliance_itemsRegisters a compliance type and other compliance details on a designated resource
put_inventoryBulk update custom inventory items on one or more managed nodes
put_parameterAdd a parameter to the system
put_resource_policyCreates or updates a Systems Manager resource policy
register_default_patch_baselineDefines the default patch baseline for the relevant operating system
register_patch_baseline_for_patch_groupRegisters a patch baseline for a patch group
register_target_with_maintenance_windowRegisters a target with a maintenance window
register_task_with_maintenance_windowAdds a new task to a maintenance window
remove_tags_from_resourceRemoves tag keys from the specified resource
reset_service_settingServiceSetting is an account-level setting for an Amazon Web Services service
resume_sessionReconnects a session to a managed node after it has been disconnected
send_automation_signalSends a signal to an Automation execution to change the current behavior or status of the execution
send_commandRuns commands on one or more managed nodes
start_associations_onceRuns an association immediately and only one time
start_automation_executionInitiates execution of an Automation runbook
start_change_request_executionCreates a change request for Change Manager
start_execution_previewInitiates the process of creating a preview showing the effects that running a specified Automation runbook would have on the targeted resources
start_sessionInitiates a connection to a target (for example, a managed node) for a Session Manager session
stop_automation_executionStop an Automation that is currently running
terminate_sessionPermanently ends a session and closes the data connection between the Session Manager client and SSM Agent on the managed node
unlabel_parameter_versionRemove a label or labels from a parameter
update_associationUpdates an association
update_association_statusUpdates the status of the Amazon Web Services Systems Manager document (SSM document) associated with the specified managed node
update_documentUpdates one or more values for an SSM document
update_document_default_versionSet the default version of a document
update_document_metadataUpdates information related to approval reviews for a specific version of a change template in Change Manager
update_maintenance_windowUpdates an existing maintenance window
update_maintenance_window_targetModifies the target of an existing maintenance window
update_maintenance_window_taskModifies a task assigned to a maintenance window
update_managed_instance_roleChanges the Identity and Access Management (IAM) role that is assigned to the on-premises server, edge device, or virtual machines (VM)
update_ops_itemEdit or change an OpsItem
update_ops_metadataAmazon Web Services Systems Manager calls this API operation when you edit OpsMetadata in Application Manager
update_patch_baselineModifies an existing patch baseline
update_resource_data_syncUpdate a resource data sync
update_service_settingServiceSetting is an account-level setting for an Amazon Web Services service

Examples

## Not run: svc <- ssm() svc$add_tags_to_resource( Foo = 123 ) ## End(Not run)
  • Maintainer: Dyfan Jones
  • License: Apache License (>= 2.0)
  • Last published: 2025-03-17