CfnWebFunctionRevisionPropsMixin
- class aws_cdk.cfn_property_mixins.aws_lambda.CfnWebFunctionRevisionPropsMixin(props, *, strategy=None)
Bases:
MixinResource Type definition for AWS::Lambda::WebFunctionRevision.
An immutable revision of a Lambda web function, containing the function code and configuration.
- See:
- CloudformationResource:
AWS::Lambda::WebFunctionRevision
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_web_function_revision_props_mixin = lambda_.CfnWebFunctionRevisionPropsMixin(lambda.CfnWebFunctionRevisionMixinProps( build_config=lambda.CfnWebFunctionRevisionPropsMixin.BuildConfigProperty( code_config=lambda.CfnWebFunctionRevisionPropsMixin.CodeConfigProperty( s3_object=lambda.CfnWebFunctionRevisionPropsMixin.S3ObjectProperty( bucket="bucket", key="key", version_id="versionId" ) ), runtime_config=lambda.CfnWebFunctionRevisionPropsMixin.RuntimeConfigProperty( runtime="runtime" ) ), description="description", function_name="functionName", kms_key_arn="kmsKeyArn", service_config=lambda.CfnWebFunctionRevisionPropsMixin.ServiceConfigProperty( environment_variables={ "environment_variables_key": "environmentVariables" }, execution_role_arn="executionRoleArn", max_concurrency_per_environment=123, telemetry_config=lambda.CfnWebFunctionRevisionPropsMixin.TelemetryConfigProperty( logging_config=lambda.CfnWebFunctionRevisionPropsMixin.LoggingConfigProperty( application_log_level="applicationLogLevel", log_group="logGroup", system_log_level="systemLogLevel" ) ), timeout_seconds=123 ) ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::Lambda::WebFunctionRevision.- Parameters:
props (
Union[CfnWebFunctionRevisionMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['buildConfig', 'description', 'functionName', 'kmsKeyArn', 'serviceConfig']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
BuildConfigProperty
- class CfnWebFunctionRevisionPropsMixin.BuildConfigProperty(*, code_config=None, runtime_config=None)
Bases:
objectThe build configuration for the revision.
- Parameters:
code_config (
Union[IResolvable,CodeConfigProperty,Dict[str,Any],None]) – The code configuration for the revision.runtime_config (
Union[IResolvable,RuntimeConfigProperty,Dict[str,Any],None]) – The runtime configuration for the revision.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ build_config_property = lambda.CfnWebFunctionRevisionPropsMixin.BuildConfigProperty( code_config=lambda.CfnWebFunctionRevisionPropsMixin.CodeConfigProperty( s3_object=lambda.CfnWebFunctionRevisionPropsMixin.S3ObjectProperty( bucket="bucket", key="key", version_id="versionId" ) ), runtime_config=lambda.CfnWebFunctionRevisionPropsMixin.RuntimeConfigProperty( runtime="runtime" ) )
Attributes
- code_config
The code configuration for the revision.
- runtime_config
The runtime configuration for the revision.
CodeConfigProperty
- class CfnWebFunctionRevisionPropsMixin.CodeConfigProperty(*, s3_object=None)
Bases:
objectThe code configuration for the revision.
- Parameters:
s3_object (
Union[IResolvable,S3ObjectProperty,Dict[str,Any],None]) – The S3 location of the function code.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ code_config_property = lambda.CfnWebFunctionRevisionPropsMixin.CodeConfigProperty( s3_object=lambda.CfnWebFunctionRevisionPropsMixin.S3ObjectProperty( bucket="bucket", key="key", version_id="versionId" ) )
Attributes
- s3_object
The S3 location of the function code.
LoggingConfigProperty
- class CfnWebFunctionRevisionPropsMixin.LoggingConfigProperty(*, application_log_level=None, log_group=None, system_log_level=None)
Bases:
objectThe logging configuration.
- Parameters:
application_log_level (
Optional[str]) – The application log level.log_group (
Optional[str]) – The CloudWatch log group name.system_log_level (
Optional[str]) – The system log level.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ logging_config_property = lambda.CfnWebFunctionRevisionPropsMixin.LoggingConfigProperty( application_log_level="applicationLogLevel", log_group="logGroup", system_log_level="systemLogLevel" )
Attributes
- application_log_level
The application log level.
- log_group
The CloudWatch log group name.
RuntimeConfigProperty
- class CfnWebFunctionRevisionPropsMixin.RuntimeConfigProperty(*, runtime=None)
Bases:
objectThe runtime configuration for the revision.
- Parameters:
runtime (
Optional[str]) – The runtime identifier.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ runtime_config_property = lambda.CfnWebFunctionRevisionPropsMixin.RuntimeConfigProperty( runtime="runtime" )
Attributes
S3ObjectProperty
- class CfnWebFunctionRevisionPropsMixin.S3ObjectProperty(*, bucket=None, key=None, version_id=None)
Bases:
objectThe S3 location of the function code.
- Parameters:
bucket (
Optional[str]) – The S3 bucket name.key (
Optional[str]) – The S3 object key.version_id (
Optional[str]) – The S3 object version ID.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ s3_object_property = lambda.CfnWebFunctionRevisionPropsMixin.S3ObjectProperty( bucket="bucket", key="key", version_id="versionId" )
Attributes
- bucket
The S3 bucket name.
- key
The S3 object key.
- version_id
The S3 object version ID.
ServiceConfigProperty
- class CfnWebFunctionRevisionPropsMixin.ServiceConfigProperty(*, environment_variables=None, execution_role_arn=None, max_concurrency_per_environment=None, telemetry_config=None, timeout_seconds=None)
Bases:
objectThe service configuration for the revision.
- Parameters:
environment_variables (
Union[IResolvable,Mapping[str,str],None]) – Environment variables for the function.execution_role_arn (
Optional[str]) – The ARN of the execution role.max_concurrency_per_environment (
Union[int,float,None]) – The maximum concurrency per environment.telemetry_config (
Union[IResolvable,TelemetryConfigProperty,Dict[str,Any],None]) – The telemetry configuration.timeout_seconds (
Union[int,float,None]) – The function timeout in seconds.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ service_config_property = lambda.CfnWebFunctionRevisionPropsMixin.ServiceConfigProperty( environment_variables={ "environment_variables_key": "environmentVariables" }, execution_role_arn="executionRoleArn", max_concurrency_per_environment=123, telemetry_config=lambda.CfnWebFunctionRevisionPropsMixin.TelemetryConfigProperty( logging_config=lambda.CfnWebFunctionRevisionPropsMixin.LoggingConfigProperty( application_log_level="applicationLogLevel", log_group="logGroup", system_log_level="systemLogLevel" ) ), timeout_seconds=123 )
Attributes
- environment_variables
Environment variables for the function.
- execution_role_arn
The ARN of the execution role.
- max_concurrency_per_environment
The maximum concurrency per environment.
- telemetry_config
The telemetry configuration.
- timeout_seconds
The function timeout in seconds.
TelemetryConfigProperty
- class CfnWebFunctionRevisionPropsMixin.TelemetryConfigProperty(*, logging_config=None)
Bases:
objectThe telemetry configuration.
- Parameters:
logging_config (
Union[IResolvable,LoggingConfigProperty,Dict[str,Any],None]) – The logging configuration.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_lambda as lambda_ telemetry_config_property = lambda.CfnWebFunctionRevisionPropsMixin.TelemetryConfigProperty( logging_config=lambda.CfnWebFunctionRevisionPropsMixin.LoggingConfigProperty( application_log_level="applicationLogLevel", log_group="logGroup", system_log_level="systemLogLevel" ) )
Attributes
- logging_config
The logging configuration.