update_application
async
¶
update_application(
resource_group_name: ResourceGroupName,
*,
config_overrides: Optional[AsyncApplicationInsightsClientConfig] = None,
ops_center_enabled: Optional[OpsCenterEnabled] = None,
cwe_monitor_enabled: Optional[CWEMonitorEnabled] = None,
ops_item_sns_topic_arn: Optional[OpsItemSNSTopicArn] = None,
sns_notification_arn: Optional[SNSNotificationArn] = None,
remove_sns_topic: Optional[RemoveSNSTopic] = None,
auto_config_enabled: Optional[AutoConfigEnabled] = None,
attach_missing_permission: Optional[AttachMissingPermission] = None,
) -> UpdateApplicationResponse
Updates the application.
Parameters:
-
resource_group_name(ResourceGroupName) –The name of the resource group.
-
ops_center_enabled(Optional[OpsCenterEnabled], default:None) –When set to
true, creates opsItems for any problems detected on an application. -
cwe_monitor_enabled(Optional[CWEMonitorEnabled], default:None) –Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as
instance terminated,failed deployment, and others. -
ops_item_sns_topic_arn(Optional[OpsItemSNSTopicArn], default:None) –The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.
-
sns_notification_arn(Optional[SNSNotificationArn], default:None) –The SNS topic ARN. Allows you to receive SNS notifications for updates and issues with an application.
-
remove_sns_topic(Optional[RemoveSNSTopic], default:None) –Disassociates the SNS topic from the opsItem created for detected problems.
-
auto_config_enabled(Optional[AutoConfigEnabled], default:None) –Turns auto-configuration on or off.
-
attach_missing_permission(Optional[AttachMissingPermission], default:None) –If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.
Raises:
-
InternalServerException–The server encountered an internal error and is unable to complete the request.
-
ResourceNotFoundException–The resource does not exist in the customer account.
-
ValidationException–The parameter is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_application_insights/_services/async_application_insights.py
2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 | |