EC2 / Client / modify_application_status_check
modify_application_status_check¶
- EC2.Client.modify_application_status_check(**kwargs)¶
Modifies an existing application status check. You can update the protocol, port, path, thresholds, and other configuration settings. The following rules apply:
The application status check must exist and belong to your account.
Changes take effect on the next health check interval.
See also: AWS API Documentation
Request Syntax
response = client.modify_application_status_check( ApplicationStatusCheckId='string', Aggregation='included'|'excluded', HealthCheckPaths=[ { 'Source': { 'SubnetId': 'string', 'SecurityGroupId': 'string' }, 'Destinations': [ { 'SubnetId': 'string', 'SecurityGroupId': 'string' }, ] }, ], Protocol='http'|'https', Port=123, Path='string', DeviceIndex=123, IpVersion='ipv4'|'ipv6', IpScope='private', Interval=123, Timeout=123, FailureThreshold=123, SuccessThreshold=123, StatusCodeMatcher='string', InitializationGracePeriodSeconds=123, ClientToken='string', DryRun=True|False )
- Parameters:
ApplicationStatusCheckId (string) –
[REQUIRED]
The ID of the application status check to modify.
Aggregation (string) – The aggregation setting for the application status check. When set to
included, the result of this check contributes to the instance-level application status reported byDescribeApplicationStatus. When set toexcluded, the check runs independently and does not affect the instance-level status. Valid values:included|excluded.HealthCheckPaths (list) –
The health check paths to use for the application status check.
(dict) –
Describes a health check path for an application status check request.
Source (dict) –
The source for the health check path.
SubnetId (string) –
The ID of the subnet for the source.
SecurityGroupId (string) –
The ID of the security group for the source.
Destinations (list) –
The destinations for the health check path.
(dict) –
Describes a destination for a health check path in a request. Destinations can be in a different Availability Zone than the source (cross-AZ) or in a Local Zone (AZ to Local Zone), enabling remote health validation of your application.
SubnetId (string) –
The ID of the subnet for the destination.
SecurityGroupId (string) –
The ID of the security group for the destination.
Protocol (string) – The protocol to use for the health check. Valid values:
http|https.Port (integer) – The port to use for the health check. Valid values: 1 to 65535.
Path (string) – The URL path to use for the health check HTTP request (for example,
/healthor/status).DeviceIndex (integer) – The index of the network device to use for the health check. The value must be greater than or equal to 0.
IpVersion (string) – The IP version to use for the health check. Valid values:
ipv4andipv6.IpScope (string) – The IP scope to use for the health check. Valid value:
private.Interval (integer) – The interval, in seconds, between health checks. Valid value: 60.
Timeout (integer) – The amount of time, in seconds, to wait for a health check response before considering it failed. Valid values: 1 to 30. The value must be less than
Interval.FailureThreshold (integer) – The number of consecutive failed health checks before the application status is considered impaired. The value must be greater than 0.
SuccessThreshold (integer) – The number of consecutive successful health checks before the application status is considered healthy. The value must be greater than 0.
StatusCodeMatcher (string) – The HTTP status codes that indicate a successful health check response. Specify a comma-separated list of individual status codes or ranges, for example,
200,202,300-399. For a range, the first value must be less than the second value. Maximum length: 64 characters.InitializationGracePeriodSeconds (integer) – The number of seconds to wait before starting health checks after an instance is launched. Valid values: 1 to 600.
ClientToken (string) –
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
This field is autopopulated if not provided.
DryRun (boolean) – 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 isUnauthorizedOperation.
- Return type:
dict
- Returns:
Response Syntax
{ 'ApplicationStatusCheck': { 'ApplicationStatusCheckId': 'string', 'Aggregation': 'included'|'excluded', 'HealthCheckPaths': [ { 'Source': { 'SubnetId': 'string', 'SecurityGroupId': 'string' }, 'Destinations': [ { 'SubnetId': 'string', 'SecurityGroupId': 'string' }, ] }, ], 'Protocol': 'http'|'https', 'Port': 123, 'Path': 'string', 'DeviceIndex': 123, 'IpVersion': 'ipv4'|'ipv6', 'IpScope': 'private', 'Interval': 123, 'Timeout': 123, 'FailureThreshold': 123, 'SuccessThreshold': 123, 'StatusCodeMatcher': 'string', 'InitializationGracePeriodSeconds': 123, 'LastUpdatedAt': datetime(2015, 1, 1), 'TargetTagAssociations': [ { 'Key': 'string', 'Value': 'string' }, ], 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'CreationTime': datetime(2015, 1, 1), 'ModifyTime': datetime(2015, 1, 1), 'DeletionTime': datetime(2015, 1, 1) } }
Response Structure
(dict) –
ApplicationStatusCheck (dict) –
Information about the modified application status check.
ApplicationStatusCheckId (string) –
The ID of the application status check.
Aggregation (string) –
The aggregation setting for the application status check. When set to
included, the result of this check contributes to the instance-level application status. When set toexcluded, the check runs independently and does not affect the instance-level status.HealthCheckPaths (list) –
The health check paths for the application status check.
(dict) –
Describes a health check path for an application status check.
Source (dict) –
The source for the health check path.
SubnetId (string) –
The ID of the subnet for the source.
SecurityGroupId (string) –
The ID of the security group for the source.
Destinations (list) –
The destinations for the health check path.
(dict) –
Describes a destination for a health check path.
SubnetId (string) –
The ID of the subnet for the destination.
SecurityGroupId (string) –
The ID of the security group for the destination.
Protocol (string) –
The protocol used for the health check.
Port (integer) –
The port used for the health check.
Path (string) –
The URL path used for the health check HTTP request.
DeviceIndex (integer) –
The index of the network device used for the health check. The value is greater than or equal to 0.
IpVersion (string) –
The IP version used for the health check.
IpScope (string) –
The IP scope used for the health check.
Interval (integer) –
The interval, in seconds, between health checks. Valid value: 60.
Timeout (integer) –
The amount of time, in seconds, to wait for a health check response. Valid values: 1 to 30.
FailureThreshold (integer) –
The number of consecutive failed health checks before the application status is considered impaired. The value must be greater than 0.
SuccessThreshold (integer) –
The number of consecutive successful health checks before the application status is considered healthy. The value must be greater than 0.
StatusCodeMatcher (string) –
The comma-separated list of individual HTTP status codes or ranges that indicate a successful health check response.
InitializationGracePeriodSeconds (integer) –
The number of seconds to wait before starting health checks after an instance is launched. Valid values: 1 to 600.
LastUpdatedAt (datetime) –
The date and time when the application status check was last updated.
TargetTagAssociations (list) –
The tags associated with the application status check. Instances with these tags are automatically monitored by this check.
(dict) –
Describes a tag key-value pair for an application status check association.
Key (string) –
The key of the tag.
Value (string) –
The value of the tag.
Tags (list) –
The tags assigned to the application status check.
(dict) –
Describes a tag.
Key (string) –
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with
aws:.Value (string) –
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.
CreationTime (datetime) –
The date and time when the application status check was created.
ModifyTime (datetime) –
The date and time when the application status check was last modified.
DeletionTime (datetime) –
The date and time when the application status check was deleted.