class Amazonite::Lambda::PublishVersionRequest

Included Modules

Defined in:

lambda/publish_version_request.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(function_name : String, code_sha_256 : String | Nil = nil, description : String | Nil = nil, revision_id : String | Nil = nil, publish_to : FunctionVersionLatestPublished | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def code_sha_256 : String | Nil #

Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. You can get the hash for the version that you uploaded from the output of UpdateFunctionCode.


[View source]
def code_sha_256=(code_sha_256 : String | Nil) #

Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. You can get the hash for the version that you uploaded from the output of UpdateFunctionCode.


[View source]
def description : String | Nil #

A description for the version to override the description in the function configuration.


[View source]
def description=(description : String | Nil) #

A description for the version to override the description in the function configuration.


[View source]
def function_name : 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.


[View source]
def function_name=(function_name : 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.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def publish_to : FunctionVersionLatestPublished | Nil #

Specifies where to publish the function version or configuration.


[View source]
def publish_to=(publish_to : FunctionVersionLatestPublished | Nil) #

Specifies where to publish the function version or configuration.


[View source]
def revision_id : String | Nil #

Only update the function if the revision ID matches the ID that's specified. Use this option to avoid publishing a version if the function configuration has changed since you last updated it.


[View source]
def revision_id=(revision_id : String | Nil) #

Only update the function if the revision ID matches the ID that's specified. Use this option to avoid publishing a version if the function configuration has changed since you last updated it.


[View source]
def validate! : Nil #

[View source]