describeAppVersionResource method

Future<DescribeAppVersionResourceResponse> describeAppVersionResource({
  1. required String appArn,
  2. required String appVersion,
  3. String? awsAccountId,
  4. String? awsRegion,
  5. LogicalResourceId? logicalResourceId,
  6. String? physicalResourceId,
  7. String? resourceName,
})

Describes a resource of the Resilience Hub application.

  • resourceName
  • logicalResourceId
  • physicalResourceId (Along with physicalResourceId, you can also provide awsAccountId, and awsRegion)

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 appVersion : Resilience Hub application version.

Parameter awsAccountId : Amazon Web Services account that owns the physical resource.

Parameter awsRegion : Amazon Web Services region that owns the physical resource.

Parameter logicalResourceId : Logical identifier of the resource.

Parameter physicalResourceId : Physical identifier of the resource.

Parameter resourceName : Name of the resource.

Implementation

Future<DescribeAppVersionResourceResponse> describeAppVersionResource({
  required String appArn,
  required String appVersion,
  String? awsAccountId,
  String? awsRegion,
  LogicalResourceId? logicalResourceId,
  String? physicalResourceId,
  String? resourceName,
}) async {
  final $payload = <String, dynamic>{
    'appArn': appArn,
    'appVersion': appVersion,
    if (awsAccountId != null) 'awsAccountId': awsAccountId,
    if (awsRegion != null) 'awsRegion': awsRegion,
    if (logicalResourceId != null) 'logicalResourceId': logicalResourceId,
    if (physicalResourceId != null) 'physicalResourceId': physicalResourceId,
    if (resourceName != null) 'resourceName': resourceName,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/describe-app-version-resource',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeAppVersionResourceResponse.fromJson(response);
}