func ApplicationLogLevel_Values() []string
ApplicationLogLevel_Values returns all elements of the ApplicationLogLevel enum
func Architecture_Values() []string
Architecture_Values returns all elements of the Architecture enum
func CodeSigningPolicy_Values() []string
CodeSigningPolicy_Values returns all elements of the CodeSigningPolicy enum
func EndPointType_Values() []string
EndPointType_Values returns all elements of the EndPointType enum
func EventSourcePosition_Values() []string
EventSourcePosition_Values returns all elements of the EventSourcePosition enum
func FullDocument_Values() []string
FullDocument_Values returns all elements of the FullDocument enum
func FunctionResponseType_Values() []string
FunctionResponseType_Values returns all elements of the FunctionResponseType enum
func FunctionUrlAuthType_Values() []string
FunctionUrlAuthType_Values returns all elements of the FunctionUrlAuthType enum
func FunctionVersion_Values() []string
FunctionVersion_Values returns all elements of the FunctionVersion enum
func InvocationType_Values() []string
InvocationType_Values returns all elements of the InvocationType enum
func InvokeMode_Values() []string
InvokeMode_Values returns all elements of the InvokeMode enum
func LastUpdateStatusReasonCode_Values() []string
LastUpdateStatusReasonCode_Values returns all elements of the LastUpdateStatusReasonCode enum
func LastUpdateStatus_Values() []string
LastUpdateStatus_Values returns all elements of the LastUpdateStatus enum
func LogFormat_Values() []string
LogFormat_Values returns all elements of the LogFormat enum
func LogType_Values() []string
LogType_Values returns all elements of the LogType enum
func PackageType_Values() []string
PackageType_Values returns all elements of the PackageType enum
func ProvisionedConcurrencyStatusEnum_Values() []string
ProvisionedConcurrencyStatusEnum_Values returns all elements of the ProvisionedConcurrencyStatusEnum enum
func ResponseStreamingInvocationType_Values() []string
ResponseStreamingInvocationType_Values returns all elements of the ResponseStreamingInvocationType enum
func Runtime_Values() []string
Runtime_Values returns all elements of the Runtime enum
func SnapStartApplyOn_Values() []string
SnapStartApplyOn_Values returns all elements of the SnapStartApplyOn enum
func SnapStartOptimizationStatus_Values() []string
SnapStartOptimizationStatus_Values returns all elements of the SnapStartOptimizationStatus enum
func SourceAccessType_Values() []string
SourceAccessType_Values returns all elements of the SourceAccessType enum
func StateReasonCode_Values() []string
StateReasonCode_Values returns all elements of the StateReasonCode enum
func State_Values() []string
State_Values returns all elements of the State enum
func SystemLogLevel_Values() []string
SystemLogLevel_Values returns all elements of the SystemLogLevel enum
func ThrottleReason_Values() []string
ThrottleReason_Values returns all elements of the ThrottleReason enum
func TracingMode_Values() []string
TracingMode_Values returns all elements of the TracingMode enum
func UpdateRuntimeOn_Values() []string
UpdateRuntimeOn_Values returns all elements of the UpdateRuntimeOn enum
type AccountLimit struct { // The maximum size of a function's deployment package and layers when they're // extracted. CodeSizeUnzipped *int64 `type:"long"` // The maximum size of a deployment package when it's uploaded directly to Lambda. // Use Amazon S3 for larger files. CodeSizeZipped *int64 `type:"long"` // The maximum number of simultaneous function executions. ConcurrentExecutions *int64 `type:"integer"` // The amount of storage space that you can use for all deployment packages // and layer archives. TotalCodeSize *int64 `type:"long"` // The maximum number of simultaneous function executions, minus the capacity // that's reserved for individual functions with PutFunctionConcurrency. UnreservedConcurrentExecutions *int64 `type:"integer"` // contains filtered or unexported fields }
Limits that are related to concurrency and storage. All file and storage sizes are in bytes.
func (s AccountLimit) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AccountLimit) SetCodeSizeUnzipped(v int64) *AccountLimit
SetCodeSizeUnzipped sets the CodeSizeUnzipped field's value.
func (s *AccountLimit) SetCodeSizeZipped(v int64) *AccountLimit
SetCodeSizeZipped sets the CodeSizeZipped field's value.
func (s *AccountLimit) SetConcurrentExecutions(v int64) *AccountLimit
SetConcurrentExecutions sets the ConcurrentExecutions field's value.
func (s *AccountLimit) SetTotalCodeSize(v int64) *AccountLimit
SetTotalCodeSize sets the TotalCodeSize field's value.
func (s *AccountLimit) SetUnreservedConcurrentExecutions(v int64) *AccountLimit
SetUnreservedConcurrentExecutions sets the UnreservedConcurrentExecutions field's value.
func (s AccountLimit) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type AccountUsage struct { // The number of Lambda functions. FunctionCount *int64 `type:"long"` // The amount of storage space, in bytes, that's being used by deployment packages // and layer archives. TotalCodeSize *int64 `type:"long"` // contains filtered or unexported fields }
The number of functions and amount of storage in use.
func (s AccountUsage) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AccountUsage) SetFunctionCount(v int64) *AccountUsage
SetFunctionCount sets the FunctionCount field's value.
func (s *AccountUsage) SetTotalCodeSize(v int64) *AccountUsage
SetTotalCodeSize sets the TotalCodeSize field's value.
func (s AccountUsage) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type AddLayerVersionPermissionInput struct { // The API action that grants access to the layer. For example, lambda:GetLayerVersion. // // Action is a required field Action *string `type:"string" required:"true"` // The name or Amazon Resource Name (ARN) of the layer. // // LayerName is a required field LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` // With the principal set to *, grant permission to all accounts in the specified // organization. OrganizationId *string `type:"string"` // An account ID, or * to grant layer usage permission to all accounts in an // organization, or all Amazon Web Services accounts (if organizationId is not // specified). For the last case, make sure that you really do want all Amazon // Web Services accounts to have usage permission to this layer. // // Principal is a required field Principal *string `type:"string" required:"true"` // Only update the policy if the revision ID matches the ID specified. Use this // option to avoid modifying a policy that has changed since you last read it. RevisionId *string `location:"querystring" locationName:"RevisionId" type:"string"` // An identifier that distinguishes the policy from others on the same layer // version. // // StatementId is a required field StatementId *string `min:"1" type:"string" required:"true"` // The version number. // // VersionNumber is a required field VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"` // contains filtered or unexported fields }
func (s AddLayerVersionPermissionInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AddLayerVersionPermissionInput) SetAction(v string) *AddLayerVersionPermissionInput
SetAction sets the Action field's value.
func (s *AddLayerVersionPermissionInput) SetLayerName(v string) *AddLayerVersionPermissionInput
SetLayerName sets the LayerName field's value.
func (s *AddLayerVersionPermissionInput) SetOrganizationId(v string) *AddLayerVersionPermissionInput
SetOrganizationId sets the OrganizationId field's value.
func (s *AddLayerVersionPermissionInput) SetPrincipal(v string) *AddLayerVersionPermissionInput
SetPrincipal sets the Principal field's value.
func (s *AddLayerVersionPermissionInput) SetRevisionId(v string) *AddLayerVersionPermissionInput
SetRevisionId sets the RevisionId field's value.
func (s *AddLayerVersionPermissionInput) SetStatementId(v string) *AddLayerVersionPermissionInput
SetStatementId sets the StatementId field's value.
func (s *AddLayerVersionPermissionInput) SetVersionNumber(v int64) *AddLayerVersionPermissionInput
SetVersionNumber sets the VersionNumber field's value.
func (s AddLayerVersionPermissionInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AddLayerVersionPermissionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AddLayerVersionPermissionOutput struct { // A unique identifier for the current revision of the policy. RevisionId *string `type:"string"` // The permission statement. Statement *string `type:"string"` // contains filtered or unexported fields }
func (s AddLayerVersionPermissionOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AddLayerVersionPermissionOutput) SetRevisionId(v string) *AddLayerVersionPermissionOutput
SetRevisionId sets the RevisionId field's value.
func (s *AddLayerVersionPermissionOutput) SetStatement(v string) *AddLayerVersionPermissionOutput
SetStatement sets the Statement field's value.
func (s AddLayerVersionPermissionOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type AddPermissionInput struct { // The action that the principal can use on the function. For example, lambda:InvokeFunction // or lambda:GetFunction. // // Action is a required field Action *string `type:"string" required:"true"` // For Alexa Smart Home functions, a token that the invoker must supply. EventSourceToken *string `type:"string"` // The name or ARN of the Lambda function, version, or alias. // // Name formats // // * Function name – my-function (name-only), my-function:v1 (with alias). // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN – 123456789012:function:my-function. // // You can append a version number or alias to any of the formats. The length // constraint applies only to the full ARN. If you specify only the function // name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // The type of authentication that your function URL uses. Set to AWS_IAM if // you want to restrict access to authenticated users only. Set to NONE if you // want to bypass IAM authentication to create a public endpoint. For more information, // see Security and auth model for Lambda function URLs (https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html). FunctionUrlAuthType *string `type:"string" enum:"FunctionUrlAuthType"` // The Amazon Web Service or Amazon Web Services account that invokes the function. // If you specify a service, use SourceArn or SourceAccount to limit who can // invoke the function through that service. // // Principal is a required field Principal *string `type:"string" required:"true"` // The identifier for your organization in Organizations. Use this to grant // permissions to all the Amazon Web Services accounts under this organization. PrincipalOrgID *string `min:"12" type:"string"` // Specify a version or alias to add permissions to a published version of the // function. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // Update the policy only if the revision ID matches the ID that's specified. // Use this option to avoid modifying a policy that has changed since you last // read it. RevisionId *string `type:"string"` // For Amazon Web Service, the ID of the Amazon Web Services account that owns // the resource. Use this together with SourceArn to ensure that the specified // account owns the resource. It is possible for an Amazon S3 bucket to be deleted // by its owner and recreated by another account. SourceAccount *string `type:"string"` // For Amazon Web Services, the ARN of the Amazon Web Services resource that // invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic. // // Note that Lambda configures the comparison using the StringLike operator. SourceArn *string `type:"string"` // A statement identifier that differentiates the statement from others in the // same policy. // // StatementId is a required field StatementId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (s AddPermissionInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AddPermissionInput) SetAction(v string) *AddPermissionInput
SetAction sets the Action field's value.
func (s *AddPermissionInput) SetEventSourceToken(v string) *AddPermissionInput
SetEventSourceToken sets the EventSourceToken field's value.
func (s *AddPermissionInput) SetFunctionName(v string) *AddPermissionInput
SetFunctionName sets the FunctionName field's value.
func (s *AddPermissionInput) SetFunctionUrlAuthType(v string) *AddPermissionInput
SetFunctionUrlAuthType sets the FunctionUrlAuthType field's value.
func (s *AddPermissionInput) SetPrincipal(v string) *AddPermissionInput
SetPrincipal sets the Principal field's value.
func (s *AddPermissionInput) SetPrincipalOrgID(v string) *AddPermissionInput
SetPrincipalOrgID sets the PrincipalOrgID field's value.
func (s *AddPermissionInput) SetQualifier(v string) *AddPermissionInput
SetQualifier sets the Qualifier field's value.
func (s *AddPermissionInput) SetRevisionId(v string) *AddPermissionInput
SetRevisionId sets the RevisionId field's value.
func (s *AddPermissionInput) SetSourceAccount(v string) *AddPermissionInput
SetSourceAccount sets the SourceAccount field's value.
func (s *AddPermissionInput) SetSourceArn(v string) *AddPermissionInput
SetSourceArn sets the SourceArn field's value.
func (s *AddPermissionInput) SetStatementId(v string) *AddPermissionInput
SetStatementId sets the StatementId field's value.
func (s AddPermissionInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AddPermissionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AddPermissionOutput struct { // The permission statement that's added to the function policy. Statement *string `type:"string"` // contains filtered or unexported fields }
func (s AddPermissionOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AddPermissionOutput) SetStatement(v string) *AddPermissionOutput
SetStatement sets the Statement field's value.
func (s AddPermissionOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type AliasConfiguration struct { // The Amazon Resource Name (ARN) of the alias. AliasArn *string `type:"string"` // A description of the alias. Description *string `type:"string"` // The function version that the alias invokes. FunctionVersion *string `min:"1" type:"string"` // The name of the alias. Name *string `min:"1" type:"string"` // A unique identifier that changes when you update the alias. RevisionId *string `type:"string"` // The routing configuration (https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html) // of the alias. RoutingConfig *AliasRoutingConfiguration `type:"structure"` // contains filtered or unexported fields }
Provides configuration information about a Lambda function alias (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html).
func (s AliasConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AliasConfiguration) SetAliasArn(v string) *AliasConfiguration
SetAliasArn sets the AliasArn field's value.
func (s *AliasConfiguration) SetDescription(v string) *AliasConfiguration
SetDescription sets the Description field's value.
func (s *AliasConfiguration) SetFunctionVersion(v string) *AliasConfiguration
SetFunctionVersion sets the FunctionVersion field's value.
func (s *AliasConfiguration) SetName(v string) *AliasConfiguration
SetName sets the Name field's value.
func (s *AliasConfiguration) SetRevisionId(v string) *AliasConfiguration
SetRevisionId sets the RevisionId field's value.
func (s *AliasConfiguration) SetRoutingConfig(v *AliasRoutingConfiguration) *AliasConfiguration
SetRoutingConfig sets the RoutingConfig field's value.
func (s AliasConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type AliasRoutingConfiguration struct { // The second version, and the percentage of traffic that's routed to it. AdditionalVersionWeights map[string]*float64 `type:"map"` // contains filtered or unexported fields }
The traffic-shifting (https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html) configuration of a Lambda function alias.
func (s AliasRoutingConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AliasRoutingConfiguration) SetAdditionalVersionWeights(v map[string]*float64) *AliasRoutingConfiguration
SetAdditionalVersionWeights sets the AdditionalVersionWeights field's value.
func (s AliasRoutingConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type AllowedPublishers struct { // The Amazon Resource Name (ARN) for each of the signing profiles. A signing // profile defines a trusted user who can sign a code package. // // SigningProfileVersionArns is a required field SigningProfileVersionArns []*string `min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
List of signing profiles that can sign a code package.
func (s AllowedPublishers) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AllowedPublishers) SetSigningProfileVersionArns(v []*string) *AllowedPublishers
SetSigningProfileVersionArns sets the SigningProfileVersionArns field's value.
func (s AllowedPublishers) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AllowedPublishers) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AmazonManagedKafkaEventSourceConfig struct { // The identifier for the Kafka consumer group to join. The consumer group ID // must be unique among all your Kafka event sources. After creating a Kafka // event source mapping with the consumer group ID specified, you cannot update // this value. For more information, see Customizable consumer group ID (https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id). ConsumerGroupId *string `min:"1" type:"string"` // contains filtered or unexported fields }
Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
func (s AmazonManagedKafkaEventSourceConfig) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AmazonManagedKafkaEventSourceConfig) SetConsumerGroupId(v string) *AmazonManagedKafkaEventSourceConfig
SetConsumerGroupId sets the ConsumerGroupId field's value.
func (s AmazonManagedKafkaEventSourceConfig) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AmazonManagedKafkaEventSourceConfig) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CodeSigningConfig struct { // List of allowed publishers. // // AllowedPublishers is a required field AllowedPublishers *AllowedPublishers `type:"structure" required:"true"` // The Amazon Resource Name (ARN) of the Code signing configuration. // // CodeSigningConfigArn is a required field CodeSigningConfigArn *string `type:"string" required:"true"` // Unique identifer for the Code signing configuration. // // CodeSigningConfigId is a required field CodeSigningConfigId *string `type:"string" required:"true"` // The code signing policy controls the validation failure action for signature // mismatch or expiry. // // CodeSigningPolicies is a required field CodeSigningPolicies *CodeSigningPolicies `type:"structure" required:"true"` // Code signing configuration description. Description *string `type:"string"` // The date and time that the Code signing configuration was last modified, // in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). // // LastModified is a required field LastModified *string `type:"string" required:"true"` // contains filtered or unexported fields }
Details about a Code signing configuration (https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html).
func (s CodeSigningConfig) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CodeSigningConfig) SetAllowedPublishers(v *AllowedPublishers) *CodeSigningConfig
SetAllowedPublishers sets the AllowedPublishers field's value.
func (s *CodeSigningConfig) SetCodeSigningConfigArn(v string) *CodeSigningConfig
SetCodeSigningConfigArn sets the CodeSigningConfigArn field's value.
func (s *CodeSigningConfig) SetCodeSigningConfigId(v string) *CodeSigningConfig
SetCodeSigningConfigId sets the CodeSigningConfigId field's value.
func (s *CodeSigningConfig) SetCodeSigningPolicies(v *CodeSigningPolicies) *CodeSigningConfig
SetCodeSigningPolicies sets the CodeSigningPolicies field's value.
func (s *CodeSigningConfig) SetDescription(v string) *CodeSigningConfig
SetDescription sets the Description field's value.
func (s *CodeSigningConfig) SetLastModified(v string) *CodeSigningConfig
SetLastModified sets the LastModified field's value.
func (s CodeSigningConfig) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CodeSigningConfigNotFoundException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
The specified code signing configuration does not exist.
func (s *CodeSigningConfigNotFoundException) Code() string
Code returns the exception type name.
func (s *CodeSigningConfigNotFoundException) Error() string
func (s CodeSigningConfigNotFoundException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CodeSigningConfigNotFoundException) Message() string
Message returns the exception's message.
func (s *CodeSigningConfigNotFoundException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *CodeSigningConfigNotFoundException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *CodeSigningConfigNotFoundException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s CodeSigningConfigNotFoundException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CodeSigningPolicies struct { // Code signing configuration policy for deployment validation failure. If you // set the policy to Enforce, Lambda blocks the deployment request if signature // validation checks fail. If you set the policy to Warn, Lambda allows the // deployment and creates a CloudWatch log. // // Default value: Warn UntrustedArtifactOnDeployment *string `type:"string" enum:"CodeSigningPolicy"` // contains filtered or unexported fields }
Code signing configuration policies (https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html#config-codesigning-policies) specify the validation failure action for signature mismatch or expiry.
func (s CodeSigningPolicies) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CodeSigningPolicies) SetUntrustedArtifactOnDeployment(v string) *CodeSigningPolicies
SetUntrustedArtifactOnDeployment sets the UntrustedArtifactOnDeployment field's value.
func (s CodeSigningPolicies) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CodeStorageExceededException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // The exception type. Type *string `type:"string"` // contains filtered or unexported fields }
Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html).
func (s *CodeStorageExceededException) Code() string
Code returns the exception type name.
func (s *CodeStorageExceededException) Error() string
func (s CodeStorageExceededException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CodeStorageExceededException) Message() string
Message returns the exception's message.
func (s *CodeStorageExceededException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *CodeStorageExceededException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *CodeStorageExceededException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s CodeStorageExceededException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CodeVerificationFailedException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment.
func (s *CodeVerificationFailedException) Code() string
Code returns the exception type name.
func (s *CodeVerificationFailedException) Error() string
func (s CodeVerificationFailedException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CodeVerificationFailedException) Message() string
Message returns the exception's message.
func (s *CodeVerificationFailedException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *CodeVerificationFailedException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *CodeVerificationFailedException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s CodeVerificationFailedException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type Cors struct { // Whether to allow cookies or other credentials in requests to your function // URL. The default is false. AllowCredentials *bool `type:"boolean"` // The HTTP headers that origins can include in requests to your function URL. // For example: Date, Keep-Alive, X-Custom-Header. AllowHeaders []*string `type:"list"` // The HTTP methods that are allowed when calling your function URL. For example: // GET, POST, DELETE, or the wildcard character (*). AllowMethods []*string `type:"list"` // The origins that can access your function URL. You can list any number of // specific origins, separated by a comma. For example: https://www.example.com, // http://localhost:60905. // // Alternatively, you can grant access to all origins using the wildcard character // (*). AllowOrigins []*string `type:"list"` // The HTTP headers in your function response that you want to expose to origins // that call your function URL. For example: Date, Keep-Alive, X-Custom-Header. ExposeHeaders []*string `type:"list"` // The maximum amount of time, in seconds, that web browsers can cache results // of a preflight request. By default, this is set to 0, which means that the // browser doesn't cache results. MaxAge *int64 `type:"integer"` // contains filtered or unexported fields }
The cross-origin resource sharing (CORS) (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) settings for your Lambda function URL. Use CORS to grant access to your function URL from any origin. You can also use CORS to control access for specific HTTP headers and methods in requests to your function URL.
func (s Cors) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *Cors) SetAllowCredentials(v bool) *Cors
SetAllowCredentials sets the AllowCredentials field's value.
func (s *Cors) SetAllowHeaders(v []*string) *Cors
SetAllowHeaders sets the AllowHeaders field's value.
func (s *Cors) SetAllowMethods(v []*string) *Cors
SetAllowMethods sets the AllowMethods field's value.
func (s *Cors) SetAllowOrigins(v []*string) *Cors
SetAllowOrigins sets the AllowOrigins field's value.
func (s *Cors) SetExposeHeaders(v []*string) *Cors
SetExposeHeaders sets the ExposeHeaders field's value.
func (s *Cors) SetMaxAge(v int64) *Cors
SetMaxAge sets the MaxAge field's value.
func (s Cors) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CreateAliasInput struct { // A description of the alias. Description *string `type:"string"` // The name or ARN of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // The function version that the alias invokes. // // FunctionVersion is a required field FunctionVersion *string `min:"1" type:"string" required:"true"` // The name of the alias. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The routing configuration (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing) // of the alias. RoutingConfig *AliasRoutingConfiguration `type:"structure"` // contains filtered or unexported fields }
func (s CreateAliasInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateAliasInput) SetDescription(v string) *CreateAliasInput
SetDescription sets the Description field's value.
func (s *CreateAliasInput) SetFunctionName(v string) *CreateAliasInput
SetFunctionName sets the FunctionName field's value.
func (s *CreateAliasInput) SetFunctionVersion(v string) *CreateAliasInput
SetFunctionVersion sets the FunctionVersion field's value.
func (s *CreateAliasInput) SetName(v string) *CreateAliasInput
SetName sets the Name field's value.
func (s *CreateAliasInput) SetRoutingConfig(v *AliasRoutingConfiguration) *CreateAliasInput
SetRoutingConfig sets the RoutingConfig field's value.
func (s CreateAliasInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateAliasInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateCodeSigningConfigInput struct { // Signing profiles for this code signing configuration. // // AllowedPublishers is a required field AllowedPublishers *AllowedPublishers `type:"structure" required:"true"` // The code signing policies define the actions to take if the validation checks // fail. CodeSigningPolicies *CodeSigningPolicies `type:"structure"` // Descriptive name for this code signing configuration. Description *string `type:"string"` // contains filtered or unexported fields }
func (s CreateCodeSigningConfigInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateCodeSigningConfigInput) SetAllowedPublishers(v *AllowedPublishers) *CreateCodeSigningConfigInput
SetAllowedPublishers sets the AllowedPublishers field's value.
func (s *CreateCodeSigningConfigInput) SetCodeSigningPolicies(v *CodeSigningPolicies) *CreateCodeSigningConfigInput
SetCodeSigningPolicies sets the CodeSigningPolicies field's value.
func (s *CreateCodeSigningConfigInput) SetDescription(v string) *CreateCodeSigningConfigInput
SetDescription sets the Description field's value.
func (s CreateCodeSigningConfigInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateCodeSigningConfigInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateCodeSigningConfigOutput struct { // The code signing configuration. // // CodeSigningConfig is a required field CodeSigningConfig *CodeSigningConfig `type:"structure" required:"true"` // contains filtered or unexported fields }
func (s CreateCodeSigningConfigOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateCodeSigningConfigOutput) SetCodeSigningConfig(v *CodeSigningConfig) *CreateCodeSigningConfigOutput
SetCodeSigningConfig sets the CodeSigningConfig field's value.
func (s CreateCodeSigningConfigOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CreateEventSourceMappingInput struct { // Specific configuration settings for an Amazon Managed Streaming for Apache // Kafka (Amazon MSK) event source. AmazonManagedKafkaEventSourceConfig *AmazonManagedKafkaEventSourceConfig `type:"structure"` // The maximum number of records in each batch that Lambda pulls from your stream // or queue and sends to your function. Lambda passes all of the records in // the batch to the function in a single call, up to the payload limit for synchronous // invocation (6 MB). // // * Amazon Kinesis – Default 100. Max 10,000. // // * Amazon DynamoDB Streams – Default 100. Max 10,000. // // * Amazon Simple Queue Service – Default 10. For standard queues the // max is 10,000. For FIFO queues the max is 10. // // * Amazon Managed Streaming for Apache Kafka – Default 100. Max 10,000. // // * Self-managed Apache Kafka – Default 100. Max 10,000. // // * Amazon MQ (ActiveMQ and RabbitMQ) – Default 100. Max 10,000. // // * DocumentDB – Default 100. Max 10,000. BatchSize *int64 `min:"1" type:"integer"` // (Kinesis and DynamoDB Streams only) If the function returns an error, split // the batch in two and retry. BisectBatchOnFunctionError *bool `type:"boolean"` // (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Kafka only) A configuration // object that specifies the destination of an event after Lambda processes // it. DestinationConfig *DestinationConfig `type:"structure"` // Specific configuration settings for a DocumentDB event source. DocumentDBEventSourceConfig *DocumentDBEventSourceConfig `type:"structure"` // When true, the event source mapping is active. When false, Lambda pauses // polling and invocation. // // Default: True Enabled *bool `type:"boolean"` // The Amazon Resource Name (ARN) of the event source. // // * Amazon Kinesis – The ARN of the data stream or a stream consumer. // // * Amazon DynamoDB Streams – The ARN of the stream. // // * Amazon Simple Queue Service – The ARN of the queue. // // * Amazon Managed Streaming for Apache Kafka – The ARN of the cluster // or the ARN of the VPC connection (for cross-account event source mappings // (https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc)). // // * Amazon MQ – The ARN of the broker. // // * Amazon DocumentDB – The ARN of the DocumentDB change stream. EventSourceArn *string `type:"string"` // An object that defines the filter criteria that determine whether Lambda // should process an event. For more information, see Lambda event filtering // (https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html). FilterCriteria *FilterCriteria `type:"structure"` // The name or ARN of the Lambda function. // // Name formats // // * Function name – MyFunction. // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Version or Alias ARN – arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD. // // * Partial ARN – 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it's limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `min:"1" type:"string" required:"true"` // (Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type // enums applied to the event source mapping. FunctionResponseTypes []*string `type:"list" enum:"FunctionResponseType"` // The maximum amount of time, in seconds, that Lambda spends gathering records // before invoking the function. You can configure MaximumBatchingWindowInSeconds // to any value from 0 seconds to 300 seconds in increments of seconds. // // For streams and Amazon SQS event sources, the default batching window is // 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB // event sources, the default batching window is 500 ms. Note that because you // can only change MaximumBatchingWindowInSeconds in increments of seconds, // you cannot revert back to the 500 ms default batching window after you have // changed it. To restore the default batching window, you must create a new // event source mapping. // // Related setting: For streams and Amazon SQS event sources, when you set BatchSize // to a value greater than 10, you must set MaximumBatchingWindowInSeconds to // at least 1. MaximumBatchingWindowInSeconds *int64 `type:"integer"` // (Kinesis and DynamoDB Streams only) Discard records older than the specified // age. The default value is infinite (-1). MaximumRecordAgeInSeconds *int64 `type:"integer"` // (Kinesis and DynamoDB Streams only) Discard records after the specified number // of retries. The default value is infinite (-1). When set to infinite (-1), // failed records are retried until the record expires. MaximumRetryAttempts *int64 `type:"integer"` // (Kinesis and DynamoDB Streams only) The number of batches to process from // each shard concurrently. ParallelizationFactor *int64 `min:"1" type:"integer"` // (MQ) The name of the Amazon MQ broker destination queue to consume. Queues []*string `min:"1" type:"list"` // (Amazon SQS only) The scaling configuration for the event source. For more // information, see Configuring maximum concurrency for Amazon SQS event sources // (https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency). ScalingConfig *ScalingConfig `type:"structure"` // The self-managed Apache Kafka cluster to receive records from. SelfManagedEventSource *SelfManagedEventSource `type:"structure"` // Specific configuration settings for a self-managed Apache Kafka event source. SelfManagedKafkaEventSourceConfig *SelfManagedKafkaEventSourceConfig `type:"structure"` // An array of authentication protocols or VPC components required to secure // your event source. SourceAccessConfigurations []*SourceAccessConfiguration `type:"list"` // The position in a stream from which to start reading. Required for Amazon // Kinesis and Amazon DynamoDB Stream event sources. AT_TIMESTAMP is supported // only for Amazon Kinesis streams, Amazon DocumentDB, Amazon MSK, and self-managed // Apache Kafka. StartingPosition *string `type:"string" enum:"EventSourcePosition"` // With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. // StartingPositionTimestamp cannot be in the future. StartingPositionTimestamp *time.Time `type:"timestamp"` // The name of the Kafka topic. Topics []*string `min:"1" type:"list"` // (Kinesis and DynamoDB Streams only) The duration in seconds of a processing // window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds // indicates no tumbling window. TumblingWindowInSeconds *int64 `type:"integer"` // contains filtered or unexported fields }
func (s CreateEventSourceMappingInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateEventSourceMappingInput) SetAmazonManagedKafkaEventSourceConfig(v *AmazonManagedKafkaEventSourceConfig) *CreateEventSourceMappingInput
SetAmazonManagedKafkaEventSourceConfig sets the AmazonManagedKafkaEventSourceConfig field's value.
func (s *CreateEventSourceMappingInput) SetBatchSize(v int64) *CreateEventSourceMappingInput
SetBatchSize sets the BatchSize field's value.
func (s *CreateEventSourceMappingInput) SetBisectBatchOnFunctionError(v bool) *CreateEventSourceMappingInput
SetBisectBatchOnFunctionError sets the BisectBatchOnFunctionError field's value.
func (s *CreateEventSourceMappingInput) SetDestinationConfig(v *DestinationConfig) *CreateEventSourceMappingInput
SetDestinationConfig sets the DestinationConfig field's value.
func (s *CreateEventSourceMappingInput) SetDocumentDBEventSourceConfig(v *DocumentDBEventSourceConfig) *CreateEventSourceMappingInput
SetDocumentDBEventSourceConfig sets the DocumentDBEventSourceConfig field's value.
func (s *CreateEventSourceMappingInput) SetEnabled(v bool) *CreateEventSourceMappingInput
SetEnabled sets the Enabled field's value.
func (s *CreateEventSourceMappingInput) SetEventSourceArn(v string) *CreateEventSourceMappingInput
SetEventSourceArn sets the EventSourceArn field's value.
func (s *CreateEventSourceMappingInput) SetFilterCriteria(v *FilterCriteria) *CreateEventSourceMappingInput
SetFilterCriteria sets the FilterCriteria field's value.
func (s *CreateEventSourceMappingInput) SetFunctionName(v string) *CreateEventSourceMappingInput
SetFunctionName sets the FunctionName field's value.
func (s *CreateEventSourceMappingInput) SetFunctionResponseTypes(v []*string) *CreateEventSourceMappingInput
SetFunctionResponseTypes sets the FunctionResponseTypes field's value.
func (s *CreateEventSourceMappingInput) SetMaximumBatchingWindowInSeconds(v int64) *CreateEventSourceMappingInput
SetMaximumBatchingWindowInSeconds sets the MaximumBatchingWindowInSeconds field's value.
func (s *CreateEventSourceMappingInput) SetMaximumRecordAgeInSeconds(v int64) *CreateEventSourceMappingInput
SetMaximumRecordAgeInSeconds sets the MaximumRecordAgeInSeconds field's value.
func (s *CreateEventSourceMappingInput) SetMaximumRetryAttempts(v int64) *CreateEventSourceMappingInput
SetMaximumRetryAttempts sets the MaximumRetryAttempts field's value.
func (s *CreateEventSourceMappingInput) SetParallelizationFactor(v int64) *CreateEventSourceMappingInput
SetParallelizationFactor sets the ParallelizationFactor field's value.
func (s *CreateEventSourceMappingInput) SetQueues(v []*string) *CreateEventSourceMappingInput
SetQueues sets the Queues field's value.
func (s *CreateEventSourceMappingInput) SetScalingConfig(v *ScalingConfig) *CreateEventSourceMappingInput
SetScalingConfig sets the ScalingConfig field's value.
func (s *CreateEventSourceMappingInput) SetSelfManagedEventSource(v *SelfManagedEventSource) *CreateEventSourceMappingInput
SetSelfManagedEventSource sets the SelfManagedEventSource field's value.
func (s *CreateEventSourceMappingInput) SetSelfManagedKafkaEventSourceConfig(v *SelfManagedKafkaEventSourceConfig) *CreateEventSourceMappingInput
SetSelfManagedKafkaEventSourceConfig sets the SelfManagedKafkaEventSourceConfig field's value.
func (s *CreateEventSourceMappingInput) SetSourceAccessConfigurations(v []*SourceAccessConfiguration) *CreateEventSourceMappingInput
SetSourceAccessConfigurations sets the SourceAccessConfigurations field's value.
func (s *CreateEventSourceMappingInput) SetStartingPosition(v string) *CreateEventSourceMappingInput
SetStartingPosition sets the StartingPosition field's value.
func (s *CreateEventSourceMappingInput) SetStartingPositionTimestamp(v time.Time) *CreateEventSourceMappingInput
SetStartingPositionTimestamp sets the StartingPositionTimestamp field's value.
func (s *CreateEventSourceMappingInput) SetTopics(v []*string) *CreateEventSourceMappingInput
SetTopics sets the Topics field's value.
func (s *CreateEventSourceMappingInput) SetTumblingWindowInSeconds(v int64) *CreateEventSourceMappingInput
SetTumblingWindowInSeconds sets the TumblingWindowInSeconds field's value.
func (s CreateEventSourceMappingInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateEventSourceMappingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateFunctionInput struct { // The instruction set architecture that the function supports. Enter a string // array with one of the valid values (arm64 or x86_64). The default value is // x86_64. Architectures []*string `min:"1" type:"list" enum:"Architecture"` // The code for the function. // // Code is a required field Code *FunctionCode `type:"structure" required:"true"` // To enable code signing for this function, specify the ARN of a code-signing // configuration. A code-signing configuration includes a set of signing profiles, // which define the trusted publishers for this function. CodeSigningConfigArn *string `type:"string"` // A dead-letter queue configuration that specifies the queue or topic where // Lambda sends asynchronous events when they fail processing. For more information, // see Dead-letter queues (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq). DeadLetterConfig *DeadLetterConfig `type:"structure"` // A description of the function. Description *string `type:"string"` // Environment variables that are accessible from function code during execution. Environment *Environment `type:"structure"` // The size of the function's /tmp directory in MB. The default value is 512, // but can be any whole number between 512 and 10,240 MB. For more information, // see Configuring ephemeral storage (console) (https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage). EphemeralStorage *EphemeralStorage `type:"structure"` // Connection settings for an Amazon EFS file system. FileSystemConfigs []*FileSystemConfig `type:"list"` // The name or ARN of the Lambda function. // // Name formats // // * Function name – my-function. // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN – 123456789012:function:my-function. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `min:"1" type:"string" required:"true"` // The name of the method within your code that Lambda calls to run your function. // Handler is required if the deployment package is a .zip file archive. The // format includes the file name. It can also include namespaces and other qualifiers, // depending on the runtime. For more information, see Lambda programming model // (https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html). Handler *string `type:"string"` // Container image configuration values (https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) // that override the values in the container image Dockerfile. ImageConfig *ImageConfig `type:"structure"` // The ARN of the Key Management Service (KMS) customer managed key that's used // to encrypt your function's environment variables (https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption). // When Lambda SnapStart (https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) // is activated, Lambda also uses this key is to encrypt your function's snapshot. // If you deploy your function using a container image, Lambda also uses this // key to encrypt your function when it's deployed. Note that this is not the // same key that's used to protect your container image in the Amazon Elastic // Container Registry (Amazon ECR). If you don't provide a customer managed // key, Lambda uses a default service key. KMSKeyArn *string `type:"string"` // A list of function layers (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) // to add to the function's execution environment. Specify each layer by its // ARN, including the version. Layers []*string `type:"list"` // The function's Amazon CloudWatch Logs configuration settings. LoggingConfig *LoggingConfig `type:"structure"` // The amount of memory available to the function (https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console) // at runtime. Increasing the function memory also increases its CPU allocation. // The default value is 128 MB. The value can be any multiple of 1 MB. MemorySize *int64 `min:"128" type:"integer"` // The type of deployment package. Set to Image for container image and set // to Zip for .zip file archive. PackageType *string `type:"string" enum:"PackageType"` // Set to true to publish the first version of the function during creation. Publish *bool `type:"boolean"` // The Amazon Resource Name (ARN) of the function's execution role. // // Role is a required field Role *string `type:"string" required:"true"` // The identifier of the function's runtime (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). // Runtime is required if the deployment package is a .zip file archive. // // The following list includes deprecated runtimes. For more information, see // Runtime deprecation policy (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy). Runtime *string `type:"string" enum:"Runtime"` // The function's SnapStart (https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) // setting. SnapStart *SnapStart `type:"structure"` // A list of tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) // to apply to the function. Tags map[string]*string `type:"map"` // The amount of time (in seconds) that Lambda allows a function to run before // stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. // For more information, see Lambda execution environment (https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html). Timeout *int64 `min:"1" type:"integer"` // Set Mode to Active to sample and trace a subset of incoming requests with // X-Ray (https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html). TracingConfig *TracingConfig `type:"structure"` // For network connectivity to Amazon Web Services resources in a VPC, specify // a list of security groups and subnets in the VPC. When you connect a function // to a VPC, it can access resources and the internet only through that VPC. // For more information, see Configuring a Lambda function to access resources // in a VPC (https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). VpcConfig *VpcConfig `type:"structure"` // contains filtered or unexported fields }
func (s CreateFunctionInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateFunctionInput) SetArchitectures(v []*string) *CreateFunctionInput
SetArchitectures sets the Architectures field's value.
func (s *CreateFunctionInput) SetCode(v *FunctionCode) *CreateFunctionInput
SetCode sets the Code field's value.
func (s *CreateFunctionInput) SetCodeSigningConfigArn(v string) *CreateFunctionInput
SetCodeSigningConfigArn sets the CodeSigningConfigArn field's value.
func (s *CreateFunctionInput) SetDeadLetterConfig(v *DeadLetterConfig) *CreateFunctionInput
SetDeadLetterConfig sets the DeadLetterConfig field's value.
func (s *CreateFunctionInput) SetDescription(v string) *CreateFunctionInput
SetDescription sets the Description field's value.
func (s *CreateFunctionInput) SetEnvironment(v *Environment) *CreateFunctionInput
SetEnvironment sets the Environment field's value.
func (s *CreateFunctionInput) SetEphemeralStorage(v *EphemeralStorage) *CreateFunctionInput
SetEphemeralStorage sets the EphemeralStorage field's value.
func (s *CreateFunctionInput) SetFileSystemConfigs(v []*FileSystemConfig) *CreateFunctionInput
SetFileSystemConfigs sets the FileSystemConfigs field's value.
func (s *CreateFunctionInput) SetFunctionName(v string) *CreateFunctionInput
SetFunctionName sets the FunctionName field's value.
func (s *CreateFunctionInput) SetHandler(v string) *CreateFunctionInput
SetHandler sets the Handler field's value.
func (s *CreateFunctionInput) SetImageConfig(v *ImageConfig) *CreateFunctionInput
SetImageConfig sets the ImageConfig field's value.
func (s *CreateFunctionInput) SetKMSKeyArn(v string) *CreateFunctionInput
SetKMSKeyArn sets the KMSKeyArn field's value.
func (s *CreateFunctionInput) SetLayers(v []*string) *CreateFunctionInput
SetLayers sets the Layers field's value.
func (s *CreateFunctionInput) SetLoggingConfig(v *LoggingConfig) *CreateFunctionInput
SetLoggingConfig sets the LoggingConfig field's value.
func (s *CreateFunctionInput) SetMemorySize(v int64) *CreateFunctionInput
SetMemorySize sets the MemorySize field's value.
func (s *CreateFunctionInput) SetPackageType(v string) *CreateFunctionInput
SetPackageType sets the PackageType field's value.
func (s *CreateFunctionInput) SetPublish(v bool) *CreateFunctionInput
SetPublish sets the Publish field's value.
func (s *CreateFunctionInput) SetRole(v string) *CreateFunctionInput
SetRole sets the Role field's value.
func (s *CreateFunctionInput) SetRuntime(v string) *CreateFunctionInput
SetRuntime sets the Runtime field's value.
func (s *CreateFunctionInput) SetSnapStart(v *SnapStart) *CreateFunctionInput
SetSnapStart sets the SnapStart field's value.
func (s *CreateFunctionInput) SetTags(v map[string]*string) *CreateFunctionInput
SetTags sets the Tags field's value.
func (s *CreateFunctionInput) SetTimeout(v int64) *CreateFunctionInput
SetTimeout sets the Timeout field's value.
func (s *CreateFunctionInput) SetTracingConfig(v *TracingConfig) *CreateFunctionInput
SetTracingConfig sets the TracingConfig field's value.
func (s *CreateFunctionInput) SetVpcConfig(v *VpcConfig) *CreateFunctionInput
SetVpcConfig sets the VpcConfig field's value.
func (s CreateFunctionInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateFunctionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateFunctionUrlConfigInput struct { // The type of authentication that your function URL uses. Set to AWS_IAM if // you want to restrict access to authenticated users only. Set to NONE if you // want to bypass IAM authentication to create a public endpoint. For more information, // see Security and auth model for Lambda function URLs (https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html). // // AuthType is a required field AuthType *string `type:"string" required:"true" enum:"FunctionUrlAuthType"` // The cross-origin resource sharing (CORS) (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) // settings for your function URL. Cors *Cors `type:"structure"` // The name or ARN of the Lambda function. // // Name formats // // * Function name – my-function. // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN – 123456789012:function:my-function. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // Use one of the following options: // // * BUFFERED – This is the default option. Lambda invokes your function // using the Invoke API operation. Invocation results are available when // the payload is complete. The maximum payload size is 6 MB. // // * RESPONSE_STREAM – Your function streams payload results as they become // available. Lambda invokes your function using the InvokeWithResponseStream // API operation. The maximum response payload size is 20 MB, however, you // can request a quota increase (https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html). InvokeMode *string `type:"string" enum:"InvokeMode"` // The alias name. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // contains filtered or unexported fields }
func (s CreateFunctionUrlConfigInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateFunctionUrlConfigInput) SetAuthType(v string) *CreateFunctionUrlConfigInput
SetAuthType sets the AuthType field's value.
func (s *CreateFunctionUrlConfigInput) SetCors(v *Cors) *CreateFunctionUrlConfigInput
SetCors sets the Cors field's value.
func (s *CreateFunctionUrlConfigInput) SetFunctionName(v string) *CreateFunctionUrlConfigInput
SetFunctionName sets the FunctionName field's value.
func (s *CreateFunctionUrlConfigInput) SetInvokeMode(v string) *CreateFunctionUrlConfigInput
SetInvokeMode sets the InvokeMode field's value.
func (s *CreateFunctionUrlConfigInput) SetQualifier(v string) *CreateFunctionUrlConfigInput
SetQualifier sets the Qualifier field's value.
func (s CreateFunctionUrlConfigInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateFunctionUrlConfigInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateFunctionUrlConfigOutput struct { // The type of authentication that your function URL uses. Set to AWS_IAM if // you want to restrict access to authenticated users only. Set to NONE if you // want to bypass IAM authentication to create a public endpoint. For more information, // see Security and auth model for Lambda function URLs (https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html). // // AuthType is a required field AuthType *string `type:"string" required:"true" enum:"FunctionUrlAuthType"` // The cross-origin resource sharing (CORS) (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) // settings for your function URL. Cors *Cors `type:"structure"` // When the function URL was created, in ISO-8601 format (https://www.w3.org/TR/NOTE-datetime) // (YYYY-MM-DDThh:mm:ss.sTZD). // // CreationTime is a required field CreationTime *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of your function. // // FunctionArn is a required field FunctionArn *string `type:"string" required:"true"` // The HTTP URL endpoint for your function. // // FunctionUrl is a required field FunctionUrl *string `min:"40" type:"string" required:"true"` // Use one of the following options: // // * BUFFERED – This is the default option. Lambda invokes your function // using the Invoke API operation. Invocation results are available when // the payload is complete. The maximum payload size is 6 MB. // // * RESPONSE_STREAM – Your function streams payload results as they become // available. Lambda invokes your function using the InvokeWithResponseStream // API operation. The maximum response payload size is 20 MB, however, you // can request a quota increase (https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html). InvokeMode *string `type:"string" enum:"InvokeMode"` // contains filtered or unexported fields }
func (s CreateFunctionUrlConfigOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateFunctionUrlConfigOutput) SetAuthType(v string) *CreateFunctionUrlConfigOutput
SetAuthType sets the AuthType field's value.
func (s *CreateFunctionUrlConfigOutput) SetCors(v *Cors) *CreateFunctionUrlConfigOutput
SetCors sets the Cors field's value.
func (s *CreateFunctionUrlConfigOutput) SetCreationTime(v string) *CreateFunctionUrlConfigOutput
SetCreationTime sets the CreationTime field's value.
func (s *CreateFunctionUrlConfigOutput) SetFunctionArn(v string) *CreateFunctionUrlConfigOutput
SetFunctionArn sets the FunctionArn field's value.
func (s *CreateFunctionUrlConfigOutput) SetFunctionUrl(v string) *CreateFunctionUrlConfigOutput
SetFunctionUrl sets the FunctionUrl field's value.
func (s *CreateFunctionUrlConfigOutput) SetInvokeMode(v string) *CreateFunctionUrlConfigOutput
SetInvokeMode sets the InvokeMode field's value.
func (s CreateFunctionUrlConfigOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeadLetterConfig struct { // The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic. TargetArn *string `type:"string"` // contains filtered or unexported fields }
The dead-letter queue (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed asynchronous invocations.
func (s DeadLetterConfig) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeadLetterConfig) SetTargetArn(v string) *DeadLetterConfig
SetTargetArn sets the TargetArn field's value.
func (s DeadLetterConfig) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteAliasInput struct { // The name or ARN of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // The name of the alias. // // Name is a required field Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteAliasInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteAliasInput) SetFunctionName(v string) *DeleteAliasInput
SetFunctionName sets the FunctionName field's value.
func (s *DeleteAliasInput) SetName(v string) *DeleteAliasInput
SetName sets the Name field's value.
func (s DeleteAliasInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteAliasInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteAliasOutput struct {
// contains filtered or unexported fields
}
func (s DeleteAliasOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s DeleteAliasOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteCodeSigningConfigInput struct { // The The Amazon Resource Name (ARN) of the code signing configuration. // // CodeSigningConfigArn is a required field CodeSigningConfigArn *string `location:"uri" locationName:"CodeSigningConfigArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteCodeSigningConfigInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteCodeSigningConfigInput) SetCodeSigningConfigArn(v string) *DeleteCodeSigningConfigInput
SetCodeSigningConfigArn sets the CodeSigningConfigArn field's value.
func (s DeleteCodeSigningConfigInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteCodeSigningConfigInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteCodeSigningConfigOutput struct {
// contains filtered or unexported fields
}
func (s DeleteCodeSigningConfigOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s DeleteCodeSigningConfigOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteEventSourceMappingInput struct { // The identifier of the event source mapping. // // UUID is a required field UUID *string `location:"uri" locationName:"UUID" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteEventSourceMappingInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteEventSourceMappingInput) SetUUID(v string) *DeleteEventSourceMappingInput
SetUUID sets the UUID field's value.
func (s DeleteEventSourceMappingInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteEventSourceMappingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteFunctionCodeSigningConfigInput struct { // The name or ARN of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteFunctionCodeSigningConfigInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteFunctionCodeSigningConfigInput) SetFunctionName(v string) *DeleteFunctionCodeSigningConfigInput
SetFunctionName sets the FunctionName field's value.
func (s DeleteFunctionCodeSigningConfigInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteFunctionCodeSigningConfigInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteFunctionCodeSigningConfigOutput struct {
// contains filtered or unexported fields
}
func (s DeleteFunctionCodeSigningConfigOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s DeleteFunctionCodeSigningConfigOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteFunctionConcurrencyInput struct { // The name or ARN of the Lambda function. // // Name formats // // * Function name – my-function. // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN – 123456789012:function:my-function. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteFunctionConcurrencyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteFunctionConcurrencyInput) SetFunctionName(v string) *DeleteFunctionConcurrencyInput
SetFunctionName sets the FunctionName field's value.
func (s DeleteFunctionConcurrencyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteFunctionConcurrencyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteFunctionConcurrencyOutput struct {
// contains filtered or unexported fields
}
func (s DeleteFunctionConcurrencyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s DeleteFunctionConcurrencyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteFunctionEventInvokeConfigInput struct { // The name or ARN of the Lambda function, version, or alias. // // Name formats // // * Function name - my-function (name-only), my-function:v1 (with alias). // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN - 123456789012:function:my-function. // // You can append a version number or alias to any of the formats. The length // constraint applies only to the full ARN. If you specify only the function // name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // A version number or alias name. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // contains filtered or unexported fields }
func (s DeleteFunctionEventInvokeConfigInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteFunctionEventInvokeConfigInput) SetFunctionName(v string) *DeleteFunctionEventInvokeConfigInput
SetFunctionName sets the FunctionName field's value.
func (s *DeleteFunctionEventInvokeConfigInput) SetQualifier(v string) *DeleteFunctionEventInvokeConfigInput
SetQualifier sets the Qualifier field's value.
func (s DeleteFunctionEventInvokeConfigInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteFunctionEventInvokeConfigInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteFunctionEventInvokeConfigOutput struct {
// contains filtered or unexported fields
}
func (s DeleteFunctionEventInvokeConfigOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s DeleteFunctionEventInvokeConfigOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteFunctionInput struct { // The name or ARN of the Lambda function or version. // // Name formats // // * Function name – my-function (name-only), my-function:1 (with version). // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN – 123456789012:function:my-function. // // You can append a version number or alias to any of the formats. The length // constraint applies only to the full ARN. If you specify only the function // name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // Specify a version to delete. You can't delete a version that an alias references. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // contains filtered or unexported fields }
func (s DeleteFunctionInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteFunctionInput) SetFunctionName(v string) *DeleteFunctionInput
SetFunctionName sets the FunctionName field's value.
func (s *DeleteFunctionInput) SetQualifier(v string) *DeleteFunctionInput
SetQualifier sets the Qualifier field's value.
func (s DeleteFunctionInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteFunctionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteFunctionOutput struct {
// contains filtered or unexported fields
}
func (s DeleteFunctionOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s DeleteFunctionOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteFunctionUrlConfigInput struct { // The name or ARN of the Lambda function. // // Name formats // // * Function name – my-function. // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN – 123456789012:function:my-function. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // The alias name. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // contains filtered or unexported fields }
func (s DeleteFunctionUrlConfigInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteFunctionUrlConfigInput) SetFunctionName(v string) *DeleteFunctionUrlConfigInput
SetFunctionName sets the FunctionName field's value.
func (s *DeleteFunctionUrlConfigInput) SetQualifier(v string) *DeleteFunctionUrlConfigInput
SetQualifier sets the Qualifier field's value.
func (s DeleteFunctionUrlConfigInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteFunctionUrlConfigInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteFunctionUrlConfigOutput struct {
// contains filtered or unexported fields
}
func (s DeleteFunctionUrlConfigOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s DeleteFunctionUrlConfigOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteLayerVersionInput struct { // The name or Amazon Resource Name (ARN) of the layer. // // LayerName is a required field LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` // The version number. // // VersionNumber is a required field VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"` // contains filtered or unexported fields }
func (s DeleteLayerVersionInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteLayerVersionInput) SetLayerName(v string) *DeleteLayerVersionInput
SetLayerName sets the LayerName field's value.
func (s *DeleteLayerVersionInput) SetVersionNumber(v int64) *DeleteLayerVersionInput
SetVersionNumber sets the VersionNumber field's value.
func (s DeleteLayerVersionInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteLayerVersionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteLayerVersionOutput struct {
// contains filtered or unexported fields
}
func (s DeleteLayerVersionOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s DeleteLayerVersionOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteProvisionedConcurrencyConfigInput struct { // The name or ARN of the Lambda function. // // Name formats // // * Function name – my-function. // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN – 123456789012:function:my-function. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // The version number or alias name. // // Qualifier is a required field Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteProvisionedConcurrencyConfigInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteProvisionedConcurrencyConfigInput) SetFunctionName(v string) *DeleteProvisionedConcurrencyConfigInput
SetFunctionName sets the FunctionName field's value.
func (s *DeleteProvisionedConcurrencyConfigInput) SetQualifier(v string) *DeleteProvisionedConcurrencyConfigInput
SetQualifier sets the Qualifier field's value.
func (s DeleteProvisionedConcurrencyConfigInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteProvisionedConcurrencyConfigInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteProvisionedConcurrencyConfigOutput struct {
// contains filtered or unexported fields
}
func (s DeleteProvisionedConcurrencyConfigOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s DeleteProvisionedConcurrencyConfigOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DestinationConfig struct { // The destination configuration for failed invocations. OnFailure *OnFailure `type:"structure"` // The destination configuration for successful invocations. OnSuccess *OnSuccess `type:"structure"` // contains filtered or unexported fields }
A configuration object that specifies the destination of an event after Lambda processes it.
func (s DestinationConfig) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DestinationConfig) SetOnFailure(v *OnFailure) *DestinationConfig
SetOnFailure sets the OnFailure field's value.
func (s *DestinationConfig) SetOnSuccess(v *OnSuccess) *DestinationConfig
SetOnSuccess sets the OnSuccess field's value.
func (s DestinationConfig) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DocumentDBEventSourceConfig struct { // The name of the collection to consume within the database. If you do not // specify a collection, Lambda consumes all collections. CollectionName *string `min:"1" type:"string"` // The name of the database to consume within the DocumentDB cluster. DatabaseName *string `min:"1" type:"string"` // Determines what DocumentDB sends to your event stream during document update // operations. If set to UpdateLookup, DocumentDB sends a delta describing the // changes, along with a copy of the entire document. Otherwise, DocumentDB // sends only a partial document that contains the changes. FullDocument *string `type:"string" enum:"FullDocument"` // contains filtered or unexported fields }
Specific configuration settings for a DocumentDB event source.
func (s DocumentDBEventSourceConfig) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DocumentDBEventSourceConfig) SetCollectionName(v string) *DocumentDBEventSourceConfig
SetCollectionName sets the CollectionName field's value.
func (s *DocumentDBEventSourceConfig) SetDatabaseName(v string) *DocumentDBEventSourceConfig
SetDatabaseName sets the DatabaseName field's value.
func (s *DocumentDBEventSourceConfig) SetFullDocument(v string) *DocumentDBEventSourceConfig
SetFullDocument sets the FullDocument field's value.
func (s DocumentDBEventSourceConfig) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DocumentDBEventSourceConfig) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type EC2AccessDeniedException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
Need additional permissions to configure VPC settings.
func (s *EC2AccessDeniedException) Code() string
Code returns the exception type name.
func (s *EC2AccessDeniedException) Error() string
func (s EC2AccessDeniedException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *EC2AccessDeniedException) Message() string
Message returns the exception's message.
func (s *EC2AccessDeniedException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *EC2AccessDeniedException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *EC2AccessDeniedException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s EC2AccessDeniedException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type EC2ThrottledException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function.
func (s *EC2ThrottledException) Code() string
Code returns the exception type name.
func (s *EC2ThrottledException) Error() string
func (s EC2ThrottledException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *EC2ThrottledException) Message() string
Message returns the exception's message.
func (s *EC2ThrottledException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *EC2ThrottledException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *EC2ThrottledException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s EC2ThrottledException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type EC2UnexpectedException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` EC2ErrorCode *string `type:"string"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function.
func (s *EC2UnexpectedException) Code() string
Code returns the exception type name.
func (s *EC2UnexpectedException) Error() string
func (s EC2UnexpectedException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *EC2UnexpectedException) Message() string
Message returns the exception's message.
func (s *EC2UnexpectedException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *EC2UnexpectedException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *EC2UnexpectedException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s EC2UnexpectedException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type EFSIOException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
An error occurred when reading from or writing to a connected file system.
func (s *EFSIOException) Code() string
Code returns the exception type name.
func (s *EFSIOException) Error() string
func (s EFSIOException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *EFSIOException) Message() string
Message returns the exception's message.
func (s *EFSIOException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *EFSIOException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *EFSIOException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s EFSIOException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type EFSMountConnectivityException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
The Lambda function couldn't make a network connection to the configured file system.
func (s *EFSMountConnectivityException) Code() string
Code returns the exception type name.
func (s *EFSMountConnectivityException) Error() string
func (s EFSMountConnectivityException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *EFSMountConnectivityException) Message() string
Message returns the exception's message.
func (s *EFSMountConnectivityException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *EFSMountConnectivityException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *EFSMountConnectivityException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s EFSMountConnectivityException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type EFSMountFailureException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
The Lambda function couldn't mount the configured file system due to a permission or configuration issue.
func (s *EFSMountFailureException) Code() string
Code returns the exception type name.
func (s *EFSMountFailureException) Error() string
func (s EFSMountFailureException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *EFSMountFailureException) Message() string
Message returns the exception's message.
func (s *EFSMountFailureException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *EFSMountFailureException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *EFSMountFailureException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s EFSMountFailureException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type EFSMountTimeoutException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
The Lambda function made a network connection to the configured file system, but the mount operation timed out.
func (s *EFSMountTimeoutException) Code() string
Code returns the exception type name.
func (s *EFSMountTimeoutException) Error() string
func (s EFSMountTimeoutException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *EFSMountTimeoutException) Message() string
Message returns the exception's message.
func (s *EFSMountTimeoutException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *EFSMountTimeoutException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *EFSMountTimeoutException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s EFSMountTimeoutException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ENILimitReachedException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html).
func (s *ENILimitReachedException) Code() string
Code returns the exception type name.
func (s *ENILimitReachedException) Error() string
func (s ENILimitReachedException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ENILimitReachedException) Message() string
Message returns the exception's message.
func (s *ENILimitReachedException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ENILimitReachedException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ENILimitReachedException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s ENILimitReachedException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type Environment struct { // Environment variable key-value pairs. For more information, see Using Lambda // environment variables (https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html). // // Variables is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by Environment's // String and GoString methods. Variables map[string]*string `type:"map" sensitive:"true"` // contains filtered or unexported fields }
A function's environment variable settings. You can use environment variables to adjust your function's behavior without updating code. An environment variable is a pair of strings that are stored in a function's version-specific configuration.
func (s Environment) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *Environment) SetVariables(v map[string]*string) *Environment
SetVariables sets the Variables field's value.
func (s Environment) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type EnvironmentError struct { // The error code. ErrorCode *string `type:"string"` // The error message. // // Message is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by EnvironmentError's // String and GoString methods. Message *string `type:"string" sensitive:"true"` // contains filtered or unexported fields }
Error messages for environment variables that couldn't be applied.
func (s EnvironmentError) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *EnvironmentError) SetErrorCode(v string) *EnvironmentError
SetErrorCode sets the ErrorCode field's value.
func (s *EnvironmentError) SetMessage(v string) *EnvironmentError
SetMessage sets the Message field's value.
func (s EnvironmentError) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type EnvironmentResponse struct { // Error messages for environment variables that couldn't be applied. Error *EnvironmentError `type:"structure"` // Environment variable key-value pairs. Omitted from CloudTrail logs. // // Variables is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by EnvironmentResponse's // String and GoString methods. Variables map[string]*string `type:"map" sensitive:"true"` // contains filtered or unexported fields }
The results of an operation to update or read environment variables. If the operation succeeds, the response contains the environment variables. If it fails, the response contains details about the error.
func (s EnvironmentResponse) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *EnvironmentResponse) SetError(v *EnvironmentError) *EnvironmentResponse
SetError sets the Error field's value.
func (s *EnvironmentResponse) SetVariables(v map[string]*string) *EnvironmentResponse
SetVariables sets the Variables field's value.
func (s EnvironmentResponse) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type EphemeralStorage struct { // The size of the function's /tmp directory. // // Size is a required field Size *int64 `min:"512" type:"integer" required:"true"` // contains filtered or unexported fields }
The size of the function's /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console) (https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage).
func (s EphemeralStorage) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *EphemeralStorage) SetSize(v int64) *EphemeralStorage
SetSize sets the Size field's value.
func (s EphemeralStorage) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *EphemeralStorage) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type EventSourceMappingConfiguration struct { // Specific configuration settings for an Amazon Managed Streaming for Apache // Kafka (Amazon MSK) event source. AmazonManagedKafkaEventSourceConfig *AmazonManagedKafkaEventSourceConfig `type:"structure"` // The maximum number of records in each batch that Lambda pulls from your stream // or queue and sends to your function. Lambda passes all of the records in // the batch to the function in a single call, up to the payload limit for synchronous // invocation (6 MB). // // Default value: Varies by service. For Amazon SQS, the default is 10. For // all other services, the default is 100. // // Related setting: When you set BatchSize to a value greater than 10, you must // set MaximumBatchingWindowInSeconds to at least 1. BatchSize *int64 `min:"1" type:"integer"` // (Kinesis and DynamoDB Streams only) If the function returns an error, split // the batch in two and retry. The default value is false. BisectBatchOnFunctionError *bool `type:"boolean"` // (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event // sources only) A configuration object that specifies the destination of an // event after Lambda processes it. DestinationConfig *DestinationConfig `type:"structure"` // Specific configuration settings for a DocumentDB event source. DocumentDBEventSourceConfig *DocumentDBEventSourceConfig `type:"structure"` // The Amazon Resource Name (ARN) of the event source. EventSourceArn *string `type:"string"` // An object that defines the filter criteria that determine whether Lambda // should process an event. For more information, see Lambda event filtering // (https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html). FilterCriteria *FilterCriteria `type:"structure"` // The ARN of the Lambda function. FunctionArn *string `type:"string"` // (Kinesis, DynamoDB Streams, and Amazon SQS) A list of current response type // enums applied to the event source mapping. FunctionResponseTypes []*string `type:"list" enum:"FunctionResponseType"` // The date that the event source mapping was last updated or that its state // changed. LastModified *time.Time `type:"timestamp"` // The result of the last Lambda invocation of your function. LastProcessingResult *string `type:"string"` // The maximum amount of time, in seconds, that Lambda spends gathering records // before invoking the function. You can configure MaximumBatchingWindowInSeconds // to any value from 0 seconds to 300 seconds in increments of seconds. // // For streams and Amazon SQS event sources, the default batching window is // 0 seconds. For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB // event sources, the default batching window is 500 ms. Note that because you // can only change MaximumBatchingWindowInSeconds in increments of seconds, // you cannot revert back to the 500 ms default batching window after you have // changed it. To restore the default batching window, you must create a new // event source mapping. // // Related setting: For streams and Amazon SQS event sources, when you set BatchSize // to a value greater than 10, you must set MaximumBatchingWindowInSeconds to // at least 1. MaximumBatchingWindowInSeconds *int64 `type:"integer"` // (Kinesis and DynamoDB Streams only) Discard records older than the specified // age. The default value is -1, which sets the maximum age to infinite. When // the value is set to infinite, Lambda never discards old records. // // The minimum valid value for maximum record age is 60s. Although values less // than 60 and greater than -1 fall within the parameter's absolute range, they // are not allowed MaximumRecordAgeInSeconds *int64 `type:"integer"` // (Kinesis and DynamoDB Streams only) Discard records after the specified number // of retries. The default value is -1, which sets the maximum number of retries // to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed // records until the record expires in the event source. MaximumRetryAttempts *int64 `type:"integer"` // (Kinesis and DynamoDB Streams only) The number of batches to process concurrently // from each shard. The default value is 1. ParallelizationFactor *int64 `min:"1" type:"integer"` // (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. Queues []*string `min:"1" type:"list"` // (Amazon SQS only) The scaling configuration for the event source. For more // information, see Configuring maximum concurrency for Amazon SQS event sources // (https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency). ScalingConfig *ScalingConfig `type:"structure"` // The self-managed Apache Kafka cluster for your event source. SelfManagedEventSource *SelfManagedEventSource `type:"structure"` // Specific configuration settings for a self-managed Apache Kafka event source. SelfManagedKafkaEventSourceConfig *SelfManagedKafkaEventSourceConfig `type:"structure"` // An array of the authentication protocol, VPC components, or virtual host // to secure and define your event source. SourceAccessConfigurations []*SourceAccessConfiguration `type:"list"` // The position in a stream from which to start reading. Required for Amazon // Kinesis and Amazon DynamoDB Stream event sources. AT_TIMESTAMP is supported // only for Amazon Kinesis streams, Amazon DocumentDB, Amazon MSK, and self-managed // Apache Kafka. StartingPosition *string `type:"string" enum:"EventSourcePosition"` // With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. // StartingPositionTimestamp cannot be in the future. StartingPositionTimestamp *time.Time `type:"timestamp"` // The state of the event source mapping. It can be one of the following: Creating, // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string `type:"string"` // Indicates whether a user or Lambda made the last change to the event source // mapping. StateTransitionReason *string `type:"string"` // The name of the Kafka topic. Topics []*string `min:"1" type:"list"` // (Kinesis and DynamoDB Streams only) The duration in seconds of a processing // window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds // indicates no tumbling window. TumblingWindowInSeconds *int64 `type:"integer"` // The identifier of the event source mapping. UUID *string `type:"string"` // contains filtered or unexported fields }
A mapping between an Amazon Web Services resource and a Lambda function. For details, see CreateEventSourceMapping.
func (s EventSourceMappingConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *EventSourceMappingConfiguration) SetAmazonManagedKafkaEventSourceConfig(v *AmazonManagedKafkaEventSourceConfig) *EventSourceMappingConfiguration
SetAmazonManagedKafkaEventSourceConfig sets the AmazonManagedKafkaEventSourceConfig field's value.
func (s *EventSourceMappingConfiguration) SetBatchSize(v int64) *EventSourceMappingConfiguration
SetBatchSize sets the BatchSize field's value.
func (s *EventSourceMappingConfiguration) SetBisectBatchOnFunctionError(v bool) *EventSourceMappingConfiguration
SetBisectBatchOnFunctionError sets the BisectBatchOnFunctionError field's value.
func (s *EventSourceMappingConfiguration) SetDestinationConfig(v *DestinationConfig) *EventSourceMappingConfiguration
SetDestinationConfig sets the DestinationConfig field's value.
func (s *EventSourceMappingConfiguration) SetDocumentDBEventSourceConfig(v *DocumentDBEventSourceConfig) *EventSourceMappingConfiguration
SetDocumentDBEventSourceConfig sets the DocumentDBEventSourceConfig field's value.
func (s *EventSourceMappingConfiguration) SetEventSourceArn(v string) *EventSourceMappingConfiguration
SetEventSourceArn sets the EventSourceArn field's value.
func (s *EventSourceMappingConfiguration) SetFilterCriteria(v *FilterCriteria) *EventSourceMappingConfiguration
SetFilterCriteria sets the FilterCriteria field's value.
func (s *EventSourceMappingConfiguration) SetFunctionArn(v string) *EventSourceMappingConfiguration
SetFunctionArn sets the FunctionArn field's value.
func (s *EventSourceMappingConfiguration) SetFunctionResponseTypes(v []*string) *EventSourceMappingConfiguration
SetFunctionResponseTypes sets the FunctionResponseTypes field's value.
func (s *EventSourceMappingConfiguration) SetLastModified(v time.Time) *EventSourceMappingConfiguration
SetLastModified sets the LastModified field's value.
func (s *EventSourceMappingConfiguration) SetLastProcessingResult(v string) *EventSourceMappingConfiguration
SetLastProcessingResult sets the LastProcessingResult field's value.
func (s *EventSourceMappingConfiguration) SetMaximumBatchingWindowInSeconds(v int64) *EventSourceMappingConfiguration
SetMaximumBatchingWindowInSeconds sets the MaximumBatchingWindowInSeconds field's value.
func (s *EventSourceMappingConfiguration) SetMaximumRecordAgeInSeconds(v int64) *EventSourceMappingConfiguration
SetMaximumRecordAgeInSeconds sets the MaximumRecordAgeInSeconds field's value.
func (s *EventSourceMappingConfiguration) SetMaximumRetryAttempts(v int64) *EventSourceMappingConfiguration
SetMaximumRetryAttempts sets the MaximumRetryAttempts field's value.
func (s *EventSourceMappingConfiguration) SetParallelizationFactor(v int64) *EventSourceMappingConfiguration
SetParallelizationFactor sets the ParallelizationFactor field's value.
func (s *EventSourceMappingConfiguration) SetQueues(v []*string) *EventSourceMappingConfiguration
SetQueues sets the Queues field's value.
func (s *EventSourceMappingConfiguration) SetScalingConfig(v *ScalingConfig) *EventSourceMappingConfiguration
SetScalingConfig sets the ScalingConfig field's value.
func (s *EventSourceMappingConfiguration) SetSelfManagedEventSource(v *SelfManagedEventSource) *EventSourceMappingConfiguration
SetSelfManagedEventSource sets the SelfManagedEventSource field's value.
func (s *EventSourceMappingConfiguration) SetSelfManagedKafkaEventSourceConfig(v *SelfManagedKafkaEventSourceConfig) *EventSourceMappingConfiguration
SetSelfManagedKafkaEventSourceConfig sets the SelfManagedKafkaEventSourceConfig field's value.
func (s *EventSourceMappingConfiguration) SetSourceAccessConfigurations(v []*SourceAccessConfiguration) *EventSourceMappingConfiguration
SetSourceAccessConfigurations sets the SourceAccessConfigurations field's value.
func (s *EventSourceMappingConfiguration) SetStartingPosition(v string) *EventSourceMappingConfiguration
SetStartingPosition sets the StartingPosition field's value.
func (s *EventSourceMappingConfiguration) SetStartingPositionTimestamp(v time.Time) *EventSourceMappingConfiguration
SetStartingPositionTimestamp sets the StartingPositionTimestamp field's value.
func (s *EventSourceMappingConfiguration) SetState(v string) *EventSourceMappingConfiguration
SetState sets the State field's value.
func (s *EventSourceMappingConfiguration) SetStateTransitionReason(v string) *EventSourceMappingConfiguration
SetStateTransitionReason sets the StateTransitionReason field's value.
func (s *EventSourceMappingConfiguration) SetTopics(v []*string) *EventSourceMappingConfiguration
SetTopics sets the Topics field's value.
func (s *EventSourceMappingConfiguration) SetTumblingWindowInSeconds(v int64) *EventSourceMappingConfiguration
SetTumblingWindowInSeconds sets the TumblingWindowInSeconds field's value.
func (s *EventSourceMappingConfiguration) SetUUID(v string) *EventSourceMappingConfiguration
SetUUID sets the UUID field's value.
func (s EventSourceMappingConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type FileSystemConfig struct { // The Amazon Resource Name (ARN) of the Amazon EFS access point that provides // access to the file system. // // Arn is a required field Arn *string `type:"string" required:"true"` // The path where the function can access the file system, starting with /mnt/. // // LocalMountPath is a required field LocalMountPath *string `type:"string" required:"true"` // contains filtered or unexported fields }
Details about the connection between a Lambda function and an Amazon EFS file system (https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html).
func (s FileSystemConfig) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *FileSystemConfig) SetArn(v string) *FileSystemConfig
SetArn sets the Arn field's value.
func (s *FileSystemConfig) SetLocalMountPath(v string) *FileSystemConfig
SetLocalMountPath sets the LocalMountPath field's value.
func (s FileSystemConfig) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *FileSystemConfig) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type Filter struct { // A filter pattern. For more information on the syntax of a filter pattern, // see Filter rule syntax (https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax). Pattern *string `type:"string"` // contains filtered or unexported fields }
A structure within a FilterCriteria object that defines an event filtering pattern.
func (s Filter) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *Filter) SetPattern(v string) *Filter
SetPattern sets the Pattern field's value.
func (s Filter) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type FilterCriteria struct { // A list of filters. Filters []*Filter `type:"list"` // contains filtered or unexported fields }
An object that contains the filters for an event source.
func (s FilterCriteria) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *FilterCriteria) SetFilters(v []*Filter) *FilterCriteria
SetFilters sets the Filters field's value.
func (s FilterCriteria) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type FunctionCode struct { // URI of a container image (https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html) // in the Amazon ECR registry. ImageUri *string `type:"string"` // An Amazon S3 bucket in the same Amazon Web Services Region as your function. // The bucket can be in a different Amazon Web Services account. S3Bucket *string `min:"3" type:"string"` // The Amazon S3 key of the deployment package. S3Key *string `min:"1" type:"string"` // For versioned objects, the version of the deployment package object to use. S3ObjectVersion *string `min:"1" type:"string"` // The base64-encoded contents of the deployment package. Amazon Web Services // SDK and CLI clients handle the encoding for you. // // ZipFile is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by FunctionCode's // String and GoString methods. // // ZipFile is automatically base64 encoded/decoded by the SDK. ZipFile []byte `type:"blob" sensitive:"true"` // contains filtered or unexported fields }
The code for the Lambda function. You can either specify an object in Amazon S3, upload a .zip file archive deployment package directly, or specify the URI of a container image.
func (s FunctionCode) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *FunctionCode) SetImageUri(v string) *FunctionCode
SetImageUri sets the ImageUri field's value.
func (s *FunctionCode) SetS3Bucket(v string) *FunctionCode
SetS3Bucket sets the S3Bucket field's value.
func (s *FunctionCode) SetS3Key(v string) *FunctionCode
SetS3Key sets the S3Key field's value.
func (s *FunctionCode) SetS3ObjectVersion(v string) *FunctionCode
SetS3ObjectVersion sets the S3ObjectVersion field's value.
func (s *FunctionCode) SetZipFile(v []byte) *FunctionCode
SetZipFile sets the ZipFile field's value.
func (s FunctionCode) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *FunctionCode) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type FunctionCodeLocation struct { // URI of a container image in the Amazon ECR registry. ImageUri *string `type:"string"` // A presigned URL that you can use to download the deployment package. Location *string `type:"string"` // The service that's hosting the file. RepositoryType *string `type:"string"` // The resolved URI for the image. ResolvedImageUri *string `type:"string"` // contains filtered or unexported fields }
Details about a function's deployment package.
func (s FunctionCodeLocation) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *FunctionCodeLocation) SetImageUri(v string) *FunctionCodeLocation
SetImageUri sets the ImageUri field's value.
func (s *FunctionCodeLocation) SetLocation(v string) *FunctionCodeLocation
SetLocation sets the Location field's value.
func (s *FunctionCodeLocation) SetRepositoryType(v string) *FunctionCodeLocation
SetRepositoryType sets the RepositoryType field's value.
func (s *FunctionCodeLocation) SetResolvedImageUri(v string) *FunctionCodeLocation
SetResolvedImageUri sets the ResolvedImageUri field's value.
func (s FunctionCodeLocation) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type FunctionConfiguration struct { // The instruction set architecture that the function supports. Architecture // is a string array with one of the valid values. The default architecture // value is x86_64. Architectures []*string `min:"1" type:"list" enum:"Architecture"` // The SHA256 hash of the function's deployment package. CodeSha256 *string `type:"string"` // The size of the function's deployment package, in bytes. CodeSize *int64 `type:"long"` // The function's dead letter queue. DeadLetterConfig *DeadLetterConfig `type:"structure"` // The function's description. Description *string `type:"string"` // The function's environment variables (https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html). // Omitted from CloudTrail logs. Environment *EnvironmentResponse `type:"structure"` // The size of the function's /tmp directory in MB. The default value is 512, // but can be any whole number between 512 and 10,240 MB. For more information, // see Configuring ephemeral storage (console) (https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage). EphemeralStorage *EphemeralStorage `type:"structure"` // Connection settings for an Amazon EFS file system (https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html). FileSystemConfigs []*FileSystemConfig `type:"list"` // The function's Amazon Resource Name (ARN). FunctionArn *string `type:"string"` // The name of the function. FunctionName *string `min:"1" type:"string"` // The function that Lambda calls to begin running your function. Handler *string `type:"string"` // The function's image configuration values. ImageConfigResponse *ImageConfigResponse `type:"structure"` // The KMS key that's used to encrypt the function's environment variables (https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption). // When Lambda SnapStart (https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) // is activated, this key is also used to encrypt the function's snapshot. This // key is returned only if you've configured a customer managed key. KMSKeyArn *string `type:"string"` // The date and time that the function was last updated, in ISO-8601 format // (https://www.w3.org/TR/NOTE-datetime) (YYYY-MM-DDThh:mm:ss.sTZD). LastModified *string `type:"string"` // The status of the last update that was performed on the function. This is // first set to Successful after function creation completes. LastUpdateStatus *string `type:"string" enum:"LastUpdateStatus"` // The reason for the last update that was performed on the function. LastUpdateStatusReason *string `type:"string"` // The reason code for the last update that was performed on the function. LastUpdateStatusReasonCode *string `type:"string" enum:"LastUpdateStatusReasonCode"` // The function's layers (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). Layers []*Layer `type:"list"` // The function's Amazon CloudWatch Logs configuration settings. LoggingConfig *LoggingConfig `type:"structure"` // For Lambda@Edge functions, the ARN of the main function. MasterArn *string `type:"string"` // The amount of memory available to the function at runtime. MemorySize *int64 `min:"128" type:"integer"` // The type of deployment package. Set to Image for container image and set // Zip for .zip file archive. PackageType *string `type:"string" enum:"PackageType"` // The latest updated revision of the function or alias. RevisionId *string `type:"string"` // The function's execution role. Role *string `type:"string"` // The identifier of the function's runtime (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). // Runtime is required if the deployment package is a .zip file archive. // // The following list includes deprecated runtimes. For more information, see // Runtime deprecation policy (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy). Runtime *string `type:"string" enum:"Runtime"` // The ARN of the runtime and any errors that occured. RuntimeVersionConfig *RuntimeVersionConfig `type:"structure"` // The ARN of the signing job. SigningJobArn *string `type:"string"` // The ARN of the signing profile version. SigningProfileVersionArn *string `type:"string"` // Set ApplyOn to PublishedVersions to create a snapshot of the initialized // execution environment when you publish a function version. For more information, // see Improving startup performance with Lambda SnapStart (https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html). SnapStart *SnapStartResponse `type:"structure"` // The current state of the function. When the state is Inactive, you can reactivate // the function by invoking it. State *string `type:"string" enum:"State"` // The reason for the function's current state. StateReason *string `type:"string"` // The reason code for the function's current state. When the code is Creating, // you can't invoke or modify the function. StateReasonCode *string `type:"string" enum:"StateReasonCode"` // The amount of time in seconds that Lambda allows a function to run before // stopping it. Timeout *int64 `min:"1" type:"integer"` // The function's X-Ray tracing configuration. TracingConfig *TracingConfigResponse `type:"structure"` // The version of the Lambda function. Version *string `min:"1" type:"string"` // The function's networking configuration. VpcConfig *VpcConfigResponse `type:"structure"` // contains filtered or unexported fields }
Details about a function's configuration.
func (s FunctionConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *FunctionConfiguration) SetArchitectures(v []*string) *FunctionConfiguration
SetArchitectures sets the Architectures field's value.
func (s *FunctionConfiguration) SetCodeSha256(v string) *FunctionConfiguration
SetCodeSha256 sets the CodeSha256 field's value.
func (s *FunctionConfiguration) SetCodeSize(v int64) *FunctionConfiguration
SetCodeSize sets the CodeSize field's value.
func (s *FunctionConfiguration) SetDeadLetterConfig(v *DeadLetterConfig) *FunctionConfiguration
SetDeadLetterConfig sets the DeadLetterConfig field's value.
func (s *FunctionConfiguration) SetDescription(v string) *FunctionConfiguration
SetDescription sets the Description field's value.
func (s *FunctionConfiguration) SetEnvironment(v *EnvironmentResponse) *FunctionConfiguration
SetEnvironment sets the Environment field's value.
func (s *FunctionConfiguration) SetEphemeralStorage(v *EphemeralStorage) *FunctionConfiguration
SetEphemeralStorage sets the EphemeralStorage field's value.
func (s *FunctionConfiguration) SetFileSystemConfigs(v []*FileSystemConfig) *FunctionConfiguration
SetFileSystemConfigs sets the FileSystemConfigs field's value.
func (s *FunctionConfiguration) SetFunctionArn(v string) *FunctionConfiguration
SetFunctionArn sets the FunctionArn field's value.
func (s *FunctionConfiguration) SetFunctionName(v string) *FunctionConfiguration
SetFunctionName sets the FunctionName field's value.
func (s *FunctionConfiguration) SetHandler(v string) *FunctionConfiguration
SetHandler sets the Handler field's value.
func (s *FunctionConfiguration) SetImageConfigResponse(v *ImageConfigResponse) *FunctionConfiguration
SetImageConfigResponse sets the ImageConfigResponse field's value.
func (s *FunctionConfiguration) SetKMSKeyArn(v string) *FunctionConfiguration
SetKMSKeyArn sets the KMSKeyArn field's value.
func (s *FunctionConfiguration) SetLastModified(v string) *FunctionConfiguration
SetLastModified sets the LastModified field's value.
func (s *FunctionConfiguration) SetLastUpdateStatus(v string) *FunctionConfiguration
SetLastUpdateStatus sets the LastUpdateStatus field's value.
func (s *FunctionConfiguration) SetLastUpdateStatusReason(v string) *FunctionConfiguration
SetLastUpdateStatusReason sets the LastUpdateStatusReason field's value.
func (s *FunctionConfiguration) SetLastUpdateStatusReasonCode(v string) *FunctionConfiguration
SetLastUpdateStatusReasonCode sets the LastUpdateStatusReasonCode field's value.
func (s *FunctionConfiguration) SetLayers(v []*Layer) *FunctionConfiguration
SetLayers sets the Layers field's value.
func (s *FunctionConfiguration) SetLoggingConfig(v *LoggingConfig) *FunctionConfiguration
SetLoggingConfig sets the LoggingConfig field's value.
func (s *FunctionConfiguration) SetMasterArn(v string) *FunctionConfiguration
SetMasterArn sets the MasterArn field's value.
func (s *FunctionConfiguration) SetMemorySize(v int64) *FunctionConfiguration
SetMemorySize sets the MemorySize field's value.
func (s *FunctionConfiguration) SetPackageType(v string) *FunctionConfiguration
SetPackageType sets the PackageType field's value.
func (s *FunctionConfiguration) SetRevisionId(v string) *FunctionConfiguration
SetRevisionId sets the RevisionId field's value.
func (s *FunctionConfiguration) SetRole(v string) *FunctionConfiguration
SetRole sets the Role field's value.
func (s *FunctionConfiguration) SetRuntime(v string) *FunctionConfiguration
SetRuntime sets the Runtime field's value.
func (s *FunctionConfiguration) SetRuntimeVersionConfig(v *RuntimeVersionConfig) *FunctionConfiguration
SetRuntimeVersionConfig sets the RuntimeVersionConfig field's value.
func (s *FunctionConfiguration) SetSigningJobArn(v string) *FunctionConfiguration
SetSigningJobArn sets the SigningJobArn field's value.
func (s *FunctionConfiguration) SetSigningProfileVersionArn(v string) *FunctionConfiguration
SetSigningProfileVersionArn sets the SigningProfileVersionArn field's value.
func (s *FunctionConfiguration) SetSnapStart(v *SnapStartResponse) *FunctionConfiguration
SetSnapStart sets the SnapStart field's value.
func (s *FunctionConfiguration) SetState(v string) *FunctionConfiguration
SetState sets the State field's value.
func (s *FunctionConfiguration) SetStateReason(v string) *FunctionConfiguration
SetStateReason sets the StateReason field's value.
func (s *FunctionConfiguration) SetStateReasonCode(v string) *FunctionConfiguration
SetStateReasonCode sets the StateReasonCode field's value.
func (s *FunctionConfiguration) SetTimeout(v int64) *FunctionConfiguration
SetTimeout sets the Timeout field's value.
func (s *FunctionConfiguration) SetTracingConfig(v *TracingConfigResponse) *FunctionConfiguration
SetTracingConfig sets the TracingConfig field's value.
func (s *FunctionConfiguration) SetVersion(v string) *FunctionConfiguration
SetVersion sets the Version field's value.
func (s *FunctionConfiguration) SetVpcConfig(v *VpcConfigResponse) *FunctionConfiguration
SetVpcConfig sets the VpcConfig field's value.
func (s FunctionConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type FunctionEventInvokeConfig struct { // A destination for events after they have been sent to a function for processing. // // Destinations // // * Function - The Amazon Resource Name (ARN) of a Lambda function. // // * Queue - The ARN of a standard SQS queue. // // * Topic - The ARN of a standard SNS topic. // // * Event Bus - The ARN of an Amazon EventBridge event bus. DestinationConfig *DestinationConfig `type:"structure"` // The Amazon Resource Name (ARN) of the function. FunctionArn *string `type:"string"` // The date and time that the configuration was last updated. LastModified *time.Time `type:"timestamp"` // The maximum age of a request that Lambda sends to a function for processing. MaximumEventAgeInSeconds *int64 `min:"60" type:"integer"` // The maximum number of times to retry when the function returns an error. MaximumRetryAttempts *int64 `type:"integer"` // contains filtered or unexported fields }
func (s FunctionEventInvokeConfig) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *FunctionEventInvokeConfig) SetDestinationConfig(v *DestinationConfig) *FunctionEventInvokeConfig
SetDestinationConfig sets the DestinationConfig field's value.
func (s *FunctionEventInvokeConfig) SetFunctionArn(v string) *FunctionEventInvokeConfig
SetFunctionArn sets the FunctionArn field's value.
func (s *FunctionEventInvokeConfig) SetLastModified(v time.Time) *FunctionEventInvokeConfig
SetLastModified sets the LastModified field's value.
func (s *FunctionEventInvokeConfig) SetMaximumEventAgeInSeconds(v int64) *FunctionEventInvokeConfig
SetMaximumEventAgeInSeconds sets the MaximumEventAgeInSeconds field's value.
func (s *FunctionEventInvokeConfig) SetMaximumRetryAttempts(v int64) *FunctionEventInvokeConfig
SetMaximumRetryAttempts sets the MaximumRetryAttempts field's value.
func (s FunctionEventInvokeConfig) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type FunctionUrlConfig struct { // The type of authentication that your function URL uses. Set to AWS_IAM if // you want to restrict access to authenticated users only. Set to NONE if you // want to bypass IAM authentication to create a public endpoint. For more information, // see Security and auth model for Lambda function URLs (https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html). // // AuthType is a required field AuthType *string `type:"string" required:"true" enum:"FunctionUrlAuthType"` // The cross-origin resource sharing (CORS) (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) // settings for your function URL. Cors *Cors `type:"structure"` // When the function URL was created, in ISO-8601 format (https://www.w3.org/TR/NOTE-datetime) // (YYYY-MM-DDThh:mm:ss.sTZD). // // CreationTime is a required field CreationTime *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of your function. // // FunctionArn is a required field FunctionArn *string `type:"string" required:"true"` // The HTTP URL endpoint for your function. // // FunctionUrl is a required field FunctionUrl *string `min:"40" type:"string" required:"true"` // Use one of the following options: // // * BUFFERED – This is the default option. Lambda invokes your function // using the Invoke API operation. Invocation results are available when // the payload is complete. The maximum payload size is 6 MB. // // * RESPONSE_STREAM – Your function streams payload results as they become // available. Lambda invokes your function using the InvokeWithResponseStream // API operation. The maximum response payload size is 20 MB, however, you // can request a quota increase (https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html). InvokeMode *string `type:"string" enum:"InvokeMode"` // When the function URL configuration was last updated, in ISO-8601 format // (https://www.w3.org/TR/NOTE-datetime) (YYYY-MM-DDThh:mm:ss.sTZD). // // LastModifiedTime is a required field LastModifiedTime *string `type:"string" required:"true"` // contains filtered or unexported fields }
Details about a Lambda function URL.
func (s FunctionUrlConfig) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *FunctionUrlConfig) SetAuthType(v string) *FunctionUrlConfig
SetAuthType sets the AuthType field's value.
func (s *FunctionUrlConfig) SetCors(v *Cors) *FunctionUrlConfig
SetCors sets the Cors field's value.
func (s *FunctionUrlConfig) SetCreationTime(v string) *FunctionUrlConfig
SetCreationTime sets the CreationTime field's value.
func (s *FunctionUrlConfig) SetFunctionArn(v string) *FunctionUrlConfig
SetFunctionArn sets the FunctionArn field's value.
func (s *FunctionUrlConfig) SetFunctionUrl(v string) *FunctionUrlConfig
SetFunctionUrl sets the FunctionUrl field's value.
func (s *FunctionUrlConfig) SetInvokeMode(v string) *FunctionUrlConfig
SetInvokeMode sets the InvokeMode field's value.
func (s *FunctionUrlConfig) SetLastModifiedTime(v string) *FunctionUrlConfig
SetLastModifiedTime sets the LastModifiedTime field's value.
func (s FunctionUrlConfig) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetAccountSettingsInput struct {
// contains filtered or unexported fields
}
func (s GetAccountSettingsInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s GetAccountSettingsInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetAccountSettingsOutput struct { // Limits that are related to concurrency and code storage. AccountLimit *AccountLimit `type:"structure"` // The number of functions and amount of storage in use. AccountUsage *AccountUsage `type:"structure"` // contains filtered or unexported fields }
func (s GetAccountSettingsOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetAccountSettingsOutput) SetAccountLimit(v *AccountLimit) *GetAccountSettingsOutput
SetAccountLimit sets the AccountLimit field's value.
func (s *GetAccountSettingsOutput) SetAccountUsage(v *AccountUsage) *GetAccountSettingsOutput
SetAccountUsage sets the AccountUsage field's value.
func (s GetAccountSettingsOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetAliasInput struct { // The name or ARN of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // The name of the alias. // // Name is a required field Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetAliasInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetAliasInput) SetFunctionName(v string) *GetAliasInput
SetFunctionName sets the FunctionName field's value.
func (s *GetAliasInput) SetName(v string) *GetAliasInput
SetName sets the Name field's value.
func (s GetAliasInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetAliasInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetCodeSigningConfigInput struct { // The The Amazon Resource Name (ARN) of the code signing configuration. // // CodeSigningConfigArn is a required field CodeSigningConfigArn *string `location:"uri" locationName:"CodeSigningConfigArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetCodeSigningConfigInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetCodeSigningConfigInput) SetCodeSigningConfigArn(v string) *GetCodeSigningConfigInput
SetCodeSigningConfigArn sets the CodeSigningConfigArn field's value.
func (s GetCodeSigningConfigInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetCodeSigningConfigInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetCodeSigningConfigOutput struct { // The code signing configuration // // CodeSigningConfig is a required field CodeSigningConfig *CodeSigningConfig `type:"structure" required:"true"` // contains filtered or unexported fields }
func (s GetCodeSigningConfigOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetCodeSigningConfigOutput) SetCodeSigningConfig(v *CodeSigningConfig) *GetCodeSigningConfigOutput
SetCodeSigningConfig sets the CodeSigningConfig field's value.
func (s GetCodeSigningConfigOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetEventSourceMappingInput struct { // The identifier of the event source mapping. // // UUID is a required field UUID *string `location:"uri" locationName:"UUID" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetEventSourceMappingInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetEventSourceMappingInput) SetUUID(v string) *GetEventSourceMappingInput
SetUUID sets the UUID field's value.
func (s GetEventSourceMappingInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetEventSourceMappingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetFunctionCodeSigningConfigInput struct { // The name or ARN of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetFunctionCodeSigningConfigInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetFunctionCodeSigningConfigInput) SetFunctionName(v string) *GetFunctionCodeSigningConfigInput
SetFunctionName sets the FunctionName field's value.
func (s GetFunctionCodeSigningConfigInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetFunctionCodeSigningConfigInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetFunctionCodeSigningConfigOutput struct { // The The Amazon Resource Name (ARN) of the code signing configuration. // // CodeSigningConfigArn is a required field CodeSigningConfigArn *string `type:"string" required:"true"` // The name or ARN of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetFunctionCodeSigningConfigOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetFunctionCodeSigningConfigOutput) SetCodeSigningConfigArn(v string) *GetFunctionCodeSigningConfigOutput
SetCodeSigningConfigArn sets the CodeSigningConfigArn field's value.
func (s *GetFunctionCodeSigningConfigOutput) SetFunctionName(v string) *GetFunctionCodeSigningConfigOutput
SetFunctionName sets the FunctionName field's value.
func (s GetFunctionCodeSigningConfigOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetFunctionConcurrencyInput struct { // The name or ARN of the Lambda function. // // Name formats // // * Function name – my-function. // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN – 123456789012:function:my-function. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetFunctionConcurrencyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetFunctionConcurrencyInput) SetFunctionName(v string) *GetFunctionConcurrencyInput
SetFunctionName sets the FunctionName field's value.
func (s GetFunctionConcurrencyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetFunctionConcurrencyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetFunctionConcurrencyOutput struct { // The number of simultaneous executions that are reserved for the function. ReservedConcurrentExecutions *int64 `type:"integer"` // contains filtered or unexported fields }
func (s GetFunctionConcurrencyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetFunctionConcurrencyOutput) SetReservedConcurrentExecutions(v int64) *GetFunctionConcurrencyOutput
SetReservedConcurrentExecutions sets the ReservedConcurrentExecutions field's value.
func (s GetFunctionConcurrencyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetFunctionConfigurationInput struct { // The name or ARN of the Lambda function, version, or alias. // // Name formats // // * Function name – my-function (name-only), my-function:v1 (with alias). // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN – 123456789012:function:my-function. // // You can append a version number or alias to any of the formats. The length // constraint applies only to the full ARN. If you specify only the function // name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // Specify a version or alias to get details about a published version of the // function. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // contains filtered or unexported fields }
func (s GetFunctionConfigurationInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetFunctionConfigurationInput) SetFunctionName(v string) *GetFunctionConfigurationInput
SetFunctionName sets the FunctionName field's value.
func (s *GetFunctionConfigurationInput) SetQualifier(v string) *GetFunctionConfigurationInput
SetQualifier sets the Qualifier field's value.
func (s GetFunctionConfigurationInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetFunctionConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetFunctionEventInvokeConfigInput struct { // The name or ARN of the Lambda function, version, or alias. // // Name formats // // * Function name - my-function (name-only), my-function:v1 (with alias). // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN - 123456789012:function:my-function. // // You can append a version number or alias to any of the formats. The length // constraint applies only to the full ARN. If you specify only the function // name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // A version number or alias name. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // contains filtered or unexported fields }
func (s GetFunctionEventInvokeConfigInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetFunctionEventInvokeConfigInput) SetFunctionName(v string) *GetFunctionEventInvokeConfigInput
SetFunctionName sets the FunctionName field's value.
func (s *GetFunctionEventInvokeConfigInput) SetQualifier(v string) *GetFunctionEventInvokeConfigInput
SetQualifier sets the Qualifier field's value.
func (s GetFunctionEventInvokeConfigInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetFunctionEventInvokeConfigInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetFunctionEventInvokeConfigOutput struct { // A destination for events after they have been sent to a function for processing. // // Destinations // // * Function - The Amazon Resource Name (ARN) of a Lambda function. // // * Queue - The ARN of a standard SQS queue. // // * Topic - The ARN of a standard SNS topic. // // * Event Bus - The ARN of an Amazon EventBridge event bus. DestinationConfig *DestinationConfig `type:"structure"` // The Amazon Resource Name (ARN) of the function. FunctionArn *string `type:"string"` // The date and time that the configuration was last updated. LastModified *time.Time `type:"timestamp"` // The maximum age of a request that Lambda sends to a function for processing. MaximumEventAgeInSeconds *int64 `min:"60" type:"integer"` // The maximum number of times to retry when the function returns an error. MaximumRetryAttempts *int64 `type:"integer"` // contains filtered or unexported fields }
func (s GetFunctionEventInvokeConfigOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetFunctionEventInvokeConfigOutput) SetDestinationConfig(v *DestinationConfig) *GetFunctionEventInvokeConfigOutput
SetDestinationConfig sets the DestinationConfig field's value.
func (s *GetFunctionEventInvokeConfigOutput) SetFunctionArn(v string) *GetFunctionEventInvokeConfigOutput
SetFunctionArn sets the FunctionArn field's value.
func (s *GetFunctionEventInvokeConfigOutput) SetLastModified(v time.Time) *GetFunctionEventInvokeConfigOutput
SetLastModified sets the LastModified field's value.
func (s *GetFunctionEventInvokeConfigOutput) SetMaximumEventAgeInSeconds(v int64) *GetFunctionEventInvokeConfigOutput
SetMaximumEventAgeInSeconds sets the MaximumEventAgeInSeconds field's value.
func (s *GetFunctionEventInvokeConfigOutput) SetMaximumRetryAttempts(v int64) *GetFunctionEventInvokeConfigOutput
SetMaximumRetryAttempts sets the MaximumRetryAttempts field's value.
func (s GetFunctionEventInvokeConfigOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetFunctionInput struct { // The name or ARN of the Lambda function, version, or alias. // // Name formats // // * Function name – my-function (name-only), my-function:v1 (with alias). // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN – 123456789012:function:my-function. // // You can append a version number or alias to any of the formats. The length // constraint applies only to the full ARN. If you specify only the function // name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // Specify a version or alias to get details about a published version of the // function. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // contains filtered or unexported fields }
func (s GetFunctionInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetFunctionInput) SetFunctionName(v string) *GetFunctionInput
SetFunctionName sets the FunctionName field's value.
func (s *GetFunctionInput) SetQualifier(v string) *GetFunctionInput
SetQualifier sets the Qualifier field's value.
func (s GetFunctionInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetFunctionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetFunctionOutput struct { // The deployment package of the function or version. Code *FunctionCodeLocation `type:"structure"` // The function's reserved concurrency (https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html). Concurrency *PutFunctionConcurrencyOutput `type:"structure"` // The configuration of the function or version. Configuration *FunctionConfiguration `type:"structure"` // The function's tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html). Tags map[string]*string `type:"map"` // contains filtered or unexported fields }
func (s GetFunctionOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetFunctionOutput) SetCode(v *FunctionCodeLocation) *GetFunctionOutput
SetCode sets the Code field's value.
func (s *GetFunctionOutput) SetConcurrency(v *PutFunctionConcurrencyOutput) *GetFunctionOutput
SetConcurrency sets the Concurrency field's value.
func (s *GetFunctionOutput) SetConfiguration(v *FunctionConfiguration) *GetFunctionOutput
SetConfiguration sets the Configuration field's value.
func (s *GetFunctionOutput) SetTags(v map[string]*string) *GetFunctionOutput
SetTags sets the Tags field's value.
func (s GetFunctionOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetFunctionUrlConfigInput struct { // The name or ARN of the Lambda function. // // Name formats // // * Function name – my-function. // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN – 123456789012:function:my-function. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // The alias name. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // contains filtered or unexported fields }
func (s GetFunctionUrlConfigInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetFunctionUrlConfigInput) SetFunctionName(v string) *GetFunctionUrlConfigInput
SetFunctionName sets the FunctionName field's value.
func (s *GetFunctionUrlConfigInput) SetQualifier(v string) *GetFunctionUrlConfigInput
SetQualifier sets the Qualifier field's value.
func (s GetFunctionUrlConfigInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetFunctionUrlConfigInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetFunctionUrlConfigOutput struct { // The type of authentication that your function URL uses. Set to AWS_IAM if // you want to restrict access to authenticated users only. Set to NONE if you // want to bypass IAM authentication to create a public endpoint. For more information, // see Security and auth model for Lambda function URLs (https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html). // // AuthType is a required field AuthType *string `type:"string" required:"true" enum:"FunctionUrlAuthType"` // The cross-origin resource sharing (CORS) (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) // settings for your function URL. Cors *Cors `type:"structure"` // When the function URL was created, in ISO-8601 format (https://www.w3.org/TR/NOTE-datetime) // (YYYY-MM-DDThh:mm:ss.sTZD). // // CreationTime is a required field CreationTime *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of your function. // // FunctionArn is a required field FunctionArn *string `type:"string" required:"true"` // The HTTP URL endpoint for your function. // // FunctionUrl is a required field FunctionUrl *string `min:"40" type:"string" required:"true"` // Use one of the following options: // // * BUFFERED – This is the default option. Lambda invokes your function // using the Invoke API operation. Invocation results are available when // the payload is complete. The maximum payload size is 6 MB. // // * RESPONSE_STREAM – Your function streams payload results as they become // available. Lambda invokes your function using the InvokeWithResponseStream // API operation. The maximum response payload size is 20 MB, however, you // can request a quota increase (https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html). InvokeMode *string `type:"string" enum:"InvokeMode"` // When the function URL configuration was last updated, in ISO-8601 format // (https://www.w3.org/TR/NOTE-datetime) (YYYY-MM-DDThh:mm:ss.sTZD). // // LastModifiedTime is a required field LastModifiedTime *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetFunctionUrlConfigOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetFunctionUrlConfigOutput) SetAuthType(v string) *GetFunctionUrlConfigOutput
SetAuthType sets the AuthType field's value.
func (s *GetFunctionUrlConfigOutput) SetCors(v *Cors) *GetFunctionUrlConfigOutput
SetCors sets the Cors field's value.
func (s *GetFunctionUrlConfigOutput) SetCreationTime(v string) *GetFunctionUrlConfigOutput
SetCreationTime sets the CreationTime field's value.
func (s *GetFunctionUrlConfigOutput) SetFunctionArn(v string) *GetFunctionUrlConfigOutput
SetFunctionArn sets the FunctionArn field's value.
func (s *GetFunctionUrlConfigOutput) SetFunctionUrl(v string) *GetFunctionUrlConfigOutput
SetFunctionUrl sets the FunctionUrl field's value.
func (s *GetFunctionUrlConfigOutput) SetInvokeMode(v string) *GetFunctionUrlConfigOutput
SetInvokeMode sets the InvokeMode field's value.
func (s *GetFunctionUrlConfigOutput) SetLastModifiedTime(v string) *GetFunctionUrlConfigOutput
SetLastModifiedTime sets the LastModifiedTime field's value.
func (s GetFunctionUrlConfigOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetLayerVersionByArnInput struct { // The ARN of the layer version. // // Arn is a required field Arn *string `location:"querystring" locationName:"Arn" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetLayerVersionByArnInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetLayerVersionByArnInput) SetArn(v string) *GetLayerVersionByArnInput
SetArn sets the Arn field's value.
func (s GetLayerVersionByArnInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetLayerVersionByArnInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetLayerVersionByArnOutput struct { // A list of compatible instruction set architectures (https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html). CompatibleArchitectures []*string `type:"list" enum:"Architecture"` // The layer's compatible runtimes. // // The following list includes deprecated runtimes. For more information, see // Runtime deprecation policy (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy). CompatibleRuntimes []*string `type:"list" enum:"Runtime"` // Details about the layer version. Content *LayerVersionContentOutput `type:"structure"` // The date that the layer version was created, in ISO-8601 format (https://www.w3.org/TR/NOTE-datetime) // (YYYY-MM-DDThh:mm:ss.sTZD). CreatedDate *string `type:"string"` // The description of the version. Description *string `type:"string"` // The ARN of the layer. LayerArn *string `min:"1" type:"string"` // The ARN of the layer version. LayerVersionArn *string `min:"1" type:"string"` // The layer's software license. LicenseInfo *string `type:"string"` // The version number. Version *int64 `type:"long"` // contains filtered or unexported fields }
func (s GetLayerVersionByArnOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetLayerVersionByArnOutput) SetCompatibleArchitectures(v []*string) *GetLayerVersionByArnOutput
SetCompatibleArchitectures sets the CompatibleArchitectures field's value.
func (s *GetLayerVersionByArnOutput) SetCompatibleRuntimes(v []*string) *GetLayerVersionByArnOutput
SetCompatibleRuntimes sets the CompatibleRuntimes field's value.
func (s *GetLayerVersionByArnOutput) SetContent(v *LayerVersionContentOutput) *GetLayerVersionByArnOutput
SetContent sets the Content field's value.
func (s *GetLayerVersionByArnOutput) SetCreatedDate(v string) *GetLayerVersionByArnOutput
SetCreatedDate sets the CreatedDate field's value.
func (s *GetLayerVersionByArnOutput) SetDescription(v string) *GetLayerVersionByArnOutput
SetDescription sets the Description field's value.
func (s *GetLayerVersionByArnOutput) SetLayerArn(v string) *GetLayerVersionByArnOutput
SetLayerArn sets the LayerArn field's value.
func (s *GetLayerVersionByArnOutput) SetLayerVersionArn(v string) *GetLayerVersionByArnOutput
SetLayerVersionArn sets the LayerVersionArn field's value.
func (s *GetLayerVersionByArnOutput) SetLicenseInfo(v string) *GetLayerVersionByArnOutput
SetLicenseInfo sets the LicenseInfo field's value.
func (s *GetLayerVersionByArnOutput) SetVersion(v int64) *GetLayerVersionByArnOutput
SetVersion sets the Version field's value.
func (s GetLayerVersionByArnOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetLayerVersionInput struct { // The name or Amazon Resource Name (ARN) of the layer. // // LayerName is a required field LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` // The version number. // // VersionNumber is a required field VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"` // contains filtered or unexported fields }
func (s GetLayerVersionInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetLayerVersionInput) SetLayerName(v string) *GetLayerVersionInput
SetLayerName sets the LayerName field's value.
func (s *GetLayerVersionInput) SetVersionNumber(v int64) *GetLayerVersionInput
SetVersionNumber sets the VersionNumber field's value.
func (s GetLayerVersionInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetLayerVersionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetLayerVersionOutput struct { // A list of compatible instruction set architectures (https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html). CompatibleArchitectures []*string `type:"list" enum:"Architecture"` // The layer's compatible runtimes. // // The following list includes deprecated runtimes. For more information, see // Runtime deprecation policy (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy). CompatibleRuntimes []*string `type:"list" enum:"Runtime"` // Details about the layer version. Content *LayerVersionContentOutput `type:"structure"` // The date that the layer version was created, in ISO-8601 format (https://www.w3.org/TR/NOTE-datetime) // (YYYY-MM-DDThh:mm:ss.sTZD). CreatedDate *string `type:"string"` // The description of the version. Description *string `type:"string"` // The ARN of the layer. LayerArn *string `min:"1" type:"string"` // The ARN of the layer version. LayerVersionArn *string `min:"1" type:"string"` // The layer's software license. LicenseInfo *string `type:"string"` // The version number. Version *int64 `type:"long"` // contains filtered or unexported fields }
func (s GetLayerVersionOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetLayerVersionOutput) SetCompatibleArchitectures(v []*string) *GetLayerVersionOutput
SetCompatibleArchitectures sets the CompatibleArchitectures field's value.
func (s *GetLayerVersionOutput) SetCompatibleRuntimes(v []*string) *GetLayerVersionOutput
SetCompatibleRuntimes sets the CompatibleRuntimes field's value.
func (s *GetLayerVersionOutput) SetContent(v *LayerVersionContentOutput) *GetLayerVersionOutput
SetContent sets the Content field's value.
func (s *GetLayerVersionOutput) SetCreatedDate(v string) *GetLayerVersionOutput
SetCreatedDate sets the CreatedDate field's value.
func (s *GetLayerVersionOutput) SetDescription(v string) *GetLayerVersionOutput
SetDescription sets the Description field's value.
func (s *GetLayerVersionOutput) SetLayerArn(v string) *GetLayerVersionOutput
SetLayerArn sets the LayerArn field's value.
func (s *GetLayerVersionOutput) SetLayerVersionArn(v string) *GetLayerVersionOutput
SetLayerVersionArn sets the LayerVersionArn field's value.
func (s *GetLayerVersionOutput) SetLicenseInfo(v string) *GetLayerVersionOutput
SetLicenseInfo sets the LicenseInfo field's value.
func (s *GetLayerVersionOutput) SetVersion(v int64) *GetLayerVersionOutput
SetVersion sets the Version field's value.
func (s GetLayerVersionOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetLayerVersionPolicyInput struct { // The name or Amazon Resource Name (ARN) of the layer. // // LayerName is a required field LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` // The version number. // // VersionNumber is a required field VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"` // contains filtered or unexported fields }
func (s GetLayerVersionPolicyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetLayerVersionPolicyInput) SetLayerName(v string) *GetLayerVersionPolicyInput
SetLayerName sets the LayerName field's value.
func (s *GetLayerVersionPolicyInput) SetVersionNumber(v int64) *GetLayerVersionPolicyInput
SetVersionNumber sets the VersionNumber field's value.
func (s GetLayerVersionPolicyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetLayerVersionPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetLayerVersionPolicyOutput struct { // The policy document. Policy *string `type:"string"` // A unique identifier for the current revision of the policy. RevisionId *string `type:"string"` // contains filtered or unexported fields }
func (s GetLayerVersionPolicyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetLayerVersionPolicyOutput) SetPolicy(v string) *GetLayerVersionPolicyOutput
SetPolicy sets the Policy field's value.
func (s *GetLayerVersionPolicyOutput) SetRevisionId(v string) *GetLayerVersionPolicyOutput
SetRevisionId sets the RevisionId field's value.
func (s GetLayerVersionPolicyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetPolicyInput struct { // The name or ARN of the Lambda function, version, or alias. // // Name formats // // * Function name – my-function (name-only), my-function:v1 (with alias). // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN – 123456789012:function:my-function. // // You can append a version number or alias to any of the formats. The length // constraint applies only to the full ARN. If you specify only the function // name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // Specify a version or alias to get the policy for that resource. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // contains filtered or unexported fields }
func (s GetPolicyInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetPolicyInput) SetFunctionName(v string) *GetPolicyInput
SetFunctionName sets the FunctionName field's value.
func (s *GetPolicyInput) SetQualifier(v string) *GetPolicyInput
SetQualifier sets the Qualifier field's value.
func (s GetPolicyInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetPolicyOutput struct { // The resource-based policy. Policy *string `type:"string"` // A unique identifier for the current revision of the policy. RevisionId *string `type:"string"` // contains filtered or unexported fields }
func (s GetPolicyOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetPolicyOutput) SetPolicy(v string) *GetPolicyOutput
SetPolicy sets the Policy field's value.
func (s *GetPolicyOutput) SetRevisionId(v string) *GetPolicyOutput
SetRevisionId sets the RevisionId field's value.
func (s GetPolicyOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetProvisionedConcurrencyConfigInput struct { // The name or ARN of the Lambda function. // // Name formats // // * Function name – my-function. // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN – 123456789012:function:my-function. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // The version number or alias name. // // Qualifier is a required field Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetProvisionedConcurrencyConfigInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetProvisionedConcurrencyConfigInput) SetFunctionName(v string) *GetProvisionedConcurrencyConfigInput
SetFunctionName sets the FunctionName field's value.
func (s *GetProvisionedConcurrencyConfigInput) SetQualifier(v string) *GetProvisionedConcurrencyConfigInput
SetQualifier sets the Qualifier field's value.
func (s GetProvisionedConcurrencyConfigInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetProvisionedConcurrencyConfigInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetProvisionedConcurrencyConfigOutput struct { // The amount of provisioned concurrency allocated. When a weighted alias is // used during linear and canary deployments, this value fluctuates depending // on the amount of concurrency that is provisioned for the function versions. AllocatedProvisionedConcurrentExecutions *int64 `type:"integer"` // The amount of provisioned concurrency available. AvailableProvisionedConcurrentExecutions *int64 `type:"integer"` // The date and time that a user last updated the configuration, in ISO 8601 // format (https://www.iso.org/iso-8601-date-and-time-format.html). LastModified *string `type:"string"` // The amount of provisioned concurrency requested. RequestedProvisionedConcurrentExecutions *int64 `min:"1" type:"integer"` // The status of the allocation process. Status *string `type:"string" enum:"ProvisionedConcurrencyStatusEnum"` // For failed allocations, the reason that provisioned concurrency could not // be allocated. StatusReason *string `type:"string"` // contains filtered or unexported fields }
func (s GetProvisionedConcurrencyConfigOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetProvisionedConcurrencyConfigOutput) SetAllocatedProvisionedConcurrentExecutions(v int64) *GetProvisionedConcurrencyConfigOutput
SetAllocatedProvisionedConcurrentExecutions sets the AllocatedProvisionedConcurrentExecutions field's value.
func (s *GetProvisionedConcurrencyConfigOutput) SetAvailableProvisionedConcurrentExecutions(v int64) *GetProvisionedConcurrencyConfigOutput
SetAvailableProvisionedConcurrentExecutions sets the AvailableProvisionedConcurrentExecutions field's value.
func (s *GetProvisionedConcurrencyConfigOutput) SetLastModified(v string) *GetProvisionedConcurrencyConfigOutput
SetLastModified sets the LastModified field's value.
func (s *GetProvisionedConcurrencyConfigOutput) SetRequestedProvisionedConcurrentExecutions(v int64) *GetProvisionedConcurrencyConfigOutput
SetRequestedProvisionedConcurrentExecutions sets the RequestedProvisionedConcurrentExecutions field's value.
func (s *GetProvisionedConcurrencyConfigOutput) SetStatus(v string) *GetProvisionedConcurrencyConfigOutput
SetStatus sets the Status field's value.
func (s *GetProvisionedConcurrencyConfigOutput) SetStatusReason(v string) *GetProvisionedConcurrencyConfigOutput
SetStatusReason sets the StatusReason field's value.
func (s GetProvisionedConcurrencyConfigOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetRuntimeManagementConfigInput struct { // The name or ARN of the Lambda function. // // Name formats // // * Function name – my-function. // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN – 123456789012:function:my-function. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // Specify a version of the function. This can be $LATEST or a published version // number. If no value is specified, the configuration for the $LATEST version // is returned. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // contains filtered or unexported fields }
func (s GetRuntimeManagementConfigInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetRuntimeManagementConfigInput) SetFunctionName(v string) *GetRuntimeManagementConfigInput
SetFunctionName sets the FunctionName field's value.
func (s *GetRuntimeManagementConfigInput) SetQualifier(v string) *GetRuntimeManagementConfigInput
SetQualifier sets the Qualifier field's value.
func (s GetRuntimeManagementConfigInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetRuntimeManagementConfigInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetRuntimeManagementConfigOutput struct { // The Amazon Resource Name (ARN) of your function. FunctionArn *string `type:"string"` // The ARN of the runtime the function is configured to use. If the runtime // update mode is Manual, the ARN is returned, otherwise null is returned. RuntimeVersionArn *string `min:"26" type:"string"` // The current runtime update mode of the function. UpdateRuntimeOn *string `type:"string" enum:"UpdateRuntimeOn"` // contains filtered or unexported fields }
func (s GetRuntimeManagementConfigOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetRuntimeManagementConfigOutput) SetFunctionArn(v string) *GetRuntimeManagementConfigOutput
SetFunctionArn sets the FunctionArn field's value.
func (s *GetRuntimeManagementConfigOutput) SetRuntimeVersionArn(v string) *GetRuntimeManagementConfigOutput
SetRuntimeVersionArn sets the RuntimeVersionArn field's value.
func (s *GetRuntimeManagementConfigOutput) SetUpdateRuntimeOn(v string) *GetRuntimeManagementConfigOutput
SetUpdateRuntimeOn sets the UpdateRuntimeOn field's value.
func (s GetRuntimeManagementConfigOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ImageConfig struct { // Specifies parameters that you want to pass in with ENTRYPOINT. Command []*string `type:"list"` // Specifies the entry point to their application, which is typically the location // of the runtime executable. EntryPoint []*string `type:"list"` // Specifies the working directory. WorkingDirectory *string `type:"string"` // contains filtered or unexported fields }
Configuration values that override the container image Dockerfile settings. For more information, see Container image settings (https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms).
func (s ImageConfig) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ImageConfig) SetCommand(v []*string) *ImageConfig
SetCommand sets the Command field's value.
func (s *ImageConfig) SetEntryPoint(v []*string) *ImageConfig
SetEntryPoint sets the EntryPoint field's value.
func (s *ImageConfig) SetWorkingDirectory(v string) *ImageConfig
SetWorkingDirectory sets the WorkingDirectory field's value.
func (s ImageConfig) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ImageConfigError struct { // Error code. ErrorCode *string `type:"string"` // Error message. // // Message is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ImageConfigError's // String and GoString methods. Message *string `type:"string" sensitive:"true"` // contains filtered or unexported fields }
Error response to GetFunctionConfiguration.
func (s ImageConfigError) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ImageConfigError) SetErrorCode(v string) *ImageConfigError
SetErrorCode sets the ErrorCode field's value.
func (s *ImageConfigError) SetMessage(v string) *ImageConfigError
SetMessage sets the Message field's value.
func (s ImageConfigError) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ImageConfigResponse struct { // Error response to GetFunctionConfiguration. Error *ImageConfigError `type:"structure"` // Configuration values that override the container image Dockerfile. ImageConfig *ImageConfig `type:"structure"` // contains filtered or unexported fields }
Response to a GetFunctionConfiguration request.
func (s ImageConfigResponse) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ImageConfigResponse) SetError(v *ImageConfigError) *ImageConfigResponse
SetError sets the Error field's value.
func (s *ImageConfigResponse) SetImageConfig(v *ImageConfig) *ImageConfigResponse
SetImageConfig sets the ImageConfig field's value.
func (s ImageConfigResponse) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InvalidCodeSignatureException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
The code signature failed the integrity check. If the integrity check fails, then Lambda blocks deployment, even if the code signing policy is set to WARN.
func (s *InvalidCodeSignatureException) Code() string
Code returns the exception type name.
func (s *InvalidCodeSignatureException) Error() string
func (s InvalidCodeSignatureException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvalidCodeSignatureException) Message() string
Message returns the exception's message.
func (s *InvalidCodeSignatureException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidCodeSignatureException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *InvalidCodeSignatureException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s InvalidCodeSignatureException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InvalidParameterValueException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The exception message. Message_ *string `locationName:"message" type:"string"` // The exception type. Type *string `type:"string"` // contains filtered or unexported fields }
One of the parameters in the request is not valid.
func (s *InvalidParameterValueException) Code() string
Code returns the exception type name.
func (s *InvalidParameterValueException) Error() string
func (s InvalidParameterValueException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvalidParameterValueException) Message() string
Message returns the exception's message.
func (s *InvalidParameterValueException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidParameterValueException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *InvalidParameterValueException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s InvalidParameterValueException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InvalidRequestContentException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The exception message. Message_ *string `locationName:"message" type:"string"` // The exception type. Type *string `type:"string"` // contains filtered or unexported fields }
The request body could not be parsed as JSON.
func (s *InvalidRequestContentException) Code() string
Code returns the exception type name.
func (s *InvalidRequestContentException) Error() string
func (s InvalidRequestContentException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvalidRequestContentException) Message() string
Message returns the exception's message.
func (s *InvalidRequestContentException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidRequestContentException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *InvalidRequestContentException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s InvalidRequestContentException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InvalidRuntimeException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
The runtime or runtime version specified is not supported.
func (s *InvalidRuntimeException) Code() string
Code returns the exception type name.
func (s *InvalidRuntimeException) Error() string
func (s InvalidRuntimeException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvalidRuntimeException) Message() string
Message returns the exception's message.
func (s *InvalidRuntimeException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidRuntimeException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *InvalidRuntimeException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s InvalidRuntimeException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InvalidSecurityGroupIDException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
The security group ID provided in the Lambda function VPC configuration is not valid.
func (s *InvalidSecurityGroupIDException) Code() string
Code returns the exception type name.
func (s *InvalidSecurityGroupIDException) Error() string
func (s InvalidSecurityGroupIDException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvalidSecurityGroupIDException) Message() string
Message returns the exception's message.
func (s *InvalidSecurityGroupIDException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidSecurityGroupIDException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *InvalidSecurityGroupIDException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s InvalidSecurityGroupIDException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InvalidSubnetIDException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
The subnet ID provided in the Lambda function VPC configuration is not valid.
func (s *InvalidSubnetIDException) Code() string
Code returns the exception type name.
func (s *InvalidSubnetIDException) Error() string
func (s InvalidSubnetIDException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvalidSubnetIDException) Message() string
Message returns the exception's message.
func (s *InvalidSubnetIDException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidSubnetIDException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *InvalidSubnetIDException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s InvalidSubnetIDException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InvalidZipFileException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
Lambda could not unzip the deployment package.
func (s *InvalidZipFileException) Code() string
Code returns the exception type name.
func (s *InvalidZipFileException) Error() string
func (s InvalidZipFileException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvalidZipFileException) Message() string
Message returns the exception's message.
func (s *InvalidZipFileException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidZipFileException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *InvalidZipFileException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s InvalidZipFileException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InvokeAsyncInput struct { // The name or ARN of the Lambda function. // // Name formats // // * Function name – my-function. // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN – 123456789012:function:my-function. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // The JSON that you want to provide to your Lambda function as input. // // InvokeArgs is a required field InvokeArgs io.ReadSeeker `type:"blob" required:"true"` // contains filtered or unexported fields }
Deprecated: InvokeAsyncInput has been deprecated
func (s InvokeAsyncInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvokeAsyncInput) SetFunctionName(v string) *InvokeAsyncInput
SetFunctionName sets the FunctionName field's value.
func (s *InvokeAsyncInput) SetInvokeArgs(v io.ReadSeeker) *InvokeAsyncInput
SetInvokeArgs sets the InvokeArgs field's value.
func (s InvokeAsyncInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvokeAsyncInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type InvokeAsyncOutput struct { // The status code. Status *int64 `location:"statusCode" type:"integer"` // contains filtered or unexported fields }
A success response (202 Accepted) indicates that the request is queued for invocation.
Deprecated: InvokeAsyncOutput has been deprecated
func (s InvokeAsyncOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvokeAsyncOutput) SetStatus(v int64) *InvokeAsyncOutput
SetStatus sets the Status field's value.
func (s InvokeAsyncOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InvokeInput struct { // Up to 3,583 bytes of base64-encoded data about the invoking client to pass // to the function in the context object. Lambda passes the ClientContext object // to your function for synchronous invocations only. ClientContext *string `location:"header" locationName:"X-Amz-Client-Context" type:"string"` // The name or ARN of the Lambda function, version, or alias. // // Name formats // // * Function name – my-function (name-only), my-function:v1 (with alias). // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN – 123456789012:function:my-function. // // You can append a version number or alias to any of the formats. The length // constraint applies only to the full ARN. If you specify only the function // name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // Choose from the following options. // // * RequestResponse (default) – Invoke the function synchronously. Keep // the connection open until the function returns a response or times out. // The API response includes the function response and additional data. // // * Event – Invoke the function asynchronously. Send events that fail // multiple times to the function's dead-letter queue (if one is configured). // The API response only includes a status code. // // * DryRun – Validate parameter values and verify that the user or role // has permission to invoke the function. InvocationType *string `location:"header" locationName:"X-Amz-Invocation-Type" type:"string" enum:"InvocationType"` // Set to Tail to include the execution log in the response. Applies to synchronously // invoked functions only. LogType *string `location:"header" locationName:"X-Amz-Log-Type" type:"string" enum:"LogType"` // The JSON that you want to provide to your Lambda function as input. // // You can enter the JSON directly. For example, --payload '{ "key": "value" // }'. You can also specify a file path. For example, --payload file://payload.json. // // Payload is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by InvokeInput's // String and GoString methods. Payload []byte `type:"blob" sensitive:"true"` // Specify a version or alias to invoke a published version of the function. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // contains filtered or unexported fields }
func (s InvokeInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvokeInput) SetClientContext(v string) *InvokeInput
SetClientContext sets the ClientContext field's value.
func (s *InvokeInput) SetFunctionName(v string) *InvokeInput
SetFunctionName sets the FunctionName field's value.
func (s *InvokeInput) SetInvocationType(v string) *InvokeInput
SetInvocationType sets the InvocationType field's value.
func (s *InvokeInput) SetLogType(v string) *InvokeInput
SetLogType sets the LogType field's value.
func (s *InvokeInput) SetPayload(v []byte) *InvokeInput
SetPayload sets the Payload field's value.
func (s *InvokeInput) SetQualifier(v string) *InvokeInput
SetQualifier sets the Qualifier field's value.
func (s InvokeInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvokeInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type InvokeOutput struct { // The version of the function that executed. When you invoke a function with // an alias, this indicates which version the alias resolved to. ExecutedVersion *string `location:"header" locationName:"X-Amz-Executed-Version" min:"1" type:"string"` // If present, indicates that an error occurred during function execution. Details // about the error are included in the response payload. FunctionError *string `location:"header" locationName:"X-Amz-Function-Error" type:"string"` // The last 4 KB of the execution log, which is base64-encoded. LogResult *string `location:"header" locationName:"X-Amz-Log-Result" type:"string"` // The response from the function, or an error object. // // Payload is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by InvokeOutput's // String and GoString methods. Payload []byte `type:"blob" sensitive:"true"` // The HTTP status code is in the 200 range for a successful request. For the // RequestResponse invocation type, this status code is 200. For the Event invocation // type, this status code is 202. For the DryRun invocation type, the status // code is 204. StatusCode *int64 `location:"statusCode" type:"integer"` // contains filtered or unexported fields }
func (s InvokeOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvokeOutput) SetExecutedVersion(v string) *InvokeOutput
SetExecutedVersion sets the ExecutedVersion field's value.
func (s *InvokeOutput) SetFunctionError(v string) *InvokeOutput
SetFunctionError sets the FunctionError field's value.
func (s *InvokeOutput) SetLogResult(v string) *InvokeOutput
SetLogResult sets the LogResult field's value.
func (s *InvokeOutput) SetPayload(v []byte) *InvokeOutput
SetPayload sets the Payload field's value.
func (s *InvokeOutput) SetStatusCode(v int64) *InvokeOutput
SetStatusCode sets the StatusCode field's value.
func (s InvokeOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InvokeResponseStreamUpdate struct { // Data returned by your Lambda function. // // Payload is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by InvokeResponseStreamUpdate's // String and GoString methods. // // Payload is automatically base64 encoded/decoded by the SDK. Payload []byte `type:"blob" sensitive:"true"` // contains filtered or unexported fields }
A chunk of the streamed response payload.
func (s InvokeResponseStreamUpdate) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvokeResponseStreamUpdate) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (s *InvokeResponseStreamUpdate) SetPayload(v []byte) *InvokeResponseStreamUpdate
SetPayload sets the Payload field's value.
func (s InvokeResponseStreamUpdate) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvokeResponseStreamUpdate) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the InvokeResponseStreamUpdate value. This method is only used internally within the SDK's EventStream handling.
type InvokeWithResponseStreamCompleteEvent struct { // An error code. ErrorCode *string `type:"string"` // The details of any returned error. ErrorDetails *string `type:"string"` // The last 4 KB of the execution log, which is base64-encoded. LogResult *string `type:"string"` // contains filtered or unexported fields }
A response confirming that the event stream is complete.
func (s InvokeWithResponseStreamCompleteEvent) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvokeWithResponseStreamCompleteEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (s *InvokeWithResponseStreamCompleteEvent) SetErrorCode(v string) *InvokeWithResponseStreamCompleteEvent
SetErrorCode sets the ErrorCode field's value.
func (s *InvokeWithResponseStreamCompleteEvent) SetErrorDetails(v string) *InvokeWithResponseStreamCompleteEvent
SetErrorDetails sets the ErrorDetails field's value.
func (s *InvokeWithResponseStreamCompleteEvent) SetLogResult(v string) *InvokeWithResponseStreamCompleteEvent
SetLogResult sets the LogResult field's value.
func (s InvokeWithResponseStreamCompleteEvent) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvokeWithResponseStreamCompleteEvent) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the InvokeWithResponseStreamCompleteEvent value. This method is only used internally within the SDK's EventStream handling.
type InvokeWithResponseStreamEventStream struct { // Reader is the EventStream reader for the InvokeWithResponseStreamResponseEvent // events. This value is automatically set by the SDK when the API call is made // Use this member when unit testing your code with the SDK to mock out the // EventStream Reader. // // Must not be nil. Reader InvokeWithResponseStreamResponseEventReader // contains filtered or unexported fields }
InvokeWithResponseStreamEventStream provides the event stream handling for the InvokeWithResponseStream.
For testing and mocking the event stream this type should be initialized via the NewInvokeWithResponseStreamEventStream constructor function. Using the functional options to pass in nested mock behavior.
func NewInvokeWithResponseStreamEventStream(opts ...func(*InvokeWithResponseStreamEventStream)) *InvokeWithResponseStreamEventStream
NewInvokeWithResponseStreamEventStream initializes an InvokeWithResponseStreamEventStream. This function should only be used for testing and mocking the InvokeWithResponseStreamEventStream stream within your application.
The Reader member must be set before reading events from the stream.
es := NewInvokeWithResponseStreamEventStream(func(o *InvokeWithResponseStreamEventStream){ es.Reader = myMockStreamReader })
func (es *InvokeWithResponseStreamEventStream) Close() (err error)
Close closes the stream. This will also cause the stream to be closed. Close must be called when done using the stream API. Not calling Close may result in resource leaks.
You can use the closing of the Reader's Events channel to terminate your application's read from the API's stream.
func (es *InvokeWithResponseStreamEventStream) Err() error
Err returns any error that occurred while reading or writing EventStream Events from the service API's response. Returns nil if there were no errors.
func (es *InvokeWithResponseStreamEventStream) Events() <-chan InvokeWithResponseStreamResponseEventEvent
Events returns a channel to read events from.
These events are:
type InvokeWithResponseStreamInput struct { // Up to 3,583 bytes of base64-encoded data about the invoking client to pass // to the function in the context object. ClientContext *string `location:"header" locationName:"X-Amz-Client-Context" type:"string"` // The name or ARN of the Lambda function. // // Name formats // // * Function name – my-function. // // * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN – 123456789012:function:my-function. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // Use one of the following options: // // * RequestResponse (default) – Invoke the function synchronously. Keep // the connection open until the function returns a response or times out. // The API operation response includes the function response and additional // data. // // * DryRun – Validate parameter values and verify that the IAM user or // role has permission to invoke the function. InvocationType *string `location:"header" locationName:"X-Amz-Invocation-Type" type:"string" enum:"ResponseStreamingInvocationType"` // Set to Tail to include the execution log in the response. Applies to synchronously // invoked functions only. LogType *string `location:"header" locationName:"X-Amz-Log-Type" type:"string" enum:"LogType"` // The JSON that you want to provide to your Lambda function as input. // // You can enter the JSON directly. For example, --payload '{ "key": "value" // }'. You can also specify a file path. For example, --payload file://payload.json. // // Payload is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by InvokeWithResponseStreamInput's // String and GoString methods. Payload []byte `type:"blob" sensitive:"true"` // The alias name. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // contains filtered or unexported fields }
func (s InvokeWithResponseStreamInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvokeWithResponseStreamInput) SetClientContext(v string) *InvokeWithResponseStreamInput
SetClientContext sets the ClientContext field's value.
func (s *InvokeWithResponseStreamInput) SetFunctionName(v string) *InvokeWithResponseStreamInput
SetFunctionName sets the FunctionName field's value.
func (s *InvokeWithResponseStreamInput) SetInvocationType(v string) *InvokeWithResponseStreamInput
SetInvocationType sets the InvocationType field's value.
func (s *InvokeWithResponseStreamInput) SetLogType(v string) *InvokeWithResponseStreamInput
SetLogType sets the LogType field's value.
func (s *InvokeWithResponseStreamInput) SetPayload(v []byte) *InvokeWithResponseStreamInput
SetPayload sets the Payload field's value.
func (s *InvokeWithResponseStreamInput) SetQualifier(v string) *InvokeWithResponseStreamInput
SetQualifier sets the Qualifier field's value.
func (s InvokeWithResponseStreamInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvokeWithResponseStreamInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type InvokeWithResponseStreamOutput struct { // The version of the function that executed. When you invoke a function with // an alias, this indicates which version the alias resolved to. ExecutedVersion *string `location:"header" locationName:"X-Amz-Executed-Version" min:"1" type:"string"` // The type of data the stream is returning. ResponseStreamContentType *string `location:"header" locationName:"Content-Type" type:"string"` // For a successful request, the HTTP status code is in the 200 range. For the // RequestResponse invocation type, this status code is 200. For the DryRun // invocation type, this status code is 204. StatusCode *int64 `location:"statusCode" type:"integer"` // contains filtered or unexported fields }
func (s *InvokeWithResponseStreamOutput) GetStream() *InvokeWithResponseStreamEventStream
GetStream returns the type to interact with the event stream.
func (s InvokeWithResponseStreamOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InvokeWithResponseStreamOutput) SetExecutedVersion(v string) *InvokeWithResponseStreamOutput
SetExecutedVersion sets the ExecutedVersion field's value.
func (s *InvokeWithResponseStreamOutput) SetResponseStreamContentType(v string) *InvokeWithResponseStreamOutput
SetResponseStreamContentType sets the ResponseStreamContentType field's value.
func (s *InvokeWithResponseStreamOutput) SetStatusCode(v int64) *InvokeWithResponseStreamOutput
SetStatusCode sets the StatusCode field's value.
func (s InvokeWithResponseStreamOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InvokeWithResponseStreamResponseEventEvent interface { eventstreamapi.Marshaler eventstreamapi.Unmarshaler // contains filtered or unexported methods }
InvokeWithResponseStreamResponseEventEvent groups together all EventStream events writes for InvokeWithResponseStreamResponseEvent.
These events are:
type InvokeWithResponseStreamResponseEventReader interface { // Returns a channel of events as they are read from the event stream. Events() <-chan InvokeWithResponseStreamResponseEventEvent // Close will stop the reader reading events from the stream. Close() error // Returns any error that has occurred while reading from the event stream. Err() error }
InvokeWithResponseStreamResponseEventReader provides the interface for reading to the stream. The default implementation for this interface will be InvokeWithResponseStreamResponseEvent.
The reader's Close method must allow multiple concurrent calls.
These events are:
type InvokeWithResponseStreamResponseEventUnknownEvent struct { Type string Message eventstream.Message }
InvokeWithResponseStreamResponseEventUnknownEvent provides a failsafe event for the InvokeWithResponseStreamResponseEvent group of events when an unknown event is received.
func (e *InvokeWithResponseStreamResponseEventUnknownEvent) MarshalEvent(pm protocol.PayloadMarshaler) ( msg eventstream.Message, err error, )
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (e *InvokeWithResponseStreamResponseEventUnknownEvent) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the InvokeWithResponseStreamResponseEvent value. This method is only used internally within the SDK's EventStream handling.
type KMSAccessDeniedException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
Lambda couldn't decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.
func (s *KMSAccessDeniedException) Code() string
Code returns the exception type name.
func (s *KMSAccessDeniedException) Error() string
func (s KMSAccessDeniedException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *KMSAccessDeniedException) Message() string
Message returns the exception's message.
func (s *KMSAccessDeniedException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *KMSAccessDeniedException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *KMSAccessDeniedException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s KMSAccessDeniedException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type KMSDisabledException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
Lambda couldn't decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.
func (s *KMSDisabledException) Code() string
Code returns the exception type name.
func (s *KMSDisabledException) Error() string
func (s KMSDisabledException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *KMSDisabledException) Message() string
Message returns the exception's message.
func (s *KMSDisabledException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *KMSDisabledException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *KMSDisabledException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s KMSDisabledException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type KMSInvalidStateException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. Check the function's KMS key settings.
func (s *KMSInvalidStateException) Code() string
Code returns the exception type name.
func (s *KMSInvalidStateException) Error() string
func (s KMSInvalidStateException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *KMSInvalidStateException) Message() string
Message returns the exception's message.
func (s *KMSInvalidStateException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *KMSInvalidStateException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *KMSInvalidStateException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s KMSInvalidStateException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type KMSNotFoundException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" type:"string"` Type *string `type:"string"` // contains filtered or unexported fields }
Lambda couldn't decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.
func (s *KMSNotFoundException) Code() string
Code returns the exception type name.
func (s *KMSNotFoundException) Error() string
func (s KMSNotFoundException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *KMSNotFoundException) Message() string
Message returns the exception's message.
func (s *KMSNotFoundException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *KMSNotFoundException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *KMSNotFoundException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s KMSNotFoundException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type Lambda struct { *client.Client }
Lambda provides the API operation methods for making requests to AWS Lambda. See this package's package overview docs for details on the service.
Lambda methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New(p client.ConfigProvider, cfgs ...*aws.Config) *Lambda
New creates a new instance of the Lambda client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.
Example:
mySession := session.Must(session.NewSession()) // Create a Lambda client from just a session. svc := lambda.New(mySession) // Create a Lambda client with additional configuration svc := lambda.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (c *Lambda) AddLayerVersionPermission(input *AddLayerVersionPermissionInput) (*AddLayerVersionPermissionOutput, error)
AddLayerVersionPermission API operation for AWS Lambda.
Adds permissions to the resource-based policy of a version of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all accounts in an organization, or all Amazon Web Services accounts.
To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.
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 Lambda's API operation AddLayerVersionPermission for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
ResourceConflictException The resource already exists, or another operation is in progress.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
InvalidParameterValueException One of the parameters in the request is not valid.
PolicyLengthExceededException The permissions policy for the resource is too large. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html).
PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction or the GetAlias API operation to retrieve the latest RevisionId for your resource.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddLayerVersionPermission
func (c *Lambda) AddLayerVersionPermissionRequest(input *AddLayerVersionPermissionInput) (req *request.Request, output *AddLayerVersionPermissionOutput)
AddLayerVersionPermissionRequest generates a "aws/request.Request" representing the client's request for the AddLayerVersionPermission operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See AddLayerVersionPermission for more information on using the AddLayerVersionPermission API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the AddLayerVersionPermissionRequest method. req, resp := client.AddLayerVersionPermissionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddLayerVersionPermission
func (c *Lambda) AddLayerVersionPermissionWithContext(ctx aws.Context, input *AddLayerVersionPermissionInput, opts ...request.Option) (*AddLayerVersionPermissionOutput, error)
AddLayerVersionPermissionWithContext is the same as AddLayerVersionPermission with the addition of the ability to pass a context and additional request options.
See AddLayerVersionPermission for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error)
AddPermission API operation for AWS Lambda.
Grants an Amazon Web Service, Amazon Web Services account, or Amazon Web Services organization permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies to version $LATEST.
To grant permission to another account, specify the account ID as the Principal. To grant permission to an organization defined in Organizations, specify the organization ID as the PrincipalOrgID. For Amazon Web Services, the principal is a domain-style identifier that the service defines, such as s3.amazonaws.com or sns.amazonaws.com. For Amazon Web Services, you can also specify the ARN of the associated resource as the SourceArn. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.
This operation adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Using resource-based policies for Lambda (https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html).
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 Lambda's API operation AddPermission for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
ResourceConflictException The resource already exists, or another operation is in progress.
InvalidParameterValueException One of the parameters in the request is not valid.
PolicyLengthExceededException The permissions policy for the resource is too large. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html).
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction or the GetAlias API operation to retrieve the latest RevisionId for your resource.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermission
func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.Request, output *AddPermissionOutput)
AddPermissionRequest generates a "aws/request.Request" representing the client's request for the AddPermission operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See AddPermission for more information on using the AddPermission API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the AddPermissionRequest method. req, resp := client.AddPermissionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermission
func (c *Lambda) AddPermissionWithContext(ctx aws.Context, input *AddPermissionInput, opts ...request.Option) (*AddPermissionOutput, error)
AddPermissionWithContext is the same as AddPermission with the addition of the ability to pass a context and additional request options.
See AddPermission for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) CreateAlias(input *CreateAliasInput) (*AliasConfiguration, error)
CreateAlias API operation for AWS Lambda.
Creates an alias (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html) for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version.
You can also map an alias to split invocation requests between two versions. Use the RoutingConfig parameter to specify a second version and the percentage of invocation requests that it receives.
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 Lambda's API operation CreateAlias for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
ResourceConflictException The resource already exists, or another operation is in progress.
InvalidParameterValueException One of the parameters in the request is not valid.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAlias
func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *AliasConfiguration)
CreateAliasRequest generates a "aws/request.Request" representing the client's request for the CreateAlias operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateAlias for more information on using the CreateAlias API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateAliasRequest method. req, resp := client.CreateAliasRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAlias
func (c *Lambda) CreateAliasWithContext(ctx aws.Context, input *CreateAliasInput, opts ...request.Option) (*AliasConfiguration, error)
CreateAliasWithContext is the same as CreateAlias with the addition of the ability to pass a context and additional request options.
See CreateAlias for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) CreateCodeSigningConfig(input *CreateCodeSigningConfigInput) (*CreateCodeSigningConfigOutput, error)
CreateCodeSigningConfig API operation for AWS Lambda.
Creates a code signing configuration. A code signing configuration (https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html) defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).
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 Lambda's API operation CreateCodeSigningConfig for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
InvalidParameterValueException One of the parameters in the request is not valid.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateCodeSigningConfig
func (c *Lambda) CreateCodeSigningConfigRequest(input *CreateCodeSigningConfigInput) (req *request.Request, output *CreateCodeSigningConfigOutput)
CreateCodeSigningConfigRequest generates a "aws/request.Request" representing the client's request for the CreateCodeSigningConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateCodeSigningConfig for more information on using the CreateCodeSigningConfig API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateCodeSigningConfigRequest method. req, resp := client.CreateCodeSigningConfigRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateCodeSigningConfig
func (c *Lambda) CreateCodeSigningConfigWithContext(ctx aws.Context, input *CreateCodeSigningConfigInput, opts ...request.Option) (*CreateCodeSigningConfigOutput, error)
CreateCodeSigningConfigWithContext is the same as CreateCodeSigningConfig with the addition of the ability to pass a context and additional request options.
See CreateCodeSigningConfig for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) CreateEventSourceMapping(input *CreateEventSourceMappingInput) (*EventSourceMappingConfiguration, error)
CreateEventSourceMapping API operation for AWS Lambda.
Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function.
For details about how to configure different event sources, see the following topics.
Amazon DynamoDB Streams (https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping)
Amazon Kinesis (https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping)
Amazon SQS (https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource)
Amazon MQ and RabbitMQ (https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping)
Amazon MSK (https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html)
Apache Kafka (https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html)
Amazon DocumentDB (https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html)
The following error handling options are available only for stream sources (DynamoDB and Kinesis):
BisectBatchOnFunctionError – If the function returns an error, split the batch in two and retry.
DestinationConfig – Send discarded records to an Amazon SQS queue or Amazon SNS topic.
MaximumRecordAgeInSeconds – Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires
MaximumRetryAttempts – Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
ParallelizationFactor – Process multiple batches from each shard concurrently.
For information about which configuration parameters apply to each event source, see the following topics.
Amazon DynamoDB Streams (https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-params)
Amazon Kinesis (https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-params)
Amazon SQS (https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-params)
Amazon MQ and RabbitMQ (https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-params)
Amazon MSK (https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-parms)
Apache Kafka (https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-kafka-parms)
Amazon DocumentDB (https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html#docdb-configuration)
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 Lambda's API operation CreateEventSourceMapping for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
InvalidParameterValueException One of the parameters in the request is not valid.
ResourceConflictException The resource already exists, or another operation is in progress.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
ResourceNotFoundException The resource specified in the request does not exist.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping
func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration)
CreateEventSourceMappingRequest generates a "aws/request.Request" representing the client's request for the CreateEventSourceMapping operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateEventSourceMapping for more information on using the CreateEventSourceMapping API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateEventSourceMappingRequest method. req, resp := client.CreateEventSourceMappingRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping
func (c *Lambda) CreateEventSourceMappingWithContext(ctx aws.Context, input *CreateEventSourceMappingInput, opts ...request.Option) (*EventSourceMappingConfiguration, error)
CreateEventSourceMappingWithContext is the same as CreateEventSourceMapping with the addition of the ability to pass a context and additional request options.
See CreateEventSourceMapping for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) CreateFunction(input *CreateFunctionInput) (*FunctionConfiguration, error)
CreateFunction API operation for AWS Lambda.
Creates a Lambda function. To create a function, you need a deployment package (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) and an execution role (https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role). The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.
If the deployment package is a container image (https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html), then you set the package type to Image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties.
If the deployment package is a .zip file archive (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html#gettingstarted-package-zip), then you set the package type to Zip. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64 or arm64). If you do not specify the architecture, then the default value is x86-64.
When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify the function. The State, StateReason, and StateReasonCode fields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Lambda function states (https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html).
A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the Publish parameter to create version 1 of your function from its initial configuration.
The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency).
You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set of signing profiles, which define the trusted publishers for this function.
If another Amazon Web Services account or an Amazon Web Service invokes your function, use AddPermission to grant permission by creating a resource-based Identity and Access Management (IAM) policy. You can grant permissions at the function level, on a version, or on an alias.
To invoke your function directly, use Invoke. To invoke your function in response to events in other Amazon Web Services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Lambda functions (https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html).
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 Lambda's API operation CreateFunction for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
InvalidParameterValueException One of the parameters in the request is not valid.
ResourceNotFoundException The resource specified in the request does not exist.
ResourceConflictException The resource already exists, or another operation is in progress.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
CodeStorageExceededException Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html).
CodeVerificationFailedException The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment.
InvalidCodeSignatureException The code signature failed the integrity check. If the integrity check fails, then Lambda blocks deployment, even if the code signing policy is set to WARN.
CodeSigningConfigNotFoundException The specified code signing configuration does not exist.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction
func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request.Request, output *FunctionConfiguration)
CreateFunctionRequest generates a "aws/request.Request" representing the client's request for the CreateFunction operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateFunction for more information on using the CreateFunction API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateFunctionRequest method. req, resp := client.CreateFunctionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction
func (c *Lambda) CreateFunctionUrlConfig(input *CreateFunctionUrlConfigInput) (*CreateFunctionUrlConfigOutput, error)
CreateFunctionUrlConfig API operation for AWS Lambda.
Creates a Lambda function URL with the specified configuration parameters. A function URL is a dedicated HTTP(S) endpoint that you can use to invoke your function.
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 Lambda's API operation CreateFunctionUrlConfig for usage and error information.
Returned Error Types:
ResourceConflictException The resource already exists, or another operation is in progress.
ResourceNotFoundException The resource specified in the request does not exist.
InvalidParameterValueException One of the parameters in the request is not valid.
ServiceException The Lambda service encountered an internal error.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionUrlConfig
func (c *Lambda) CreateFunctionUrlConfigRequest(input *CreateFunctionUrlConfigInput) (req *request.Request, output *CreateFunctionUrlConfigOutput)
CreateFunctionUrlConfigRequest generates a "aws/request.Request" representing the client's request for the CreateFunctionUrlConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateFunctionUrlConfig for more information on using the CreateFunctionUrlConfig API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateFunctionUrlConfigRequest method. req, resp := client.CreateFunctionUrlConfigRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionUrlConfig
func (c *Lambda) CreateFunctionUrlConfigWithContext(ctx aws.Context, input *CreateFunctionUrlConfigInput, opts ...request.Option) (*CreateFunctionUrlConfigOutput, error)
CreateFunctionUrlConfigWithContext is the same as CreateFunctionUrlConfig with the addition of the ability to pass a context and additional request options.
See CreateFunctionUrlConfig for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) CreateFunctionWithContext(ctx aws.Context, input *CreateFunctionInput, opts ...request.Option) (*FunctionConfiguration, error)
CreateFunctionWithContext is the same as CreateFunction with the addition of the ability to pass a context and additional request options.
See CreateFunction for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error)
DeleteAlias API operation for AWS Lambda.
Deletes a Lambda function alias (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html).
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 Lambda's API operation DeleteAlias for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
InvalidParameterValueException One of the parameters in the request is not valid.
ResourceConflictException The resource already exists, or another operation is in progress.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteAlias
func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, output *DeleteAliasOutput)
DeleteAliasRequest generates a "aws/request.Request" representing the client's request for the DeleteAlias operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteAlias for more information on using the DeleteAlias API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteAliasRequest method. req, resp := client.DeleteAliasRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteAlias
func (c *Lambda) DeleteAliasWithContext(ctx aws.Context, input *DeleteAliasInput, opts ...request.Option) (*DeleteAliasOutput, error)
DeleteAliasWithContext is the same as DeleteAlias with the addition of the ability to pass a context and additional request options.
See DeleteAlias for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) DeleteCodeSigningConfig(input *DeleteCodeSigningConfigInput) (*DeleteCodeSigningConfigOutput, error)
DeleteCodeSigningConfig API operation for AWS Lambda.
Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it.
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 Lambda's API operation DeleteCodeSigningConfig for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
InvalidParameterValueException One of the parameters in the request is not valid.
ResourceNotFoundException The resource specified in the request does not exist.
ResourceConflictException The resource already exists, or another operation is in progress.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteCodeSigningConfig
func (c *Lambda) DeleteCodeSigningConfigRequest(input *DeleteCodeSigningConfigInput) (req *request.Request, output *DeleteCodeSigningConfigOutput)
DeleteCodeSigningConfigRequest generates a "aws/request.Request" representing the client's request for the DeleteCodeSigningConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteCodeSigningConfig for more information on using the DeleteCodeSigningConfig API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteCodeSigningConfigRequest method. req, resp := client.DeleteCodeSigningConfigRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteCodeSigningConfig
func (c *Lambda) DeleteCodeSigningConfigWithContext(ctx aws.Context, input *DeleteCodeSigningConfigInput, opts ...request.Option) (*DeleteCodeSigningConfigOutput, error)
DeleteCodeSigningConfigWithContext is the same as DeleteCodeSigningConfig with the addition of the ability to pass a context and additional request options.
See DeleteCodeSigningConfig for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) DeleteEventSourceMapping(input *DeleteEventSourceMappingInput) (*EventSourceMappingConfiguration, error)
DeleteEventSourceMapping API operation for AWS Lambda.
Deletes an event source mapping (https://docs.aws.amazon.com/lambda/latest/dg/intro-invocation-modes.html). You can get the identifier of a mapping from the output of ListEventSourceMappings.
When you delete an event source mapping, it enters a Deleting state and might not be completely deleted for several seconds.
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 Lambda's API operation DeleteEventSourceMapping for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
InvalidParameterValueException One of the parameters in the request is not valid.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
ResourceConflictException The resource already exists, or another operation is in progress.
ResourceInUseException The operation conflicts with the resource's availability. For example, you tried to update an event source mapping in the CREATING state, or you tried to delete an event source mapping currently UPDATING.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping
func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration)
DeleteEventSourceMappingRequest generates a "aws/request.Request" representing the client's request for the DeleteEventSourceMapping operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteEventSourceMapping for more information on using the DeleteEventSourceMapping API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteEventSourceMappingRequest method. req, resp := client.DeleteEventSourceMappingRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping
func (c *Lambda) DeleteEventSourceMappingWithContext(ctx aws.Context, input *DeleteEventSourceMappingInput, opts ...request.Option) (*EventSourceMappingConfiguration, error)
DeleteEventSourceMappingWithContext is the same as DeleteEventSourceMapping with the addition of the ability to pass a context and additional request options.
See DeleteEventSourceMapping for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutput, error)
DeleteFunction API operation for AWS Lambda.
Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit permissions for DeleteAlias.
To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For Amazon Web Services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.
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 Lambda's API operation DeleteFunction for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
InvalidParameterValueException One of the parameters in the request is not valid.
ResourceConflictException The resource already exists, or another operation is in progress.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunction
func (c *Lambda) DeleteFunctionCodeSigningConfig(input *DeleteFunctionCodeSigningConfigInput) (*DeleteFunctionCodeSigningConfigOutput, error)
DeleteFunctionCodeSigningConfig API operation for AWS Lambda.
Removes the code signing configuration from the function.
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 Lambda's API operation DeleteFunctionCodeSigningConfig for usage and error information.
Returned Error Types:
InvalidParameterValueException One of the parameters in the request is not valid.
CodeSigningConfigNotFoundException The specified code signing configuration does not exist.
ResourceNotFoundException The resource specified in the request does not exist.
ServiceException The Lambda service encountered an internal error.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
ResourceConflictException The resource already exists, or another operation is in progress.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionCodeSigningConfig
func (c *Lambda) DeleteFunctionCodeSigningConfigRequest(input *DeleteFunctionCodeSigningConfigInput) (req *request.Request, output *DeleteFunctionCodeSigningConfigOutput)
DeleteFunctionCodeSigningConfigRequest generates a "aws/request.Request" representing the client's request for the DeleteFunctionCodeSigningConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteFunctionCodeSigningConfig for more information on using the DeleteFunctionCodeSigningConfig API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteFunctionCodeSigningConfigRequest method. req, resp := client.DeleteFunctionCodeSigningConfigRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionCodeSigningConfig
func (c *Lambda) DeleteFunctionCodeSigningConfigWithContext(ctx aws.Context, input *DeleteFunctionCodeSigningConfigInput, opts ...request.Option) (*DeleteFunctionCodeSigningConfigOutput, error)
DeleteFunctionCodeSigningConfigWithContext is the same as DeleteFunctionCodeSigningConfig with the addition of the ability to pass a context and additional request options.
See DeleteFunctionCodeSigningConfig for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) DeleteFunctionConcurrency(input *DeleteFunctionConcurrencyInput) (*DeleteFunctionConcurrencyOutput, error)
DeleteFunctionConcurrency API operation for AWS Lambda.
Removes a concurrent execution limit from a function.
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 Lambda's API operation DeleteFunctionConcurrency for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
InvalidParameterValueException One of the parameters in the request is not valid.
ResourceConflictException The resource already exists, or another operation is in progress.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionConcurrency
func (c *Lambda) DeleteFunctionConcurrencyRequest(input *DeleteFunctionConcurrencyInput) (req *request.Request, output *DeleteFunctionConcurrencyOutput)
DeleteFunctionConcurrencyRequest generates a "aws/request.Request" representing the client's request for the DeleteFunctionConcurrency operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteFunctionConcurrency for more information on using the DeleteFunctionConcurrency API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteFunctionConcurrencyRequest method. req, resp := client.DeleteFunctionConcurrencyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionConcurrency
func (c *Lambda) DeleteFunctionConcurrencyWithContext(ctx aws.Context, input *DeleteFunctionConcurrencyInput, opts ...request.Option) (*DeleteFunctionConcurrencyOutput, error)
DeleteFunctionConcurrencyWithContext is the same as DeleteFunctionConcurrency with the addition of the ability to pass a context and additional request options.
See DeleteFunctionConcurrency for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) DeleteFunctionEventInvokeConfig(input *DeleteFunctionEventInvokeConfigInput) (*DeleteFunctionEventInvokeConfigOutput, error)
DeleteFunctionEventInvokeConfig API operation for AWS Lambda.
Deletes the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
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 Lambda's API operation DeleteFunctionEventInvokeConfig for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
InvalidParameterValueException One of the parameters in the request is not valid.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
ResourceConflictException The resource already exists, or another operation is in progress.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionEventInvokeConfig
func (c *Lambda) DeleteFunctionEventInvokeConfigRequest(input *DeleteFunctionEventInvokeConfigInput) (req *request.Request, output *DeleteFunctionEventInvokeConfigOutput)
DeleteFunctionEventInvokeConfigRequest generates a "aws/request.Request" representing the client's request for the DeleteFunctionEventInvokeConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteFunctionEventInvokeConfig for more information on using the DeleteFunctionEventInvokeConfig API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteFunctionEventInvokeConfigRequest method. req, resp := client.DeleteFunctionEventInvokeConfigRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionEventInvokeConfig
func (c *Lambda) DeleteFunctionEventInvokeConfigWithContext(ctx aws.Context, input *DeleteFunctionEventInvokeConfigInput, opts ...request.Option) (*DeleteFunctionEventInvokeConfigOutput, error)
DeleteFunctionEventInvokeConfigWithContext is the same as DeleteFunctionEventInvokeConfig with the addition of the ability to pass a context and additional request options.
See DeleteFunctionEventInvokeConfig for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request.Request, output *DeleteFunctionOutput)
DeleteFunctionRequest generates a "aws/request.Request" representing the client's request for the DeleteFunction operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteFunction for more information on using the DeleteFunction API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteFunctionRequest method. req, resp := client.DeleteFunctionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunction
func (c *Lambda) DeleteFunctionUrlConfig(input *DeleteFunctionUrlConfigInput) (*DeleteFunctionUrlConfigOutput, error)
DeleteFunctionUrlConfig API operation for AWS Lambda.
Deletes a Lambda function URL. When you delete a function URL, you can't recover it. Creating a new function URL results in a different URL address.
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 Lambda's API operation DeleteFunctionUrlConfig for usage and error information.
Returned Error Types:
ResourceConflictException The resource already exists, or another operation is in progress.
ResourceNotFoundException The resource specified in the request does not exist.
ServiceException The Lambda service encountered an internal error.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionUrlConfig
func (c *Lambda) DeleteFunctionUrlConfigRequest(input *DeleteFunctionUrlConfigInput) (req *request.Request, output *DeleteFunctionUrlConfigOutput)
DeleteFunctionUrlConfigRequest generates a "aws/request.Request" representing the client's request for the DeleteFunctionUrlConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteFunctionUrlConfig for more information on using the DeleteFunctionUrlConfig API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteFunctionUrlConfigRequest method. req, resp := client.DeleteFunctionUrlConfigRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionUrlConfig
func (c *Lambda) DeleteFunctionUrlConfigWithContext(ctx aws.Context, input *DeleteFunctionUrlConfigInput, opts ...request.Option) (*DeleteFunctionUrlConfigOutput, error)
DeleteFunctionUrlConfigWithContext is the same as DeleteFunctionUrlConfig with the addition of the ability to pass a context and additional request options.
See DeleteFunctionUrlConfig for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) DeleteFunctionWithContext(ctx aws.Context, input *DeleteFunctionInput, opts ...request.Option) (*DeleteFunctionOutput, error)
DeleteFunctionWithContext is the same as DeleteFunction with the addition of the ability to pass a context and additional request options.
See DeleteFunction for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) DeleteLayerVersion(input *DeleteLayerVersionInput) (*DeleteLayerVersionOutput, error)
DeleteLayerVersion API operation for AWS Lambda.
Deletes a version of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.
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 Lambda's API operation DeleteLayerVersion for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteLayerVersion
func (c *Lambda) DeleteLayerVersionRequest(input *DeleteLayerVersionInput) (req *request.Request, output *DeleteLayerVersionOutput)
DeleteLayerVersionRequest generates a "aws/request.Request" representing the client's request for the DeleteLayerVersion operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteLayerVersion for more information on using the DeleteLayerVersion API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteLayerVersionRequest method. req, resp := client.DeleteLayerVersionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteLayerVersion
func (c *Lambda) DeleteLayerVersionWithContext(ctx aws.Context, input *DeleteLayerVersionInput, opts ...request.Option) (*DeleteLayerVersionOutput, error)
DeleteLayerVersionWithContext is the same as DeleteLayerVersion with the addition of the ability to pass a context and additional request options.
See DeleteLayerVersion for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) DeleteProvisionedConcurrencyConfig(input *DeleteProvisionedConcurrencyConfigInput) (*DeleteProvisionedConcurrencyConfigOutput, error)
DeleteProvisionedConcurrencyConfig API operation for AWS Lambda.
Deletes the provisioned concurrency configuration for a function.
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 Lambda's API operation DeleteProvisionedConcurrencyConfig for usage and error information.
Returned Error Types:
InvalidParameterValueException One of the parameters in the request is not valid.
ResourceConflictException The resource already exists, or another operation is in progress.
ResourceNotFoundException The resource specified in the request does not exist.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
ServiceException The Lambda service encountered an internal error.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteProvisionedConcurrencyConfig
func (c *Lambda) DeleteProvisionedConcurrencyConfigRequest(input *DeleteProvisionedConcurrencyConfigInput) (req *request.Request, output *DeleteProvisionedConcurrencyConfigOutput)
DeleteProvisionedConcurrencyConfigRequest generates a "aws/request.Request" representing the client's request for the DeleteProvisionedConcurrencyConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteProvisionedConcurrencyConfig for more information on using the DeleteProvisionedConcurrencyConfig API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteProvisionedConcurrencyConfigRequest method. req, resp := client.DeleteProvisionedConcurrencyConfigRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteProvisionedConcurrencyConfig
func (c *Lambda) DeleteProvisionedConcurrencyConfigWithContext(ctx aws.Context, input *DeleteProvisionedConcurrencyConfigInput, opts ...request.Option) (*DeleteProvisionedConcurrencyConfigOutput, error)
DeleteProvisionedConcurrencyConfigWithContext is the same as DeleteProvisionedConcurrencyConfig with the addition of the ability to pass a context and additional request options.
See DeleteProvisionedConcurrencyConfig for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error)
GetAccountSettings API operation for AWS Lambda.
Retrieves details about your account's limits (https://docs.aws.amazon.com/lambda/latest/dg/limits.html) and usage in an Amazon Web Services Region.
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 Lambda's API operation GetAccountSettings for usage and error information.
Returned Error Types:
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
ServiceException The Lambda service encountered an internal error.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettings
func (c *Lambda) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req *request.Request, output *GetAccountSettingsOutput)
GetAccountSettingsRequest generates a "aws/request.Request" representing the client's request for the GetAccountSettings operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetAccountSettings for more information on using the GetAccountSettings API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetAccountSettingsRequest method. req, resp := client.GetAccountSettingsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettings
func (c *Lambda) GetAccountSettingsWithContext(ctx aws.Context, input *GetAccountSettingsInput, opts ...request.Option) (*GetAccountSettingsOutput, error)
GetAccountSettingsWithContext is the same as GetAccountSettings with the addition of the ability to pass a context and additional request options.
See GetAccountSettings for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) GetAlias(input *GetAliasInput) (*AliasConfiguration, error)
GetAlias API operation for AWS Lambda.
Returns details about a Lambda function alias (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html).
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 Lambda's API operation GetAlias for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
InvalidParameterValueException One of the parameters in the request is not valid.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAlias
func (c *Lambda) GetAliasRequest(input *GetAliasInput) (req *request.Request, output *AliasConfiguration)
GetAliasRequest generates a "aws/request.Request" representing the client's request for the GetAlias operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetAlias for more information on using the GetAlias API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetAliasRequest method. req, resp := client.GetAliasRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAlias
func (c *Lambda) GetAliasWithContext(ctx aws.Context, input *GetAliasInput, opts ...request.Option) (*AliasConfiguration, error)
GetAliasWithContext is the same as GetAlias with the addition of the ability to pass a context and additional request options.
See GetAlias for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) GetCodeSigningConfig(input *GetCodeSigningConfigInput) (*GetCodeSigningConfigOutput, error)
GetCodeSigningConfig API operation for AWS Lambda.
Returns information about the specified code signing configuration.
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 Lambda's API operation GetCodeSigningConfig for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
InvalidParameterValueException One of the parameters in the request is not valid.
ResourceNotFoundException The resource specified in the request does not exist.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetCodeSigningConfig
func (c *Lambda) GetCodeSigningConfigRequest(input *GetCodeSigningConfigInput) (req *request.Request, output *GetCodeSigningConfigOutput)
GetCodeSigningConfigRequest generates a "aws/request.Request" representing the client's request for the GetCodeSigningConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetCodeSigningConfig for more information on using the GetCodeSigningConfig API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetCodeSigningConfigRequest method. req, resp := client.GetCodeSigningConfigRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetCodeSigningConfig
func (c *Lambda) GetCodeSigningConfigWithContext(ctx aws.Context, input *GetCodeSigningConfigInput, opts ...request.Option) (*GetCodeSigningConfigOutput, error)
GetCodeSigningConfigWithContext is the same as GetCodeSigningConfig with the addition of the ability to pass a context and additional request options.
See GetCodeSigningConfig for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) GetEventSourceMapping(input *GetEventSourceMappingInput) (*EventSourceMappingConfiguration, error)
GetEventSourceMapping API operation for AWS Lambda.
Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
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 Lambda's API operation GetEventSourceMapping for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
InvalidParameterValueException One of the parameters in the request is not valid.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping
func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration)
GetEventSourceMappingRequest generates a "aws/request.Request" representing the client's request for the GetEventSourceMapping operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetEventSourceMapping for more information on using the GetEventSourceMapping API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetEventSourceMappingRequest method. req, resp := client.GetEventSourceMappingRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping
func (c *Lambda) GetEventSourceMappingWithContext(ctx aws.Context, input *GetEventSourceMappingInput, opts ...request.Option) (*EventSourceMappingConfiguration, error)
GetEventSourceMappingWithContext is the same as GetEventSourceMapping with the addition of the ability to pass a context and additional request options.
See GetEventSourceMapping for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) GetFunction(input *GetFunctionInput) (*GetFunctionOutput, error)
GetFunction API operation for AWS Lambda.
Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.
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 Lambda's API operation GetFunction for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
InvalidParameterValueException One of the parameters in the request is not valid.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunction
func (c *Lambda) GetFunctionCodeSigningConfig(input *GetFunctionCodeSigningConfigInput) (*GetFunctionCodeSigningConfigOutput, error)
GetFunctionCodeSigningConfig API operation for AWS Lambda.
Returns the code signing configuration for the specified function.
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 Lambda's API operation GetFunctionCodeSigningConfig for usage and error information.
Returned Error Types:
InvalidParameterValueException One of the parameters in the request is not valid.
ResourceNotFoundException The resource specified in the request does not exist.
ServiceException The Lambda service encountered an internal error.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionCodeSigningConfig
func (c *Lambda) GetFunctionCodeSigningConfigRequest(input *GetFunctionCodeSigningConfigInput) (req *request.Request, output *GetFunctionCodeSigningConfigOutput)
GetFunctionCodeSigningConfigRequest generates a "aws/request.Request" representing the client's request for the GetFunctionCodeSigningConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetFunctionCodeSigningConfig for more information on using the GetFunctionCodeSigningConfig API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetFunctionCodeSigningConfigRequest method. req, resp := client.GetFunctionCodeSigningConfigRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionCodeSigningConfig
func (c *Lambda) GetFunctionCodeSigningConfigWithContext(ctx aws.Context, input *GetFunctionCodeSigningConfigInput, opts ...request.Option) (*GetFunctionCodeSigningConfigOutput, error)
GetFunctionCodeSigningConfigWithContext is the same as GetFunctionCodeSigningConfig with the addition of the ability to pass a context and additional request options.
See GetFunctionCodeSigningConfig for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) GetFunctionConcurrency(input *GetFunctionConcurrencyInput) (*GetFunctionConcurrencyOutput, error)
GetFunctionConcurrency API operation for AWS Lambda.
Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.
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 Lambda's API operation GetFunctionConcurrency for usage and error information.
Returned Error Types:
InvalidParameterValueException One of the parameters in the request is not valid.
ResourceNotFoundException The resource specified in the request does not exist.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
ServiceException The Lambda service encountered an internal error.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConcurrency
func (c *Lambda) GetFunctionConcurrencyRequest(input *GetFunctionConcurrencyInput) (req *request.Request, output *GetFunctionConcurrencyOutput)
GetFunctionConcurrencyRequest generates a "aws/request.Request" representing the client's request for the GetFunctionConcurrency operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetFunctionConcurrency for more information on using the GetFunctionConcurrency API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetFunctionConcurrencyRequest method. req, resp := client.GetFunctionConcurrencyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConcurrency
func (c *Lambda) GetFunctionConcurrencyWithContext(ctx aws.Context, input *GetFunctionConcurrencyInput, opts ...request.Option) (*GetFunctionConcurrencyOutput, error)
GetFunctionConcurrencyWithContext is the same as GetFunctionConcurrency with the addition of the ability to pass a context and additional request options.
See GetFunctionConcurrency for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) GetFunctionConfiguration(input *GetFunctionConfigurationInput) (*FunctionConfiguration, error)
GetFunctionConfiguration API operation for AWS Lambda.
Returns the version-specific settings of a Lambda function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration.
To get all of a function's details, including function-level settings, use GetFunction.
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 Lambda's API operation GetFunctionConfiguration for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
InvalidParameterValueException One of the parameters in the request is not valid.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConfiguration
func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfigurationInput) (req *request.Request, output *FunctionConfiguration)
GetFunctionConfigurationRequest generates a "aws/request.Request" representing the client's request for the GetFunctionConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetFunctionConfiguration for more information on using the GetFunctionConfiguration API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetFunctionConfigurationRequest method. req, resp := client.GetFunctionConfigurationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConfiguration
func (c *Lambda) GetFunctionConfigurationWithContext(ctx aws.Context, input *GetFunctionConfigurationInput, opts ...request.Option) (*FunctionConfiguration, error)
GetFunctionConfigurationWithContext is the same as GetFunctionConfiguration with the addition of the ability to pass a context and additional request options.
See GetFunctionConfiguration for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) GetFunctionEventInvokeConfig(input *GetFunctionEventInvokeConfigInput) (*GetFunctionEventInvokeConfigOutput, error)
GetFunctionEventInvokeConfig API operation for AWS Lambda.
Retrieves the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
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 Lambda's API operation GetFunctionEventInvokeConfig for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
InvalidParameterValueException One of the parameters in the request is not valid.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionEventInvokeConfig
func (c *Lambda) GetFunctionEventInvokeConfigRequest(input *GetFunctionEventInvokeConfigInput) (req *request.Request, output *GetFunctionEventInvokeConfigOutput)
GetFunctionEventInvokeConfigRequest generates a "aws/request.Request" representing the client's request for the GetFunctionEventInvokeConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetFunctionEventInvokeConfig for more information on using the GetFunctionEventInvokeConfig API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetFunctionEventInvokeConfigRequest method. req, resp := client.GetFunctionEventInvokeConfigRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionEventInvokeConfig
func (c *Lambda) GetFunctionEventInvokeConfigWithContext(ctx aws.Context, input *GetFunctionEventInvokeConfigInput, opts ...request.Option) (*GetFunctionEventInvokeConfigOutput, error)
GetFunctionEventInvokeConfigWithContext is the same as GetFunctionEventInvokeConfig with the addition of the ability to pass a context and additional request options.
See GetFunctionEventInvokeConfig for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Request, output *GetFunctionOutput)
GetFunctionRequest generates a "aws/request.Request" representing the client's request for the GetFunction operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetFunction for more information on using the GetFunction API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetFunctionRequest method. req, resp := client.GetFunctionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunction
func (c *Lambda) GetFunctionUrlConfig(input *GetFunctionUrlConfigInput) (*GetFunctionUrlConfigOutput, error)
GetFunctionUrlConfig API operation for AWS Lambda.
Returns details about a Lambda function URL.
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 Lambda's API operation GetFunctionUrlConfig for usage and error information.
Returned Error Types:
InvalidParameterValueException One of the parameters in the request is not valid.
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionUrlConfig
func (c *Lambda) GetFunctionUrlConfigRequest(input *GetFunctionUrlConfigInput) (req *request.Request, output *GetFunctionUrlConfigOutput)
GetFunctionUrlConfigRequest generates a "aws/request.Request" representing the client's request for the GetFunctionUrlConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetFunctionUrlConfig for more information on using the GetFunctionUrlConfig API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetFunctionUrlConfigRequest method. req, resp := client.GetFunctionUrlConfigRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionUrlConfig
func (c *Lambda) GetFunctionUrlConfigWithContext(ctx aws.Context, input *GetFunctionUrlConfigInput, opts ...request.Option) (*GetFunctionUrlConfigOutput, error)
GetFunctionUrlConfigWithContext is the same as GetFunctionUrlConfig with the addition of the ability to pass a context and additional request options.
See GetFunctionUrlConfig for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) GetFunctionWithContext(ctx aws.Context, input *GetFunctionInput, opts ...request.Option) (*GetFunctionOutput, error)
GetFunctionWithContext is the same as GetFunction with the addition of the ability to pass a context and additional request options.
See GetFunction for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) GetLayerVersion(input *GetLayerVersionInput) (*GetLayerVersionOutput, error)
GetLayerVersion API operation for AWS Lambda.
Returns information about a version of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html), with a link to download the layer archive that's valid for 10 minutes.
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 Lambda's API operation GetLayerVersion for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
InvalidParameterValueException One of the parameters in the request is not valid.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
ResourceNotFoundException The resource specified in the request does not exist.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersion
func (c *Lambda) GetLayerVersionByArn(input *GetLayerVersionByArnInput) (*GetLayerVersionByArnOutput, error)
GetLayerVersionByArn API operation for AWS Lambda.
Returns information about a version of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html), with a link to download the layer archive that's valid for 10 minutes.
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 Lambda's API operation GetLayerVersionByArn for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
InvalidParameterValueException One of the parameters in the request is not valid.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
ResourceNotFoundException The resource specified in the request does not exist.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionByArn
func (c *Lambda) GetLayerVersionByArnRequest(input *GetLayerVersionByArnInput) (req *request.Request, output *GetLayerVersionByArnOutput)
GetLayerVersionByArnRequest generates a "aws/request.Request" representing the client's request for the GetLayerVersionByArn operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetLayerVersionByArn for more information on using the GetLayerVersionByArn API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetLayerVersionByArnRequest method. req, resp := client.GetLayerVersionByArnRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionByArn
func (c *Lambda) GetLayerVersionByArnWithContext(ctx aws.Context, input *GetLayerVersionByArnInput, opts ...request.Option) (*GetLayerVersionByArnOutput, error)
GetLayerVersionByArnWithContext is the same as GetLayerVersionByArn with the addition of the ability to pass a context and additional request options.
See GetLayerVersionByArn for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) GetLayerVersionPolicy(input *GetLayerVersionPolicyInput) (*GetLayerVersionPolicyOutput, error)
GetLayerVersionPolicy API operation for AWS Lambda.
Returns the permission policy for a version of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). For more information, see AddLayerVersionPermission.
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 Lambda's API operation GetLayerVersionPolicy for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
InvalidParameterValueException One of the parameters in the request is not valid.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionPolicy
func (c *Lambda) GetLayerVersionPolicyRequest(input *GetLayerVersionPolicyInput) (req *request.Request, output *GetLayerVersionPolicyOutput)
GetLayerVersionPolicyRequest generates a "aws/request.Request" representing the client's request for the GetLayerVersionPolicy operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetLayerVersionPolicy for more information on using the GetLayerVersionPolicy API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetLayerVersionPolicyRequest method. req, resp := client.GetLayerVersionPolicyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionPolicy
func (c *Lambda) GetLayerVersionPolicyWithContext(ctx aws.Context, input *GetLayerVersionPolicyInput, opts ...request.Option) (*GetLayerVersionPolicyOutput, error)
GetLayerVersionPolicyWithContext is the same as GetLayerVersionPolicy with the addition of the ability to pass a context and additional request options.
See GetLayerVersionPolicy for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) GetLayerVersionRequest(input *GetLayerVersionInput) (req *request.Request, output *GetLayerVersionOutput)
GetLayerVersionRequest generates a "aws/request.Request" representing the client's request for the GetLayerVersion operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetLayerVersion for more information on using the GetLayerVersion API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetLayerVersionRequest method. req, resp := client.GetLayerVersionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersion
func (c *Lambda) GetLayerVersionWithContext(ctx aws.Context, input *GetLayerVersionInput, opts ...request.Option) (*GetLayerVersionOutput, error)
GetLayerVersionWithContext is the same as GetLayerVersion with the addition of the ability to pass a context and additional request options.
See GetLayerVersion for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error)
GetPolicy API operation for AWS Lambda.
Returns the resource-based IAM policy (https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html) for a function, version, or alias.
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 Lambda's API operation GetPolicy for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
InvalidParameterValueException One of the parameters in the request is not valid.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicy
func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, output *GetPolicyOutput)
GetPolicyRequest generates a "aws/request.Request" representing the client's request for the GetPolicy operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetPolicy for more information on using the GetPolicy API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetPolicyRequest method. req, resp := client.GetPolicyRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicy
func (c *Lambda) GetPolicyWithContext(ctx aws.Context, input *GetPolicyInput, opts ...request.Option) (*GetPolicyOutput, error)
GetPolicyWithContext is the same as GetPolicy with the addition of the ability to pass a context and additional request options.
See GetPolicy for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) GetProvisionedConcurrencyConfig(input *GetProvisionedConcurrencyConfigInput) (*GetProvisionedConcurrencyConfigOutput, error)
GetProvisionedConcurrencyConfig API operation for AWS Lambda.
Retrieves the provisioned concurrency configuration for a function's alias or version.
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 Lambda's API operation GetProvisionedConcurrencyConfig for usage and error information.
Returned Error Types:
InvalidParameterValueException One of the parameters in the request is not valid.
ResourceNotFoundException The resource specified in the request does not exist.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
ServiceException The Lambda service encountered an internal error.
ProvisionedConcurrencyConfigNotFoundException The specified configuration does not exist.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetProvisionedConcurrencyConfig
func (c *Lambda) GetProvisionedConcurrencyConfigRequest(input *GetProvisionedConcurrencyConfigInput) (req *request.Request, output *GetProvisionedConcurrencyConfigOutput)
GetProvisionedConcurrencyConfigRequest generates a "aws/request.Request" representing the client's request for the GetProvisionedConcurrencyConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetProvisionedConcurrencyConfig for more information on using the GetProvisionedConcurrencyConfig API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetProvisionedConcurrencyConfigRequest method. req, resp := client.GetProvisionedConcurrencyConfigRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetProvisionedConcurrencyConfig
func (c *Lambda) GetProvisionedConcurrencyConfigWithContext(ctx aws.Context, input *GetProvisionedConcurrencyConfigInput, opts ...request.Option) (*GetProvisionedConcurrencyConfigOutput, error)
GetProvisionedConcurrencyConfigWithContext is the same as GetProvisionedConcurrencyConfig with the addition of the ability to pass a context and additional request options.
See GetProvisionedConcurrencyConfig for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) GetRuntimeManagementConfig(input *GetRuntimeManagementConfigInput) (*GetRuntimeManagementConfigOutput, error)
GetRuntimeManagementConfig API operation for AWS Lambda.
Retrieves the runtime management configuration for a function's version. If the runtime update mode is Manual, this includes the ARN of the runtime version and the runtime update mode. If the runtime update mode is Auto or Function update, this includes the runtime update mode and null is returned for the ARN. For more information, see Runtime updates (https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html).
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 Lambda's API operation GetRuntimeManagementConfig for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
InvalidParameterValueException One of the parameters in the request is not valid.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetRuntimeManagementConfig
func (c *Lambda) GetRuntimeManagementConfigRequest(input *GetRuntimeManagementConfigInput) (req *request.Request, output *GetRuntimeManagementConfigOutput)
GetRuntimeManagementConfigRequest generates a "aws/request.Request" representing the client's request for the GetRuntimeManagementConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetRuntimeManagementConfig for more information on using the GetRuntimeManagementConfig API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetRuntimeManagementConfigRequest method. req, resp := client.GetRuntimeManagementConfigRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetRuntimeManagementConfig
func (c *Lambda) GetRuntimeManagementConfigWithContext(ctx aws.Context, input *GetRuntimeManagementConfigInput, opts ...request.Option) (*GetRuntimeManagementConfigOutput, error)
GetRuntimeManagementConfigWithContext is the same as GetRuntimeManagementConfig with the addition of the ability to pass a context and additional request options.
See GetRuntimeManagementConfig for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) Invoke(input *InvokeInput) (*InvokeOutput, error)
Invoke API operation for AWS Lambda.
Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. By default, Lambda invokes your function synchronously (i.e. theInvocationType is RequestResponse). To invoke a function asynchronously, set InvocationType to Event. Lambda passes the ClientContext object to your function for synchronous invocations only.
For synchronous invocation (https://docs.aws.amazon.com/lambda/latest/dg/invocation-sync.html), details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the execution log (https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions.html) and trace (https://docs.aws.amazon.com/lambda/latest/dg/lambda-x-ray.html).
When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type, client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an error, Lambda executes the function up to two more times. For more information, see Error handling and automatic retries in Lambda (https://docs.aws.amazon.com/lambda/latest/dg/invocation-retries.html).
For asynchronous invocation (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html), Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple times, even if no error occurs. To retain events that were not processed, configure your function with a dead-letter queue (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq).
The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your function from executing, such as permissions errors, quota (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html) errors, or issues with your function's code and configuration. For example, Lambda returns TooManyRequestsException if running the function would cause you to exceed a concurrency limit at either the account level (ConcurrentInvocationLimitExceeded) or function level (ReservedFunctionConcurrentInvocationLimitExceeded).
For functions with a long timeout, your client might disconnect during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings.
This operation requires permission for the lambda:InvokeFunction (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html) action. For details on how to set up permissions for cross-account invocations, see Granting function access to other accounts (https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountinvoke).
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 Lambda's API operation Invoke for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
InvalidRequestContentException The request body could not be parsed as JSON.
RequestTooLargeException The request payload exceeded the Invoke request body JSON input quota. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html).
UnsupportedMediaTypeException The content type of the Invoke request body is not JSON.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
InvalidParameterValueException One of the parameters in the request is not valid.
EC2UnexpectedException Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function.
SubnetIPAddressLimitReachedException Lambda couldn't set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.
ENILimitReachedException Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html).
EFSMountConnectivityException The Lambda function couldn't make a network connection to the configured file system.
EFSMountFailureException The Lambda function couldn't mount the configured file system due to a permission or configuration issue.
EFSMountTimeoutException The Lambda function made a network connection to the configured file system, but the mount operation timed out.
EFSIOException An error occurred when reading from or writing to a connected file system.
SnapStartException The afterRestore() runtime hook (https://docs.aws.amazon.com/lambda/latest/dg/snapstart-runtime-hooks.html) encountered an error. For more information, check the Amazon CloudWatch logs.
SnapStartTimeoutException Lambda couldn't restore the snapshot within the timeout limit.
SnapStartNotReadyException Lambda is initializing your function. You can invoke the function when the function state (https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html) becomes Active.
EC2ThrottledException Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function.
EC2AccessDeniedException Need additional permissions to configure VPC settings.
InvalidSubnetIDException The subnet ID provided in the Lambda function VPC configuration is not valid.
InvalidSecurityGroupIDException The security group ID provided in the Lambda function VPC configuration is not valid.
InvalidZipFileException Lambda could not unzip the deployment package.
KMSDisabledException Lambda couldn't decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.
KMSInvalidStateException Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. Check the function's KMS key settings.
KMSAccessDeniedException Lambda couldn't decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.
KMSNotFoundException Lambda couldn't decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.
InvalidRuntimeException The runtime or runtime version specified is not supported.
ResourceConflictException The resource already exists, or another operation is in progress.
ResourceNotReadyException The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.
RecursiveInvocationException Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Invoke
func (c *Lambda) InvokeAsync(input *InvokeAsyncInput) (*InvokeAsyncOutput, error)
InvokeAsync API operation for AWS Lambda.
For asynchronous function invocation, use Invoke.
Invokes a function asynchronously.
If you do use the InvokeAsync action, note that it doesn't support the use of X-Ray active tracing. Trace ID is not propagated to the function, even if X-Ray active tracing is turned on.
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 Lambda's API operation InvokeAsync for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
InvalidRequestContentException The request body could not be parsed as JSON.
InvalidRuntimeException The runtime or runtime version specified is not supported.
ResourceConflictException The resource already exists, or another operation is in progress.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeAsync
Deprecated: InvokeAsync has been deprecated
func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Request, output *InvokeAsyncOutput)
InvokeAsyncRequest generates a "aws/request.Request" representing the client's request for the InvokeAsync operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See InvokeAsync for more information on using the InvokeAsync API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the InvokeAsyncRequest method. req, resp := client.InvokeAsyncRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeAsync
Deprecated: InvokeAsync has been deprecated
func (c *Lambda) InvokeAsyncWithContext(ctx aws.Context, input *InvokeAsyncInput, opts ...request.Option) (*InvokeAsyncOutput, error)
InvokeAsyncWithContext is the same as InvokeAsync with the addition of the ability to pass a context and additional request options.
See InvokeAsync for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
Deprecated: InvokeAsyncWithContext has been deprecated
func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output *InvokeOutput)
InvokeRequest generates a "aws/request.Request" representing the client's request for the Invoke operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See Invoke for more information on using the Invoke API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the InvokeRequest method. req, resp := client.InvokeRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Invoke
func (c *Lambda) InvokeWithContext(ctx aws.Context, input *InvokeInput, opts ...request.Option) (*InvokeOutput, error)
InvokeWithContext is the same as Invoke with the addition of the ability to pass a context and additional request options.
See Invoke for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) InvokeWithResponseStream(input *InvokeWithResponseStreamInput) (*InvokeWithResponseStreamOutput, error)
InvokeWithResponseStream API operation for AWS Lambda.
Configure your Lambda functions to stream response payloads back to clients. For more information, see Configuring a Lambda function to stream responses (https://docs.aws.amazon.com/lambda/latest/dg/configuration-response-streaming.html).
This operation requires permission for the lambda:InvokeFunction (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html) action. For details on how to set up permissions for cross-account invocations, see Granting function access to other accounts (https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountinvoke).
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 Lambda's API operation InvokeWithResponseStream for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
InvalidRequestContentException The request body could not be parsed as JSON.
RequestTooLargeException The request payload exceeded the Invoke request body JSON input quota. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html).
UnsupportedMediaTypeException The content type of the Invoke request body is not JSON.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
InvalidParameterValueException One of the parameters in the request is not valid.
EC2UnexpectedException Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function.
SubnetIPAddressLimitReachedException Lambda couldn't set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.
ENILimitReachedException Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html).
EFSMountConnectivityException The Lambda function couldn't make a network connection to the configured file system.
EFSMountFailureException The Lambda function couldn't mount the configured file system due to a permission or configuration issue.
EFSMountTimeoutException The Lambda function made a network connection to the configured file system, but the mount operation timed out.
EFSIOException An error occurred when reading from or writing to a connected file system.
SnapStartException The afterRestore() runtime hook (https://docs.aws.amazon.com/lambda/latest/dg/snapstart-runtime-hooks.html) encountered an error. For more information, check the Amazon CloudWatch logs.
SnapStartTimeoutException Lambda couldn't restore the snapshot within the timeout limit.
SnapStartNotReadyException Lambda is initializing your function. You can invoke the function when the function state (https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html) becomes Active.
EC2ThrottledException Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function.
EC2AccessDeniedException Need additional permissions to configure VPC settings.
InvalidSubnetIDException The subnet ID provided in the Lambda function VPC configuration is not valid.
InvalidSecurityGroupIDException The security group ID provided in the Lambda function VPC configuration is not valid.
InvalidZipFileException Lambda could not unzip the deployment package.
KMSDisabledException Lambda couldn't decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.
KMSInvalidStateException Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. Check the function's KMS key settings.
KMSAccessDeniedException Lambda couldn't decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.
KMSNotFoundException Lambda couldn't decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.
InvalidRuntimeException The runtime or runtime version specified is not supported.
ResourceConflictException The resource already exists, or another operation is in progress.
ResourceNotReadyException The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.
RecursiveInvocationException Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeWithResponseStream
func (c *Lambda) InvokeWithResponseStreamRequest(input *InvokeWithResponseStreamInput) (req *request.Request, output *InvokeWithResponseStreamOutput)
InvokeWithResponseStreamRequest generates a "aws/request.Request" representing the client's request for the InvokeWithResponseStream operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See InvokeWithResponseStream for more information on using the InvokeWithResponseStream API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the InvokeWithResponseStreamRequest method. req, resp := client.InvokeWithResponseStreamRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeWithResponseStream
func (c *Lambda) InvokeWithResponseStreamWithContext(ctx aws.Context, input *InvokeWithResponseStreamInput, opts ...request.Option) (*InvokeWithResponseStreamOutput, error)
InvokeWithResponseStreamWithContext is the same as InvokeWithResponseStream with the addition of the ability to pass a context and additional request options.
See InvokeWithResponseStream for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error)
ListAliases API operation for AWS Lambda.
Returns a list of aliases (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html) for a Lambda function.
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 Lambda's API operation ListAliases for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
InvalidParameterValueException One of the parameters in the request is not valid.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliases
func (c *Lambda) ListAliasesPages(input *ListAliasesInput, fn func(*ListAliasesOutput, bool) bool) error
ListAliasesPages iterates over the pages of a ListAliases operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListAliases method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListAliases operation. pageNum := 0 err := client.ListAliasesPages(params, func(page *lambda.ListAliasesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (c *Lambda) ListAliasesPagesWithContext(ctx aws.Context, input *ListAliasesInput, fn func(*ListAliasesOutput, bool) bool, opts ...request.Option) error
ListAliasesPagesWithContext same as ListAliasesPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, output *ListAliasesOutput)
ListAliasesRequest generates a "aws/request.Request" representing the client's request for the ListAliases operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListAliases for more information on using the ListAliases API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListAliasesRequest method. req, resp := client.ListAliasesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliases
func (c *Lambda) ListAliasesWithContext(ctx aws.Context, input *ListAliasesInput, opts ...request.Option) (*ListAliasesOutput, error)
ListAliasesWithContext is the same as ListAliases with the addition of the ability to pass a context and additional request options.
See ListAliases for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) ListCodeSigningConfigs(input *ListCodeSigningConfigsInput) (*ListCodeSigningConfigsOutput, error)
ListCodeSigningConfigs API operation for AWS Lambda.
Returns a list of code signing configurations (https://docs.aws.amazon.com/lambda/latest/dg/configuring-codesigning.html). A request returns up to 10,000 configurations per call. You can use the MaxItems parameter to return fewer configurations per call.
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 Lambda's API operation ListCodeSigningConfigs for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
InvalidParameterValueException One of the parameters in the request is not valid.
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListCodeSigningConfigs
func (c *Lambda) ListCodeSigningConfigsPages(input *ListCodeSigningConfigsInput, fn func(*ListCodeSigningConfigsOutput, bool) bool) error
ListCodeSigningConfigsPages iterates over the pages of a ListCodeSigningConfigs operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListCodeSigningConfigs method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListCodeSigningConfigs operation. pageNum := 0 err := client.ListCodeSigningConfigsPages(params, func(page *lambda.ListCodeSigningConfigsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (c *Lambda) ListCodeSigningConfigsPagesWithContext(ctx aws.Context, input *ListCodeSigningConfigsInput, fn func(*ListCodeSigningConfigsOutput, bool) bool, opts ...request.Option) error
ListCodeSigningConfigsPagesWithContext same as ListCodeSigningConfigsPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) ListCodeSigningConfigsRequest(input *ListCodeSigningConfigsInput) (req *request.Request, output *ListCodeSigningConfigsOutput)
ListCodeSigningConfigsRequest generates a "aws/request.Request" representing the client's request for the ListCodeSigningConfigs operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListCodeSigningConfigs for more information on using the ListCodeSigningConfigs API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListCodeSigningConfigsRequest method. req, resp := client.ListCodeSigningConfigsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListCodeSigningConfigs
func (c *Lambda) ListCodeSigningConfigsWithContext(ctx aws.Context, input *ListCodeSigningConfigsInput, opts ...request.Option) (*ListCodeSigningConfigsOutput, error)
ListCodeSigningConfigsWithContext is the same as ListCodeSigningConfigs with the addition of the ability to pass a context and additional request options.
See ListCodeSigningConfigs for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *Lambda) ListEventSourceMappings(input *ListEventSourceMappingsInput) (*ListEventSourceMappingsOutput, error)
ListEventSourceMappings API operation for AWS Lambda.
Lists event source mappings. Specify an EventSourceArn to show only event source mappings for a single event source.
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 Lambda's API operation ListEventSourceMappings for usage and error information.
Returned Error Types:
ServiceException The Lambda service encountered an internal error.
ResourceNotFoundException The resource specified in the request does not exist.
InvalidParameterValueException One of the parameters in the request is not valid.
TooManyRequestsException The request throughput limit was exceeded. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings
func (c *Lambda) ListEventSourceMappingsPages(input *ListEventSourceMappingsInput, fn func(*ListEventSourceMappingsOutput, bool) bool) error
ListEventSourceMappingsPages iterates over the pages of a ListEventSourceMappings operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListEventSourceMappings method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListEventSourceMappings operation. pageNum := 0 err := client.ListEventSourceMappingsPages(params, func(page *lambda.ListEventSourceMappingsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })