deleteAppInputSource method

Future<DeleteAppInputSourceResponse> deleteAppInputSource({
  1. required String appArn,
  2. String? clientToken,
  3. EksSourceClusterNamespace? eksSourceClusterNamespace,
  4. String? sourceArn,
  5. TerraformSource? terraformSource,
})

Deletes the input source and all of its imported resources from the Resilience Hub application.

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 clientToken : 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.

Parameter eksSourceClusterNamespace : The namespace on your Amazon Elastic Kubernetes Service cluster that you want to delete from the Resilience Hub application.

Parameter sourceArn : The Amazon Resource Name (ARN) of the imported resource you want to remove from the Resilience Hub application. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.

Parameter terraformSource : The imported Terraform s3 state file you want to remove from the Resilience Hub application.

Implementation

Future<DeleteAppInputSourceResponse> deleteAppInputSource({
  required String appArn,
  String? clientToken,
  EksSourceClusterNamespace? eksSourceClusterNamespace,
  String? sourceArn,
  TerraformSource? terraformSource,
}) async {
  final $payload = <String, dynamic>{
    'appArn': appArn,
    'clientToken': clientToken ?? _s.generateIdempotencyToken(),
    if (eksSourceClusterNamespace != null)
      'eksSourceClusterNamespace': eksSourceClusterNamespace,
    if (sourceArn != null) 'sourceArn': sourceArn,
    if (terraformSource != null) 'terraformSource': terraformSource,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/delete-app-input-source',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteAppInputSourceResponse.fromJson(response);
}