UpdateFunctionCodeRequest
public struct UpdateFunctionCodeRequest : AWSShape
Undocumented
-
Declaration
Swift
public static var _members: [AWSShapeMember]
-
Set to true to validate the request parameters and access permissions without modifying the function code.
Declaration
Swift
public let dryRun: Bool?
-
The name 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.
Declaration
Swift
public let functionName: String
-
Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.
Declaration
Swift
public let publish: Bool?
-
Only update the function if the revision ID matches the ID that’s specified. Use this option to avoid modifying a function that has changed since you last read it.
Declaration
Swift
public let revisionId: String?
-
An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.
Declaration
Swift
public let s3Bucket: String?
-
The Amazon S3 key of the deployment package.
Declaration
Swift
public let s3Key: String?
-
For versioned objects, the version of the deployment package object to use.
Declaration
Swift
public let s3ObjectVersion: String?
-
The base64-encoded contents of the deployment package. AWS SDK and AWS CLI clients handle the encoding for you.
Declaration
Swift
public let zipFile: Data?
-
Undocumented
Declaration
Swift
public init(dryRun: Bool? = nil, functionName: String, publish: Bool? = nil, revisionId: String? = nil, s3Bucket: String? = nil, s3Key: String? = nil, s3ObjectVersion: String? = nil, zipFile: Data? = nil)
-
Declaration
Swift
public func validate(name: String) throws