describe_association
async
¶
describe_association(
*,
config_overrides: Optional[AsyncSSMClientConfig] = None,
name: Optional[DocumentARN] = None,
instance_id: Optional[InstanceId] = None,
association_id: Optional[AssociationId] = None,
association_version: Optional[AssociationVersion] = None,
) -> DescribeAssociationResult
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.
Parameters:
-
name(Optional[DocumentARN], default:None) –The name of the SSM document.
-
instance_id(Optional[InstanceId], default:None) –The managed node ID.
-
association_id(Optional[AssociationId], default:None) –The association ID for which you want information.
-
association_version(Optional[AssociationVersion], default:None) –Specify the association version to retrieve. To view the latest version, either specify
$LATESTfor this parameter, or omit this parameter. To view a list of all associations for a managed node, use ListAssociations. To get a list of versions for a specific association, use ListAssociationVersions.
Raises:
-
AssociationDoesNotExist–The specified association doesn't exist.
-
InternalServerError–An error occurred on the server side.
-
InvalidAssociationVersion–The version you specified isn't valid. Use ListAssociationVersions to view all versions of an association according to the association ID. Or, use the
$LATESTparameter to view the latest version of the association. -
InvalidDocument–The specified SSM document doesn't exist.
-
InvalidInstanceId–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, andStopping. Invalid states are:Shutting-downandTerminated.
-
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/async_ssm.py
3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 | |