Code examples for Systems Manager using AWS SDKs
The following code examples show how to use Systems Manager with an AWS software development kit (SDK).
Basics are code examples that show you how to perform the essential operations within a service.
Actions are code excerpts from larger programs and must be run in context. While actions show you how to call individual service functions, you can see actions in context in their related scenarios.
For a complete list of AWS SDK developer guides and code examples, see Using this service with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.
Get started
The following code examples show how to get started using Systems Manager.
Code examples
- Basics
- Hello Systems Manager
- Learn the basics
- Actions
- AddTagsToResource
- CancelCommand
- CreateActivation
- CreateAssociation
- CreateAssociationBatch
- CreateDocument
- CreateMaintenanceWindow
- CreateOpsItem
- CreatePatchBaseline
- DeleteActivation
- DeleteAssociation
- DeleteDocument
- DeleteMaintenanceWindow
- DeleteOpsItem
- DeleteParameter
- DeletePatchBaseline
- DeregisterManagedInstance
- DeregisterPatchBaselineForPatchGroup
- DeregisterTargetFromMaintenanceWindow
- DeregisterTaskFromMaintenanceWindow
- DescribeActivations
- DescribeAssociation
- DescribeAssociationExecutionTargets
- DescribeAssociationExecutions
- DescribeAutomationExecutions
- DescribeAutomationStepExecutions
- DescribeAvailablePatches
- DescribeDocument
- DescribeDocumentPermission
- DescribeEffectiveInstanceAssociations
- DescribeEffectivePatchesForPatchBaseline
- DescribeInstanceAssociationsStatus
- DescribeInstanceInformation
- DescribeInstancePatchStates
- DescribeInstancePatchStatesForPatchGroup
- DescribeInstancePatches
- DescribeMaintenanceWindowExecutionTaskInvocations
- DescribeMaintenanceWindowExecutionTasks
- DescribeMaintenanceWindowExecutions
- DescribeMaintenanceWindowTargets
- DescribeMaintenanceWindowTasks
- DescribeMaintenanceWindows
- DescribeOpsItems
- DescribeParameters
- DescribePatchBaselines
- DescribePatchGroupState
- DescribePatchGroups
- GetAutomationExecution
- GetCommandInvocation
- GetConnectionStatus
- GetDefaultPatchBaseline
- GetDeployablePatchSnapshotForInstance
- GetDocument
- GetInventory
- GetInventorySchema
- GetMaintenanceWindow
- GetMaintenanceWindowExecution
- GetMaintenanceWindowExecutionTask
- GetParameter
- GetParameterHistory
- GetParameters
- GetPatchBaseline
- GetPatchBaselineForPatchGroup
- ListAssociationVersions
- ListAssociations
- ListCommandInvocations
- ListCommands
- ListComplianceItems
- ListComplianceSummaries
- ListDocumentVersions
- ListDocuments
- ListInventoryEntries
- ListResourceComplianceSummaries
- ListTagsForResource
- ModifyDocumentPermission
- PutComplianceItems
- PutInventory
- PutParameter
- RegisterDefaultPatchBaseline
- RegisterPatchBaselineForPatchGroup
- RegisterTargetWithMaintenanceWindow
- RegisterTaskWithMaintenanceWindow
- RemoveTagsFromResource
- SendCommand
- StartAutomationExecution
- StartSession
- StopAutomationExecution
- UpdateAssociation
- UpdateAssociationStatus
- UpdateDocument
- UpdateDocumentDefaultVersion
- UpdateMaintenanceWindow
- UpdateManagedInstanceRole
- UpdateOpsItem
- UpdatePatchBaseline