Skip to content

EC2  >  Operations  >  disassociate_application_status_check

disassociate_application_status_check

Operation

disassociate_application_status_check async

disassociate_application_status_check(input: DisassociateApplicationStatusCheckInput, plugins: list[Plugin] | None = None) -> DisassociateApplicationStatusCheckOutput

Disassociates an application status check from instances or tags. After disassociation, health monitoring stops for the affected instances. The following rules apply:

  • You must specify either TargetTagAssociations or InstanceIds, but not both. Specifying both results in an InvalidParameterCombination error.

  • The application status check must already exist and belong to your account.

  • Tag keys must not be blank.

Parameters:

Name Type Description Default
input DisassociateApplicationStatusCheckInput

An instance of DisassociateApplicationStatusCheckInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DisassociateApplicationStatusCheckOutput

An instance of DisassociateApplicationStatusCheckOutput.

Input

DisassociateApplicationStatusCheckInput dataclass

Bases: _SerdeShape

Dataclass for DisassociateApplicationStatusCheckInput structure.

Attributes

application_status_check_id class-attribute instance-attribute
application_status_check_id: str | None = ...

The ID of the application status check to disassociate.

client_token class-attribute instance-attribute
client_token: str | None = ...

A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you retry a request with the same token, the service ignores the request but does not return an error. For more information, see Ensuring idempotency.

This field is autopopulated if not provided.

dry_run class-attribute instance-attribute
dry_run: bool | None = ...

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

instance_ids class-attribute instance-attribute
instance_ids: list[str] | None = ...

The IDs of the instances to disassociate from the application status check.

target_tag_associations class-attribute instance-attribute
target_tag_associations: list[CustomTagKeyValueRequestPair] | None = ...

The tags to disassociate from the application status check. Specify the same key-value pairs that were used during association.

Output

DisassociateApplicationStatusCheckOutput dataclass

Bases: _SerdeShape

Dataclass for DisassociateApplicationStatusCheckOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

successful_results class-attribute instance-attribute
successful_results: list[SuccessfulAssociationResponseObject] | None = ...

The associations that were successfully removed.

unsuccessful_results class-attribute instance-attribute
unsuccessful_results: list[UnsuccessfulAssociationResponseObject] | None = ...

The associations that failed to be removed.