describeFargateProfile method
Returns descriptive information about an AWS Fargate profile.
May throw InvalidParameterException. May throw ClientException. May throw ServerException. May throw ResourceNotFoundException.
Parameter clusterName
:
The name of the Amazon EKS cluster associated with the Fargate profile.
Parameter fargateProfileName
:
The name of the Fargate profile to describe.
Implementation
Future<DescribeFargateProfileResponse> describeFargateProfile({
required String clusterName,
required String fargateProfileName,
}) async {
ArgumentError.checkNotNull(clusterName, 'clusterName');
ArgumentError.checkNotNull(fargateProfileName, 'fargateProfileName');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/clusters/${Uri.encodeComponent(clusterName)}/fargate-profiles/${Uri.encodeComponent(fargateProfileName)}',
exceptionFnMap: _exceptionFns,
);
return DescribeFargateProfileResponse.fromJson(response);
}