@Stability(value=Experimental) @Internal public static final class PythonFunctionProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements PythonFunctionProps
PythonFunctionPropssoftware.amazon.jsii.JsiiObject.InitializationModePythonFunctionProps.Builder, PythonFunctionProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(String entry,
String assetHash,
AssetHashType assetHashType,
String handler,
String index,
Runtime runtime,
Boolean allowAllOutbound,
Boolean allowPublicSubnet,
ICodeSigningConfig codeSigningConfig,
VersionOptions currentVersionOptions,
software.amazon.awscdk.services.sqs.IQueue deadLetterQueue,
Boolean deadLetterQueueEnabled,
String description,
Map<String,String> environment,
software.amazon.awscdk.services.kms.IKey environmentEncryption,
List<? extends IEventSource> events,
FileSystem filesystem,
String functionName,
List<? extends software.amazon.awscdk.services.iam.PolicyStatement> initialPolicy,
List<? extends ILayerVersion> layers,
software.amazon.awscdk.services.logs.RetentionDays logRetention,
LogRetentionRetryOptions logRetentionRetryOptions,
software.amazon.awscdk.services.iam.IRole logRetentionRole,
Number memorySize,
Boolean profiling,
software.amazon.awscdk.services.codeguruprofiler.IProfilingGroup profilingGroup,
Number reservedConcurrentExecutions,
software.amazon.awscdk.services.iam.IRole role,
ISecurityGroup securityGroup,
List<? extends ISecurityGroup> securityGroups,
Duration timeout,
Tracing tracing,
IVpc vpc,
SubnetSelection vpcSubnets,
Duration maxEventAge,
IDestination onFailure,
IDestination onSuccess,
Number retryAttempts)
Constructor that initializes the object based on literal property values passed by the
PythonFunctionProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Boolean |
getAllowAllOutbound() |
Boolean |
getAllowPublicSubnet() |
String |
getAssetHash()
(experimental) Specify a custom hash for this asset.
|
AssetHashType |
getAssetHashType()
(experimental) Determines how asset hash is calculated.
|
ICodeSigningConfig |
getCodeSigningConfig() |
VersionOptions |
getCurrentVersionOptions() |
software.amazon.awscdk.services.sqs.IQueue |
getDeadLetterQueue() |
Boolean |
getDeadLetterQueueEnabled() |
String |
getDescription() |
String |
getEntry()
(experimental) The path to the root directory of the function.
|
Map<String,String> |
getEnvironment() |
software.amazon.awscdk.services.kms.IKey |
getEnvironmentEncryption() |
List<IEventSource> |
getEvents() |
FileSystem |
getFilesystem() |
String |
getFunctionName() |
String |
getHandler()
(experimental) The name of the exported handler in the index file.
|
String |
getIndex()
(experimental) The path (relative to entry) to the index file containing the exported handler.
|
List<software.amazon.awscdk.services.iam.PolicyStatement> |
getInitialPolicy() |
List<ILayerVersion> |
getLayers() |
software.amazon.awscdk.services.logs.RetentionDays |
getLogRetention() |
LogRetentionRetryOptions |
getLogRetentionRetryOptions() |
software.amazon.awscdk.services.iam.IRole |
getLogRetentionRole() |
Duration |
getMaxEventAge() |
Number |
getMemorySize() |
IDestination |
getOnFailure() |
IDestination |
getOnSuccess() |
Boolean |
getProfiling() |
software.amazon.awscdk.services.codeguruprofiler.IProfilingGroup |
getProfilingGroup() |
Number |
getReservedConcurrentExecutions() |
Number |
getRetryAttempts() |
software.amazon.awscdk.services.iam.IRole |
getRole() |
Runtime |
getRuntime()
(experimental) The runtime environment.
|
ISecurityGroup |
getSecurityGroup() |
List<ISecurityGroup> |
getSecurityGroups() |
Duration |
getTimeout() |
Tracing |
getTracing() |
IVpc |
getVpc() |
SubnetSelection |
getVpcSubnets() |
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(String entry, String assetHash, AssetHashType assetHashType, String handler, String index, Runtime runtime, Boolean allowAllOutbound, Boolean allowPublicSubnet, ICodeSigningConfig codeSigningConfig, VersionOptions currentVersionOptions, software.amazon.awscdk.services.sqs.IQueue deadLetterQueue, Boolean deadLetterQueueEnabled, String description, Map<String,String> environment, software.amazon.awscdk.services.kms.IKey environmentEncryption, List<? extends IEventSource> events, FileSystem filesystem, String functionName, List<? extends software.amazon.awscdk.services.iam.PolicyStatement> initialPolicy, List<? extends ILayerVersion> layers, software.amazon.awscdk.services.logs.RetentionDays logRetention, LogRetentionRetryOptions logRetentionRetryOptions, software.amazon.awscdk.services.iam.IRole logRetentionRole, Number memorySize, Boolean profiling, software.amazon.awscdk.services.codeguruprofiler.IProfilingGroup profilingGroup, Number reservedConcurrentExecutions, software.amazon.awscdk.services.iam.IRole role, ISecurityGroup securityGroup, List<? extends ISecurityGroup> securityGroups, Duration timeout, Tracing tracing, IVpc vpc, SubnetSelection vpcSubnets, Duration maxEventAge, IDestination onFailure, IDestination onSuccess, Number retryAttempts)
PythonFunctionProps.Builder.public final String getEntry()
PythonFunctionPropsgetEntry in interface PythonFunctionPropspublic final String getAssetHash()
PythonFunctionProps
If assetHashType is set it must
be set to AssetHashType.CUSTOM. For consistency, this custom hash will
be SHA256 hashed and encoded as hex. The resulting hash will be the asset
hash.
NOTE: the hash is used in order to identify a specific revision of the asset, and used for optimizing and caching deployment activities related to this asset such as packaging, uploading to Amazon S3, etc. If you chose to customize the hash, you will need to make sure it is updated every time the asset changes, or otherwise it is possible that some deployments will not be invalidated.
Default: - based on `assetHashType`
getAssetHash in interface PythonFunctionPropspublic final AssetHashType getAssetHashType()
PythonFunctionProps
If asset hash is set to SOURCE (default), then only changes to the source
directory will cause the asset to rebuild. This means, for example, that in
order to pick up a new dependency version, a change must be made to the
source tree. Ideally, this can be implemented by including a dependency
lockfile in your source tree or using fixed dependencies.
If the asset hash is set to OUTPUT, the hash is calculated after
bundling. This means that any change in the output will cause the asset to
be invalidated and uploaded. Bear in mind that pip adds timestamps to
dependencies it installs, which implies that in this mode Python bundles
will always get rebuild and uploaded. Normally this is an anti-pattern
since build
Default: AssetHashType.SOURCE By default, hash is calculated based on the contents of the source directory. This means that only updates to the source will cause the asset to rebuild.
getAssetHashType in interface PythonFunctionPropspublic final String getHandler()
PythonFunctionPropsDefault: handler
getHandler in interface PythonFunctionPropspublic final String getIndex()
PythonFunctionPropsDefault: index.py
getIndex in interface PythonFunctionPropspublic final Runtime getRuntime()
PythonFunctionPropsOnly runtimes of the Python family are supported.
Default: lambda.Runtime.PYTHON_3_7
getRuntime in interface PythonFunctionPropspublic final Boolean getAllowAllOutbound()
getAllowAllOutbound in interface FunctionOptionspublic final Boolean getAllowPublicSubnet()
getAllowPublicSubnet in interface FunctionOptionspublic final ICodeSigningConfig getCodeSigningConfig()
getCodeSigningConfig in interface FunctionOptionspublic final VersionOptions getCurrentVersionOptions()
getCurrentVersionOptions in interface FunctionOptionspublic final software.amazon.awscdk.services.sqs.IQueue getDeadLetterQueue()
getDeadLetterQueue in interface FunctionOptionspublic final Boolean getDeadLetterQueueEnabled()
getDeadLetterQueueEnabled in interface FunctionOptionspublic final String getDescription()
getDescription in interface FunctionOptionspublic final Map<String,String> getEnvironment()
getEnvironment in interface FunctionOptionspublic final software.amazon.awscdk.services.kms.IKey getEnvironmentEncryption()
getEnvironmentEncryption in interface FunctionOptionspublic final List<IEventSource> getEvents()
getEvents in interface FunctionOptionspublic final FileSystem getFilesystem()
getFilesystem in interface FunctionOptionspublic final String getFunctionName()
getFunctionName in interface FunctionOptionspublic final List<software.amazon.awscdk.services.iam.PolicyStatement> getInitialPolicy()
getInitialPolicy in interface FunctionOptionspublic final List<ILayerVersion> getLayers()
getLayers in interface FunctionOptionspublic final software.amazon.awscdk.services.logs.RetentionDays getLogRetention()
getLogRetention in interface FunctionOptionspublic final LogRetentionRetryOptions getLogRetentionRetryOptions()
getLogRetentionRetryOptions in interface FunctionOptionspublic final software.amazon.awscdk.services.iam.IRole getLogRetentionRole()
getLogRetentionRole in interface FunctionOptionspublic final Number getMemorySize()
getMemorySize in interface FunctionOptionspublic final Boolean getProfiling()
getProfiling in interface FunctionOptionspublic final software.amazon.awscdk.services.codeguruprofiler.IProfilingGroup getProfilingGroup()
getProfilingGroup in interface FunctionOptionspublic final Number getReservedConcurrentExecutions()
getReservedConcurrentExecutions in interface FunctionOptionspublic final software.amazon.awscdk.services.iam.IRole getRole()
getRole in interface FunctionOptionspublic final ISecurityGroup getSecurityGroup()
getSecurityGroup in interface FunctionOptionspublic final List<ISecurityGroup> getSecurityGroups()
getSecurityGroups in interface FunctionOptionspublic final Duration getTimeout()
getTimeout in interface FunctionOptionspublic final Tracing getTracing()
getTracing in interface FunctionOptionspublic final IVpc getVpc()
getVpc in interface FunctionOptionspublic final SubnetSelection getVpcSubnets()
getVpcSubnets in interface FunctionOptionspublic final Duration getMaxEventAge()
getMaxEventAge in interface EventInvokeConfigOptionspublic final IDestination getOnFailure()
getOnFailure in interface EventInvokeConfigOptionspublic final IDestination getOnSuccess()
getOnSuccess in interface EventInvokeConfigOptionspublic final Number getRetryAttempts()
getRetryAttempts in interface EventInvokeConfigOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.