remove_draft_app_version_resource_mappings
async
¶
remove_draft_app_version_resource_mappings(
app_arn: Arn,
*,
config_overrides: Optional[AsyncresiliencehubClientConfig] = None,
resource_names: Optional[EntityNameList] = None,
logical_stack_names: Optional[String255List] = None,
app_registry_app_names: Optional[EntityNameList] = None,
resource_group_names: Optional[EntityNameList] = None,
terraform_source_names: Optional[String255List] = None,
eks_source_names: Optional[String255List] = None,
) -> RemoveDraftAppVersionResourceMappingsResponse
Removes resource mappings from a draft application version.
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_names(Optional[EntityNameList], default:None) –The names of the resources you want to remove from the resource mappings.
-
logical_stack_names(Optional[String255List], default:None) –The names of the CloudFormation stacks you want to remove from the resource mappings.
-
app_registry_app_names(Optional[EntityNameList], default:None) –The names of the registered applications you want to remove from the resource mappings.
-
resource_group_names(Optional[EntityNameList], default:None) –The names of the resource groups you want to remove from the resource mappings.
-
terraform_source_names(Optional[String255List], default:None) –The names of the Terraform sources you want to remove from the resource mappings.
-
eks_source_names(Optional[String255List], default:None) –The names of the Amazon Elastic Kubernetes Service clusters and namespaces you want to remove from the resource mappings.
This parameter accepts values in "eks-cluster/namespace" format.
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
4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 | |