使用 SDK 的 AWS Systems Manager 的代码示例
以下代码示例显示如何将 Systems Manager 与 AWS 软件开发工具包(SDK)一起使用。
基础知识是向您展示如何在服务中执行基本操作的代码示例。
操作是大型程序的代码摘录,必须在上下文中运行。您可以通过操作了解如何调用单个服务函数,还可以通过函数相关场景的上下文查看操作。
有关 AWS SDK 开发人员指南和代码示例的完整列表,请参阅 将 Systems Manager 与 AWS SDK 配合使用。本主题还包括有关入门的信息以及有关先前的 SDK 版本的详细信息。
开始使用
以下代码示例展示了如何开始使用 Systems Manager。
代码示例
- 基础知识
- Hello Systems Manager
- 了解基础知识
- 操作
- 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