@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-04-27T09:48:13.844Z") @Stability(value=Stable) public interface CfnFunctionProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sam.*;
Object assumeRolePolicyDocument;
CfnFunctionProps cfnFunctionProps = CfnFunctionProps.builder()
.architectures(List.of("architectures"))
.assumeRolePolicyDocument(assumeRolePolicyDocument)
.autoPublishAlias("autoPublishAlias")
.autoPublishCodeSha256("autoPublishCodeSha256")
.codeSigningConfigArn("codeSigningConfigArn")
.codeUri("codeUri")
.deadLetterQueue(DeadLetterQueueProperty.builder()
.targetArn("targetArn")
.type("type")
.build())
.deploymentPreference(DeploymentPreferenceProperty.builder()
.enabled(false)
.type("type")
// the properties below are optional
.alarms(List.of("alarms"))
.hooks(HooksProperty.builder()
.postTraffic("postTraffic")
.preTraffic("preTraffic")
.build())
.build())
.description("description")
.environment(FunctionEnvironmentProperty.builder()
.variables(Map.of(
"variablesKey", "variables"))
.build())
.eventInvokeConfig(EventInvokeConfigProperty.builder()
.destinationConfig(EventInvokeDestinationConfigProperty.builder()
.onFailure(DestinationProperty.builder()
.destination("destination")
// the properties below are optional
.type("type")
.build())
.onSuccess(DestinationProperty.builder()
.destination("destination")
// the properties below are optional
.type("type")
.build())
.build())
.maximumEventAgeInSeconds(123)
.maximumRetryAttempts(123)
.build())
.events(Map.of(
"eventsKey", EventSourceProperty.builder()
.properties(S3EventProperty.builder()
.variables(Map.of(
"variablesKey", "variables"))
.build())
.type("type")
.build()))
.fileSystemConfigs(List.of(FileSystemConfigProperty.builder()
.arn("arn")
.localMountPath("localMountPath")
.build()))
.functionName("functionName")
.handler("handler")
.imageConfig(ImageConfigProperty.builder()
.command(List.of("command"))
.entryPoint(List.of("entryPoint"))
.workingDirectory("workingDirectory")
.build())
.imageUri("imageUri")
.inlineCode("inlineCode")
.kmsKeyArn("kmsKeyArn")
.layers(List.of("layers"))
.memorySize(123)
.packageType("packageType")
.permissionsBoundary("permissionsBoundary")
.policies("policies")
.provisionedConcurrencyConfig(ProvisionedConcurrencyConfigProperty.builder()
.provisionedConcurrentExecutions("provisionedConcurrentExecutions")
.build())
.reservedConcurrentExecutions(123)
.role("role")
.runtime("runtime")
.tags(Map.of(
"tagsKey", "tags"))
.timeout(123)
.tracing("tracing")
.versionDescription("versionDescription")
.vpcConfig(VpcConfigProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnFunctionProps.Builder
A builder for
CfnFunctionProps |
static class |
CfnFunctionProps.Jsii$Proxy
An implementation for
CfnFunctionProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnFunctionProps.Builder |
builder() |
default List<String> |
getArchitectures()
`AWS::Serverless::Function.Architectures`.
|
default Object |
getAssumeRolePolicyDocument()
`AWS::Serverless::Function.AssumeRolePolicyDocument`.
|
default String |
getAutoPublishAlias()
`AWS::Serverless::Function.AutoPublishAlias`.
|
default String |
getAutoPublishCodeSha256()
`AWS::Serverless::Function.AutoPublishCodeSha256`.
|
default String |
getCodeSigningConfigArn()
`AWS::Serverless::Function.CodeSigningConfigArn`.
|
default Object |
getCodeUri()
`AWS::Serverless::Function.CodeUri`.
|
default Object |
getDeadLetterQueue()
`AWS::Serverless::Function.DeadLetterQueue`.
|
default Object |
getDeploymentPreference()
`AWS::Serverless::Function.DeploymentPreference`.
|
default String |
getDescription()
`AWS::Serverless::Function.Description`.
|
default Object |
getEnvironment()
`AWS::Serverless::Function.Environment`.
|
default Object |
getEventInvokeConfig()
`AWS::Serverless::Function.EventInvokeConfig`.
|
default Object |
getEvents()
`AWS::Serverless::Function.Events`.
|
default Object |
getFileSystemConfigs()
`AWS::Serverless::Function.FileSystemConfigs`.
|
default String |
getFunctionName()
`AWS::Serverless::Function.FunctionName`.
|
default String |
getHandler()
`AWS::Serverless::Function.Handler`.
|
default Object |
getImageConfig()
`AWS::Serverless::Function.ImageConfig`.
|
default String |
getImageUri()
`AWS::Serverless::Function.ImageUri`.
|
default String |
getInlineCode()
`AWS::Serverless::Function.InlineCode`.
|
default String |
getKmsKeyArn()
`AWS::Serverless::Function.KmsKeyArn`.
|
default List<String> |
getLayers()
`AWS::Serverless::Function.Layers`.
|
default Number |
getMemorySize()
`AWS::Serverless::Function.MemorySize`.
|
default String |
getPackageType()
`AWS::Serverless::Function.PackageType`.
|
default String |
getPermissionsBoundary()
`AWS::Serverless::Function.PermissionsBoundary`.
|
default Object |
getPolicies()
`AWS::Serverless::Function.Policies`.
|
default Object |
getProvisionedConcurrencyConfig()
`AWS::Serverless::Function.ProvisionedConcurrencyConfig`.
|
default Number |
getReservedConcurrentExecutions()
`AWS::Serverless::Function.ReservedConcurrentExecutions`.
|
default String |
getRole()
`AWS::Serverless::Function.Role`.
|
default String |
getRuntime()
`AWS::Serverless::Function.Runtime`.
|
default Map<String,String> |
getTags()
`AWS::Serverless::Function.Tags`.
|
default Number |
getTimeout()
`AWS::Serverless::Function.Timeout`.
|
default String |
getTracing()
`AWS::Serverless::Function.Tracing`.
|
default String |
getVersionDescription()
`AWS::Serverless::Function.VersionDescription`.
|
default Object |
getVpcConfig()
`AWS::Serverless::Function.VpcConfig`.
|
@Stability(value=Stable) @Nullable default List<String> getArchitectures()
@Stability(value=Stable) @Nullable default Object getAssumeRolePolicyDocument()
@Stability(value=Stable) @Nullable default String getAutoPublishAlias()
@Stability(value=Stable) @Nullable default String getAutoPublishCodeSha256()
@Stability(value=Stable) @Nullable default String getCodeSigningConfigArn()
@Stability(value=Stable) @Nullable default Object getCodeUri()
@Stability(value=Stable) @Nullable default Object getDeadLetterQueue()
@Stability(value=Stable) @Nullable default Object getDeploymentPreference()
@Stability(value=Stable) @Nullable default String getDescription()
@Stability(value=Stable) @Nullable default Object getEnvironment()
@Stability(value=Stable) @Nullable default Object getEventInvokeConfig()
@Stability(value=Stable) @Nullable default Object getEvents()
@Stability(value=Stable) @Nullable default Object getFileSystemConfigs()
@Stability(value=Stable) @Nullable default String getFunctionName()
@Stability(value=Stable) @Nullable default String getHandler()
@Stability(value=Stable) @Nullable default Object getImageConfig()
@Stability(value=Stable) @Nullable default String getImageUri()
@Stability(value=Stable) @Nullable default String getInlineCode()
@Stability(value=Stable) @Nullable default String getKmsKeyArn()
@Stability(value=Stable) @Nullable default List<String> getLayers()
@Stability(value=Stable) @Nullable default Number getMemorySize()
@Stability(value=Stable) @Nullable default String getPackageType()
@Stability(value=Stable) @Nullable default String getPermissionsBoundary()
@Stability(value=Stable) @Nullable default Object getPolicies()
@Stability(value=Stable) @Nullable default Object getProvisionedConcurrencyConfig()
@Stability(value=Stable) @Nullable default Number getReservedConcurrentExecutions()
@Stability(value=Stable) @Nullable default String getRole()
@Stability(value=Stable) @Nullable default String getRuntime()
@Stability(value=Stable) @Nullable default Map<String,String> getTags()
@Stability(value=Stable) @Nullable default Number getTimeout()
@Stability(value=Stable) @Nullable default String getTracing()
@Stability(value=Stable) @Nullable default String getVersionDescription()
@Stability(value=Stable) @Nullable default Object getVpcConfig()
@Stability(value=Stable) static CfnFunctionProps.Builder builder()
CfnFunctionProps.Builder of CfnFunctionPropsCopyright © 2023. All rights reserved.