id
int32
0
167k
repo
stringlengths
5
54
path
stringlengths
4
155
func_name
stringlengths
1
118
original_string
stringlengths
52
85.5k
language
stringclasses
1 value
code
stringlengths
52
85.5k
code_tokens
sequencelengths
21
1.41k
docstring
stringlengths
6
2.61k
docstring_tokens
sequencelengths
3
215
sha
stringlengths
40
40
url
stringlengths
85
252
2,700
aws/aws-sdk-go
service/licensemanager/api.go
SetEnableIntegration
func (s *OrganizationConfiguration) SetEnableIntegration(v bool) *OrganizationConfiguration { s.EnableIntegration = &v return s }
go
func (s *OrganizationConfiguration) SetEnableIntegration(v bool) *OrganizationConfiguration { s.EnableIntegration = &v return s }
[ "func", "(", "s", "*", "OrganizationConfiguration", ")", "SetEnableIntegration", "(", "v", "bool", ")", "*", "OrganizationConfiguration", "{", "s", ".", "EnableIntegration", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetEnableIntegration sets the EnableIntegration field's value.
[ "SetEnableIntegration", "sets", "the", "EnableIntegration", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/licensemanager/api.go#L2884-L2887
2,701
aws/aws-sdk-go
service/licensemanager/api.go
SetResourceOwningAccountId
func (s *ResourceInventory) SetResourceOwningAccountId(v string) *ResourceInventory { s.ResourceOwningAccountId = &v return s }
go
func (s *ResourceInventory) SetResourceOwningAccountId(v string) *ResourceInventory { s.ResourceOwningAccountId = &v return s }
[ "func", "(", "s", "*", "ResourceInventory", ")", "SetResourceOwningAccountId", "(", "v", "string", ")", "*", "ResourceInventory", "{", "s", ".", "ResourceOwningAccountId", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetResourceOwningAccountId sets the ResourceOwningAccountId field's value.
[ "SetResourceOwningAccountId", "sets", "the", "ResourceOwningAccountId", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/licensemanager/api.go#L2947-L2950
2,702
aws/aws-sdk-go
service/licensemanager/api.go
SetLicenseConfigurationStatus
func (s *UpdateLicenseConfigurationInput) SetLicenseConfigurationStatus(v string) *UpdateLicenseConfigurationInput { s.LicenseConfigurationStatus = &v return s }
go
func (s *UpdateLicenseConfigurationInput) SetLicenseConfigurationStatus(v string) *UpdateLicenseConfigurationInput { s.LicenseConfigurationStatus = &v return s }
[ "func", "(", "s", "*", "UpdateLicenseConfigurationInput", ")", "SetLicenseConfigurationStatus", "(", "v", "string", ")", "*", "UpdateLicenseConfigurationInput", "{", "s", ".", "LicenseConfigurationStatus", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetLicenseConfigurationStatus sets the LicenseConfigurationStatus field's value.
[ "SetLicenseConfigurationStatus", "sets", "the", "LicenseConfigurationStatus", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/licensemanager/api.go#L3186-L3189
2,703
aws/aws-sdk-go
service/licensemanager/api.go
SetAddLicenseSpecifications
func (s *UpdateLicenseSpecificationsForResourceInput) SetAddLicenseSpecifications(v []*LicenseSpecification) *UpdateLicenseSpecificationsForResourceInput { s.AddLicenseSpecifications = v return s }
go
func (s *UpdateLicenseSpecificationsForResourceInput) SetAddLicenseSpecifications(v []*LicenseSpecification) *UpdateLicenseSpecificationsForResourceInput { s.AddLicenseSpecifications = v return s }
[ "func", "(", "s", "*", "UpdateLicenseSpecificationsForResourceInput", ")", "SetAddLicenseSpecifications", "(", "v", "[", "]", "*", "LicenseSpecification", ")", "*", "UpdateLicenseSpecificationsForResourceInput", "{", "s", ".", "AddLicenseSpecifications", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAddLicenseSpecifications sets the AddLicenseSpecifications field's value.
[ "SetAddLicenseSpecifications", "sets", "the", "AddLicenseSpecifications", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/licensemanager/api.go#L3288-L3291
2,704
aws/aws-sdk-go
service/licensemanager/api.go
SetRemoveLicenseSpecifications
func (s *UpdateLicenseSpecificationsForResourceInput) SetRemoveLicenseSpecifications(v []*LicenseSpecification) *UpdateLicenseSpecificationsForResourceInput { s.RemoveLicenseSpecifications = v return s }
go
func (s *UpdateLicenseSpecificationsForResourceInput) SetRemoveLicenseSpecifications(v []*LicenseSpecification) *UpdateLicenseSpecificationsForResourceInput { s.RemoveLicenseSpecifications = v return s }
[ "func", "(", "s", "*", "UpdateLicenseSpecificationsForResourceInput", ")", "SetRemoveLicenseSpecifications", "(", "v", "[", "]", "*", "LicenseSpecification", ")", "*", "UpdateLicenseSpecificationsForResourceInput", "{", "s", ".", "RemoveLicenseSpecifications", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetRemoveLicenseSpecifications sets the RemoveLicenseSpecifications field's value.
[ "SetRemoveLicenseSpecifications", "sets", "the", "RemoveLicenseSpecifications", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/licensemanager/api.go#L3294-L3297
2,705
aws/aws-sdk-go
service/pinpointsmsvoice/api.go
SetLogGroupArn
func (s *CloudWatchLogsDestination) SetLogGroupArn(v string) *CloudWatchLogsDestination { s.LogGroupArn = &v return s }
go
func (s *CloudWatchLogsDestination) SetLogGroupArn(v string) *CloudWatchLogsDestination { s.LogGroupArn = &v return s }
[ "func", "(", "s", "*", "CloudWatchLogsDestination", ")", "SetLogGroupArn", "(", "v", "string", ")", "*", "CloudWatchLogsDestination", "{", "s", ".", "LogGroupArn", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetLogGroupArn sets the LogGroupArn field's value.
[ "SetLogGroupArn", "sets", "the", "LogGroupArn", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/pinpointsmsvoice/api.go#L805-L808
2,706
aws/aws-sdk-go
service/pinpointsmsvoice/api.go
SetDeliveryStreamArn
func (s *KinesisFirehoseDestination) SetDeliveryStreamArn(v string) *KinesisFirehoseDestination { s.DeliveryStreamArn = &v return s }
go
func (s *KinesisFirehoseDestination) SetDeliveryStreamArn(v string) *KinesisFirehoseDestination { s.DeliveryStreamArn = &v return s }
[ "func", "(", "s", "*", "KinesisFirehoseDestination", ")", "SetDeliveryStreamArn", "(", "v", "string", ")", "*", "KinesisFirehoseDestination", "{", "s", ".", "DeliveryStreamArn", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDeliveryStreamArn sets the DeliveryStreamArn field's value.
[ "SetDeliveryStreamArn", "sets", "the", "DeliveryStreamArn", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/pinpointsmsvoice/api.go#L1276-L1279
2,707
aws/aws-sdk-go
service/pinpointsmsvoice/api.go
SetCallerId
func (s *SendVoiceMessageInput) SetCallerId(v string) *SendVoiceMessageInput { s.CallerId = &v return s }
go
func (s *SendVoiceMessageInput) SetCallerId(v string) *SendVoiceMessageInput { s.CallerId = &v return s }
[ "func", "(", "s", "*", "SendVoiceMessageInput", ")", "SetCallerId", "(", "v", "string", ")", "*", "SendVoiceMessageInput", "{", "s", ".", "CallerId", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCallerId sets the CallerId field's value.
[ "SetCallerId", "sets", "the", "CallerId", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/pinpointsmsvoice/api.go#L1477-L1480
2,708
aws/aws-sdk-go
service/pinpointsmsvoice/api.go
SetOriginationPhoneNumber
func (s *SendVoiceMessageInput) SetOriginationPhoneNumber(v string) *SendVoiceMessageInput { s.OriginationPhoneNumber = &v return s }
go
func (s *SendVoiceMessageInput) SetOriginationPhoneNumber(v string) *SendVoiceMessageInput { s.OriginationPhoneNumber = &v return s }
[ "func", "(", "s", "*", "SendVoiceMessageInput", ")", "SetOriginationPhoneNumber", "(", "v", "string", ")", "*", "SendVoiceMessageInput", "{", "s", ".", "OriginationPhoneNumber", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetOriginationPhoneNumber sets the OriginationPhoneNumber field's value.
[ "SetOriginationPhoneNumber", "sets", "the", "OriginationPhoneNumber", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/pinpointsmsvoice/api.go#L1501-L1504
2,709
aws/aws-sdk-go
service/pinpointsmsvoice/api.go
SetCallInstructionsMessage
func (s *VoiceMessageContent) SetCallInstructionsMessage(v *CallInstructionsMessageType) *VoiceMessageContent { s.CallInstructionsMessage = v return s }
go
func (s *VoiceMessageContent) SetCallInstructionsMessage(v *CallInstructionsMessageType) *VoiceMessageContent { s.CallInstructionsMessage = v return s }
[ "func", "(", "s", "*", "VoiceMessageContent", ")", "SetCallInstructionsMessage", "(", "v", "*", "CallInstructionsMessageType", ")", "*", "VoiceMessageContent", "{", "s", ".", "CallInstructionsMessage", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetCallInstructionsMessage sets the CallInstructionsMessage field's value.
[ "SetCallInstructionsMessage", "sets", "the", "CallInstructionsMessage", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/pinpointsmsvoice/api.go#L1663-L1666
2,710
aws/aws-sdk-go
service/pinpointsmsvoice/api.go
SetPlainTextMessage
func (s *VoiceMessageContent) SetPlainTextMessage(v *PlainTextMessageType) *VoiceMessageContent { s.PlainTextMessage = v return s }
go
func (s *VoiceMessageContent) SetPlainTextMessage(v *PlainTextMessageType) *VoiceMessageContent { s.PlainTextMessage = v return s }
[ "func", "(", "s", "*", "VoiceMessageContent", ")", "SetPlainTextMessage", "(", "v", "*", "PlainTextMessageType", ")", "*", "VoiceMessageContent", "{", "s", ".", "PlainTextMessage", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetPlainTextMessage sets the PlainTextMessage field's value.
[ "SetPlainTextMessage", "sets", "the", "PlainTextMessage", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/pinpointsmsvoice/api.go#L1669-L1672
2,711
aws/aws-sdk-go
service/pinpointsmsvoice/api.go
SetSSMLMessage
func (s *VoiceMessageContent) SetSSMLMessage(v *SSMLMessageType) *VoiceMessageContent { s.SSMLMessage = v return s }
go
func (s *VoiceMessageContent) SetSSMLMessage(v *SSMLMessageType) *VoiceMessageContent { s.SSMLMessage = v return s }
[ "func", "(", "s", "*", "VoiceMessageContent", ")", "SetSSMLMessage", "(", "v", "*", "SSMLMessageType", ")", "*", "VoiceMessageContent", "{", "s", ".", "SSMLMessage", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSSMLMessage sets the SSMLMessage field's value.
[ "SetSSMLMessage", "sets", "the", "SSMLMessage", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/pinpointsmsvoice/api.go#L1675-L1678
2,712
aws/aws-sdk-go
aws/defaults/defaults.go
Get
func Get() Defaults { cfg := Config() handlers := Handlers() cfg.Credentials = CredChain(cfg, handlers) return Defaults{ Config: cfg, Handlers: handlers, } }
go
func Get() Defaults { cfg := Config() handlers := Handlers() cfg.Credentials = CredChain(cfg, handlers) return Defaults{ Config: cfg, Handlers: handlers, } }
[ "func", "Get", "(", ")", "Defaults", "{", "cfg", ":=", "Config", "(", ")", "\n", "handlers", ":=", "Handlers", "(", ")", "\n", "cfg", ".", "Credentials", "=", "CredChain", "(", "cfg", ",", "handlers", ")", "\n\n", "return", "Defaults", "{", "Config", ":", "cfg", ",", "Handlers", ":", "handlers", ",", "}", "\n", "}" ]
// Get returns the SDK's default values with Config and handlers pre-configured.
[ "Get", "returns", "the", "SDK", "s", "default", "values", "with", "Config", "and", "handlers", "pre", "-", "configured", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/defaults/defaults.go#L37-L46
2,713
aws/aws-sdk-go
aws/defaults/defaults.go
Handlers
func Handlers() request.Handlers { var handlers request.Handlers handlers.Validate.PushBackNamed(corehandlers.ValidateEndpointHandler) handlers.Validate.AfterEachFn = request.HandlerListStopOnError handlers.Build.PushBackNamed(corehandlers.SDKVersionUserAgentHandler) handlers.Build.PushBackNamed(corehandlers.AddHostExecEnvUserAgentHander) handlers.Build.AfterEachFn = request.HandlerListStopOnError handlers.Sign.PushBackNamed(corehandlers.BuildContentLengthHandler) handlers.Send.PushBackNamed(corehandlers.ValidateReqSigHandler) handlers.Send.PushBackNamed(corehandlers.SendHandler) handlers.AfterRetry.PushBackNamed(corehandlers.AfterRetryHandler) handlers.ValidateResponse.PushBackNamed(corehandlers.ValidateResponseHandler) return handlers }
go
func Handlers() request.Handlers { var handlers request.Handlers handlers.Validate.PushBackNamed(corehandlers.ValidateEndpointHandler) handlers.Validate.AfterEachFn = request.HandlerListStopOnError handlers.Build.PushBackNamed(corehandlers.SDKVersionUserAgentHandler) handlers.Build.PushBackNamed(corehandlers.AddHostExecEnvUserAgentHander) handlers.Build.AfterEachFn = request.HandlerListStopOnError handlers.Sign.PushBackNamed(corehandlers.BuildContentLengthHandler) handlers.Send.PushBackNamed(corehandlers.ValidateReqSigHandler) handlers.Send.PushBackNamed(corehandlers.SendHandler) handlers.AfterRetry.PushBackNamed(corehandlers.AfterRetryHandler) handlers.ValidateResponse.PushBackNamed(corehandlers.ValidateResponseHandler) return handlers }
[ "func", "Handlers", "(", ")", "request", ".", "Handlers", "{", "var", "handlers", "request", ".", "Handlers", "\n\n", "handlers", ".", "Validate", ".", "PushBackNamed", "(", "corehandlers", ".", "ValidateEndpointHandler", ")", "\n", "handlers", ".", "Validate", ".", "AfterEachFn", "=", "request", ".", "HandlerListStopOnError", "\n", "handlers", ".", "Build", ".", "PushBackNamed", "(", "corehandlers", ".", "SDKVersionUserAgentHandler", ")", "\n", "handlers", ".", "Build", ".", "PushBackNamed", "(", "corehandlers", ".", "AddHostExecEnvUserAgentHander", ")", "\n", "handlers", ".", "Build", ".", "AfterEachFn", "=", "request", ".", "HandlerListStopOnError", "\n", "handlers", ".", "Sign", ".", "PushBackNamed", "(", "corehandlers", ".", "BuildContentLengthHandler", ")", "\n", "handlers", ".", "Send", ".", "PushBackNamed", "(", "corehandlers", ".", "ValidateReqSigHandler", ")", "\n", "handlers", ".", "Send", ".", "PushBackNamed", "(", "corehandlers", ".", "SendHandler", ")", "\n", "handlers", ".", "AfterRetry", ".", "PushBackNamed", "(", "corehandlers", ".", "AfterRetryHandler", ")", "\n", "handlers", ".", "ValidateResponse", ".", "PushBackNamed", "(", "corehandlers", ".", "ValidateResponseHandler", ")", "\n\n", "return", "handlers", "\n", "}" ]
// Handlers returns the default request handlers. // // Generally you shouldn't need to use this method directly, but // is available if you need to reset the request handlers of an // existing service client or session.
[ "Handlers", "returns", "the", "default", "request", "handlers", ".", "Generally", "you", "shouldn", "t", "need", "to", "use", "this", "method", "directly", "but", "is", "available", "if", "you", "need", "to", "reset", "the", "request", "handlers", "of", "an", "existing", "service", "client", "or", "session", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/defaults/defaults.go#L71-L86
2,714
aws/aws-sdk-go
aws/defaults/defaults.go
CredChain
func CredChain(cfg *aws.Config, handlers request.Handlers) *credentials.Credentials { return credentials.NewCredentials(&credentials.ChainProvider{ VerboseErrors: aws.BoolValue(cfg.CredentialsChainVerboseErrors), Providers: CredProviders(cfg, handlers), }) }
go
func CredChain(cfg *aws.Config, handlers request.Handlers) *credentials.Credentials { return credentials.NewCredentials(&credentials.ChainProvider{ VerboseErrors: aws.BoolValue(cfg.CredentialsChainVerboseErrors), Providers: CredProviders(cfg, handlers), }) }
[ "func", "CredChain", "(", "cfg", "*", "aws", ".", "Config", ",", "handlers", "request", ".", "Handlers", ")", "*", "credentials", ".", "Credentials", "{", "return", "credentials", ".", "NewCredentials", "(", "&", "credentials", ".", "ChainProvider", "{", "VerboseErrors", ":", "aws", ".", "BoolValue", "(", "cfg", ".", "CredentialsChainVerboseErrors", ")", ",", "Providers", ":", "CredProviders", "(", "cfg", ",", "handlers", ")", ",", "}", ")", "\n", "}" ]
// CredChain returns the default credential chain. // // Generally you shouldn't need to use this method directly, but // is available if you need to reset the credentials of an // existing service client or session's Config.
[ "CredChain", "returns", "the", "default", "credential", "chain", ".", "Generally", "you", "shouldn", "t", "need", "to", "use", "this", "method", "directly", "but", "is", "available", "if", "you", "need", "to", "reset", "the", "credentials", "of", "an", "existing", "service", "client", "or", "session", "s", "Config", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/defaults/defaults.go#L93-L98
2,715
aws/aws-sdk-go
aws/defaults/defaults.go
RemoteCredProvider
func RemoteCredProvider(cfg aws.Config, handlers request.Handlers) credentials.Provider { if u := os.Getenv(httpProviderEnvVar); len(u) > 0 { return localHTTPCredProvider(cfg, handlers, u) } if uri := os.Getenv(shareddefaults.ECSCredsProviderEnvVar); len(uri) > 0 { u := fmt.Sprintf("%s%s", shareddefaults.ECSContainerCredentialsURI, uri) return httpCredProvider(cfg, handlers, u) } return ec2RoleProvider(cfg, handlers) }
go
func RemoteCredProvider(cfg aws.Config, handlers request.Handlers) credentials.Provider { if u := os.Getenv(httpProviderEnvVar); len(u) > 0 { return localHTTPCredProvider(cfg, handlers, u) } if uri := os.Getenv(shareddefaults.ECSCredsProviderEnvVar); len(uri) > 0 { u := fmt.Sprintf("%s%s", shareddefaults.ECSContainerCredentialsURI, uri) return httpCredProvider(cfg, handlers, u) } return ec2RoleProvider(cfg, handlers) }
[ "func", "RemoteCredProvider", "(", "cfg", "aws", ".", "Config", ",", "handlers", "request", ".", "Handlers", ")", "credentials", ".", "Provider", "{", "if", "u", ":=", "os", ".", "Getenv", "(", "httpProviderEnvVar", ")", ";", "len", "(", "u", ")", ">", "0", "{", "return", "localHTTPCredProvider", "(", "cfg", ",", "handlers", ",", "u", ")", "\n", "}", "\n\n", "if", "uri", ":=", "os", ".", "Getenv", "(", "shareddefaults", ".", "ECSCredsProviderEnvVar", ")", ";", "len", "(", "uri", ")", ">", "0", "{", "u", ":=", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "shareddefaults", ".", "ECSContainerCredentialsURI", ",", "uri", ")", "\n", "return", "httpCredProvider", "(", "cfg", ",", "handlers", ",", "u", ")", "\n", "}", "\n\n", "return", "ec2RoleProvider", "(", "cfg", ",", "handlers", ")", "\n", "}" ]
// RemoteCredProvider returns a credentials provider for the default remote // endpoints such as EC2 or ECS Roles.
[ "RemoteCredProvider", "returns", "a", "credentials", "provider", "for", "the", "default", "remote", "endpoints", "such", "as", "EC2", "or", "ECS", "Roles", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/defaults/defaults.go#L122-L133
2,716
aws/aws-sdk-go
service/s3/s3crypto/decryption_client.go
GetObject
func (c *DecryptionClient) GetObject(input *s3.GetObjectInput) (*s3.GetObjectOutput, error) { req, out := c.GetObjectRequest(input) return out, req.Send() }
go
func (c *DecryptionClient) GetObject(input *s3.GetObjectInput) (*s3.GetObjectOutput, error) { req, out := c.GetObjectRequest(input) return out, req.Send() }
[ "func", "(", "c", "*", "DecryptionClient", ")", "GetObject", "(", "input", "*", "s3", ".", "GetObjectInput", ")", "(", "*", "s3", ".", "GetObjectOutput", ",", "error", ")", "{", "req", ",", "out", ":=", "c", ".", "GetObjectRequest", "(", "input", ")", "\n", "return", "out", ",", "req", ".", "Send", "(", ")", "\n", "}" ]
// GetObject is a wrapper for GetObjectRequest
[ "GetObject", "is", "a", "wrapper", "for", "GetObjectRequest" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/s3crypto/decryption_client.go#L118-L121
2,717
aws/aws-sdk-go
private/protocol/json/jsonutil/build.go
BuildJSON
func BuildJSON(v interface{}) ([]byte, error) { var buf bytes.Buffer err := buildAny(reflect.ValueOf(v), &buf, "") return buf.Bytes(), err }
go
func BuildJSON(v interface{}) ([]byte, error) { var buf bytes.Buffer err := buildAny(reflect.ValueOf(v), &buf, "") return buf.Bytes(), err }
[ "func", "BuildJSON", "(", "v", "interface", "{", "}", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "var", "buf", "bytes", ".", "Buffer", "\n\n", "err", ":=", "buildAny", "(", "reflect", ".", "ValueOf", "(", "v", ")", ",", "&", "buf", ",", "\"", "\"", ")", "\n", "return", "buf", ".", "Bytes", "(", ")", ",", "err", "\n", "}" ]
// BuildJSON builds a JSON string for a given object v.
[ "BuildJSON", "builds", "a", "JSON", "string", "for", "a", "given", "object", "v", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/json/jsonutil/build.go#L23-L28
2,718
aws/aws-sdk-go
private/model/api/api.go
ImportPath
func (a *API) ImportPath() string { return path.Join(a.BaseImportPath, a.PackageName()) }
go
func (a *API) ImportPath() string { return path.Join(a.BaseImportPath, a.PackageName()) }
[ "func", "(", "a", "*", "API", ")", "ImportPath", "(", ")", "string", "{", "return", "path", ".", "Join", "(", "a", ".", "BaseImportPath", ",", "a", ".", "PackageName", "(", ")", ")", "\n", "}" ]
// ImportPath returns the client's full import path
[ "ImportPath", "returns", "the", "client", "s", "full", "import", "path" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L96-L98
2,719
aws/aws-sdk-go
private/model/api/api.go
StructName
func (a *API) StructName() string { if len(a.name) != 0 { return a.name } name := a.Metadata.ServiceAbbreviation if len(name) == 0 { name = a.Metadata.ServiceFullName } name = strings.TrimSpace(name) // Strip out prefix names not reflected in service client symbol names. for _, prefix := range stripServiceNamePrefixes { if strings.HasPrefix(name, prefix) { name = name[len(prefix):] break } } // Replace all Non-letter/number values with space runes := []rune(name) for i := 0; i < len(runes); i++ { if r := runes[i]; !(unicode.IsNumber(r) || unicode.IsLetter(r)) { runes[i] = ' ' } } name = string(runes) // Title case name so its readable as a symbol. name = strings.Title(name) // Strip out spaces. name = strings.Replace(name, " ", "", -1) a.name = name return a.name }
go
func (a *API) StructName() string { if len(a.name) != 0 { return a.name } name := a.Metadata.ServiceAbbreviation if len(name) == 0 { name = a.Metadata.ServiceFullName } name = strings.TrimSpace(name) // Strip out prefix names not reflected in service client symbol names. for _, prefix := range stripServiceNamePrefixes { if strings.HasPrefix(name, prefix) { name = name[len(prefix):] break } } // Replace all Non-letter/number values with space runes := []rune(name) for i := 0; i < len(runes); i++ { if r := runes[i]; !(unicode.IsNumber(r) || unicode.IsLetter(r)) { runes[i] = ' ' } } name = string(runes) // Title case name so its readable as a symbol. name = strings.Title(name) // Strip out spaces. name = strings.Replace(name, " ", "", -1) a.name = name return a.name }
[ "func", "(", "a", "*", "API", ")", "StructName", "(", ")", "string", "{", "if", "len", "(", "a", ".", "name", ")", "!=", "0", "{", "return", "a", ".", "name", "\n", "}", "\n\n", "name", ":=", "a", ".", "Metadata", ".", "ServiceAbbreviation", "\n", "if", "len", "(", "name", ")", "==", "0", "{", "name", "=", "a", ".", "Metadata", ".", "ServiceFullName", "\n", "}", "\n\n", "name", "=", "strings", ".", "TrimSpace", "(", "name", ")", "\n\n", "// Strip out prefix names not reflected in service client symbol names.", "for", "_", ",", "prefix", ":=", "range", "stripServiceNamePrefixes", "{", "if", "strings", ".", "HasPrefix", "(", "name", ",", "prefix", ")", "{", "name", "=", "name", "[", "len", "(", "prefix", ")", ":", "]", "\n", "break", "\n", "}", "\n", "}", "\n\n", "// Replace all Non-letter/number values with space", "runes", ":=", "[", "]", "rune", "(", "name", ")", "\n", "for", "i", ":=", "0", ";", "i", "<", "len", "(", "runes", ")", ";", "i", "++", "{", "if", "r", ":=", "runes", "[", "i", "]", ";", "!", "(", "unicode", ".", "IsNumber", "(", "r", ")", "||", "unicode", ".", "IsLetter", "(", "r", ")", ")", "{", "runes", "[", "i", "]", "=", "' '", "\n", "}", "\n", "}", "\n", "name", "=", "string", "(", "runes", ")", "\n\n", "// Title case name so its readable as a symbol.", "name", "=", "strings", ".", "Title", "(", "name", ")", "\n\n", "// Strip out spaces.", "name", "=", "strings", ".", "Replace", "(", "name", ",", "\"", "\"", ",", "\"", "\"", ",", "-", "1", ")", "\n\n", "a", ".", "name", "=", "name", "\n", "return", "a", ".", "name", "\n", "}" ]
// StructName returns the struct name for a given API.
[ "StructName", "returns", "the", "struct", "name", "for", "a", "given", "API", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L111-L148
2,720
aws/aws-sdk-go
private/model/api/api.go
NiceName
func (a *API) NiceName() string { if a.Metadata.ServiceAbbreviation != "" { return a.Metadata.ServiceAbbreviation } return a.Metadata.ServiceFullName }
go
func (a *API) NiceName() string { if a.Metadata.ServiceAbbreviation != "" { return a.Metadata.ServiceAbbreviation } return a.Metadata.ServiceFullName }
[ "func", "(", "a", "*", "API", ")", "NiceName", "(", ")", "string", "{", "if", "a", ".", "Metadata", ".", "ServiceAbbreviation", "!=", "\"", "\"", "{", "return", "a", ".", "Metadata", ".", "ServiceAbbreviation", "\n", "}", "\n", "return", "a", ".", "Metadata", ".", "ServiceFullName", "\n", "}" ]
// NiceName returns the human friendly API name.
[ "NiceName", "returns", "the", "human", "friendly", "API", "name", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L156-L161
2,721
aws/aws-sdk-go
private/model/api/api.go
ProtocolPackage
func (a *API) ProtocolPackage() string { switch a.Metadata.Protocol { case "json": return "jsonrpc" case "ec2": return "ec2query" default: return strings.Replace(a.Metadata.Protocol, "-", "", -1) } }
go
func (a *API) ProtocolPackage() string { switch a.Metadata.Protocol { case "json": return "jsonrpc" case "ec2": return "ec2query" default: return strings.Replace(a.Metadata.Protocol, "-", "", -1) } }
[ "func", "(", "a", "*", "API", ")", "ProtocolPackage", "(", ")", "string", "{", "switch", "a", ".", "Metadata", ".", "Protocol", "{", "case", "\"", "\"", ":", "return", "\"", "\"", "\n", "case", "\"", "\"", ":", "return", "\"", "\"", "\n", "default", ":", "return", "strings", ".", "Replace", "(", "a", ".", "Metadata", ".", "Protocol", ",", "\"", "\"", ",", "\"", "\"", ",", "-", "1", ")", "\n", "}", "\n", "}" ]
// ProtocolPackage returns the package name of the protocol this API uses.
[ "ProtocolPackage", "returns", "the", "package", "name", "of", "the", "protocol", "this", "API", "uses", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L164-L173
2,722
aws/aws-sdk-go
private/model/api/api.go
OperationNames
func (a *API) OperationNames() []string { i, names := 0, make([]string, len(a.Operations)) for n := range a.Operations { names[i] = n i++ } sort.Strings(names) return names }
go
func (a *API) OperationNames() []string { i, names := 0, make([]string, len(a.Operations)) for n := range a.Operations { names[i] = n i++ } sort.Strings(names) return names }
[ "func", "(", "a", "*", "API", ")", "OperationNames", "(", ")", "[", "]", "string", "{", "i", ",", "names", ":=", "0", ",", "make", "(", "[", "]", "string", ",", "len", "(", "a", ".", "Operations", ")", ")", "\n", "for", "n", ":=", "range", "a", ".", "Operations", "{", "names", "[", "i", "]", "=", "n", "\n", "i", "++", "\n", "}", "\n", "sort", ".", "Strings", "(", "names", ")", "\n", "return", "names", "\n", "}" ]
// OperationNames returns a slice of API operations supported.
[ "OperationNames", "returns", "a", "slice", "of", "API", "operations", "supported", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L176-L184
2,723
aws/aws-sdk-go
private/model/api/api.go
OperationList
func (a *API) OperationList() []*Operation { list := make([]*Operation, len(a.Operations)) for i, n := range a.OperationNames() { list[i] = a.Operations[n] } return list }
go
func (a *API) OperationList() []*Operation { list := make([]*Operation, len(a.Operations)) for i, n := range a.OperationNames() { list[i] = a.Operations[n] } return list }
[ "func", "(", "a", "*", "API", ")", "OperationList", "(", ")", "[", "]", "*", "Operation", "{", "list", ":=", "make", "(", "[", "]", "*", "Operation", ",", "len", "(", "a", ".", "Operations", ")", ")", "\n", "for", "i", ",", "n", ":=", "range", "a", ".", "OperationNames", "(", ")", "{", "list", "[", "i", "]", "=", "a", ".", "Operations", "[", "n", "]", "\n", "}", "\n", "return", "list", "\n", "}" ]
// OperationList returns a slice of API operation pointers
[ "OperationList", "returns", "a", "slice", "of", "API", "operation", "pointers" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L187-L193
2,724
aws/aws-sdk-go
private/model/api/api.go
OperationHasOutputPlaceholder
func (a *API) OperationHasOutputPlaceholder() bool { for _, op := range a.Operations { if op.OutputRef.Shape.Placeholder { return true } } return false }
go
func (a *API) OperationHasOutputPlaceholder() bool { for _, op := range a.Operations { if op.OutputRef.Shape.Placeholder { return true } } return false }
[ "func", "(", "a", "*", "API", ")", "OperationHasOutputPlaceholder", "(", ")", "bool", "{", "for", "_", ",", "op", ":=", "range", "a", ".", "Operations", "{", "if", "op", ".", "OutputRef", ".", "Shape", ".", "Placeholder", "{", "return", "true", "\n", "}", "\n", "}", "\n", "return", "false", "\n", "}" ]
// OperationHasOutputPlaceholder returns if any of the API operation input // or output shapes are place holders.
[ "OperationHasOutputPlaceholder", "returns", "if", "any", "of", "the", "API", "operation", "input", "or", "output", "shapes", "are", "place", "holders", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L197-L204
2,725
aws/aws-sdk-go
private/model/api/api.go
ShapeNames
func (a *API) ShapeNames() []string { i, names := 0, make([]string, len(a.Shapes)) for n := range a.Shapes { names[i] = n i++ } sort.Strings(names) return names }
go
func (a *API) ShapeNames() []string { i, names := 0, make([]string, len(a.Shapes)) for n := range a.Shapes { names[i] = n i++ } sort.Strings(names) return names }
[ "func", "(", "a", "*", "API", ")", "ShapeNames", "(", ")", "[", "]", "string", "{", "i", ",", "names", ":=", "0", ",", "make", "(", "[", "]", "string", ",", "len", "(", "a", ".", "Shapes", ")", ")", "\n", "for", "n", ":=", "range", "a", ".", "Shapes", "{", "names", "[", "i", "]", "=", "n", "\n", "i", "++", "\n", "}", "\n", "sort", ".", "Strings", "(", "names", ")", "\n", "return", "names", "\n", "}" ]
// ShapeNames returns a slice of names for each shape used by the API.
[ "ShapeNames", "returns", "a", "slice", "of", "names", "for", "each", "shape", "used", "by", "the", "API", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L207-L215
2,726
aws/aws-sdk-go
private/model/api/api.go
ShapeList
func (a *API) ShapeList() []*Shape { list := make([]*Shape, 0, len(a.Shapes)) for _, n := range a.ShapeNames() { // Ignore non-eventstream exception shapes in list. if s := a.Shapes[n]; !(s.Exception && len(s.EventFor) == 0) { list = append(list, s) } } return list }
go
func (a *API) ShapeList() []*Shape { list := make([]*Shape, 0, len(a.Shapes)) for _, n := range a.ShapeNames() { // Ignore non-eventstream exception shapes in list. if s := a.Shapes[n]; !(s.Exception && len(s.EventFor) == 0) { list = append(list, s) } } return list }
[ "func", "(", "a", "*", "API", ")", "ShapeList", "(", ")", "[", "]", "*", "Shape", "{", "list", ":=", "make", "(", "[", "]", "*", "Shape", ",", "0", ",", "len", "(", "a", ".", "Shapes", ")", ")", "\n", "for", "_", ",", "n", ":=", "range", "a", ".", "ShapeNames", "(", ")", "{", "// Ignore non-eventstream exception shapes in list.", "if", "s", ":=", "a", ".", "Shapes", "[", "n", "]", ";", "!", "(", "s", ".", "Exception", "&&", "len", "(", "s", ".", "EventFor", ")", "==", "0", ")", "{", "list", "=", "append", "(", "list", ",", "s", ")", "\n", "}", "\n", "}", "\n", "return", "list", "\n", "}" ]
// ShapeList returns a slice of shape pointers used by the API. // // Will exclude error shapes from the list of shapes returned.
[ "ShapeList", "returns", "a", "slice", "of", "shape", "pointers", "used", "by", "the", "API", ".", "Will", "exclude", "error", "shapes", "from", "the", "list", "of", "shapes", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L220-L229
2,727
aws/aws-sdk-go
private/model/api/api.go
ShapeListErrors
func (a *API) ShapeListErrors() []*Shape { list := []*Shape{} for _, n := range a.ShapeNames() { // Ignore error shapes in list if s := a.Shapes[n]; s.Exception { list = append(list, s) } } return list }
go
func (a *API) ShapeListErrors() []*Shape { list := []*Shape{} for _, n := range a.ShapeNames() { // Ignore error shapes in list if s := a.Shapes[n]; s.Exception { list = append(list, s) } } return list }
[ "func", "(", "a", "*", "API", ")", "ShapeListErrors", "(", ")", "[", "]", "*", "Shape", "{", "list", ":=", "[", "]", "*", "Shape", "{", "}", "\n", "for", "_", ",", "n", ":=", "range", "a", ".", "ShapeNames", "(", ")", "{", "// Ignore error shapes in list", "if", "s", ":=", "a", ".", "Shapes", "[", "n", "]", ";", "s", ".", "Exception", "{", "list", "=", "append", "(", "list", ",", "s", ")", "\n", "}", "\n", "}", "\n", "return", "list", "\n", "}" ]
// ShapeListErrors returns a list of the errors defined by the API model
[ "ShapeListErrors", "returns", "a", "list", "of", "the", "errors", "defined", "by", "the", "API", "model" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L232-L241
2,728
aws/aws-sdk-go
private/model/api/api.go
importsGoCode
func (a *API) importsGoCode() string { if len(a.imports) == 0 { return "" } corePkgs, extPkgs := []string{}, []string{} for i := range a.imports { if strings.Contains(i, ".") { extPkgs = append(extPkgs, i) } else { corePkgs = append(corePkgs, i) } } sort.Strings(corePkgs) sort.Strings(extPkgs) code := "import (\n" for _, i := range corePkgs { code += fmt.Sprintf("\t%q\n", i) } if len(corePkgs) > 0 { code += "\n" } for _, i := range extPkgs { code += fmt.Sprintf("\t%q\n", i) } code += ")\n\n" return code }
go
func (a *API) importsGoCode() string { if len(a.imports) == 0 { return "" } corePkgs, extPkgs := []string{}, []string{} for i := range a.imports { if strings.Contains(i, ".") { extPkgs = append(extPkgs, i) } else { corePkgs = append(corePkgs, i) } } sort.Strings(corePkgs) sort.Strings(extPkgs) code := "import (\n" for _, i := range corePkgs { code += fmt.Sprintf("\t%q\n", i) } if len(corePkgs) > 0 { code += "\n" } for _, i := range extPkgs { code += fmt.Sprintf("\t%q\n", i) } code += ")\n\n" return code }
[ "func", "(", "a", "*", "API", ")", "importsGoCode", "(", ")", "string", "{", "if", "len", "(", "a", ".", "imports", ")", "==", "0", "{", "return", "\"", "\"", "\n", "}", "\n\n", "corePkgs", ",", "extPkgs", ":=", "[", "]", "string", "{", "}", ",", "[", "]", "string", "{", "}", "\n", "for", "i", ":=", "range", "a", ".", "imports", "{", "if", "strings", ".", "Contains", "(", "i", ",", "\"", "\"", ")", "{", "extPkgs", "=", "append", "(", "extPkgs", ",", "i", ")", "\n", "}", "else", "{", "corePkgs", "=", "append", "(", "corePkgs", ",", "i", ")", "\n", "}", "\n", "}", "\n", "sort", ".", "Strings", "(", "corePkgs", ")", "\n", "sort", ".", "Strings", "(", "extPkgs", ")", "\n\n", "code", ":=", "\"", "\\n", "\"", "\n", "for", "_", ",", "i", ":=", "range", "corePkgs", "{", "code", "+=", "fmt", ".", "Sprintf", "(", "\"", "\\t", "\\n", "\"", ",", "i", ")", "\n", "}", "\n", "if", "len", "(", "corePkgs", ")", ">", "0", "{", "code", "+=", "\"", "\\n", "\"", "\n", "}", "\n", "for", "_", ",", "i", ":=", "range", "extPkgs", "{", "code", "+=", "fmt", ".", "Sprintf", "(", "\"", "\\t", "\\n", "\"", ",", "i", ")", "\n", "}", "\n", "code", "+=", "\"", "\\n", "\\n", "\"", "\n", "return", "code", "\n", "}" ]
// importsGoCode returns the generated Go import code.
[ "importsGoCode", "returns", "the", "generated", "Go", "import", "code", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L249-L277
2,729
aws/aws-sdk-go
private/model/api/api.go
AddImport
func (a *API) AddImport(v string) error { a.imports[v] = true return nil }
go
func (a *API) AddImport(v string) error { a.imports[v] = true return nil }
[ "func", "(", "a", "*", "API", ")", "AddImport", "(", "v", "string", ")", "error", "{", "a", ".", "imports", "[", "v", "]", "=", "true", "\n", "return", "nil", "\n", "}" ]
// AddImport adds the import path to the generated file's import.
[ "AddImport", "adds", "the", "import", "path", "to", "the", "generated", "file", "s", "import", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L298-L301
2,730
aws/aws-sdk-go
private/model/api/api.go
AddSDKImport
func (a *API) AddSDKImport(v ...string) error { e := make([]string, 0, 5) e = append(e, SDKImportRoot) e = append(e, v...) a.imports[path.Join(e...)] = true return nil }
go
func (a *API) AddSDKImport(v ...string) error { e := make([]string, 0, 5) e = append(e, SDKImportRoot) e = append(e, v...) a.imports[path.Join(e...)] = true return nil }
[ "func", "(", "a", "*", "API", ")", "AddSDKImport", "(", "v", "...", "string", ")", "error", "{", "e", ":=", "make", "(", "[", "]", "string", ",", "0", ",", "5", ")", "\n", "e", "=", "append", "(", "e", ",", "SDKImportRoot", ")", "\n", "e", "=", "append", "(", "e", ",", "v", "...", ")", "\n\n", "a", ".", "imports", "[", "path", ".", "Join", "(", "e", "...", ")", "]", "=", "true", "\n", "return", "nil", "\n", "}" ]
// AddSDKImport adds a SDK package import to the generated file's import.
[ "AddSDKImport", "adds", "a", "SDK", "package", "import", "to", "the", "generated", "file", "s", "import", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L304-L311
2,731
aws/aws-sdk-go
private/model/api/api.go
APIGoCode
func (a *API) APIGoCode() string { a.resetImports() a.AddSDKImport("aws") a.AddSDKImport("aws/awsutil") a.AddSDKImport("aws/request") var buf bytes.Buffer err := tplAPI.Execute(&buf, a) if err != nil { panic(err) } code := a.importsGoCode() + strings.TrimSpace(buf.String()) return code }
go
func (a *API) APIGoCode() string { a.resetImports() a.AddSDKImport("aws") a.AddSDKImport("aws/awsutil") a.AddSDKImport("aws/request") var buf bytes.Buffer err := tplAPI.Execute(&buf, a) if err != nil { panic(err) } code := a.importsGoCode() + strings.TrimSpace(buf.String()) return code }
[ "func", "(", "a", "*", "API", ")", "APIGoCode", "(", ")", "string", "{", "a", ".", "resetImports", "(", ")", "\n", "a", ".", "AddSDKImport", "(", "\"", "\"", ")", "\n", "a", ".", "AddSDKImport", "(", "\"", "\"", ")", "\n", "a", ".", "AddSDKImport", "(", "\"", "\"", ")", "\n\n", "var", "buf", "bytes", ".", "Buffer", "\n", "err", ":=", "tplAPI", ".", "Execute", "(", "&", "buf", ",", "a", ")", "\n", "if", "err", "!=", "nil", "{", "panic", "(", "err", ")", "\n", "}", "\n\n", "code", ":=", "a", ".", "importsGoCode", "(", ")", "+", "strings", ".", "TrimSpace", "(", "buf", ".", "String", "(", ")", ")", "\n", "return", "code", "\n", "}" ]
// APIGoCode renders the API in Go code. Returning it as a string
[ "APIGoCode", "renders", "the", "API", "in", "Go", "code", ".", "Returning", "it", "as", "a", "string" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L314-L328
2,732
aws/aws-sdk-go
private/model/api/api.go
GetCrosslinkURL
func GetCrosslinkURL(baseURL, uid string, params ...string) string { if uid == "" || baseURL == "" { return "" } if !HasCrosslinks(strings.ToLower(ServiceIDFromUID(uid))) { return "" } return strings.Join(append([]string{baseURL, "goto", "WebAPI", uid}, params...), "/") }
go
func GetCrosslinkURL(baseURL, uid string, params ...string) string { if uid == "" || baseURL == "" { return "" } if !HasCrosslinks(strings.ToLower(ServiceIDFromUID(uid))) { return "" } return strings.Join(append([]string{baseURL, "goto", "WebAPI", uid}, params...), "/") }
[ "func", "GetCrosslinkURL", "(", "baseURL", ",", "uid", "string", ",", "params", "...", "string", ")", "string", "{", "if", "uid", "==", "\"", "\"", "||", "baseURL", "==", "\"", "\"", "{", "return", "\"", "\"", "\n", "}", "\n\n", "if", "!", "HasCrosslinks", "(", "strings", ".", "ToLower", "(", "ServiceIDFromUID", "(", "uid", ")", ")", ")", "{", "return", "\"", "\"", "\n", "}", "\n\n", "return", "strings", ".", "Join", "(", "append", "(", "[", "]", "string", "{", "baseURL", ",", "\"", "\"", ",", "\"", "\"", ",", "uid", "}", ",", "params", "...", ")", ",", "\"", "\"", ")", "\n", "}" ]
// GetCrosslinkURL returns the crosslinking URL for the shape based on the name and // uid provided. Empty string is returned if no crosslink link could be determined.
[ "GetCrosslinkURL", "returns", "the", "crosslinking", "URL", "for", "the", "shape", "based", "on", "the", "name", "and", "uid", "provided", ".", "Empty", "string", "is", "returned", "if", "no", "crosslink", "link", "could", "be", "determined", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L355-L365
2,733
aws/aws-sdk-go
private/model/api/api.go
ServiceIDFromUID
func ServiceIDFromUID(uid string) string { found := 0 i := len(uid) - 1 for ; i >= 0; i-- { if uid[i] == '-' { found++ } // Terminate after the date component is found, e.g. es-2017-11-11 if found == 3 { break } } return uid[0:i] }
go
func ServiceIDFromUID(uid string) string { found := 0 i := len(uid) - 1 for ; i >= 0; i-- { if uid[i] == '-' { found++ } // Terminate after the date component is found, e.g. es-2017-11-11 if found == 3 { break } } return uid[0:i] }
[ "func", "ServiceIDFromUID", "(", "uid", "string", ")", "string", "{", "found", ":=", "0", "\n", "i", ":=", "len", "(", "uid", ")", "-", "1", "\n", "for", ";", "i", ">=", "0", ";", "i", "--", "{", "if", "uid", "[", "i", "]", "==", "'-'", "{", "found", "++", "\n", "}", "\n", "// Terminate after the date component is found, e.g. es-2017-11-11", "if", "found", "==", "3", "{", "break", "\n", "}", "\n", "}", "\n\n", "return", "uid", "[", "0", ":", "i", "]", "\n", "}" ]
// ServiceIDFromUID will parse the service id from the uid and return // the service id that was found.
[ "ServiceIDFromUID", "will", "parse", "the", "service", "id", "from", "the", "uid", "and", "return", "the", "service", "id", "that", "was", "found", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L369-L383
2,734
aws/aws-sdk-go
private/model/api/api.go
ServiceID
func ServiceID(a *API) string { if len(a.Metadata.ServiceID) > 0 { return a.Metadata.ServiceID } name := a.Metadata.ServiceAbbreviation if len(name) == 0 { name = a.Metadata.ServiceFullName } name = strings.Replace(name, "Amazon", "", -1) name = strings.Replace(name, "AWS", "", -1) name = serviceIDRegex.ReplaceAllString(name, "") name = prefixDigitRegex.ReplaceAllString(name, "") name = strings.TrimSpace(name) return name }
go
func ServiceID(a *API) string { if len(a.Metadata.ServiceID) > 0 { return a.Metadata.ServiceID } name := a.Metadata.ServiceAbbreviation if len(name) == 0 { name = a.Metadata.ServiceFullName } name = strings.Replace(name, "Amazon", "", -1) name = strings.Replace(name, "AWS", "", -1) name = serviceIDRegex.ReplaceAllString(name, "") name = prefixDigitRegex.ReplaceAllString(name, "") name = strings.TrimSpace(name) return name }
[ "func", "ServiceID", "(", "a", "*", "API", ")", "string", "{", "if", "len", "(", "a", ".", "Metadata", ".", "ServiceID", ")", ">", "0", "{", "return", "a", ".", "Metadata", ".", "ServiceID", "\n", "}", "\n\n", "name", ":=", "a", ".", "Metadata", ".", "ServiceAbbreviation", "\n", "if", "len", "(", "name", ")", "==", "0", "{", "name", "=", "a", ".", "Metadata", ".", "ServiceFullName", "\n", "}", "\n\n", "name", "=", "strings", ".", "Replace", "(", "name", ",", "\"", "\"", ",", "\"", "\"", ",", "-", "1", ")", "\n", "name", "=", "strings", ".", "Replace", "(", "name", ",", "\"", "\"", ",", "\"", "\"", ",", "-", "1", ")", "\n", "name", "=", "serviceIDRegex", ".", "ReplaceAllString", "(", "name", ",", "\"", "\"", ")", "\n", "name", "=", "prefixDigitRegex", ".", "ReplaceAllString", "(", "name", ",", "\"", "\"", ")", "\n", "name", "=", "strings", ".", "TrimSpace", "(", "name", ")", "\n", "return", "name", "\n", "}" ]
// ServiceID will return a unique identifier specific to a service.
[ "ServiceID", "will", "return", "a", "unique", "identifier", "specific", "to", "a", "service", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L430-L446
2,735
aws/aws-sdk-go
private/model/api/api.go
ServicePackageDoc
func (a *API) ServicePackageDoc() string { a.imports = map[string]bool{} var buf bytes.Buffer if err := tplServiceDoc.Execute(&buf, a); err != nil { panic(err) } return buf.String() }
go
func (a *API) ServicePackageDoc() string { a.imports = map[string]bool{} var buf bytes.Buffer if err := tplServiceDoc.Execute(&buf, a); err != nil { panic(err) } return buf.String() }
[ "func", "(", "a", "*", "API", ")", "ServicePackageDoc", "(", ")", "string", "{", "a", ".", "imports", "=", "map", "[", "string", "]", "bool", "{", "}", "\n\n", "var", "buf", "bytes", ".", "Buffer", "\n", "if", "err", ":=", "tplServiceDoc", ".", "Execute", "(", "&", "buf", ",", "a", ")", ";", "err", "!=", "nil", "{", "panic", "(", "err", ")", "\n", "}", "\n\n", "return", "buf", ".", "String", "(", ")", "\n", "}" ]
// ServicePackageDoc generates the contents of the doc file for the service. // // Will also read in the custom doc templates for the service if found.
[ "ServicePackageDoc", "generates", "the", "contents", "of", "the", "doc", "file", "for", "the", "service", ".", "Will", "also", "read", "in", "the", "custom", "doc", "templates", "for", "the", "service", "if", "found", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L620-L629
2,736
aws/aws-sdk-go
private/model/api/api.go
ServiceGoCode
func (a *API) ServiceGoCode() string { a.resetImports() a.AddSDKImport("aws") a.AddSDKImport("aws/client") a.AddSDKImport("aws/client/metadata") a.AddSDKImport("aws/request") if a.Metadata.SignatureVersion == "v2" { a.AddSDKImport("private/signer/v2") a.AddSDKImport("aws/corehandlers") } else { a.AddSDKImport("aws/signer/v4") } a.AddSDKImport("private/protocol", a.ProtocolPackage()) if a.EndpointDiscoveryOp != nil { a.AddSDKImport("aws/crr") } var buf bytes.Buffer err := tplService.Execute(&buf, a) if err != nil { panic(err) } code := a.importsGoCode() + buf.String() return code }
go
func (a *API) ServiceGoCode() string { a.resetImports() a.AddSDKImport("aws") a.AddSDKImport("aws/client") a.AddSDKImport("aws/client/metadata") a.AddSDKImport("aws/request") if a.Metadata.SignatureVersion == "v2" { a.AddSDKImport("private/signer/v2") a.AddSDKImport("aws/corehandlers") } else { a.AddSDKImport("aws/signer/v4") } a.AddSDKImport("private/protocol", a.ProtocolPackage()) if a.EndpointDiscoveryOp != nil { a.AddSDKImport("aws/crr") } var buf bytes.Buffer err := tplService.Execute(&buf, a) if err != nil { panic(err) } code := a.importsGoCode() + buf.String() return code }
[ "func", "(", "a", "*", "API", ")", "ServiceGoCode", "(", ")", "string", "{", "a", ".", "resetImports", "(", ")", "\n", "a", ".", "AddSDKImport", "(", "\"", "\"", ")", "\n", "a", ".", "AddSDKImport", "(", "\"", "\"", ")", "\n", "a", ".", "AddSDKImport", "(", "\"", "\"", ")", "\n", "a", ".", "AddSDKImport", "(", "\"", "\"", ")", "\n", "if", "a", ".", "Metadata", ".", "SignatureVersion", "==", "\"", "\"", "{", "a", ".", "AddSDKImport", "(", "\"", "\"", ")", "\n", "a", ".", "AddSDKImport", "(", "\"", "\"", ")", "\n", "}", "else", "{", "a", ".", "AddSDKImport", "(", "\"", "\"", ")", "\n", "}", "\n", "a", ".", "AddSDKImport", "(", "\"", "\"", ",", "a", ".", "ProtocolPackage", "(", ")", ")", "\n", "if", "a", ".", "EndpointDiscoveryOp", "!=", "nil", "{", "a", ".", "AddSDKImport", "(", "\"", "\"", ")", "\n", "}", "\n\n", "var", "buf", "bytes", ".", "Buffer", "\n", "err", ":=", "tplService", ".", "Execute", "(", "&", "buf", ",", "a", ")", "\n", "if", "err", "!=", "nil", "{", "panic", "(", "err", ")", "\n", "}", "\n\n", "code", ":=", "a", ".", "importsGoCode", "(", ")", "+", "buf", ".", "String", "(", ")", "\n", "return", "code", "\n", "}" ]
// ServiceGoCode renders service go code. Returning it as a string.
[ "ServiceGoCode", "renders", "service", "go", "code", ".", "Returning", "it", "as", "a", "string", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L632-L657
2,737
aws/aws-sdk-go
private/model/api/api.go
ExampleGoCode
func (a *API) ExampleGoCode() string { exs := []string{} imports := map[string]bool{} for _, o := range a.OperationList() { o.imports = map[string]bool{} exs = append(exs, o.Example()) for k, v := range o.imports { imports[k] = v } } code := fmt.Sprintf("import (\n%q\n%q\n%q\n\n%q\n%q\n%q\n", "bytes", "fmt", "time", SDKImportRoot+"/aws", SDKImportRoot+"/aws/session", a.ImportPath(), ) for k := range imports { code += fmt.Sprintf("%q\n", k) } code += ")\n\n" code += "var _ time.Duration\nvar _ bytes.Buffer\n\n" code += strings.Join(exs, "\n\n") return code }
go
func (a *API) ExampleGoCode() string { exs := []string{} imports := map[string]bool{} for _, o := range a.OperationList() { o.imports = map[string]bool{} exs = append(exs, o.Example()) for k, v := range o.imports { imports[k] = v } } code := fmt.Sprintf("import (\n%q\n%q\n%q\n\n%q\n%q\n%q\n", "bytes", "fmt", "time", SDKImportRoot+"/aws", SDKImportRoot+"/aws/session", a.ImportPath(), ) for k := range imports { code += fmt.Sprintf("%q\n", k) } code += ")\n\n" code += "var _ time.Duration\nvar _ bytes.Buffer\n\n" code += strings.Join(exs, "\n\n") return code }
[ "func", "(", "a", "*", "API", ")", "ExampleGoCode", "(", ")", "string", "{", "exs", ":=", "[", "]", "string", "{", "}", "\n", "imports", ":=", "map", "[", "string", "]", "bool", "{", "}", "\n", "for", "_", ",", "o", ":=", "range", "a", ".", "OperationList", "(", ")", "{", "o", ".", "imports", "=", "map", "[", "string", "]", "bool", "{", "}", "\n", "exs", "=", "append", "(", "exs", ",", "o", ".", "Example", "(", ")", ")", "\n", "for", "k", ",", "v", ":=", "range", "o", ".", "imports", "{", "imports", "[", "k", "]", "=", "v", "\n", "}", "\n", "}", "\n\n", "code", ":=", "fmt", ".", "Sprintf", "(", "\"", "\\n", "\\n", "\\n", "\\n", "\\n", "\\n", "\\n", "\\n", "\"", ",", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ",", "SDKImportRoot", "+", "\"", "\"", ",", "SDKImportRoot", "+", "\"", "\"", ",", "a", ".", "ImportPath", "(", ")", ",", ")", "\n", "for", "k", ":=", "range", "imports", "{", "code", "+=", "fmt", ".", "Sprintf", "(", "\"", "\\n", "\"", ",", "k", ")", "\n", "}", "\n", "code", "+=", "\"", "\\n", "\\n", "\"", "\n", "code", "+=", "\"", "\\n", "\\n", "\\n", "\"", "\n", "code", "+=", "strings", ".", "Join", "(", "exs", ",", "\"", "\\n", "\\n", "\"", ")", "\n", "return", "code", "\n", "}" ]
// ExampleGoCode renders service example code. Returning it as a string.
[ "ExampleGoCode", "renders", "service", "example", "code", ".", "Returning", "it", "as", "a", "string", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L660-L686
2,738
aws/aws-sdk-go
private/model/api/api.go
NewAPIGoCodeWithPkgName
func (a *API) NewAPIGoCodeWithPkgName(cfg string) string { return fmt.Sprintf("%s.New(%s)", a.PackageName(), cfg) }
go
func (a *API) NewAPIGoCodeWithPkgName(cfg string) string { return fmt.Sprintf("%s.New(%s)", a.PackageName(), cfg) }
[ "func", "(", "a", "*", "API", ")", "NewAPIGoCodeWithPkgName", "(", "cfg", "string", ")", "string", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "a", ".", "PackageName", "(", ")", ",", "cfg", ")", "\n", "}" ]
// NewAPIGoCodeWithPkgName returns a string of instantiating the API prefixed // with its package name. Takes a string depicting the Config.
[ "NewAPIGoCodeWithPkgName", "returns", "a", "string", "of", "instantiating", "the", "API", "prefixed", "with", "its", "package", "name", ".", "Takes", "a", "string", "depicting", "the", "Config", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L769-L771
2,739
aws/aws-sdk-go
private/model/api/api.go
addShapeValidations
func (a *API) addShapeValidations() { for _, o := range a.Operations { resolveShapeValidations(o.InputRef.Shape) } }
go
func (a *API) addShapeValidations() { for _, o := range a.Operations { resolveShapeValidations(o.InputRef.Shape) } }
[ "func", "(", "a", "*", "API", ")", "addShapeValidations", "(", ")", "{", "for", "_", ",", "o", ":=", "range", "a", ".", "Operations", "{", "resolveShapeValidations", "(", "o", ".", "InputRef", ".", "Shape", ")", "\n", "}", "\n", "}" ]
// computes the validation chain for all input shapes
[ "computes", "the", "validation", "chain", "for", "all", "input", "shapes" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L774-L778
2,740
aws/aws-sdk-go
private/model/api/api.go
resolveShapeValidations
func resolveShapeValidations(s *Shape, ancestry ...*Shape) { for _, a := range ancestry { if a == s { return } } children := []string{} for _, name := range s.MemberNames() { ref := s.MemberRefs[name] if s.IsRequired(name) && !s.Validations.Has(ref, ShapeValidationRequired) { s.Validations = append(s.Validations, ShapeValidation{ Name: name, Ref: ref, Type: ShapeValidationRequired, }) } if ref.Shape.Min != 0 && !s.Validations.Has(ref, ShapeValidationMinVal) { s.Validations = append(s.Validations, ShapeValidation{ Name: name, Ref: ref, Type: ShapeValidationMinVal, }) } if !ref.CanBeEmpty() && !s.Validations.Has(ref, ShapeValidationMinVal) { s.Validations = append(s.Validations, ShapeValidation{ Name: name, Ref: ref, Type: ShapeValidationMinVal, }) } switch ref.Shape.Type { case "map", "list", "structure": children = append(children, name) } } ancestry = append(ancestry, s) for _, name := range children { ref := s.MemberRefs[name] // Since this is a grab bag we will just continue since // we can't validate because we don't know the valued shape. if ref.JSONValue { continue } nestedShape := ref.Shape.NestedShape() var v *ShapeValidation if len(nestedShape.Validations) > 0 { v = &ShapeValidation{ Name: name, Ref: ref, Type: ShapeValidationNested, } } else { resolveShapeValidations(nestedShape, ancestry...) if len(nestedShape.Validations) > 0 { v = &ShapeValidation{ Name: name, Ref: ref, Type: ShapeValidationNested, } } } if v != nil && !s.Validations.Has(v.Ref, v.Type) { s.Validations = append(s.Validations, *v) } } ancestry = ancestry[:len(ancestry)-1] }
go
func resolveShapeValidations(s *Shape, ancestry ...*Shape) { for _, a := range ancestry { if a == s { return } } children := []string{} for _, name := range s.MemberNames() { ref := s.MemberRefs[name] if s.IsRequired(name) && !s.Validations.Has(ref, ShapeValidationRequired) { s.Validations = append(s.Validations, ShapeValidation{ Name: name, Ref: ref, Type: ShapeValidationRequired, }) } if ref.Shape.Min != 0 && !s.Validations.Has(ref, ShapeValidationMinVal) { s.Validations = append(s.Validations, ShapeValidation{ Name: name, Ref: ref, Type: ShapeValidationMinVal, }) } if !ref.CanBeEmpty() && !s.Validations.Has(ref, ShapeValidationMinVal) { s.Validations = append(s.Validations, ShapeValidation{ Name: name, Ref: ref, Type: ShapeValidationMinVal, }) } switch ref.Shape.Type { case "map", "list", "structure": children = append(children, name) } } ancestry = append(ancestry, s) for _, name := range children { ref := s.MemberRefs[name] // Since this is a grab bag we will just continue since // we can't validate because we don't know the valued shape. if ref.JSONValue { continue } nestedShape := ref.Shape.NestedShape() var v *ShapeValidation if len(nestedShape.Validations) > 0 { v = &ShapeValidation{ Name: name, Ref: ref, Type: ShapeValidationNested, } } else { resolveShapeValidations(nestedShape, ancestry...) if len(nestedShape.Validations) > 0 { v = &ShapeValidation{ Name: name, Ref: ref, Type: ShapeValidationNested, } } } if v != nil && !s.Validations.Has(v.Ref, v.Type) { s.Validations = append(s.Validations, *v) } } ancestry = ancestry[:len(ancestry)-1] }
[ "func", "resolveShapeValidations", "(", "s", "*", "Shape", ",", "ancestry", "...", "*", "Shape", ")", "{", "for", "_", ",", "a", ":=", "range", "ancestry", "{", "if", "a", "==", "s", "{", "return", "\n", "}", "\n", "}", "\n\n", "children", ":=", "[", "]", "string", "{", "}", "\n", "for", "_", ",", "name", ":=", "range", "s", ".", "MemberNames", "(", ")", "{", "ref", ":=", "s", ".", "MemberRefs", "[", "name", "]", "\n", "if", "s", ".", "IsRequired", "(", "name", ")", "&&", "!", "s", ".", "Validations", ".", "Has", "(", "ref", ",", "ShapeValidationRequired", ")", "{", "s", ".", "Validations", "=", "append", "(", "s", ".", "Validations", ",", "ShapeValidation", "{", "Name", ":", "name", ",", "Ref", ":", "ref", ",", "Type", ":", "ShapeValidationRequired", ",", "}", ")", "\n", "}", "\n\n", "if", "ref", ".", "Shape", ".", "Min", "!=", "0", "&&", "!", "s", ".", "Validations", ".", "Has", "(", "ref", ",", "ShapeValidationMinVal", ")", "{", "s", ".", "Validations", "=", "append", "(", "s", ".", "Validations", ",", "ShapeValidation", "{", "Name", ":", "name", ",", "Ref", ":", "ref", ",", "Type", ":", "ShapeValidationMinVal", ",", "}", ")", "\n", "}", "\n\n", "if", "!", "ref", ".", "CanBeEmpty", "(", ")", "&&", "!", "s", ".", "Validations", ".", "Has", "(", "ref", ",", "ShapeValidationMinVal", ")", "{", "s", ".", "Validations", "=", "append", "(", "s", ".", "Validations", ",", "ShapeValidation", "{", "Name", ":", "name", ",", "Ref", ":", "ref", ",", "Type", ":", "ShapeValidationMinVal", ",", "}", ")", "\n", "}", "\n\n", "switch", "ref", ".", "Shape", ".", "Type", "{", "case", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ":", "children", "=", "append", "(", "children", ",", "name", ")", "\n", "}", "\n", "}", "\n\n", "ancestry", "=", "append", "(", "ancestry", ",", "s", ")", "\n", "for", "_", ",", "name", ":=", "range", "children", "{", "ref", ":=", "s", ".", "MemberRefs", "[", "name", "]", "\n", "// Since this is a grab bag we will just continue since", "// we can't validate because we don't know the valued shape.", "if", "ref", ".", "JSONValue", "{", "continue", "\n", "}", "\n\n", "nestedShape", ":=", "ref", ".", "Shape", ".", "NestedShape", "(", ")", "\n\n", "var", "v", "*", "ShapeValidation", "\n", "if", "len", "(", "nestedShape", ".", "Validations", ")", ">", "0", "{", "v", "=", "&", "ShapeValidation", "{", "Name", ":", "name", ",", "Ref", ":", "ref", ",", "Type", ":", "ShapeValidationNested", ",", "}", "\n", "}", "else", "{", "resolveShapeValidations", "(", "nestedShape", ",", "ancestry", "...", ")", "\n", "if", "len", "(", "nestedShape", ".", "Validations", ")", ">", "0", "{", "v", "=", "&", "ShapeValidation", "{", "Name", ":", "name", ",", "Ref", ":", "ref", ",", "Type", ":", "ShapeValidationNested", ",", "}", "\n", "}", "\n", "}", "\n\n", "if", "v", "!=", "nil", "&&", "!", "s", ".", "Validations", ".", "Has", "(", "v", ".", "Ref", ",", "v", ".", "Type", ")", "{", "s", ".", "Validations", "=", "append", "(", "s", ".", "Validations", ",", "*", "v", ")", "\n", "}", "\n", "}", "\n", "ancestry", "=", "ancestry", "[", ":", "len", "(", "ancestry", ")", "-", "1", "]", "\n", "}" ]
// Updates the source shape and all nested shapes with the validations that // could possibly be needed.
[ "Updates", "the", "source", "shape", "and", "all", "nested", "shapes", "with", "the", "validations", "that", "could", "possibly", "be", "needed", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L782-L846
2,741
aws/aws-sdk-go
private/model/api/api.go
removeShape
func (a *API) removeShape(s *Shape) { debugLogger.Logln("removing shape,", s.ShapeName) delete(a.Shapes, s.ShapeName) for name, ref := range s.MemberRefs { a.removeShapeRef(ref) delete(s.MemberRefs, name) } for _, ref := range []*ShapeRef{&s.MemberRef, &s.KeyRef, &s.ValueRef} { if ref.Shape == nil { continue } a.removeShapeRef(ref) *ref = ShapeRef{} } }
go
func (a *API) removeShape(s *Shape) { debugLogger.Logln("removing shape,", s.ShapeName) delete(a.Shapes, s.ShapeName) for name, ref := range s.MemberRefs { a.removeShapeRef(ref) delete(s.MemberRefs, name) } for _, ref := range []*ShapeRef{&s.MemberRef, &s.KeyRef, &s.ValueRef} { if ref.Shape == nil { continue } a.removeShapeRef(ref) *ref = ShapeRef{} } }
[ "func", "(", "a", "*", "API", ")", "removeShape", "(", "s", "*", "Shape", ")", "{", "debugLogger", ".", "Logln", "(", "\"", "\"", ",", "s", ".", "ShapeName", ")", "\n\n", "delete", "(", "a", ".", "Shapes", ",", "s", ".", "ShapeName", ")", "\n\n", "for", "name", ",", "ref", ":=", "range", "s", ".", "MemberRefs", "{", "a", ".", "removeShapeRef", "(", "ref", ")", "\n", "delete", "(", "s", ".", "MemberRefs", ",", "name", ")", "\n", "}", "\n\n", "for", "_", ",", "ref", ":=", "range", "[", "]", "*", "ShapeRef", "{", "&", "s", ".", "MemberRef", ",", "&", "s", ".", "KeyRef", ",", "&", "s", ".", "ValueRef", "}", "{", "if", "ref", ".", "Shape", "==", "nil", "{", "continue", "\n", "}", "\n", "a", ".", "removeShapeRef", "(", "ref", ")", "\n", "*", "ref", "=", "ShapeRef", "{", "}", "\n", "}", "\n", "}" ]
// removeShape removes the given shape, and all form member's reference target // shapes. Will also remove member reference targeted shapes if those shapes do // not have any additional references.
[ "removeShape", "removes", "the", "given", "shape", "and", "all", "form", "member", "s", "reference", "target", "shapes", ".", "Will", "also", "remove", "member", "reference", "targeted", "shapes", "if", "those", "shapes", "do", "not", "have", "any", "additional", "references", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L890-L907
2,742
aws/aws-sdk-go
private/model/api/api.go
removeShapeRef
func (a *API) removeShapeRef(ref *ShapeRef) { if ref.Shape == nil { return } ref.Shape.removeRef(ref) if len(ref.Shape.refs) == 0 { a.removeShape(ref.Shape) } }
go
func (a *API) removeShapeRef(ref *ShapeRef) { if ref.Shape == nil { return } ref.Shape.removeRef(ref) if len(ref.Shape.refs) == 0 { a.removeShape(ref.Shape) } }
[ "func", "(", "a", "*", "API", ")", "removeShapeRef", "(", "ref", "*", "ShapeRef", ")", "{", "if", "ref", ".", "Shape", "==", "nil", "{", "return", "\n", "}", "\n\n", "ref", ".", "Shape", ".", "removeRef", "(", "ref", ")", "\n", "if", "len", "(", "ref", ".", "Shape", ".", "refs", ")", "==", "0", "{", "a", ".", "removeShape", "(", "ref", ".", "Shape", ")", "\n", "}", "\n", "}" ]
// removeShapeRef removes the shape reference from its target shape. If the // reference was the last reference to the target shape, the shape will also be // removed.
[ "removeShapeRef", "removes", "the", "shape", "reference", "from", "its", "target", "shape", ".", "If", "the", "reference", "was", "the", "last", "reference", "to", "the", "target", "shape", "the", "shape", "will", "also", "be", "removed", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/model/api/api.go#L912-L921
2,743
aws/aws-sdk-go
service/transcribeservice/api.go
SetDownloadUri
func (s *GetVocabularyOutput) SetDownloadUri(v string) *GetVocabularyOutput { s.DownloadUri = &v return s }
go
func (s *GetVocabularyOutput) SetDownloadUri(v string) *GetVocabularyOutput { s.DownloadUri = &v return s }
[ "func", "(", "s", "*", "GetVocabularyOutput", ")", "SetDownloadUri", "(", "v", "string", ")", "*", "GetVocabularyOutput", "{", "s", ".", "DownloadUri", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDownloadUri sets the DownloadUri field's value.
[ "SetDownloadUri", "sets", "the", "DownloadUri", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/transcribeservice/api.go#L1388-L1391
2,744
aws/aws-sdk-go
service/transcribeservice/api.go
SetJobNameContains
func (s *ListTranscriptionJobsInput) SetJobNameContains(v string) *ListTranscriptionJobsInput { s.JobNameContains = &v return s }
go
func (s *ListTranscriptionJobsInput) SetJobNameContains(v string) *ListTranscriptionJobsInput { s.JobNameContains = &v return s }
[ "func", "(", "s", "*", "ListTranscriptionJobsInput", ")", "SetJobNameContains", "(", "v", "string", ")", "*", "ListTranscriptionJobsInput", "{", "s", ".", "JobNameContains", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetJobNameContains sets the JobNameContains field's value.
[ "SetJobNameContains", "sets", "the", "JobNameContains", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/transcribeservice/api.go#L1472-L1475
2,745
aws/aws-sdk-go
service/transcribeservice/api.go
SetTranscriptionJobSummaries
func (s *ListTranscriptionJobsOutput) SetTranscriptionJobSummaries(v []*TranscriptionJobSummary) *ListTranscriptionJobsOutput { s.TranscriptionJobSummaries = v return s }
go
func (s *ListTranscriptionJobsOutput) SetTranscriptionJobSummaries(v []*TranscriptionJobSummary) *ListTranscriptionJobsOutput { s.TranscriptionJobSummaries = v return s }
[ "func", "(", "s", "*", "ListTranscriptionJobsOutput", ")", "SetTranscriptionJobSummaries", "(", "v", "[", "]", "*", "TranscriptionJobSummary", ")", "*", "ListTranscriptionJobsOutput", "{", "s", ".", "TranscriptionJobSummaries", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTranscriptionJobSummaries sets the TranscriptionJobSummaries field's value.
[ "SetTranscriptionJobSummaries", "sets", "the", "TranscriptionJobSummaries", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/transcribeservice/api.go#L1535-L1538
2,746
aws/aws-sdk-go
service/transcribeservice/api.go
SetStateEquals
func (s *ListVocabulariesInput) SetStateEquals(v string) *ListVocabulariesInput { s.StateEquals = &v return s }
go
func (s *ListVocabulariesInput) SetStateEquals(v string) *ListVocabulariesInput { s.StateEquals = &v return s }
[ "func", "(", "s", "*", "ListVocabulariesInput", ")", "SetStateEquals", "(", "v", "string", ")", "*", "ListVocabulariesInput", "{", "s", ".", "StateEquals", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetStateEquals sets the StateEquals field's value.
[ "SetStateEquals", "sets", "the", "StateEquals", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/transcribeservice/api.go#L1607-L1610
2,747
aws/aws-sdk-go
service/transcribeservice/api.go
SetVocabularies
func (s *ListVocabulariesOutput) SetVocabularies(v []*VocabularyInfo) *ListVocabulariesOutput { s.Vocabularies = v return s }
go
func (s *ListVocabulariesOutput) SetVocabularies(v []*VocabularyInfo) *ListVocabulariesOutput { s.Vocabularies = v return s }
[ "func", "(", "s", "*", "ListVocabulariesOutput", ")", "SetVocabularies", "(", "v", "[", "]", "*", "VocabularyInfo", ")", "*", "ListVocabulariesOutput", "{", "s", ".", "Vocabularies", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetVocabularies sets the Vocabularies field's value.
[ "SetVocabularies", "sets", "the", "Vocabularies", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/transcribeservice/api.go#L1653-L1656
2,748
aws/aws-sdk-go
service/transcribeservice/api.go
SetMediaFileUri
func (s *Media) SetMediaFileUri(v string) *Media { s.MediaFileUri = &v return s }
go
func (s *Media) SetMediaFileUri(v string) *Media { s.MediaFileUri = &v return s }
[ "func", "(", "s", "*", "Media", ")", "SetMediaFileUri", "(", "v", "string", ")", "*", "Media", "{", "s", ".", "MediaFileUri", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetMediaFileUri sets the MediaFileUri field's value.
[ "SetMediaFileUri", "sets", "the", "MediaFileUri", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/transcribeservice/api.go#L1702-L1705
2,749
aws/aws-sdk-go
service/transcribeservice/api.go
SetChannelIdentification
func (s *Settings) SetChannelIdentification(v bool) *Settings { s.ChannelIdentification = &v return s }
go
func (s *Settings) SetChannelIdentification(v bool) *Settings { s.ChannelIdentification = &v return s }
[ "func", "(", "s", "*", "Settings", ")", "SetChannelIdentification", "(", "v", "bool", ")", "*", "Settings", "{", "s", ".", "ChannelIdentification", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetChannelIdentification sets the ChannelIdentification field's value.
[ "SetChannelIdentification", "sets", "the", "ChannelIdentification", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/transcribeservice/api.go#L1769-L1772
2,750
aws/aws-sdk-go
service/transcribeservice/api.go
SetMaxSpeakerLabels
func (s *Settings) SetMaxSpeakerLabels(v int64) *Settings { s.MaxSpeakerLabels = &v return s }
go
func (s *Settings) SetMaxSpeakerLabels(v int64) *Settings { s.MaxSpeakerLabels = &v return s }
[ "func", "(", "s", "*", "Settings", ")", "SetMaxSpeakerLabels", "(", "v", "int64", ")", "*", "Settings", "{", "s", ".", "MaxSpeakerLabels", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetMaxSpeakerLabels sets the MaxSpeakerLabels field's value.
[ "SetMaxSpeakerLabels", "sets", "the", "MaxSpeakerLabels", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/transcribeservice/api.go#L1775-L1778
2,751
aws/aws-sdk-go
service/transcribeservice/api.go
SetShowSpeakerLabels
func (s *Settings) SetShowSpeakerLabels(v bool) *Settings { s.ShowSpeakerLabels = &v return s }
go
func (s *Settings) SetShowSpeakerLabels(v bool) *Settings { s.ShowSpeakerLabels = &v return s }
[ "func", "(", "s", "*", "Settings", ")", "SetShowSpeakerLabels", "(", "v", "bool", ")", "*", "Settings", "{", "s", ".", "ShowSpeakerLabels", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetShowSpeakerLabels sets the ShowSpeakerLabels field's value.
[ "SetShowSpeakerLabels", "sets", "the", "ShowSpeakerLabels", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/transcribeservice/api.go#L1781-L1784
2,752
aws/aws-sdk-go
service/transcribeservice/api.go
SetOutputBucketName
func (s *StartTranscriptionJobInput) SetOutputBucketName(v string) *StartTranscriptionJobInput { s.OutputBucketName = &v return s }
go
func (s *StartTranscriptionJobInput) SetOutputBucketName(v string) *StartTranscriptionJobInput { s.OutputBucketName = &v return s }
[ "func", "(", "s", "*", "StartTranscriptionJobInput", ")", "SetOutputBucketName", "(", "v", "string", ")", "*", "StartTranscriptionJobInput", "{", "s", ".", "OutputBucketName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetOutputBucketName sets the OutputBucketName field's value.
[ "SetOutputBucketName", "sets", "the", "OutputBucketName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/transcribeservice/api.go#L1914-L1917
2,753
aws/aws-sdk-go
service/transcribeservice/api.go
SetTranscriptFileUri
func (s *Transcript) SetTranscriptFileUri(v string) *Transcript { s.TranscriptFileUri = &v return s }
go
func (s *Transcript) SetTranscriptFileUri(v string) *Transcript { s.TranscriptFileUri = &v return s }
[ "func", "(", "s", "*", "Transcript", ")", "SetTranscriptFileUri", "(", "v", "string", ")", "*", "Transcript", "{", "s", ".", "TranscriptFileUri", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTranscriptFileUri sets the TranscriptFileUri field's value.
[ "SetTranscriptFileUri", "sets", "the", "TranscriptFileUri", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/transcribeservice/api.go#L1978-L1981
2,754
aws/aws-sdk-go
service/transcribeservice/api.go
SetTranscript
func (s *TranscriptionJob) SetTranscript(v *Transcript) *TranscriptionJob { s.Transcript = v return s }
go
func (s *TranscriptionJob) SetTranscript(v *Transcript) *TranscriptionJob { s.Transcript = v return s }
[ "func", "(", "s", "*", "TranscriptionJob", ")", "SetTranscript", "(", "v", "*", "Transcript", ")", "*", "TranscriptionJob", "{", "s", ".", "Transcript", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTranscript sets the Transcript field's value.
[ "SetTranscript", "sets", "the", "Transcript", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/transcribeservice/api.go#L2115-L2118
2,755
aws/aws-sdk-go
service/transcribeservice/api.go
SetOutputLocationType
func (s *TranscriptionJobSummary) SetOutputLocationType(v string) *TranscriptionJobSummary { s.OutputLocationType = &v return s }
go
func (s *TranscriptionJobSummary) SetOutputLocationType(v string) *TranscriptionJobSummary { s.OutputLocationType = &v return s }
[ "func", "(", "s", "*", "TranscriptionJobSummary", ")", "SetOutputLocationType", "(", "v", "string", ")", "*", "TranscriptionJobSummary", "{", "s", ".", "OutputLocationType", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetOutputLocationType sets the OutputLocationType field's value.
[ "SetOutputLocationType", "sets", "the", "OutputLocationType", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/transcribeservice/api.go#L2202-L2205
2,756
aws/aws-sdk-go
aws/request/retryer.go
WithRetryer
func WithRetryer(cfg *aws.Config, retryer Retryer) *aws.Config { cfg.Retryer = retryer return cfg }
go
func WithRetryer(cfg *aws.Config, retryer Retryer) *aws.Config { cfg.Retryer = retryer return cfg }
[ "func", "WithRetryer", "(", "cfg", "*", "aws", ".", "Config", ",", "retryer", "Retryer", ")", "*", "aws", ".", "Config", "{", "cfg", ".", "Retryer", "=", "retryer", "\n", "return", "cfg", "\n", "}" ]
// WithRetryer sets a config Retryer value to the given Config returning it // for chaining.
[ "WithRetryer", "sets", "a", "config", "Retryer", "value", "to", "the", "given", "Config", "returning", "it", "for", "chaining", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/retryer.go#L21-L24
2,757
aws/aws-sdk-go
aws/request/retryer.go
IsErrorRetryable
func IsErrorRetryable(err error) bool { if err != nil { if aerr, ok := err.(awserr.Error); ok { return isCodeRetryable(aerr.Code()) || isNestedErrorRetryable(aerr) } } return false }
go
func IsErrorRetryable(err error) bool { if err != nil { if aerr, ok := err.(awserr.Error); ok { return isCodeRetryable(aerr.Code()) || isNestedErrorRetryable(aerr) } } return false }
[ "func", "IsErrorRetryable", "(", "err", "error", ")", "bool", "{", "if", "err", "!=", "nil", "{", "if", "aerr", ",", "ok", ":=", "err", ".", "(", "awserr", ".", "Error", ")", ";", "ok", "{", "return", "isCodeRetryable", "(", "aerr", ".", "Code", "(", ")", ")", "||", "isNestedErrorRetryable", "(", "aerr", ")", "\n", "}", "\n", "}", "\n", "return", "false", "\n", "}" ]
// IsErrorRetryable returns whether the error is retryable, based on its Code. // Returns false if error is nil.
[ "IsErrorRetryable", "returns", "whether", "the", "error", "is", "retryable", "based", "on", "its", "Code", ".", "Returns", "false", "if", "error", "is", "nil", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/retryer.go#L110-L117
2,758
aws/aws-sdk-go
aws/request/retryer.go
IsErrorThrottle
func IsErrorThrottle(err error) bool { if err != nil { if aerr, ok := err.(awserr.Error); ok { return isCodeThrottle(aerr.Code()) } } return false }
go
func IsErrorThrottle(err error) bool { if err != nil { if aerr, ok := err.(awserr.Error); ok { return isCodeThrottle(aerr.Code()) } } return false }
[ "func", "IsErrorThrottle", "(", "err", "error", ")", "bool", "{", "if", "err", "!=", "nil", "{", "if", "aerr", ",", "ok", ":=", "err", ".", "(", "awserr", ".", "Error", ")", ";", "ok", "{", "return", "isCodeThrottle", "(", "aerr", ".", "Code", "(", ")", ")", "\n", "}", "\n", "}", "\n", "return", "false", "\n", "}" ]
// IsErrorThrottle returns whether the error is to be throttled based on its code. // Returns false if error is nil.
[ "IsErrorThrottle", "returns", "whether", "the", "error", "is", "to", "be", "throttled", "based", "on", "its", "code", ".", "Returns", "false", "if", "error", "is", "nil", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/retryer.go#L121-L128
2,759
aws/aws-sdk-go
aws/request/retryer.go
IsErrorExpiredCreds
func IsErrorExpiredCreds(err error) bool { if err != nil { if aerr, ok := err.(awserr.Error); ok { return isCodeExpiredCreds(aerr.Code()) } } return false }
go
func IsErrorExpiredCreds(err error) bool { if err != nil { if aerr, ok := err.(awserr.Error); ok { return isCodeExpiredCreds(aerr.Code()) } } return false }
[ "func", "IsErrorExpiredCreds", "(", "err", "error", ")", "bool", "{", "if", "err", "!=", "nil", "{", "if", "aerr", ",", "ok", ":=", "err", ".", "(", "awserr", ".", "Error", ")", ";", "ok", "{", "return", "isCodeExpiredCreds", "(", "aerr", ".", "Code", "(", ")", ")", "\n", "}", "\n", "}", "\n", "return", "false", "\n", "}" ]
// IsErrorExpiredCreds returns whether the error code is a credential expiry error. // Returns false if error is nil.
[ "IsErrorExpiredCreds", "returns", "whether", "the", "error", "code", "is", "a", "credential", "expiry", "error", ".", "Returns", "false", "if", "error", "is", "nil", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/retryer.go#L132-L139
2,760
aws/aws-sdk-go
aws/credentials/ec2rolecreds/ec2_role_provider.go
NewCredentials
func NewCredentials(c client.ConfigProvider, options ...func(*EC2RoleProvider)) *credentials.Credentials { p := &EC2RoleProvider{ Client: ec2metadata.New(c), } for _, option := range options { option(p) } return credentials.NewCredentials(p) }
go
func NewCredentials(c client.ConfigProvider, options ...func(*EC2RoleProvider)) *credentials.Credentials { p := &EC2RoleProvider{ Client: ec2metadata.New(c), } for _, option := range options { option(p) } return credentials.NewCredentials(p) }
[ "func", "NewCredentials", "(", "c", "client", ".", "ConfigProvider", ",", "options", "...", "func", "(", "*", "EC2RoleProvider", ")", ")", "*", "credentials", ".", "Credentials", "{", "p", ":=", "&", "EC2RoleProvider", "{", "Client", ":", "ec2metadata", ".", "New", "(", "c", ")", ",", "}", "\n\n", "for", "_", ",", "option", ":=", "range", "options", "{", "option", "(", "p", ")", "\n", "}", "\n\n", "return", "credentials", ".", "NewCredentials", "(", "p", ")", "\n", "}" ]
// NewCredentials returns a pointer to a new Credentials object wrapping // the EC2RoleProvider. Takes a ConfigProvider to create a EC2Metadata client. // The ConfigProvider is satisfied by the session.Session type.
[ "NewCredentials", "returns", "a", "pointer", "to", "a", "new", "Credentials", "object", "wrapping", "the", "EC2RoleProvider", ".", "Takes", "a", "ConfigProvider", "to", "create", "a", "EC2Metadata", "client", ".", "The", "ConfigProvider", "is", "satisfied", "by", "the", "session", ".", "Session", "type", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/credentials/ec2rolecreds/ec2_role_provider.go#L58-L68
2,761
aws/aws-sdk-go
aws/credentials/ec2rolecreds/ec2_role_provider.go
NewCredentialsWithClient
func NewCredentialsWithClient(client *ec2metadata.EC2Metadata, options ...func(*EC2RoleProvider)) *credentials.Credentials { p := &EC2RoleProvider{ Client: client, } for _, option := range options { option(p) } return credentials.NewCredentials(p) }
go
func NewCredentialsWithClient(client *ec2metadata.EC2Metadata, options ...func(*EC2RoleProvider)) *credentials.Credentials { p := &EC2RoleProvider{ Client: client, } for _, option := range options { option(p) } return credentials.NewCredentials(p) }
[ "func", "NewCredentialsWithClient", "(", "client", "*", "ec2metadata", ".", "EC2Metadata", ",", "options", "...", "func", "(", "*", "EC2RoleProvider", ")", ")", "*", "credentials", ".", "Credentials", "{", "p", ":=", "&", "EC2RoleProvider", "{", "Client", ":", "client", ",", "}", "\n\n", "for", "_", ",", "option", ":=", "range", "options", "{", "option", "(", "p", ")", "\n", "}", "\n\n", "return", "credentials", ".", "NewCredentials", "(", "p", ")", "\n", "}" ]
// NewCredentialsWithClient returns a pointer to a new Credentials object wrapping // the EC2RoleProvider. Takes a EC2Metadata client to use when connecting to EC2 // metadata service.
[ "NewCredentialsWithClient", "returns", "a", "pointer", "to", "a", "new", "Credentials", "object", "wrapping", "the", "EC2RoleProvider", ".", "Takes", "a", "EC2Metadata", "client", "to", "use", "when", "connecting", "to", "EC2", "metadata", "service", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/credentials/ec2rolecreds/ec2_role_provider.go#L73-L83
2,762
aws/aws-sdk-go
aws/credentials/ec2rolecreds/ec2_role_provider.go
Retrieve
func (m *EC2RoleProvider) Retrieve() (credentials.Value, error) { credsList, err := requestCredList(m.Client) if err != nil { return credentials.Value{ProviderName: ProviderName}, err } if len(credsList) == 0 { return credentials.Value{ProviderName: ProviderName}, awserr.New("EmptyEC2RoleList", "empty EC2 Role list", nil) } credsName := credsList[0] roleCreds, err := requestCred(m.Client, credsName) if err != nil { return credentials.Value{ProviderName: ProviderName}, err } m.SetExpiration(roleCreds.Expiration, m.ExpiryWindow) return credentials.Value{ AccessKeyID: roleCreds.AccessKeyID, SecretAccessKey: roleCreds.SecretAccessKey, SessionToken: roleCreds.Token, ProviderName: ProviderName, }, nil }
go
func (m *EC2RoleProvider) Retrieve() (credentials.Value, error) { credsList, err := requestCredList(m.Client) if err != nil { return credentials.Value{ProviderName: ProviderName}, err } if len(credsList) == 0 { return credentials.Value{ProviderName: ProviderName}, awserr.New("EmptyEC2RoleList", "empty EC2 Role list", nil) } credsName := credsList[0] roleCreds, err := requestCred(m.Client, credsName) if err != nil { return credentials.Value{ProviderName: ProviderName}, err } m.SetExpiration(roleCreds.Expiration, m.ExpiryWindow) return credentials.Value{ AccessKeyID: roleCreds.AccessKeyID, SecretAccessKey: roleCreds.SecretAccessKey, SessionToken: roleCreds.Token, ProviderName: ProviderName, }, nil }
[ "func", "(", "m", "*", "EC2RoleProvider", ")", "Retrieve", "(", ")", "(", "credentials", ".", "Value", ",", "error", ")", "{", "credsList", ",", "err", ":=", "requestCredList", "(", "m", ".", "Client", ")", "\n", "if", "err", "!=", "nil", "{", "return", "credentials", ".", "Value", "{", "ProviderName", ":", "ProviderName", "}", ",", "err", "\n", "}", "\n\n", "if", "len", "(", "credsList", ")", "==", "0", "{", "return", "credentials", ".", "Value", "{", "ProviderName", ":", "ProviderName", "}", ",", "awserr", ".", "New", "(", "\"", "\"", ",", "\"", "\"", ",", "nil", ")", "\n", "}", "\n", "credsName", ":=", "credsList", "[", "0", "]", "\n\n", "roleCreds", ",", "err", ":=", "requestCred", "(", "m", ".", "Client", ",", "credsName", ")", "\n", "if", "err", "!=", "nil", "{", "return", "credentials", ".", "Value", "{", "ProviderName", ":", "ProviderName", "}", ",", "err", "\n", "}", "\n\n", "m", ".", "SetExpiration", "(", "roleCreds", ".", "Expiration", ",", "m", ".", "ExpiryWindow", ")", "\n\n", "return", "credentials", ".", "Value", "{", "AccessKeyID", ":", "roleCreds", ".", "AccessKeyID", ",", "SecretAccessKey", ":", "roleCreds", ".", "SecretAccessKey", ",", "SessionToken", ":", "roleCreds", ".", "Token", ",", "ProviderName", ":", "ProviderName", ",", "}", ",", "nil", "\n", "}" ]
// Retrieve retrieves credentials from the EC2 service. // Error will be returned if the request fails, or unable to extract // the desired credentials.
[ "Retrieve", "retrieves", "credentials", "from", "the", "EC2", "service", ".", "Error", "will", "be", "returned", "if", "the", "request", "fails", "or", "unable", "to", "extract", "the", "desired", "credentials", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/credentials/ec2rolecreds/ec2_role_provider.go#L88-L112
2,763
aws/aws-sdk-go
aws/credentials/ec2rolecreds/ec2_role_provider.go
requestCredList
func requestCredList(client *ec2metadata.EC2Metadata) ([]string, error) { resp, err := client.GetMetadata(iamSecurityCredsPath) if err != nil { return nil, awserr.New("EC2RoleRequestError", "no EC2 instance role found", err) } credsList := []string{} s := bufio.NewScanner(strings.NewReader(resp)) for s.Scan() { credsList = append(credsList, s.Text()) } if err := s.Err(); err != nil { return nil, awserr.New("SerializationError", "failed to read EC2 instance role from metadata service", err) } return credsList, nil }
go
func requestCredList(client *ec2metadata.EC2Metadata) ([]string, error) { resp, err := client.GetMetadata(iamSecurityCredsPath) if err != nil { return nil, awserr.New("EC2RoleRequestError", "no EC2 instance role found", err) } credsList := []string{} s := bufio.NewScanner(strings.NewReader(resp)) for s.Scan() { credsList = append(credsList, s.Text()) } if err := s.Err(); err != nil { return nil, awserr.New("SerializationError", "failed to read EC2 instance role from metadata service", err) } return credsList, nil }
[ "func", "requestCredList", "(", "client", "*", "ec2metadata", ".", "EC2Metadata", ")", "(", "[", "]", "string", ",", "error", ")", "{", "resp", ",", "err", ":=", "client", ".", "GetMetadata", "(", "iamSecurityCredsPath", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "awserr", ".", "New", "(", "\"", "\"", ",", "\"", "\"", ",", "err", ")", "\n", "}", "\n\n", "credsList", ":=", "[", "]", "string", "{", "}", "\n", "s", ":=", "bufio", ".", "NewScanner", "(", "strings", ".", "NewReader", "(", "resp", ")", ")", "\n", "for", "s", ".", "Scan", "(", ")", "{", "credsList", "=", "append", "(", "credsList", ",", "s", ".", "Text", "(", ")", ")", "\n", "}", "\n\n", "if", "err", ":=", "s", ".", "Err", "(", ")", ";", "err", "!=", "nil", "{", "return", "nil", ",", "awserr", ".", "New", "(", "\"", "\"", ",", "\"", "\"", ",", "err", ")", "\n", "}", "\n\n", "return", "credsList", ",", "nil", "\n", "}" ]
// requestCredList requests a list of credentials from the EC2 service. // If there are no credentials, or there is an error making or receiving the request
[ "requestCredList", "requests", "a", "list", "of", "credentials", "from", "the", "EC2", "service", ".", "If", "there", "are", "no", "credentials", "or", "there", "is", "an", "error", "making", "or", "receiving", "the", "request" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/credentials/ec2rolecreds/ec2_role_provider.go#L132-L149
2,764
aws/aws-sdk-go
aws/credentials/ec2rolecreds/ec2_role_provider.go
requestCred
func requestCred(client *ec2metadata.EC2Metadata, credsName string) (ec2RoleCredRespBody, error) { resp, err := client.GetMetadata(sdkuri.PathJoin(iamSecurityCredsPath, credsName)) if err != nil { return ec2RoleCredRespBody{}, awserr.New("EC2RoleRequestError", fmt.Sprintf("failed to get %s EC2 instance role credentials", credsName), err) } respCreds := ec2RoleCredRespBody{} if err := json.NewDecoder(strings.NewReader(resp)).Decode(&respCreds); err != nil { return ec2RoleCredRespBody{}, awserr.New("SerializationError", fmt.Sprintf("failed to decode %s EC2 instance role credentials", credsName), err) } if respCreds.Code != "Success" { // If an error code was returned something failed requesting the role. return ec2RoleCredRespBody{}, awserr.New(respCreds.Code, respCreds.Message, nil) } return respCreds, nil }
go
func requestCred(client *ec2metadata.EC2Metadata, credsName string) (ec2RoleCredRespBody, error) { resp, err := client.GetMetadata(sdkuri.PathJoin(iamSecurityCredsPath, credsName)) if err != nil { return ec2RoleCredRespBody{}, awserr.New("EC2RoleRequestError", fmt.Sprintf("failed to get %s EC2 instance role credentials", credsName), err) } respCreds := ec2RoleCredRespBody{} if err := json.NewDecoder(strings.NewReader(resp)).Decode(&respCreds); err != nil { return ec2RoleCredRespBody{}, awserr.New("SerializationError", fmt.Sprintf("failed to decode %s EC2 instance role credentials", credsName), err) } if respCreds.Code != "Success" { // If an error code was returned something failed requesting the role. return ec2RoleCredRespBody{}, awserr.New(respCreds.Code, respCreds.Message, nil) } return respCreds, nil }
[ "func", "requestCred", "(", "client", "*", "ec2metadata", ".", "EC2Metadata", ",", "credsName", "string", ")", "(", "ec2RoleCredRespBody", ",", "error", ")", "{", "resp", ",", "err", ":=", "client", ".", "GetMetadata", "(", "sdkuri", ".", "PathJoin", "(", "iamSecurityCredsPath", ",", "credsName", ")", ")", "\n", "if", "err", "!=", "nil", "{", "return", "ec2RoleCredRespBody", "{", "}", ",", "awserr", ".", "New", "(", "\"", "\"", ",", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "credsName", ")", ",", "err", ")", "\n", "}", "\n\n", "respCreds", ":=", "ec2RoleCredRespBody", "{", "}", "\n", "if", "err", ":=", "json", ".", "NewDecoder", "(", "strings", ".", "NewReader", "(", "resp", ")", ")", ".", "Decode", "(", "&", "respCreds", ")", ";", "err", "!=", "nil", "{", "return", "ec2RoleCredRespBody", "{", "}", ",", "awserr", ".", "New", "(", "\"", "\"", ",", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "credsName", ")", ",", "err", ")", "\n", "}", "\n\n", "if", "respCreds", ".", "Code", "!=", "\"", "\"", "{", "// If an error code was returned something failed requesting the role.", "return", "ec2RoleCredRespBody", "{", "}", ",", "awserr", ".", "New", "(", "respCreds", ".", "Code", ",", "respCreds", ".", "Message", ",", "nil", ")", "\n", "}", "\n\n", "return", "respCreds", ",", "nil", "\n", "}" ]
// requestCred requests the credentials for a specific credentials from the EC2 service. // // If the credentials cannot be found, or there is an error reading the response // and error will be returned.
[ "requestCred", "requests", "the", "credentials", "for", "a", "specific", "credentials", "from", "the", "EC2", "service", ".", "If", "the", "credentials", "cannot", "be", "found", "or", "there", "is", "an", "error", "reading", "the", "response", "and", "error", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/credentials/ec2rolecreds/ec2_role_provider.go#L155-L178
2,765
aws/aws-sdk-go
service/codedeploy/waiters.go
WaitUntilDeploymentSuccessful
func (c *CodeDeploy) WaitUntilDeploymentSuccessful(input *GetDeploymentInput) error { return c.WaitUntilDeploymentSuccessfulWithContext(aws.BackgroundContext(), input) }
go
func (c *CodeDeploy) WaitUntilDeploymentSuccessful(input *GetDeploymentInput) error { return c.WaitUntilDeploymentSuccessfulWithContext(aws.BackgroundContext(), input) }
[ "func", "(", "c", "*", "CodeDeploy", ")", "WaitUntilDeploymentSuccessful", "(", "input", "*", "GetDeploymentInput", ")", "error", "{", "return", "c", ".", "WaitUntilDeploymentSuccessfulWithContext", "(", "aws", ".", "BackgroundContext", "(", ")", ",", "input", ")", "\n", "}" ]
// WaitUntilDeploymentSuccessful uses the CodeDeploy API operation // GetDeployment to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned.
[ "WaitUntilDeploymentSuccessful", "uses", "the", "CodeDeploy", "API", "operation", "GetDeployment", "to", "wait", "for", "a", "condition", "to", "be", "met", "before", "returning", ".", "If", "the", "condition", "is", "not", "met", "within", "the", "max", "attempt", "window", "an", "error", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/codedeploy/waiters.go#L16-L18
2,766
aws/aws-sdk-go
service/pricing/api.go
SetPriceList
func (s *GetProductsOutput) SetPriceList(v []aws.JSONValue) *GetProductsOutput { s.PriceList = v return s }
go
func (s *GetProductsOutput) SetPriceList(v []aws.JSONValue) *GetProductsOutput { s.PriceList = v return s }
[ "func", "(", "s", "*", "GetProductsOutput", ")", "SetPriceList", "(", "v", "[", "]", "aws", ".", "JSONValue", ")", "*", "GetProductsOutput", "{", "s", ".", "PriceList", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetPriceList sets the PriceList field's value.
[ "SetPriceList", "sets", "the", "PriceList", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/pricing/api.go#L913-L916
2,767
aws/aws-sdk-go
service/wafregional/api.go
CreateRegexMatchSet
func (c *WAFRegional) CreateRegexMatchSet(input *waf.CreateRegexMatchSetInput) (*waf.CreateRegexMatchSetOutput, error) { req, out := c.CreateRegexMatchSetRequest(input) return out, req.Send() }
go
func (c *WAFRegional) CreateRegexMatchSet(input *waf.CreateRegexMatchSetInput) (*waf.CreateRegexMatchSetOutput, error) { req, out := c.CreateRegexMatchSetRequest(input) return out, req.Send() }
[ "func", "(", "c", "*", "WAFRegional", ")", "CreateRegexMatchSet", "(", "input", "*", "waf", ".", "CreateRegexMatchSetInput", ")", "(", "*", "waf", ".", "CreateRegexMatchSetOutput", ",", "error", ")", "{", "req", ",", "out", ":=", "c", ".", "CreateRegexMatchSetRequest", "(", "input", ")", "\n", "return", "out", ",", "req", ".", "Send", "(", ")", "\n", "}" ]
// CreateRegexMatchSet API operation for AWS WAF Regional. // // Creates a RegexMatchSet. You then use UpdateRegexMatchSet to identify the // part of a web request that you want AWS WAF to inspect, such as the values // of the User-Agent header or the query string. For example, you can create // a RegexMatchSet that contains a RegexMatchTuple that looks for any requests // with User-Agent headers that match a RegexPatternSet with pattern B[a@]dB[o0]t. // You can then configure AWS WAF to reject those requests. // // To create and configure a RegexMatchSet, perform the following steps: // // Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of a CreateRegexMatchSet request. // // Submit a CreateRegexMatchSet request. // // Use GetChangeToken to get the change token that you provide in the ChangeToken // parameter of an UpdateRegexMatchSet request. // // Submit an UpdateRegexMatchSet request to specify the part of the request // that you want AWS WAF to inspect (for example, the header or the URI) and // the value, using a RegexPatternSet, that you want AWS WAF to watch for. // // For more information about how to use the AWS WAF API to allow or block HTTP // requests, see the AWS WAF Developer Guide (https://docs.aws.amazon.com/waf/latest/developerguide/). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS WAF Regional's // API operation CreateRegexMatchSet for usage and error information. // // Returned Error Codes: // * ErrCodeWAFStaleDataException "WAFStaleDataException" // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // // * ErrCodeWAFInternalErrorException "WAFInternalErrorException" // The operation failed because of a system problem, even though the request // was valid. Retry your request. // // * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" // The name specified is invalid. // // * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateRegexMatchSet
[ "CreateRegexMatchSet", "API", "operation", "for", "AWS", "WAF", "Regional", ".", "Creates", "a", "RegexMatchSet", ".", "You", "then", "use", "UpdateRegexMatchSet", "to", "identify", "the", "part", "of", "a", "web", "request", "that", "you", "want", "AWS", "WAF", "to", "inspect", "such", "as", "the", "values", "of", "the", "User", "-", "Agent", "header", "or", "the", "query", "string", ".", "For", "example", "you", "can", "create", "a", "RegexMatchSet", "that", "contains", "a", "RegexMatchTuple", "that", "looks", "for", "any", "requests", "with", "User", "-", "Agent", "headers", "that", "match", "a", "RegexPatternSet", "with", "pattern", "B", "[", "a" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/wafregional/api.go#L852-L855
2,768
aws/aws-sdk-go
service/wafregional/api.go
SetWebACLSummary
func (s *GetWebACLForResourceOutput) SetWebACLSummary(v *waf.WebACLSummary) *GetWebACLForResourceOutput { s.WebACLSummary = v return s }
go
func (s *GetWebACLForResourceOutput) SetWebACLSummary(v *waf.WebACLSummary) *GetWebACLForResourceOutput { s.WebACLSummary = v return s }
[ "func", "(", "s", "*", "GetWebACLForResourceOutput", ")", "SetWebACLSummary", "(", "v", "*", "waf", ".", "WebACLSummary", ")", "*", "GetWebACLForResourceOutput", "{", "s", ".", "WebACLSummary", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetWebACLSummary sets the WebACLSummary field's value.
[ "SetWebACLSummary", "sets", "the", "WebACLSummary", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/wafregional/api.go#L9621-L9624
2,769
aws/aws-sdk-go
service/autoscaling/waiters.go
WaitUntilGroupExists
func (c *AutoScaling) WaitUntilGroupExists(input *DescribeAutoScalingGroupsInput) error { return c.WaitUntilGroupExistsWithContext(aws.BackgroundContext(), input) }
go
func (c *AutoScaling) WaitUntilGroupExists(input *DescribeAutoScalingGroupsInput) error { return c.WaitUntilGroupExistsWithContext(aws.BackgroundContext(), input) }
[ "func", "(", "c", "*", "AutoScaling", ")", "WaitUntilGroupExists", "(", "input", "*", "DescribeAutoScalingGroupsInput", ")", "error", "{", "return", "c", ".", "WaitUntilGroupExistsWithContext", "(", "aws", ".", "BackgroundContext", "(", ")", ",", "input", ")", "\n", "}" ]
// WaitUntilGroupExists uses the Auto Scaling API operation // DescribeAutoScalingGroups to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned.
[ "WaitUntilGroupExists", "uses", "the", "Auto", "Scaling", "API", "operation", "DescribeAutoScalingGroups", "to", "wait", "for", "a", "condition", "to", "be", "met", "before", "returning", ".", "If", "the", "condition", "is", "not", "met", "within", "the", "max", "attempt", "window", "an", "error", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/autoscaling/waiters.go#L16-L18
2,770
aws/aws-sdk-go
service/autoscaling/waiters.go
WaitUntilGroupInService
func (c *AutoScaling) WaitUntilGroupInService(input *DescribeAutoScalingGroupsInput) error { return c.WaitUntilGroupInServiceWithContext(aws.BackgroundContext(), input) }
go
func (c *AutoScaling) WaitUntilGroupInService(input *DescribeAutoScalingGroupsInput) error { return c.WaitUntilGroupInServiceWithContext(aws.BackgroundContext(), input) }
[ "func", "(", "c", "*", "AutoScaling", ")", "WaitUntilGroupInService", "(", "input", "*", "DescribeAutoScalingGroupsInput", ")", "error", "{", "return", "c", ".", "WaitUntilGroupInServiceWithContext", "(", "aws", ".", "BackgroundContext", "(", ")", ",", "input", ")", "\n", "}" ]
// WaitUntilGroupInService uses the Auto Scaling API operation // DescribeAutoScalingGroups to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned.
[ "WaitUntilGroupInService", "uses", "the", "Auto", "Scaling", "API", "operation", "DescribeAutoScalingGroups", "to", "wait", "for", "a", "condition", "to", "be", "met", "before", "returning", ".", "If", "the", "condition", "is", "not", "met", "within", "the", "max", "attempt", "window", "an", "error", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/autoscaling/waiters.go#L67-L69
2,771
aws/aws-sdk-go
service/autoscaling/waiters.go
WaitUntilGroupNotExists
func (c *AutoScaling) WaitUntilGroupNotExists(input *DescribeAutoScalingGroupsInput) error { return c.WaitUntilGroupNotExistsWithContext(aws.BackgroundContext(), input) }
go
func (c *AutoScaling) WaitUntilGroupNotExists(input *DescribeAutoScalingGroupsInput) error { return c.WaitUntilGroupNotExistsWithContext(aws.BackgroundContext(), input) }
[ "func", "(", "c", "*", "AutoScaling", ")", "WaitUntilGroupNotExists", "(", "input", "*", "DescribeAutoScalingGroupsInput", ")", "error", "{", "return", "c", ".", "WaitUntilGroupNotExistsWithContext", "(", "aws", ".", "BackgroundContext", "(", ")", ",", "input", ")", "\n", "}" ]
// WaitUntilGroupNotExists uses the Auto Scaling API operation // DescribeAutoScalingGroups to wait for a condition to be met before returning. // If the condition is not met within the max attempt window, an error will // be returned.
[ "WaitUntilGroupNotExists", "uses", "the", "Auto", "Scaling", "API", "operation", "DescribeAutoScalingGroups", "to", "wait", "for", "a", "condition", "to", "be", "met", "before", "returning", ".", "If", "the", "condition", "is", "not", "met", "within", "the", "max", "attempt", "window", "an", "error", "will", "be", "returned", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/autoscaling/waiters.go#L118-L120
2,772
aws/aws-sdk-go
service/iotanalytics/api.go
SetBatchPutMessageErrorEntries
func (s *BatchPutMessageOutput) SetBatchPutMessageErrorEntries(v []*BatchPutMessageErrorEntry) *BatchPutMessageOutput { s.BatchPutMessageErrorEntries = v return s }
go
func (s *BatchPutMessageOutput) SetBatchPutMessageErrorEntries(v []*BatchPutMessageErrorEntry) *BatchPutMessageOutput { s.BatchPutMessageErrorEntries = v return s }
[ "func", "(", "s", "*", "BatchPutMessageOutput", ")", "SetBatchPutMessageErrorEntries", "(", "v", "[", "]", "*", "BatchPutMessageErrorEntry", ")", "*", "BatchPutMessageOutput", "{", "s", ".", "BatchPutMessageErrorEntries", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetBatchPutMessageErrorEntries sets the BatchPutMessageErrorEntries field's value.
[ "SetBatchPutMessageErrorEntries", "sets", "the", "BatchPutMessageErrorEntries", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L3658-L3661
2,773
aws/aws-sdk-go
service/iotanalytics/api.go
SetResourceConfiguration
func (s *ContainerDatasetAction) SetResourceConfiguration(v *ResourceConfiguration) *ContainerDatasetAction { s.ResourceConfiguration = v return s }
go
func (s *ContainerDatasetAction) SetResourceConfiguration(v *ResourceConfiguration) *ContainerDatasetAction { s.ResourceConfiguration = v return s }
[ "func", "(", "s", "*", "ContainerDatasetAction", ")", "SetResourceConfiguration", "(", "v", "*", "ResourceConfiguration", ")", "*", "ContainerDatasetAction", "{", "s", ".", "ResourceConfiguration", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetResourceConfiguration sets the ResourceConfiguration field's value.
[ "SetResourceConfiguration", "sets", "the", "ResourceConfiguration", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L4042-L4045
2,774
aws/aws-sdk-go
service/iotanalytics/api.go
SetDatasetArn
func (s *CreateDatasetOutput) SetDatasetArn(v string) *CreateDatasetOutput { s.DatasetArn = &v return s }
go
func (s *CreateDatasetOutput) SetDatasetArn(v string) *CreateDatasetOutput { s.DatasetArn = &v return s }
[ "func", "(", "s", "*", "CreateDatasetOutput", ")", "SetDatasetArn", "(", "v", "string", ")", "*", "CreateDatasetOutput", "{", "s", ".", "DatasetArn", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDatasetArn sets the DatasetArn field's value.
[ "SetDatasetArn", "sets", "the", "DatasetArn", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L4425-L4428
2,775
aws/aws-sdk-go
service/iotanalytics/api.go
SetDatastoreArn
func (s *CreateDatastoreOutput) SetDatastoreArn(v string) *CreateDatastoreOutput { s.DatastoreArn = &v return s }
go
func (s *CreateDatastoreOutput) SetDatastoreArn(v string) *CreateDatastoreOutput { s.DatastoreArn = &v return s }
[ "func", "(", "s", "*", "CreateDatastoreOutput", ")", "SetDatastoreArn", "(", "v", "string", ")", "*", "CreateDatastoreOutput", "{", "s", ".", "DatastoreArn", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDatastoreArn sets the DatastoreArn field's value.
[ "SetDatastoreArn", "sets", "the", "DatastoreArn", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L4543-L4546
2,776
aws/aws-sdk-go
service/iotanalytics/api.go
SetContainerAction
func (s *DatasetAction) SetContainerAction(v *ContainerDatasetAction) *DatasetAction { s.ContainerAction = v return s }
go
func (s *DatasetAction) SetContainerAction(v *ContainerDatasetAction) *DatasetAction { s.ContainerAction = v return s }
[ "func", "(", "s", "*", "DatasetAction", ")", "SetContainerAction", "(", "v", "*", "ContainerDatasetAction", ")", "*", "DatasetAction", "{", "s", ".", "ContainerAction", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetContainerAction sets the ContainerAction field's value.
[ "SetContainerAction", "sets", "the", "ContainerAction", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L4862-L4865
2,777
aws/aws-sdk-go
service/iotanalytics/api.go
SetQueryAction
func (s *DatasetAction) SetQueryAction(v *SqlQueryDatasetAction) *DatasetAction { s.QueryAction = v return s }
go
func (s *DatasetAction) SetQueryAction(v *SqlQueryDatasetAction) *DatasetAction { s.QueryAction = v return s }
[ "func", "(", "s", "*", "DatasetAction", ")", "SetQueryAction", "(", "v", "*", "SqlQueryDatasetAction", ")", "*", "DatasetAction", "{", "s", ".", "QueryAction", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetQueryAction sets the QueryAction field's value.
[ "SetQueryAction", "sets", "the", "QueryAction", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L4868-L4871
2,778
aws/aws-sdk-go
service/iotanalytics/api.go
SetIotEventsDestinationConfiguration
func (s *DatasetContentDeliveryDestination) SetIotEventsDestinationConfiguration(v *IotEventsDestinationConfiguration) *DatasetContentDeliveryDestination { s.IotEventsDestinationConfiguration = v return s }
go
func (s *DatasetContentDeliveryDestination) SetIotEventsDestinationConfiguration(v *IotEventsDestinationConfiguration) *DatasetContentDeliveryDestination { s.IotEventsDestinationConfiguration = v return s }
[ "func", "(", "s", "*", "DatasetContentDeliveryDestination", ")", "SetIotEventsDestinationConfiguration", "(", "v", "*", "IotEventsDestinationConfiguration", ")", "*", "DatasetContentDeliveryDestination", "{", "s", ".", "IotEventsDestinationConfiguration", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetIotEventsDestinationConfiguration sets the IotEventsDestinationConfiguration field's value.
[ "SetIotEventsDestinationConfiguration", "sets", "the", "IotEventsDestinationConfiguration", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L4939-L4942
2,779
aws/aws-sdk-go
service/iotanalytics/api.go
SetScheduleTime
func (s *DatasetContentSummary) SetScheduleTime(v time.Time) *DatasetContentSummary { s.ScheduleTime = &v return s }
go
func (s *DatasetContentSummary) SetScheduleTime(v time.Time) *DatasetContentSummary { s.ScheduleTime = &v return s }
[ "func", "(", "s", "*", "DatasetContentSummary", ")", "SetScheduleTime", "(", "v", "time", ".", "Time", ")", "*", "DatasetContentSummary", "{", "s", ".", "ScheduleTime", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetScheduleTime sets the ScheduleTime field's value.
[ "SetScheduleTime", "sets", "the", "ScheduleTime", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L5066-L5069
2,780
aws/aws-sdk-go
service/iotanalytics/api.go
SetDataURI
func (s *DatasetEntry) SetDataURI(v string) *DatasetEntry { s.DataURI = &v return s }
go
func (s *DatasetEntry) SetDataURI(v string) *DatasetEntry { s.DataURI = &v return s }
[ "func", "(", "s", "*", "DatasetEntry", ")", "SetDataURI", "(", "v", "string", ")", "*", "DatasetEntry", "{", "s", ".", "DataURI", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDataURI sets the DataURI field's value.
[ "SetDataURI", "sets", "the", "DataURI", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L5148-L5151
2,781
aws/aws-sdk-go
service/iotanalytics/api.go
SetOffsetSeconds
func (s *DeltaTime) SetOffsetSeconds(v int64) *DeltaTime { s.OffsetSeconds = &v return s }
go
func (s *DeltaTime) SetOffsetSeconds(v int64) *DeltaTime { s.OffsetSeconds = &v return s }
[ "func", "(", "s", "*", "DeltaTime", ")", "SetOffsetSeconds", "(", "v", "int64", ")", "*", "DeltaTime", "{", "s", ".", "OffsetSeconds", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetOffsetSeconds sets the OffsetSeconds field's value.
[ "SetOffsetSeconds", "sets", "the", "OffsetSeconds", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L5830-L5833
2,782
aws/aws-sdk-go
service/iotanalytics/api.go
SetTimeExpression
func (s *DeltaTime) SetTimeExpression(v string) *DeltaTime { s.TimeExpression = &v return s }
go
func (s *DeltaTime) SetTimeExpression(v string) *DeltaTime { s.TimeExpression = &v return s }
[ "func", "(", "s", "*", "DeltaTime", ")", "SetTimeExpression", "(", "v", "string", ")", "*", "DeltaTime", "{", "s", ".", "TimeExpression", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetTimeExpression sets the TimeExpression field's value.
[ "SetTimeExpression", "sets", "the", "TimeExpression", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L5836-L5839
2,783
aws/aws-sdk-go
service/iotanalytics/api.go
SetEstimatedOn
func (s *EstimatedResourceSize) SetEstimatedOn(v time.Time) *EstimatedResourceSize { s.EstimatedOn = &v return s }
go
func (s *EstimatedResourceSize) SetEstimatedOn(v time.Time) *EstimatedResourceSize { s.EstimatedOn = &v return s }
[ "func", "(", "s", "*", "EstimatedResourceSize", ")", "SetEstimatedOn", "(", "v", "time", ".", "Time", ")", "*", "EstimatedResourceSize", "{", "s", ".", "EstimatedOn", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetEstimatedOn sets the EstimatedOn field's value.
[ "SetEstimatedOn", "sets", "the", "EstimatedOn", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L6407-L6410
2,784
aws/aws-sdk-go
service/iotanalytics/api.go
SetEstimatedSizeInBytes
func (s *EstimatedResourceSize) SetEstimatedSizeInBytes(v float64) *EstimatedResourceSize { s.EstimatedSizeInBytes = &v return s }
go
func (s *EstimatedResourceSize) SetEstimatedSizeInBytes(v float64) *EstimatedResourceSize { s.EstimatedSizeInBytes = &v return s }
[ "func", "(", "s", "*", "EstimatedResourceSize", ")", "SetEstimatedSizeInBytes", "(", "v", "float64", ")", "*", "EstimatedResourceSize", "{", "s", ".", "EstimatedSizeInBytes", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetEstimatedSizeInBytes sets the EstimatedSizeInBytes field's value.
[ "SetEstimatedSizeInBytes", "sets", "the", "EstimatedSizeInBytes", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L6413-L6416
2,785
aws/aws-sdk-go
service/iotanalytics/api.go
SetLambdaName
func (s *LambdaActivity) SetLambdaName(v string) *LambdaActivity { s.LambdaName = &v return s }
go
func (s *LambdaActivity) SetLambdaName(v string) *LambdaActivity { s.LambdaName = &v return s }
[ "func", "(", "s", "*", "LambdaActivity", ")", "SetLambdaName", "(", "v", "string", ")", "*", "LambdaActivity", "{", "s", ".", "LambdaName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetLambdaName sets the LambdaName field's value.
[ "SetLambdaName", "sets", "the", "LambdaName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L6721-L6724
2,786
aws/aws-sdk-go
service/iotanalytics/api.go
SetChannelSummaries
func (s *ListChannelsOutput) SetChannelSummaries(v []*ChannelSummary) *ListChannelsOutput { s.ChannelSummaries = v return s }
go
func (s *ListChannelsOutput) SetChannelSummaries(v []*ChannelSummary) *ListChannelsOutput { s.ChannelSummaries = v return s }
[ "func", "(", "s", "*", "ListChannelsOutput", ")", "SetChannelSummaries", "(", "v", "[", "]", "*", "ChannelSummary", ")", "*", "ListChannelsOutput", "{", "s", ".", "ChannelSummaries", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetChannelSummaries sets the ChannelSummaries field's value.
[ "SetChannelSummaries", "sets", "the", "ChannelSummaries", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L6807-L6810
2,787
aws/aws-sdk-go
service/iotanalytics/api.go
SetScheduledBefore
func (s *ListDatasetContentsInput) SetScheduledBefore(v time.Time) *ListDatasetContentsInput { s.ScheduledBefore = &v return s }
go
func (s *ListDatasetContentsInput) SetScheduledBefore(v time.Time) *ListDatasetContentsInput { s.ScheduledBefore = &v return s }
[ "func", "(", "s", "*", "ListDatasetContentsInput", ")", "SetScheduledBefore", "(", "v", "time", ".", "Time", ")", "*", "ListDatasetContentsInput", "{", "s", ".", "ScheduledBefore", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetScheduledBefore sets the ScheduledBefore field's value.
[ "SetScheduledBefore", "sets", "the", "ScheduledBefore", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L6891-L6894
2,788
aws/aws-sdk-go
service/iotanalytics/api.go
SetScheduledOnOrAfter
func (s *ListDatasetContentsInput) SetScheduledOnOrAfter(v time.Time) *ListDatasetContentsInput { s.ScheduledOnOrAfter = &v return s }
go
func (s *ListDatasetContentsInput) SetScheduledOnOrAfter(v time.Time) *ListDatasetContentsInput { s.ScheduledOnOrAfter = &v return s }
[ "func", "(", "s", "*", "ListDatasetContentsInput", ")", "SetScheduledOnOrAfter", "(", "v", "time", ".", "Time", ")", "*", "ListDatasetContentsInput", "{", "s", ".", "ScheduledOnOrAfter", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetScheduledOnOrAfter sets the ScheduledOnOrAfter field's value.
[ "SetScheduledOnOrAfter", "sets", "the", "ScheduledOnOrAfter", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L6897-L6900
2,789
aws/aws-sdk-go
service/iotanalytics/api.go
SetDatasetContentSummaries
func (s *ListDatasetContentsOutput) SetDatasetContentSummaries(v []*DatasetContentSummary) *ListDatasetContentsOutput { s.DatasetContentSummaries = v return s }
go
func (s *ListDatasetContentsOutput) SetDatasetContentSummaries(v []*DatasetContentSummary) *ListDatasetContentsOutput { s.DatasetContentSummaries = v return s }
[ "func", "(", "s", "*", "ListDatasetContentsOutput", ")", "SetDatasetContentSummaries", "(", "v", "[", "]", "*", "DatasetContentSummary", ")", "*", "ListDatasetContentsOutput", "{", "s", ".", "DatasetContentSummaries", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetDatasetContentSummaries sets the DatasetContentSummaries field's value.
[ "SetDatasetContentSummaries", "sets", "the", "DatasetContentSummaries", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L6924-L6927
2,790
aws/aws-sdk-go
service/iotanalytics/api.go
SetDatasetSummaries
func (s *ListDatasetsOutput) SetDatasetSummaries(v []*DatasetSummary) *ListDatasetsOutput { s.DatasetSummaries = v return s }
go
func (s *ListDatasetsOutput) SetDatasetSummaries(v []*DatasetSummary) *ListDatasetsOutput { s.DatasetSummaries = v return s }
[ "func", "(", "s", "*", "ListDatasetsOutput", ")", "SetDatasetSummaries", "(", "v", "[", "]", "*", "DatasetSummary", ")", "*", "ListDatasetsOutput", "{", "s", ".", "DatasetSummaries", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetDatasetSummaries sets the DatasetSummaries field's value.
[ "SetDatasetSummaries", "sets", "the", "DatasetSummaries", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L7004-L7007
2,791
aws/aws-sdk-go
service/iotanalytics/api.go
SetDatastoreSummaries
func (s *ListDatastoresOutput) SetDatastoreSummaries(v []*DatastoreSummary) *ListDatastoresOutput { s.DatastoreSummaries = v return s }
go
func (s *ListDatastoresOutput) SetDatastoreSummaries(v []*DatastoreSummary) *ListDatastoresOutput { s.DatastoreSummaries = v return s }
[ "func", "(", "s", "*", "ListDatastoresOutput", ")", "SetDatastoreSummaries", "(", "v", "[", "]", "*", "DatastoreSummary", ")", "*", "ListDatastoresOutput", "{", "s", ".", "DatastoreSummaries", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetDatastoreSummaries sets the DatastoreSummaries field's value.
[ "SetDatastoreSummaries", "sets", "the", "DatastoreSummaries", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L7084-L7087
2,792
aws/aws-sdk-go
service/iotanalytics/api.go
SetPipelineSummaries
func (s *ListPipelinesOutput) SetPipelineSummaries(v []*PipelineSummary) *ListPipelinesOutput { s.PipelineSummaries = v return s }
go
func (s *ListPipelinesOutput) SetPipelineSummaries(v []*PipelineSummary) *ListPipelinesOutput { s.PipelineSummaries = v return s }
[ "func", "(", "s", "*", "ListPipelinesOutput", ")", "SetPipelineSummaries", "(", "v", "[", "]", "*", "PipelineSummary", ")", "*", "ListPipelinesOutput", "{", "s", ".", "PipelineSummaries", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetPipelineSummaries sets the PipelineSummaries field's value.
[ "SetPipelineSummaries", "sets", "the", "PipelineSummaries", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L7170-L7173
2,793
aws/aws-sdk-go
service/iotanalytics/api.go
SetAddAttributes
func (s *PipelineActivity) SetAddAttributes(v *AddAttributesActivity) *PipelineActivity { s.AddAttributes = v return s }
go
func (s *PipelineActivity) SetAddAttributes(v *AddAttributesActivity) *PipelineActivity { s.AddAttributes = v return s }
[ "func", "(", "s", "*", "PipelineActivity", ")", "SetAddAttributes", "(", "v", "*", "AddAttributesActivity", ")", "*", "PipelineActivity", "{", "s", ".", "AddAttributes", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAddAttributes sets the AddAttributes field's value.
[ "SetAddAttributes", "sets", "the", "AddAttributes", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L7677-L7680
2,794
aws/aws-sdk-go
service/iotanalytics/api.go
SetDeviceRegistryEnrich
func (s *PipelineActivity) SetDeviceRegistryEnrich(v *DeviceRegistryEnrichActivity) *PipelineActivity { s.DeviceRegistryEnrich = v return s }
go
func (s *PipelineActivity) SetDeviceRegistryEnrich(v *DeviceRegistryEnrichActivity) *PipelineActivity { s.DeviceRegistryEnrich = v return s }
[ "func", "(", "s", "*", "PipelineActivity", ")", "SetDeviceRegistryEnrich", "(", "v", "*", "DeviceRegistryEnrichActivity", ")", "*", "PipelineActivity", "{", "s", ".", "DeviceRegistryEnrich", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetDeviceRegistryEnrich sets the DeviceRegistryEnrich field's value.
[ "SetDeviceRegistryEnrich", "sets", "the", "DeviceRegistryEnrich", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L7695-L7698
2,795
aws/aws-sdk-go
service/iotanalytics/api.go
SetDeviceShadowEnrich
func (s *PipelineActivity) SetDeviceShadowEnrich(v *DeviceShadowEnrichActivity) *PipelineActivity { s.DeviceShadowEnrich = v return s }
go
func (s *PipelineActivity) SetDeviceShadowEnrich(v *DeviceShadowEnrichActivity) *PipelineActivity { s.DeviceShadowEnrich = v return s }
[ "func", "(", "s", "*", "PipelineActivity", ")", "SetDeviceShadowEnrich", "(", "v", "*", "DeviceShadowEnrichActivity", ")", "*", "PipelineActivity", "{", "s", ".", "DeviceShadowEnrich", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetDeviceShadowEnrich sets the DeviceShadowEnrich field's value.
[ "SetDeviceShadowEnrich", "sets", "the", "DeviceShadowEnrich", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L7701-L7704
2,796
aws/aws-sdk-go
service/iotanalytics/api.go
SetRemoveAttributes
func (s *PipelineActivity) SetRemoveAttributes(v *RemoveAttributesActivity) *PipelineActivity { s.RemoveAttributes = v return s }
go
func (s *PipelineActivity) SetRemoveAttributes(v *RemoveAttributesActivity) *PipelineActivity { s.RemoveAttributes = v return s }
[ "func", "(", "s", "*", "PipelineActivity", ")", "SetRemoveAttributes", "(", "v", "*", "RemoveAttributesActivity", ")", "*", "PipelineActivity", "{", "s", ".", "RemoveAttributes", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetRemoveAttributes sets the RemoveAttributes field's value.
[ "SetRemoveAttributes", "sets", "the", "RemoveAttributes", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L7725-L7728
2,797
aws/aws-sdk-go
service/iotanalytics/api.go
SetSelectAttributes
func (s *PipelineActivity) SetSelectAttributes(v *SelectAttributesActivity) *PipelineActivity { s.SelectAttributes = v return s }
go
func (s *PipelineActivity) SetSelectAttributes(v *SelectAttributesActivity) *PipelineActivity { s.SelectAttributes = v return s }
[ "func", "(", "s", "*", "PipelineActivity", ")", "SetSelectAttributes", "(", "v", "*", "SelectAttributesActivity", ")", "*", "PipelineActivity", "{", "s", ".", "SelectAttributes", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSelectAttributes sets the SelectAttributes field's value.
[ "SetSelectAttributes", "sets", "the", "SelectAttributes", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L7731-L7734
2,798
aws/aws-sdk-go
service/iotanalytics/api.go
SetDeltaTime
func (s *QueryFilter) SetDeltaTime(v *DeltaTime) *QueryFilter { s.DeltaTime = v return s }
go
func (s *QueryFilter) SetDeltaTime(v *DeltaTime) *QueryFilter { s.DeltaTime = v return s }
[ "func", "(", "s", "*", "QueryFilter", ")", "SetDeltaTime", "(", "v", "*", "DeltaTime", ")", "*", "QueryFilter", "{", "s", ".", "DeltaTime", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetDeltaTime sets the DeltaTime field's value.
[ "SetDeltaTime", "sets", "the", "DeltaTime", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L7880-L7883
2,799
aws/aws-sdk-go
service/iotanalytics/api.go
SetNumberOfDays
func (s *RetentionPeriod) SetNumberOfDays(v int64) *RetentionPeriod { s.NumberOfDays = &v return s }
go
func (s *RetentionPeriod) SetNumberOfDays(v int64) *RetentionPeriod { s.NumberOfDays = &v return s }
[ "func", "(", "s", "*", "RetentionPeriod", ")", "SetNumberOfDays", "(", "v", "int64", ")", "*", "RetentionPeriod", "{", "s", ".", "NumberOfDays", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetNumberOfDays sets the NumberOfDays field's value.
[ "SetNumberOfDays", "sets", "the", "NumberOfDays", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotanalytics/api.go#L8092-L8095