resolve method

ResolvedServiceTrait resolve(
  1. ShapeId target
)

Resolves the service trait definition for the given target service shape.

Implementation

ResolvedServiceTrait resolve(ShapeId target) {
  final arnNamespace = this.arnNamespace ?? target.shape.toLowerCase();
  return ResolvedServiceTrait(
    sdkId: sdkId,
    cloudFormationName: cloudFormationName ?? target.shape,
    arnNamespace: arnNamespace,
    cloudTrailEventSource:
        cloudTrailEventSource ?? '$arnNamespace.amazonaws.com',
    endpointPrefix: endpointPrefix ?? arnNamespace,
  );
}