delete_app_version_resource
async
¶
delete_app_version_resource(
app_arn: Arn,
*,
config_overrides: Optional[AsyncresiliencehubClientConfig] = None,
resource_name: Optional[EntityName] = None,
logical_resource_id: Optional[LogicalResourceId] = None,
physical_resource_id: Optional[String2048] = None,
aws_region: Optional[AwsRegion] = None,
aws_account_id: Optional[CustomerId] = None,
client_token: Optional[ClientToken] = None,
) -> DeleteAppVersionResourceResponse
Deletes a resource from the Resilience Hub application.
-
You can only delete a manually added resource. To exclude non-manually added resources, use the
UpdateAppVersionResourceAPI. -
This action has no effect outside Resilience Hub.
-
This API updates the Resilience Hub application draft version. To use this resource for running resiliency assessments, you must publish the Resilience Hub application using the
PublishAppVersionAPI.
Parameters:
-
app_arn(Arn) –Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide. -
resource_name(Optional[EntityName], default:None) –Name of the resource.
-
logical_resource_id(Optional[LogicalResourceId], default:None) –Logical identifier of the resource.
-
physical_resource_id(Optional[String2048], default:None) –Physical identifier of the resource.
-
aws_region(Optional[AwsRegion], default:None) –Amazon Web Services region that owns the physical resource.
-
aws_account_id(Optional[CustomerId], default:None) –Amazon Web Services account that owns the physical resource.
-
client_token(Optional[ClientToken], default:None) –Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
Raises:
-
AccessDeniedException–You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions.
-
ConflictException–This exception occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.
-
InternalServerException–This exception occurs when there is an internal failure in the Resilience Hub service.
-
ResourceNotFoundException–This exception occurs when the specified resource could not be found.
-
ThrottlingException–This exception occurs when you have exceeded the limit on the number of requests per second.
-
ValidationException–This exception occurs when a request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_resiliencehub/_services/async_resiliencehub.py
1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 | |