describe_association
¶
describe_association(
*,
config_overrides: Optional[SSMClientConfig] = 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/ssm.py
2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 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 | |