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
2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 | |