Versions in this module Expand all Collapse all v0 v0.51.0 Aug 14, 2025 v0.50.0 Jul 22, 2025 v0.49.0 Jul 15, 2025 v0.48.0 Jun 10, 2025 v0.47.2 Jun 2, 2025 v0.47.1 May 23, 2025 v0.47.0 May 22, 2025 Changes in this version type Shape + Pattern string v0.46.2 May 13, 2025 v0.46.1 May 12, 2025 v0.45.0 May 1, 2025 v0.44.0 Mar 27, 2025 v0.43.2 Feb 20, 2025 v0.43.1 Feb 19, 2025 v0.43.0 Feb 17, 2025 v0.42.0 Feb 6, 2025 Changes in this version + const SDKImportRoot + const ShapeValidationMinVal + const ShapeValidationNested + const ShapeValidationRequired + func AppendDocstring(base, toAdd string) string + func ExpandModelGlobPath(globs ...string) ([]string, error) + func HasCrosslinks(service string) bool + func LogDebug(w io.Writer) + func NewExamplesBuilder() defaultExamplesBuilder + func NewWAFregionalExamplesBuilder() wafregionalExamplesBuilder + func ParamsStructFromJSON(value interface{}, shape *Shape, prefixPackageName bool) string + func S3ManagerUploadInputGoCode(a *API) string + func ServiceID(a *API) string + func ServiceIDFromUID(uid string) string + func ServiceName(a *API) string + func TrimModelServiceVersions(modelPaths []string) (include, exclude []string) + type API struct + BaseCrosslinkURL string + BaseImportPath string + Documentation string + EndpointDiscoveryOp *Operation + Examples Examples + HasAccountIdWithARN bool + HasEndpointARN bool + HasEventStream bool + HasOutpostID bool + IgnoreUnsupportedAPIs bool + Metadata Metadata + NoConstServiceNames bool + NoGenStructFieldAccessors bool + NoInitMethods bool + NoRemoveUnsupportedJSONValue bool + NoRemoveUnusedShapes bool + NoRenameToplevelShapes bool + NoStringerMethods bool + NoValidataShapeMethods bool + Operations map[string]*Operation + Shapes map[string]*Shape + SmokeTests SmokeTestSuite + StrictServiceId bool + Waiters []Waiter + WithGeneratedTypedErrors bool + func (a *API) APIErrorsGoCode() string + func (a *API) APIEventStreamTestGoCode() string + func (a *API) APIGoCode() string + func (a *API) APIName() string + func (a *API) APISmokeTestsGoCode() string + func (a *API) AddImport(v string) error + func (a *API) AddSDKImport(v ...string) error + func (a *API) Attach(filename string) error + func (a *API) AttachDocs(filename string) error + func (a *API) AttachExamples(filename string) error + func (a *API) AttachPaginators(filename string) error + func (a *API) AttachSmokeTests(filename string) error + func (a *API) AttachString(str string) error + func (a *API) AttachWaiters(filename string) error + func (a *API) ExampleGoCode() string + func (a *API) ExamplesGoCode() string + func (a *API) ExportableName(name string) string + func (a *API) GetCrosslinkURL(params ...string) string + func (a *API) ImportPath() string + func (a *API) InterfaceGoCode() string + func (a *API) InterfacePackageName() string + func (a *API) NewAPIGoCodeWithPkgName(cfg string) string + func (a *API) NiceName() string + func (a *API) OperationForMethod(name string) *Operation + func (a *API) OperationHasOutputPlaceholder() bool + func (a *API) OperationList() []*Operation + func (a *API) OperationNames() []string + func (a *API) PackageName() string + func (a *API) ProtocolPackage() string + func (a *API) ServiceGoCode() string + func (a *API) ServicePackageDoc() string + func (a *API) Setup() error + func (a *API) ShapeList() []*Shape + func (a *API) ShapeListErrors() []*Shape + func (a *API) ShapeNames() []string + func (a *API) StructName() string + func (a *API) UseInitMethods() bool + func (a *API) WaitersGoCode() string + type APIs map[string]*API + type AuthType string + const NoneAuthType + const V4UnsignedBodyAuthType + type Comments struct + Input map[string]interface{} + Output map[string]interface{} + type EndpointDiscovery struct + Required bool + type EndpointTrait struct + HostPrefix string + type ErrorInfo struct + Code string + HTTPStatusCode int + Type string + type Event struct + For *EventStream + Name string + Private bool + Shape *Shape + type EventStream struct + Events []*Event + Exceptions []*Event + Name string + Shape *Shape + func (es *EventStream) EventGroupName() string + func (es *EventStream) StreamEventTypeGetterName() string + func (es *EventStream) StreamReaderAPIName() string + func (es *EventStream) StreamReaderImplConstructorName() string + func (es *EventStream) StreamReaderImplName() string + func (es *EventStream) StreamUnknownEventName() string + func (es *EventStream) StreamUnmarshalerForEventName() string + func (es *EventStream) StreamWriterAPIName() string + func (es *EventStream) StreamWriterImplName() string + type EventStreamAPI struct + API *API + InputStream *EventStream + Legacy bool + Name string + Operation *Operation + OutputStream *EventStream + RequireHTTP2 bool + func (e EventStreamAPI) OutputMemberName() string + func (es *EventStreamAPI) StreamInputEventTypeGetterName() string + func (es *EventStreamAPI) StreamOutputUnmarshalerForEventName() string + func (esAPI *EventStreamAPI) ShapeDoc() string + type EventStreamHeaderTypeMap struct + Header string + Member string + type EventStreams map[*Shape]*EventStream + func (es *EventStreams) GetStream(topShape *Shape, streamShape *Shape) *EventStream + type Example struct + API *API + Builder examplesBuilder + Comments Comments + Description string + ID string + Index string + Input map[string]interface{} + Operation *Operation + OperationName string + Output map[string]interface{} + Title string + VisitedErrors map[string]struct{} + func (ex *Example) HasVisitedError(errRef *ShapeRef) bool + func (ex *Example) MethodName() string + func (ex Example) GoCode() string + type Examples map[string][]Example + func (exs Examples) GoCode() string + func (exs Examples) Names() []string + type ExamplesDefinition struct + Examples Examples + type HTTPChecksum struct + RequestAlgorithmMember string + RequestChecksumRequired bool + RequestValidationModeMember string + type HTTPInfo struct + Method string + RequestURI string + ResponseCode uint + type IoSuffix map[string]map[string]struct + func (i IoSuffix) LegacyIOSuffix(a *API, shapeName string) bool + type Loader struct + BaseImport string + IgnoreUnsupportedAPIs bool + StrictServiceId bool + func (l Loader) Load(modelPaths []string) (APIs, error) + type Metadata struct + APIVersion string + AWSQueryCompatible *awsQueryCompatible + EndpointPrefix string + EndpointsID string + JSONVersion string + NoResolveEndpoint bool + Protocol string + ProtocolSettings ProtocolSettings + ServiceAbbreviation string + ServiceFullName string + ServiceID string + SignatureVersion string + SigningName string + TargetPrefix string + UID string + type Operation struct + API *API + AuthType AuthType + CustomBuildHandlers []string + Deprecated bool + DeprecatedMsg string + Documentation string + Endpoint *EndpointTrait + EndpointDiscovery *EndpointDiscovery + ErrorRefs []ShapeRef + EventStreamAPI *EventStreamAPI + ExportedName string + HTTPChecksum HTTPChecksum + Host string + InputRef ShapeRef + IsEndpointDiscoveryOp bool + IsHttpChecksumRequired bool + Name string + OutputRef ShapeRef + Paginator *Paginator + func (o *Operation) Example() string + func (o *Operation) ExampleInput() string + func (o *Operation) GetSigner() string + func (o *Operation) GoCode() string + func (o *Operation) HasAccountIDMemberWithARN() bool + func (o *Operation) HasInput() bool + func (o *Operation) HasOutput() bool + func (o *Operation) InterfaceSignature() string + func (o *Operation) Methods() []string + func (o *Operation) RequestChecksumRequired() bool + func (o *Operation) ShouldDiscardResponse() bool + func (o *Operation) ShouldSignRequestBody() bool + type Paginator struct + InputTokens interface{} + LimitKey string + MoreResults string + OutputTokens interface{} + func (p *Paginator) InputTokensString() string + func (p *Paginator) OutputTokensString() string + type ProtocolSettings struct + HTTP2 string + type Shape struct + API *API + AliasedShapeName bool + DefaultValue string + Deprecated bool + DeprecatedMsg string + Document bool + Documentation string + Enum []string + EnumConsts []string + ErrorInfo ErrorInfo + EventFor map[string]*EventStream + EventStream *EventStream + Exception bool + Flattened bool + HasAccountIdMemberWithARN bool + HasEndpointARNMember bool + HasOutpostIDMember bool + IdempotencyToken bool + IsEvent bool + IsEventStream bool + IsInputEventStream bool + IsOutputEventStream bool + KeyRef ShapeRef + Location string + LocationName string + MemberRef ShapeRef + MemberRefs map[string]*ShapeRef + Min float64 + OrigShapeName string + OriginalShapeName string + OutputEventStreamAPI *EventStreamAPI + Payload string + Placeholder bool + RealType string + Refs []*ShapeRef + Required []string + Sensitive bool + ShapeName string + Streaming bool + TimestampFormat string + Type string + UsedAsInput bool + UsedAsOutput bool + Validations ShapeValidations + ValueRef ShapeRef + XMLNamespace XMLInfo + func (s *Shape) Clone(newName string) *Shape + func (s *Shape) Docstring() string + func (s *Shape) EnumName(n int) string + func (s *Shape) ErrorCodeName() string + func (s *Shape) ErrorName() string + func (s *Shape) GetModeledMember(name string) *ShapeRef + func (s *Shape) GoCode() string + func (s *Shape) GoCodeStringers() string + func (s *Shape) GoStructType(name string, ref *ShapeRef) string + func (s *Shape) GoStructValueType(name string, ref *ShapeRef) string + func (s *Shape) GoTags(root, required bool) string + func (s *Shape) GoType() string + func (s *Shape) GoTypeElem() string + func (s *Shape) GoTypeWithPkgName() string + func (s *Shape) GoTypeWithPkgNameElem() string + func (s *Shape) HasDefaultValue() bool + func (s *Shape) HasHostLabelMembers() bool + func (s *Shape) HasMember(name string) bool + func (s *Shape) HasPayloadMembers() bool + func (s *Shape) IsEnum() bool + func (s *Shape) IsInternal() bool + func (s *Shape) IsRequired(member string) bool + func (s *Shape) IsSensitive() bool + func (s *Shape) MemberNames() []string + func (s *Shape) NestedShape() *Shape + func (s *Shape) PayloadRefName() string + func (s *Shape) Rename(newName string) + func (s *Shape) WillRefBeBase64Encoded(refName string) bool + func (s Shape) GetTimestampFormat() string + type ShapeRef struct + API *API + AccountIDMemberWithARN bool + CustomTags ShapeTags + DefaultValue string + Deprecated bool + DeprecatedMsg string + Documentation string + EndpointARN bool + EndpointDiscoveryID bool + Flattened bool + GenerateGetter bool + HostLabel bool + IdempotencyToken bool + Ignore bool + IsEventHeader bool + IsEventPayload bool + JSONValue bool + Location string + LocationName string + OrigShapeName string + OriginalMemberName string + OutpostIDMember bool + Payload string + QueryName string + Shape *Shape + ShapeName string + Streaming bool + SuppressedJSONValue bool + TimestampFormat string + XMLAttribute bool + XMLNamespace XMLInfo + func (ref *ShapeRef) CanBeEmpty() bool + func (ref *ShapeRef) Docstring() string + func (ref *ShapeRef) GoTags(toplevel bool, isRequired bool) string + func (ref *ShapeRef) GoType() string + func (ref *ShapeRef) GoTypeElem() string + func (ref *ShapeRef) GoTypeWithPkgName() string + func (ref *ShapeRef) IndentedDocstring() string + func (ref ShapeRef) GetTimestampFormat() string + func (s *ShapeRef) HasDefaultValue() bool + func (s *ShapeRef) UseIndirection() bool + type ShapeTag struct + Key string + Val string + func (s ShapeTag) String() string + type ShapeTags []ShapeTag + func (s ShapeTags) Join(sep string) string + func (s ShapeTags) String() string + type ShapeValidation struct + Name string + Ref *ShapeRef + Type ShapeValidationType + func (sv ShapeValidation) GoCode() string + type ShapeValidationType int + type ShapeValidations []ShapeValidation + func (vs ShapeValidations) GoCode(shape *Shape) string + func (vs ShapeValidations) Has(ref *ShapeRef, typ ShapeValidationType) bool + type ShapeValueBuilder struct + Base64BlobValues bool + ParseTimeString func(ref *ShapeRef, memberName, v string) string + func NewShapeValueBuilder() ShapeValueBuilder + func (b ShapeValueBuilder) BuildComplex(name, memName string, ref *ShapeRef, parent *Shape, v map[string]interface{}) string + func (b ShapeValueBuilder) BuildList(name, memName string, ref *ShapeRef, v []interface{}) string + func (b ShapeValueBuilder) BuildScalar(name, memName string, ref *ShapeRef, shape interface{}, isPayload bool) string + func (b ShapeValueBuilder) BuildShape(ref *ShapeRef, shapes map[string]interface{}, isMap bool) string + func (b ShapeValueBuilder) GoType(ref *ShapeRef, elem bool) string + type SmokeTestCase struct + ExpectErr bool + Input map[string]interface{} + OpName string + func (c SmokeTestCase) BuildInputShape(ref *ShapeRef) string + type SmokeTestSuite struct + DefaultRegion string + TestCases []SmokeTestCase + Version int + type UnsupportedAPIModelError struct + Err error + func (e UnsupportedAPIModelError) Error() string + type Waiter struct + Acceptors []WaiterAcceptor + Delay int + MaxAttempts int + Name string + Operation *Operation + OperationName string + func (w *Waiter) GoCode() string + func (w *Waiter) InterfaceSignature() string + type WaiterAcceptor struct + Argument string + Expected interface{} + Matcher string + State string + func (a *WaiterAcceptor) ExpectedString() string + type XMLInfo struct + Prefix string + URI string