CreateFunctionRequest
public struct CreateFunctionRequest : AWSShape
Undocumented
-
Declaration
Swift
public static var _members: [AWSShapeMember]
-
The code for the function.
Declaration
Swift
public let code: FunctionCode
-
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.
Declaration
Swift
public let deadLetterConfig: DeadLetterConfig?
-
A description of the function.
Declaration
Swift
public let description: String?
-
Environment variables that are accessible from function code during execution.
Declaration
Swift
public let environment: Environment?
-
Connection settings for an Amazon EFS file system.
Declaration
Swift
public let fileSystemConfigs: [FileSystemConfig]?
-
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
-
The name of the method within your code that Lambda calls to execute your function. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.
Declaration
Swift
public let handler: String
-
The ARN of the AWS Key Management Service (AWS KMS) key that’s used to encrypt your function’s environment variables. If it’s not provided, AWS Lambda uses a default service key.
Declaration
Swift
public let kMSKeyArn: String?
-
A list of function layers to add to the function’s execution environment. Specify each layer by its ARN, including the version.
Declaration
Swift
public let layers: [String]?
-
The amount of memory that your function has access to. Increasing the function’s memory also increases its CPU allocation. The default value is 128 MB. The value must be a multiple of 64 MB.
Declaration
Swift
public let memorySize: Int?
-
Set to true to publish the first version of the function during creation.
Declaration
Swift
public let publish: Bool?
-
The Amazon Resource Name (ARN) of the function’s execution role.
Declaration
Swift
public let role: String
-
The identifier of the function’s runtime.
Declaration
Swift
public let runtime: Runtime
-
A list of tags to apply to the function.
Declaration
Swift
public let tags: [String : String]?
-
The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds.
Declaration
Swift
public let timeout: Int?
-
Set Mode to Active to sample and trace a subset of incoming requests with AWS X-Ray.
Declaration
Swift
public let tracingConfig: TracingConfig?
-
For network connectivity to AWS 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 only access resources and the internet through that VPC. For more information, see VPC Settings.
Declaration
Swift
public let vpcConfig: VpcConfig?
-
init(code:deadLetterConfig:description:environment:fileSystemConfigs:functionName:handler:kMSKeyArn:layers:memorySize:publish:role:runtime:tags:timeout:tracingConfig:vpcConfig:)
Undocumented
Declaration
Swift
public init(code: FunctionCode, deadLetterConfig: DeadLetterConfig? = nil, description: String? = nil, environment: Environment? = nil, fileSystemConfigs: [FileSystemConfig]? = nil, functionName: String, handler: String, kMSKeyArn: String? = nil, layers: [String]? = nil, memorySize: Int? = nil, publish: Bool? = nil, role: String, runtime: Runtime, tags: [String : String]? = nil, timeout: Int? = nil, tracingConfig: TracingConfig? = nil, vpcConfig: VpcConfig? = nil)
-
Declaration
Swift
public func validate(name: String) throws