removeDraftAppVersionResourceMappings method
Removes resource mappings from a draft application version.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter appArn :
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.
Parameter appRegistryAppNames :
The names of the registered applications you want to remove from the
resource mappings.
Parameter eksSourceNames :
The names of the Amazon Elastic Kubernetes Service clusters and namespaces
you want to remove from the resource mappings.
Parameter logicalStackNames :
The names of the CloudFormation stacks you want to remove from the
resource mappings.
Parameter resourceGroupNames :
The names of the resource groups you want to remove from the resource
mappings.
Parameter resourceNames :
The names of the resources you want to remove from the resource mappings.
Parameter terraformSourceNames :
The names of the Terraform sources you want to remove from the resource
mappings.
Implementation
Future<RemoveDraftAppVersionResourceMappingsResponse>
removeDraftAppVersionResourceMappings({
required String appArn,
List<String>? appRegistryAppNames,
List<String>? eksSourceNames,
List<String>? logicalStackNames,
List<String>? resourceGroupNames,
List<String>? resourceNames,
List<String>? terraformSourceNames,
}) async {
final $payload = <String, dynamic>{
'appArn': appArn,
if (appRegistryAppNames != null)
'appRegistryAppNames': appRegistryAppNames,
if (eksSourceNames != null) 'eksSourceNames': eksSourceNames,
if (logicalStackNames != null) 'logicalStackNames': logicalStackNames,
if (resourceGroupNames != null) 'resourceGroupNames': resourceGroupNames,
if (resourceNames != null) 'resourceNames': resourceNames,
if (terraformSourceNames != null)
'terraformSourceNames': terraformSourceNames,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/remove-draft-app-version-resource-mappings',
exceptionFnMap: _exceptionFns,
);
return RemoveDraftAppVersionResourceMappingsResponse.fromJson(response);
}