CfnFunction
- class aws_cdk.aws_sam.CfnFunction(scope, id, *, architectures=None, assume_role_policy_document=None, auto_publish_alias=None, auto_publish_code_sha256=None, code_signing_config_arn=None, code_uri=None, dead_letter_queue=None, deployment_preference=None, description=None, environment=None, ephemeral_storage=None, event_invoke_config=None, events=None, file_system_configs=None, function_name=None, function_url_config=None, handler=None, image_config=None, image_uri=None, inline_code=None, kms_key_arn=None, layers=None, memory_size=None, package_type=None, permissions_boundary=None, policies=None, provisioned_concurrency_config=None, reserved_concurrent_executions=None, role=None, runtime=None, tags=None, timeout=None, tracing=None, version_description=None, vpc_config=None)
Bases:
CfnResource
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-function.html
- CloudformationResource:
AWS::Serverless::Function
- 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 import aws_sam as sam # assume_role_policy_document: Any cfn_function = sam.CfnFunction(self, "MyCfnFunction", architectures=["architectures"], assume_role_policy_document=assume_role_policy_document, auto_publish_alias="autoPublishAlias", auto_publish_code_sha256="autoPublishCodeSha256", code_signing_config_arn="codeSigningConfigArn", code_uri="codeUri", dead_letter_queue=sam.CfnFunction.DeadLetterQueueProperty( target_arn="targetArn", type="type" ), deployment_preference=sam.CfnFunction.DeploymentPreferenceProperty( alarms=["alarms"], enabled=False, hooks=sam.CfnFunction.HooksProperty( post_traffic="postTraffic", pre_traffic="preTraffic" ), role="role", type="type" ), description="description", environment=sam.CfnFunction.FunctionEnvironmentProperty( variables={ "variables_key": "variables" } ), ephemeral_storage=sam.CfnFunction.EphemeralStorageProperty( size=123 ), event_invoke_config=sam.CfnFunction.EventInvokeConfigProperty( destination_config=sam.CfnFunction.EventInvokeDestinationConfigProperty( on_failure=sam.CfnFunction.DestinationProperty( destination="destination", # the properties below are optional type="type" ), on_success=sam.CfnFunction.DestinationProperty( destination="destination", # the properties below are optional type="type" ) ), maximum_event_age_in_seconds=123, maximum_retry_attempts=123 ), events={ "events_key": sam.CfnFunction.EventSourceProperty( properties=sam.CfnFunction.AlexaSkillEventProperty( skill_id="skillId" ), type="type" ) }, file_system_configs=[sam.CfnFunction.FileSystemConfigProperty( arn="arn", local_mount_path="localMountPath" )], function_name="functionName", function_url_config=sam.CfnFunction.FunctionUrlConfigProperty( auth_type="authType", # the properties below are optional cors="cors", invoke_mode="invokeMode" ), handler="handler", image_config=sam.CfnFunction.ImageConfigProperty( command=["command"], entry_point=["entryPoint"], working_directory="workingDirectory" ), image_uri="imageUri", inline_code="inlineCode", kms_key_arn="kmsKeyArn", layers=["layers"], memory_size=123, package_type="packageType", permissions_boundary="permissionsBoundary", policies="policies", provisioned_concurrency_config=sam.CfnFunction.ProvisionedConcurrencyConfigProperty( provisioned_concurrent_executions="provisionedConcurrentExecutions" ), reserved_concurrent_executions=123, role="role", runtime="runtime", tags={ "tags_key": "tags" }, timeout=123, tracing="tracing", version_description="versionDescription", vpc_config=sam.CfnFunction.VpcConfigProperty( security_group_ids=["securityGroupIds"], subnet_ids=["subnetIds"] ) )
- Parameters:
scope (
Construct
) – Scope in which this resource is defined.id (
str
) – Construct identifier for this resource (unique in its scope).architectures (
Optional
[Sequence
[str
]]) –assume_role_policy_document (
Any
) –auto_publish_alias (
Optional
[str
]) –auto_publish_code_sha256 (
Optional
[str
]) –code_signing_config_arn (
Optional
[str
]) –code_uri (
Union
[str
,IResolvable
,S3LocationProperty
,Dict
[str
,Any
],None
]) –dead_letter_queue (
Union
[IResolvable
,DeadLetterQueueProperty
,Dict
[str
,Any
],None
]) –deployment_preference (
Union
[IResolvable
,DeploymentPreferenceProperty
,Dict
[str
,Any
],None
]) –description (
Optional
[str
]) –environment (
Union
[IResolvable
,FunctionEnvironmentProperty
,Dict
[str
,Any
],None
]) –ephemeral_storage (
Union
[IResolvable
,EphemeralStorageProperty
,Dict
[str
,Any
],None
]) –event_invoke_config (
Union
[IResolvable
,EventInvokeConfigProperty
,Dict
[str
,Any
],None
]) –events (
Union
[IResolvable
,Mapping
[str
,Union
[IResolvable
,EventSourceProperty
,Dict
[str
,Any
]]],None
]) –file_system_configs (
Union
[IResolvable
,Sequence
[Union
[IResolvable
,FileSystemConfigProperty
,Dict
[str
,Any
]]],None
]) –function_name (
Optional
[str
]) –function_url_config (
Union
[IResolvable
,FunctionUrlConfigProperty
,Dict
[str
,Any
],None
]) –handler (
Optional
[str
]) –image_config (
Union
[IResolvable
,ImageConfigProperty
,Dict
[str
,Any
],None
]) –image_uri (
Optional
[str
]) –inline_code (
Optional
[str
]) –kms_key_arn (
Optional
[str
]) –layers (
Optional
[Sequence
[str
]]) –memory_size (
Union
[int
,float
,None
]) –package_type (
Optional
[str
]) –permissions_boundary (
Optional
[str
]) –policies (
Union
[str
,IResolvable
,IAMPolicyDocumentProperty
,Dict
[str
,Any
],Sequence
[Union
[str
,IResolvable
,IAMPolicyDocumentProperty
,Dict
[str
,Any
],SAMPolicyTemplateProperty
]],None
]) –provisioned_concurrency_config (
Union
[IResolvable
,ProvisionedConcurrencyConfigProperty
,Dict
[str
,Any
],None
]) –reserved_concurrent_executions (
Union
[int
,float
,None
]) –role (
Optional
[str
]) –runtime (
Optional
[str
]) –tags (
Optional
[Mapping
[str
,str
]]) –timeout (
Union
[int
,float
,None
]) –tracing (
Optional
[str
]) –version_description (
Optional
[str
]) –vpc_config (
Union
[IResolvable
,VpcConfigProperty
,Dict
[str
,Any
],None
]) –
Methods
- add_deletion_override(path)
Syntactic sugar for
addOverride(path, undefined)
.- Parameters:
path (
str
) – The path of the value to delete.- Return type:
None
- add_dependency(target)
Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.
- Parameters:
target (
CfnResource
) –- Return type:
None
- add_depends_on(target)
(deprecated) Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
- Parameters:
target (
CfnResource
) –- Deprecated:
use addDependency
- Stability:
deprecated
- Return type:
None
- add_metadata(key, value)
Add a value to the CloudFormation Resource Metadata.
- Parameters:
key (
str
) –value (
Any
) –
- See:
- Return type:
None
Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.
- add_override(path, value)
Adds an override to the synthesized CloudFormation resource.
To add a property override, either use
addPropertyOverride
or prefixpath
with “Properties.” (i.e.Properties.TopicName
).If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.
To include a literal
.
in the property name, prefix with a\
. In most programming languages you will need to write this as"\\."
because the\
itself will need to be escaped.For example:
cfn_resource.add_override("Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes", ["myattribute"]) cfn_resource.add_override("Properties.GlobalSecondaryIndexes.1.ProjectionType", "INCLUDE")
would add the overrides Example:
"Properties": { "GlobalSecondaryIndexes": [ { "Projection": { "NonKeyAttributes": [ "myattribute" ] ... } ... }, { "ProjectionType": "INCLUDE" ... }, ] ... }
The
value
argument toaddOverride
will not be processed or translated in any way. Pass raw JSON values in here with the correct capitalization for CloudFormation. If you pass CDK classes or structs, they will be rendered with lowercased key names, and CloudFormation will reject the template.- Parameters:
path (
str
) –The path of the property, you can use dot notation to override values in complex types. Any intermediate keys will be created as needed.
value (
Any
) –The value. Could be primitive or complex.
- Return type:
None
- add_property_deletion_override(property_path)
Adds an override that deletes the value of a property from the resource definition.
- Parameters:
property_path (
str
) – The path to the property.- Return type:
None
- add_property_override(property_path, value)
Adds an override to a resource property.
Syntactic sugar for
addOverride("Properties.<...>", value)
.- Parameters:
property_path (
str
) – The path of the property.value (
Any
) – The value.
- Return type:
None
- apply_removal_policy(policy=None, *, apply_to_update_replace_policy=None, default=None)
Sets the deletion policy of the resource based on the removal policy specified.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you’ve removed it from the CDK application or because you’ve made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY
), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN
). In some cases, a snapshot can be taken of the resource prior to deletion (RemovalPolicy.SNAPSHOT
). A list of resources that support this policy can be found in the following link:- Parameters:
policy (
Optional
[RemovalPolicy
]) –apply_to_update_replace_policy (
Optional
[bool
]) – Apply the same deletion policy to the resource’s “UpdateReplacePolicy”. Default: truedefault (
Optional
[RemovalPolicy
]) – The default policy to apply in case the removal policy is not defined. Default: - Default value is resource specific. To determine the default value for a resource, please consult that specific resource’s documentation.
- See:
- Return type:
None
- get_att(attribute_name, type_hint=None)
Returns a token for an runtime attribute of this resource.
Ideally, use generated attribute accessors (e.g.
resource.arn
), but this can be used for future compatibility in case there is no generated attribute.- Parameters:
attribute_name (
str
) – The name of the attribute.type_hint (
Optional
[ResolutionTypeHint
]) –
- Return type:
- get_metadata(key)
Retrieve a value value from the CloudFormation Resource Metadata.
- Parameters:
key (
str
) –- See:
- Return type:
Any
Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.
- inspect(inspector)
Examines the CloudFormation resource and discloses attributes.
- Parameters:
inspector (
TreeInspector
) – tree inspector to collect and process attributes.- Return type:
None
- obtain_dependencies()
Retrieves an array of resources this resource depends on.
This assembles dependencies on resources across stacks (including nested stacks) automatically.
- Return type:
List
[Union
[Stack
,CfnResource
]]
- obtain_resource_dependencies()
Get a shallow copy of dependencies between this resource and other resources in the same stack.
- Return type:
List
[CfnResource
]
- override_logical_id(new_logical_id)
Overrides the auto-generated logical ID with a specific ID.
- Parameters:
new_logical_id (
str
) – The new logical ID to use for this stack element.- Return type:
None
- remove_dependency(target)
Indicates that this resource no longer depends on another resource.
This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.
- Parameters:
target (
CfnResource
) –- Return type:
None
- replace_dependency(target, new_target)
Replaces one dependency with another.
- Parameters:
target (
CfnResource
) – The dependency to replace.new_target (
CfnResource
) – The new dependency to add.
- Return type:
None
- to_string()
Returns a string representation of this construct.
- Return type:
str
- Returns:
a string representation of this resource
Attributes
- CFN_RESOURCE_TYPE_NAME = 'AWS::Serverless::Function'
- REQUIRED_TRANSFORM = 'AWS::Serverless-2016-10-31'
- architectures
- assume_role_policy_document
- auto_publish_alias
- auto_publish_code_sha256
- cfn_options
Options for this resource, such as condition, update policy etc.
- cfn_resource_type
AWS resource type.
- code_signing_config_arn
- code_uri
- creation_stack
return:
the stack trace of the point where this Resource was created from, sourced from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most node +internal+ entries filtered.
- dead_letter_queue
- deployment_preference
- description
- environment
- ephemeral_storage
- event_invoke_config
- events
- file_system_configs
- function_name
- function_url_config
- handler
- image_config
- image_uri
- inline_code
- kms_key_arn
- layers
- logical_id
The logical ID for this CloudFormation stack element.
The logical ID of the element is calculated from the path of the resource node in the construct tree.
To override this value, use
overrideLogicalId(newLogicalId)
.- Returns:
the logical ID as a stringified token. This value will only get resolved during synthesis.
- memory_size
- node
The tree node.
- package_type
- permissions_boundary
- policies
- provisioned_concurrency_config
- ref
Return a string that will be resolved to a CloudFormation
{ Ref }
for this element.If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through
Lazy.any({ produce: resource.ref })
.
- reserved_concurrent_executions
- role
- runtime
- stack
The stack in which this element is defined.
CfnElements must be defined within a stack scope (directly or indirectly).
- tags
Tag Manager which manages the tags for this resource.
- tags_raw
- timeout
- tracing
- version_description
- vpc_config
Static Methods
- classmethod is_cfn_element(x)
Returns
true
if a construct is a stack element (i.e. part of the synthesized cloudformation template).Uses duck-typing instead of
instanceof
to allow stack elements from different versions of this library to be included in the same stack.- Parameters:
x (
Any
) –- Return type:
bool
- Returns:
The construct as a stack element or undefined if it is not a stack element.
- classmethod is_cfn_resource(x)
Check whether the given object is a CfnResource.
- Parameters:
x (
Any
) –- Return type:
bool
- classmethod is_construct(x)
Checks if
x
is a construct.Use this method instead of
instanceof
to properly detectConstruct
instances, even when the construct library is symlinked.Explanation: in JavaScript, multiple copies of the
constructs
library on disk are seen as independent, completely different libraries. As a consequence, the classConstruct
in each copy of theconstructs
library is seen as a different class, and an instance of one class will not test asinstanceof
the other class.npm install
will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of theconstructs
library can be accidentally installed, andinstanceof
will behave unpredictably. It is safest to avoid usinginstanceof
, and using this type-testing method instead.- Parameters:
x (
Any
) – Any object.- Return type:
bool
- Returns:
true if
x
is an object created from a class which extendsConstruct
.
AlexaSkillEventProperty
- class CfnFunction.AlexaSkillEventProperty(*, skill_id)
Bases:
object
- Parameters:
skill_id (
str
) –- 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 import aws_sam as sam alexa_skill_event_property = sam.CfnFunction.AlexaSkillEventProperty( skill_id="skillId" )
Attributes
ApiEventProperty
- class CfnFunction.ApiEventProperty(*, method, path, auth=None, request_model=None, request_parameters=None, rest_api_id=None)
Bases:
object
- Parameters:
method (
str
) –path (
str
) –auth (
Union
[IResolvable
,AuthProperty
,Dict
[str
,Any
],None
]) –request_model (
Union
[IResolvable
,RequestModelProperty
,Dict
[str
,Any
],None
]) –request_parameters (
Union
[IResolvable
,Sequence
[Union
[str
,IResolvable
,RequestParameterProperty
,Dict
[str
,Any
]]],None
]) –rest_api_id (
Optional
[str
]) –
- 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 import aws_sam as sam # custom_statements: Any api_event_property = sam.CfnFunction.ApiEventProperty( method="method", path="path", # the properties below are optional auth=sam.CfnFunction.AuthProperty( api_key_required=False, authorization_scopes=["authorizationScopes"], authorizer="authorizer", resource_policy=sam.CfnFunction.AuthResourcePolicyProperty( aws_account_blacklist=["awsAccountBlacklist"], aws_account_whitelist=["awsAccountWhitelist"], custom_statements=[custom_statements], intrinsic_vpc_blacklist=["intrinsicVpcBlacklist"], intrinsic_vpce_blacklist=["intrinsicVpceBlacklist"], intrinsic_vpce_whitelist=["intrinsicVpceWhitelist"], intrinsic_vpc_whitelist=["intrinsicVpcWhitelist"], ip_range_blacklist=["ipRangeBlacklist"], ip_range_whitelist=["ipRangeWhitelist"], source_vpc_blacklist=["sourceVpcBlacklist"], source_vpc_whitelist=["sourceVpcWhitelist"] ) ), request_model=sam.CfnFunction.RequestModelProperty( model="model", # the properties below are optional required=False, validate_body=False, validate_parameters=False ), request_parameters=["requestParameters"], rest_api_id="restApiId" )
Attributes
- auth
-
- Type:
see
- method
-
- Type:
see
- path
-
- Type:
see
- request_model
-
- Type:
see
- request_parameters
-
- Type:
see
AuthProperty
- class CfnFunction.AuthProperty(*, api_key_required=None, authorization_scopes=None, authorizer=None, resource_policy=None)
Bases:
object
- Parameters:
api_key_required (
Union
[bool
,IResolvable
,None
]) –authorization_scopes (
Optional
[Sequence
[str
]]) –authorizer (
Optional
[str
]) –resource_policy (
Union
[IResolvable
,AuthResourcePolicyProperty
,Dict
[str
,Any
],None
]) –
- 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 import aws_sam as sam # custom_statements: Any auth_property = sam.CfnFunction.AuthProperty( api_key_required=False, authorization_scopes=["authorizationScopes"], authorizer="authorizer", resource_policy=sam.CfnFunction.AuthResourcePolicyProperty( aws_account_blacklist=["awsAccountBlacklist"], aws_account_whitelist=["awsAccountWhitelist"], custom_statements=[custom_statements], intrinsic_vpc_blacklist=["intrinsicVpcBlacklist"], intrinsic_vpce_blacklist=["intrinsicVpceBlacklist"], intrinsic_vpce_whitelist=["intrinsicVpceWhitelist"], intrinsic_vpc_whitelist=["intrinsicVpcWhitelist"], ip_range_blacklist=["ipRangeBlacklist"], ip_range_whitelist=["ipRangeWhitelist"], source_vpc_blacklist=["sourceVpcBlacklist"], source_vpc_whitelist=["sourceVpcWhitelist"] ) )
Attributes
- api_key_required
-
- Type:
see
- authorization_scopes
-
- Type:
see
- authorizer
-
- Type:
see
AuthResourcePolicyProperty
- class CfnFunction.AuthResourcePolicyProperty(*, aws_account_blacklist=None, aws_account_whitelist=None, custom_statements=None, intrinsic_vpc_blacklist=None, intrinsic_vpce_blacklist=None, intrinsic_vpce_whitelist=None, intrinsic_vpc_whitelist=None, ip_range_blacklist=None, ip_range_whitelist=None, source_vpc_blacklist=None, source_vpc_whitelist=None)
Bases:
object
- Parameters:
aws_account_blacklist (
Optional
[Sequence
[str
]]) –aws_account_whitelist (
Optional
[Sequence
[str
]]) –custom_statements (
Union
[Sequence
[Any
],IResolvable
,None
]) –intrinsic_vpc_blacklist (
Optional
[Sequence
[str
]]) –intrinsic_vpce_blacklist (
Optional
[Sequence
[str
]]) –intrinsic_vpce_whitelist (
Optional
[Sequence
[str
]]) –intrinsic_vpc_whitelist (
Optional
[Sequence
[str
]]) –ip_range_blacklist (
Optional
[Sequence
[str
]]) –ip_range_whitelist (
Optional
[Sequence
[str
]]) –source_vpc_blacklist (
Optional
[Sequence
[str
]]) –source_vpc_whitelist (
Optional
[Sequence
[str
]]) –
- 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 import aws_sam as sam # custom_statements: Any auth_resource_policy_property = sam.CfnFunction.AuthResourcePolicyProperty( aws_account_blacklist=["awsAccountBlacklist"], aws_account_whitelist=["awsAccountWhitelist"], custom_statements=[custom_statements], intrinsic_vpc_blacklist=["intrinsicVpcBlacklist"], intrinsic_vpce_blacklist=["intrinsicVpceBlacklist"], intrinsic_vpce_whitelist=["intrinsicVpceWhitelist"], intrinsic_vpc_whitelist=["intrinsicVpcWhitelist"], ip_range_blacklist=["ipRangeBlacklist"], ip_range_whitelist=["ipRangeWhitelist"], source_vpc_blacklist=["sourceVpcBlacklist"], source_vpc_whitelist=["sourceVpcWhitelist"] )
Attributes
- aws_account_blacklist
-
- Type:
see
- aws_account_whitelist
-
- Type:
see
- custom_statements
-
- Type:
see
- intrinsic_vpc_blacklist
-
- Type:
see
- intrinsic_vpc_whitelist
-
- Type:
see
- intrinsic_vpce_blacklist
-
- Type:
see
- intrinsic_vpce_whitelist
-
- Type:
see
- ip_range_blacklist
-
- Type:
see
- ip_range_whitelist
-
- Type:
see
- source_vpc_blacklist
-
- Type:
see
BucketSAMPTProperty
- class CfnFunction.BucketSAMPTProperty(*, bucket_name)
Bases:
object
- Parameters:
bucket_name (
str
) –- 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 import aws_sam as sam bucket_sAMPTProperty = sam.CfnFunction.BucketSAMPTProperty( bucket_name="bucketName" )
Attributes
CloudWatchEventEventProperty
- class CfnFunction.CloudWatchEventEventProperty(*, pattern, input=None, input_path=None)
Bases:
object
- Parameters:
pattern (
Any
) –input (
Optional
[str
]) –input_path (
Optional
[str
]) –
- 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 import aws_sam as sam # pattern: Any cloud_watch_event_event_property = sam.CfnFunction.CloudWatchEventEventProperty( pattern=pattern, # the properties below are optional input="input", input_path="inputPath" )
Attributes
- input
-
- Type:
see
- input_path
-
- Type:
see
CloudWatchLogsEventProperty
- class CfnFunction.CloudWatchLogsEventProperty(*, filter_pattern, log_group_name)
Bases:
object
- Parameters:
filter_pattern (
str
) –log_group_name (
str
) –
- 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 import aws_sam as sam cloud_watch_logs_event_property = sam.CfnFunction.CloudWatchLogsEventProperty( filter_pattern="filterPattern", log_group_name="logGroupName" )
Attributes
- filter_pattern
-
- Type:
see
CognitoEventProperty
- class CfnFunction.CognitoEventProperty(*, trigger, user_pool)
Bases:
object
- Parameters:
trigger (
str
) –user_pool (
str
) –
- 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 import aws_sam as sam cognito_event_property = sam.CfnFunction.CognitoEventProperty( trigger="trigger", user_pool="userPool" )
Attributes
- trigger
-
- Type:
see
CollectionSAMPTProperty
- class CfnFunction.CollectionSAMPTProperty(*, collection_id)
Bases:
object
- Parameters:
collection_id (
str
) –- 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 import aws_sam as sam collection_sAMPTProperty = sam.CfnFunction.CollectionSAMPTProperty( collection_id="collectionId" )
Attributes
CorsConfigurationProperty
- class CfnFunction.CorsConfigurationProperty(*, allow_origin, allow_credentials=None, allow_headers=None, allow_methods=None, max_age=None)
Bases:
object
- Parameters:
allow_origin (
str
) –allow_credentials (
Union
[bool
,IResolvable
,None
]) –allow_headers (
Optional
[str
]) –allow_methods (
Optional
[str
]) –max_age (
Optional
[str
]) –
- 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 import aws_sam as sam cors_configuration_property = sam.CfnFunction.CorsConfigurationProperty( allow_origin="allowOrigin", # the properties below are optional allow_credentials=False, allow_headers="allowHeaders", allow_methods="allowMethods", max_age="maxAge" )
Attributes
- allow_credentials
-
- Type:
see
- allow_headers
-
- Type:
see
- allow_methods
-
- Type:
see
- allow_origin
-
- Type:
see
DeadLetterQueueProperty
- class CfnFunction.DeadLetterQueueProperty(*, target_arn, type)
Bases:
object
- Parameters:
target_arn (
str
) –type (
str
) –
- 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 import aws_sam as sam dead_letter_queue_property = sam.CfnFunction.DeadLetterQueueProperty( target_arn="targetArn", type="type" )
Attributes
- target_arn
-
- Type:
see
DeploymentPreferenceProperty
- class CfnFunction.DeploymentPreferenceProperty(*, alarms=None, enabled=None, hooks=None, role=None, type=None)
Bases:
object
- Parameters:
alarms (
Optional
[Sequence
[str
]]) –enabled (
Union
[bool
,IResolvable
,None
]) –hooks (
Union
[IResolvable
,HooksProperty
,Dict
[str
,Any
],None
]) –role (
Optional
[str
]) –type (
Optional
[str
]) –
- 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 import aws_sam as sam deployment_preference_property = sam.CfnFunction.DeploymentPreferenceProperty( alarms=["alarms"], enabled=False, hooks=sam.CfnFunction.HooksProperty( post_traffic="postTraffic", pre_traffic="preTraffic" ), role="role", type="type" )
Attributes
- alarms
-
- Type:
see
- enabled
-
- Type:
see
- hooks
-
- Type:
see
- role
-
- Type:
see
DestinationConfigProperty
- class CfnFunction.DestinationConfigProperty(*, on_failure)
Bases:
object
- Parameters:
on_failure (
Union
[IResolvable
,DestinationProperty
,Dict
[str
,Any
]]) –- 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 import aws_sam as sam destination_config_property = sam.CfnFunction.DestinationConfigProperty( on_failure=sam.CfnFunction.DestinationProperty( destination="destination", # the properties below are optional type="type" ) )
Attributes
DestinationProperty
- class CfnFunction.DestinationProperty(*, destination, type=None)
Bases:
object
- Parameters:
destination (
str
) –type (
Optional
[str
]) –
- 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 import aws_sam as sam destination_property = sam.CfnFunction.DestinationProperty( destination="destination", # the properties below are optional type="type" )
Attributes
- destination
-
- Type:
see
DomainSAMPTProperty
- class CfnFunction.DomainSAMPTProperty(*, domain_name)
Bases:
object
- Parameters:
domain_name (
str
) –- 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 import aws_sam as sam domain_sAMPTProperty = sam.CfnFunction.DomainSAMPTProperty( domain_name="domainName" )
Attributes
DynamoDBEventProperty
- class CfnFunction.DynamoDBEventProperty(*, starting_position, stream, batch_size=None, bisect_batch_on_function_error=None, destination_config=None, enabled=None, maximum_batching_window_in_seconds=None, maximum_record_age_in_seconds=None, maximum_retry_attempts=None, parallelization_factor=None)
Bases:
object
- Parameters:
starting_position (
str
) –stream (
str
) –batch_size (
Union
[int
,float
,None
]) –bisect_batch_on_function_error (
Union
[bool
,IResolvable
,None
]) –destination_config (
Union
[IResolvable
,DestinationConfigProperty
,Dict
[str
,Any
],None
]) –enabled (
Union
[bool
,IResolvable
,None
]) –maximum_batching_window_in_seconds (
Union
[int
,float
,None
]) –maximum_record_age_in_seconds (
Union
[int
,float
,None
]) –maximum_retry_attempts (
Union
[int
,float
,None
]) –parallelization_factor (
Union
[int
,float
,None
]) –
- 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 import aws_sam as sam dynamo_dBEvent_property = sam.CfnFunction.DynamoDBEventProperty( starting_position="startingPosition", stream="stream", # the properties below are optional batch_size=123, bisect_batch_on_function_error=False, destination_config=sam.CfnFunction.DestinationConfigProperty( on_failure=sam.CfnFunction.DestinationProperty( destination="destination", # the properties below are optional type="type" ) ), enabled=False, maximum_batching_window_in_seconds=123, maximum_record_age_in_seconds=123, maximum_retry_attempts=123, parallelization_factor=123 )
Attributes
- batch_size
-
- Type:
see
- bisect_batch_on_function_error
-
- Type:
see
- destination_config
-
- Type:
see
- enabled
-
- Type:
see
- maximum_batching_window_in_seconds
-
- Type:
see
- maximum_record_age_in_seconds
-
- Type:
see
- maximum_retry_attempts
-
- Type:
see
- parallelization_factor
-
- Type:
see
- starting_position
-
- Type:
see
EmptySAMPTProperty
- class CfnFunction.EmptySAMPTProperty
Bases:
object
- 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 import aws_sam as sam empty_sAMPTProperty = sam.CfnFunction.EmptySAMPTProperty()
EphemeralStorageProperty
- class CfnFunction.EphemeralStorageProperty(*, size)
Bases:
object
- Parameters:
size (
Union
[int
,float
]) –- 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 import aws_sam as sam ephemeral_storage_property = sam.CfnFunction.EphemeralStorageProperty( size=123 )
Attributes
EventBridgeRuleEventProperty
- class CfnFunction.EventBridgeRuleEventProperty(*, pattern, event_bus_name=None, input=None, input_path=None)
Bases:
object
- Parameters:
pattern (
Any
) –event_bus_name (
Optional
[str
]) –input (
Optional
[str
]) –input_path (
Optional
[str
]) –
- 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 import aws_sam as sam # pattern: Any event_bridge_rule_event_property = sam.CfnFunction.EventBridgeRuleEventProperty( pattern=pattern, # the properties below are optional event_bus_name="eventBusName", input="input", input_path="inputPath" )
Attributes
- event_bus_name
-
- Type:
see
- input
-
- Type:
see
- input_path
-
- Type:
see
EventInvokeConfigProperty
- class CfnFunction.EventInvokeConfigProperty(*, destination_config=None, maximum_event_age_in_seconds=None, maximum_retry_attempts=None)
Bases:
object
- Parameters:
destination_config (
Union
[IResolvable
,EventInvokeDestinationConfigProperty
,Dict
[str
,Any
],None
]) –maximum_event_age_in_seconds (
Union
[int
,float
,None
]) –maximum_retry_attempts (
Union
[int
,float
,None
]) –
- 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 import aws_sam as sam event_invoke_config_property = sam.CfnFunction.EventInvokeConfigProperty( destination_config=sam.CfnFunction.EventInvokeDestinationConfigProperty( on_failure=sam.CfnFunction.DestinationProperty( destination="destination", # the properties below are optional type="type" ), on_success=sam.CfnFunction.DestinationProperty( destination="destination", # the properties below are optional type="type" ) ), maximum_event_age_in_seconds=123, maximum_retry_attempts=123 )
Attributes
- destination_config
-
- Type:
see
- maximum_event_age_in_seconds
-
- Type:
see
EventInvokeDestinationConfigProperty
- class CfnFunction.EventInvokeDestinationConfigProperty(*, on_failure, on_success)
Bases:
object
- Parameters:
on_failure (
Union
[IResolvable
,DestinationProperty
,Dict
[str
,Any
]]) –on_success (
Union
[IResolvable
,DestinationProperty
,Dict
[str
,Any
]]) –
- 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 import aws_sam as sam event_invoke_destination_config_property = sam.CfnFunction.EventInvokeDestinationConfigProperty( on_failure=sam.CfnFunction.DestinationProperty( destination="destination", # the properties below are optional type="type" ), on_success=sam.CfnFunction.DestinationProperty( destination="destination", # the properties below are optional type="type" ) )
Attributes
- on_failure
-
- Type:
see
EventSourceProperty
- class CfnFunction.EventSourceProperty(*, properties, type)
Bases:
object
- Parameters:
properties (
Union
[IResolvable
,AlexaSkillEventProperty
,Dict
[str
,Any
],ApiEventProperty
,CloudWatchEventEventProperty
,CloudWatchLogsEventProperty
,CognitoEventProperty
,DynamoDBEventProperty
,EventBridgeRuleEventProperty
,HttpApiEventProperty
,IoTRuleEventProperty
,KinesisEventProperty
,S3EventProperty
,ScheduleEventProperty
,SNSEventProperty
,SQSEventProperty
]) –type (
str
) –
- 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 import aws_sam as sam event_source_property = sam.CfnFunction.EventSourceProperty( properties=sam.CfnFunction.AlexaSkillEventProperty( skill_id="skillId" ), type="type" )
Attributes
- properties
-
- Type:
see
FileSystemConfigProperty
- class CfnFunction.FileSystemConfigProperty(*, arn=None, local_mount_path=None)
Bases:
object
- Parameters:
arn (
Optional
[str
]) –local_mount_path (
Optional
[str
]) –
- 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 import aws_sam as sam file_system_config_property = sam.CfnFunction.FileSystemConfigProperty( arn="arn", local_mount_path="localMountPath" )
Attributes
- arn
-
- Type:
see
FunctionEnvironmentProperty
- class CfnFunction.FunctionEnvironmentProperty(*, variables)
Bases:
object
- Parameters:
variables (
Union
[Mapping
[str
,str
],IResolvable
]) –- 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 import aws_sam as sam function_environment_property = sam.CfnFunction.FunctionEnvironmentProperty( variables={ "variables_key": "variables" } )
Attributes
FunctionSAMPTProperty
- class CfnFunction.FunctionSAMPTProperty(*, function_name)
Bases:
object
- Parameters:
function_name (
str
) –- 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 import aws_sam as sam function_sAMPTProperty = sam.CfnFunction.FunctionSAMPTProperty( function_name="functionName" )
Attributes
FunctionUrlConfigProperty
- class CfnFunction.FunctionUrlConfigProperty(*, auth_type, cors=None, invoke_mode=None)
Bases:
object
- Parameters:
auth_type (
str
) –cors (
Union
[str
,IResolvable
,CorsConfigurationProperty
,Dict
[str
,Any
],None
]) –invoke_mode (
Optional
[str
]) –
- 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 import aws_sam as sam function_url_config_property = sam.CfnFunction.FunctionUrlConfigProperty( auth_type="authType", # the properties below are optional cors="cors", invoke_mode="invokeMode" )
Attributes
- auth_type
-
- Type:
see
- cors
-
- Type:
see
HooksProperty
- class CfnFunction.HooksProperty(*, post_traffic=None, pre_traffic=None)
Bases:
object
- Parameters:
post_traffic (
Optional
[str
]) –pre_traffic (
Optional
[str
]) –
- 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 import aws_sam as sam hooks_property = sam.CfnFunction.HooksProperty( post_traffic="postTraffic", pre_traffic="preTraffic" )
Attributes
- post_traffic
-
- Type:
see
HttpApiEventProperty
- class CfnFunction.HttpApiEventProperty(*, api_id=None, auth=None, method=None, path=None, payload_format_version=None, route_settings=None, timeout_in_millis=None)
Bases:
object
- Parameters:
api_id (
Optional
[str
]) –auth (
Union
[IResolvable
,HttpApiFunctionAuthProperty
,Dict
[str
,Any
],None
]) –method (
Optional
[str
]) –path (
Optional
[str
]) –payload_format_version (
Optional
[str
]) –route_settings (
Union
[IResolvable
,RouteSettingsProperty
,Dict
[str
,Any
],None
]) –timeout_in_millis (
Union
[int
,float
,None
]) –
- 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 import aws_sam as sam http_api_event_property = sam.CfnFunction.HttpApiEventProperty( api_id="apiId", auth=sam.CfnFunction.HttpApiFunctionAuthProperty( authorization_scopes=["authorizationScopes"], authorizer="authorizer" ), method="method", path="path", payload_format_version="payloadFormatVersion", route_settings=sam.CfnFunction.RouteSettingsProperty( data_trace_enabled=False, detailed_metrics_enabled=False, logging_level="loggingLevel", throttling_burst_limit=123, throttling_rate_limit=123 ), timeout_in_millis=123 )
Attributes
- api_id
-
- Type:
see
- auth
-
- Type:
see
- method
-
- Type:
see
- path
-
- Type:
see
- payload_format_version
-
- Type:
see
- route_settings
-
- Type:
see
HttpApiFunctionAuthProperty
- class CfnFunction.HttpApiFunctionAuthProperty(*, authorization_scopes=None, authorizer=None)
Bases:
object
- Parameters:
authorization_scopes (
Optional
[Sequence
[str
]]) –authorizer (
Optional
[str
]) –
- 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 import aws_sam as sam http_api_function_auth_property = sam.CfnFunction.HttpApiFunctionAuthProperty( authorization_scopes=["authorizationScopes"], authorizer="authorizer" )
Attributes
- authorization_scopes
-
- Type:
see
IAMPolicyDocumentProperty
- class CfnFunction.IAMPolicyDocumentProperty(*, statement, version=None)
Bases:
object
- Parameters:
statement (
Any
) –version (
Optional
[str
]) –
- 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 import aws_sam as sam # statement: Any i_aMPolicy_document_property = { "statement": statement, # the properties below are optional "version": "version" }
Attributes
- statement
-
- Type:
see
IdentitySAMPTProperty
- class CfnFunction.IdentitySAMPTProperty(*, identity_name)
Bases:
object
- Parameters:
identity_name (
str
) –- 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 import aws_sam as sam identity_sAMPTProperty = sam.CfnFunction.IdentitySAMPTProperty( identity_name="identityName" )
Attributes
ImageConfigProperty
- class CfnFunction.ImageConfigProperty(*, command=None, entry_point=None, working_directory=None)
Bases:
object
- Parameters:
command (
Optional
[Sequence
[str
]]) –entry_point (
Optional
[Sequence
[str
]]) –working_directory (
Optional
[str
]) –
- 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 import aws_sam as sam image_config_property = sam.CfnFunction.ImageConfigProperty( command=["command"], entry_point=["entryPoint"], working_directory="workingDirectory" )
Attributes
- command
-
- Type:
see
- entry_point
-
- Type:
see
IoTRuleEventProperty
- class CfnFunction.IoTRuleEventProperty(*, sql, aws_iot_sql_version=None)
Bases:
object
- Parameters:
sql (
str
) –aws_iot_sql_version (
Optional
[str
]) –
- 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 import aws_sam as sam io_tRule_event_property = sam.CfnFunction.IoTRuleEventProperty( sql="sql", # the properties below are optional aws_iot_sql_version="awsIotSqlVersion" )
Attributes
- aws_iot_sql_version
-
- Type:
see
KeySAMPTProperty
- class CfnFunction.KeySAMPTProperty(*, key_id)
Bases:
object
- Parameters:
key_id (
str
) –- 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 import aws_sam as sam key_sAMPTProperty = sam.CfnFunction.KeySAMPTProperty( key_id="keyId" )
Attributes
KinesisEventProperty
- class CfnFunction.KinesisEventProperty(*, starting_position, stream, batch_size=None, enabled=None, function_response_types=None)
Bases:
object
- Parameters:
starting_position (
str
) –stream (
str
) –batch_size (
Union
[int
,float
,None
]) –enabled (
Union
[bool
,IResolvable
,None
]) –function_response_types (
Optional
[Sequence
[str
]]) –
- 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 import aws_sam as sam kinesis_event_property = sam.CfnFunction.KinesisEventProperty( starting_position="startingPosition", stream="stream", # the properties below are optional batch_size=123, enabled=False, function_response_types=["functionResponseTypes"] )
Attributes
- batch_size
-
- Type:
see
- enabled
-
- Type:
see
- function_response_types
-
- Type:
see
- starting_position
-
- Type:
see
LogGroupSAMPTProperty
- class CfnFunction.LogGroupSAMPTProperty(*, log_group_name)
Bases:
object
- Parameters:
log_group_name (
str
) –- 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 import aws_sam as sam log_group_sAMPTProperty = sam.CfnFunction.LogGroupSAMPTProperty( log_group_name="logGroupName" )
Attributes
ParameterNameSAMPTProperty
- class CfnFunction.ParameterNameSAMPTProperty(*, parameter_name)
Bases:
object
- Parameters:
parameter_name (
str
) –- 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 import aws_sam as sam parameter_name_sAMPTProperty = sam.CfnFunction.ParameterNameSAMPTProperty( parameter_name="parameterName" )
Attributes
ProvisionedConcurrencyConfigProperty
- class CfnFunction.ProvisionedConcurrencyConfigProperty(*, provisioned_concurrent_executions)
Bases:
object
- Parameters:
provisioned_concurrent_executions (
str
) –- 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 import aws_sam as sam provisioned_concurrency_config_property = sam.CfnFunction.ProvisionedConcurrencyConfigProperty( provisioned_concurrent_executions="provisionedConcurrentExecutions" )
Attributes
QueueSAMPTProperty
- class CfnFunction.QueueSAMPTProperty(*, queue_name)
Bases:
object
- Parameters:
queue_name (
str
) –- 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 import aws_sam as sam queue_sAMPTProperty = sam.CfnFunction.QueueSAMPTProperty( queue_name="queueName" )
Attributes
RequestModelProperty
- class CfnFunction.RequestModelProperty(*, model, required=None, validate_body=None, validate_parameters=None)
Bases:
object
- Parameters:
model (
str
) –required (
Union
[bool
,IResolvable
,None
]) –validate_body (
Union
[bool
,IResolvable
,None
]) –validate_parameters (
Union
[bool
,IResolvable
,None
]) –
- 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 import aws_sam as sam request_model_property = sam.CfnFunction.RequestModelProperty( model="model", # the properties below are optional required=False, validate_body=False, validate_parameters=False )
Attributes
- model
-
- Type:
see
- required
-
- Type:
see
- validate_body
-
- Type:
see
RequestParameterProperty
- class CfnFunction.RequestParameterProperty(*, caching=None, required=None)
Bases:
object
- Parameters:
caching (
Union
[bool
,IResolvable
,None
]) –required (
Union
[bool
,IResolvable
,None
]) –
- 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 import aws_sam as sam request_parameter_property = sam.CfnFunction.RequestParameterProperty( caching=False, required=False )
Attributes
- caching
-
- Type:
see
RouteSettingsProperty
- class CfnFunction.RouteSettingsProperty(*, data_trace_enabled=None, detailed_metrics_enabled=None, logging_level=None, throttling_burst_limit=None, throttling_rate_limit=None)
Bases:
object
- Parameters:
data_trace_enabled (
Union
[bool
,IResolvable
,None
]) –detailed_metrics_enabled (
Union
[bool
,IResolvable
,None
]) –logging_level (
Optional
[str
]) –throttling_burst_limit (
Union
[int
,float
,None
]) –throttling_rate_limit (
Union
[int
,float
,None
]) –
- 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 import aws_sam as sam route_settings_property = sam.CfnFunction.RouteSettingsProperty( data_trace_enabled=False, detailed_metrics_enabled=False, logging_level="loggingLevel", throttling_burst_limit=123, throttling_rate_limit=123 )
Attributes
- data_trace_enabled
-
- Type:
see
- detailed_metrics_enabled
-
- Type:
see
- logging_level
-
- Type:
see
- throttling_burst_limit
-
- Type:
see
S3EventProperty
- class CfnFunction.S3EventProperty(*, bucket, events, filter=None)
Bases:
object
- Parameters:
bucket (
str
) –events (
str
) –filter (
Union
[IResolvable
,S3NotificationFilterProperty
,Dict
[str
,Any
],None
]) –
- 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 import aws_sam as sam s3_event_property = sam.CfnFunction.S3EventProperty( bucket="bucket", events="events", # the properties below are optional filter=sam.CfnFunction.S3NotificationFilterProperty( s3_key=sam.CfnFunction.S3KeyFilterProperty( rules=[sam.CfnFunction.S3KeyFilterRuleProperty( name="name", value="value" )] ) ) )
Attributes
- bucket
-
- Type:
see
- events
-
- Type:
see
S3KeyFilterProperty
- class CfnFunction.S3KeyFilterProperty(*, rules)
Bases:
object
- Parameters:
rules (
Union
[IResolvable
,Sequence
[Union
[IResolvable
,S3KeyFilterRuleProperty
,Dict
[str
,Any
]]]]) –- 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 import aws_sam as sam s3_key_filter_property = sam.CfnFunction.S3KeyFilterProperty( rules=[sam.CfnFunction.S3KeyFilterRuleProperty( name="name", value="value" )] )
Attributes
S3KeyFilterRuleProperty
- class CfnFunction.S3KeyFilterRuleProperty(*, name, value)
Bases:
object
- Parameters:
name (
str
) –value (
str
) –
- 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 import aws_sam as sam s3_key_filter_rule_property = sam.CfnFunction.S3KeyFilterRuleProperty( name="name", value="value" )
Attributes
- name
-
- Type:
see
S3LocationProperty
- class CfnFunction.S3LocationProperty(*, bucket, key, version=None)
Bases:
object
- Parameters:
bucket (
str
) –key (
str
) –version (
Union
[int
,float
,None
]) –
- 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 import aws_sam as sam s3_location_property = sam.CfnFunction.S3LocationProperty( bucket="bucket", key="key", # the properties below are optional version=123 )
Attributes
- bucket
-
- Type:
see
- key
-
- Type:
see
S3NotificationFilterProperty
- class CfnFunction.S3NotificationFilterProperty(*, s3_key)
Bases:
object
- Parameters:
s3_key (
Union
[IResolvable
,S3KeyFilterProperty
,Dict
[str
,Any
]]) –- 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 import aws_sam as sam s3_notification_filter_property = sam.CfnFunction.S3NotificationFilterProperty( s3_key=sam.CfnFunction.S3KeyFilterProperty( rules=[sam.CfnFunction.S3KeyFilterRuleProperty( name="name", value="value" )] ) )
Attributes
SAMPolicyTemplateProperty
- class CfnFunction.SAMPolicyTemplateProperty(*, ami_describe_policy=None, aws_secrets_manager_get_secret_value_policy=None, cloud_formation_describe_stacks_policy=None, cloud_watch_put_metric_policy=None, dynamo_db_crud_policy=None, dynamo_db_read_policy=None, dynamo_db_stream_read_policy=None, dynamo_db_write_policy=None, ec2_describe_policy=None, elasticsearch_http_post_policy=None, filter_log_events_policy=None, kinesis_crud_policy=None, kinesis_stream_read_policy=None, kms_decrypt_policy=None, lambda_invoke_policy=None, rekognition_detect_only_policy=None, rekognition_labels_policy=None, rekognition_no_data_access_policy=None, rekognition_read_policy=None, rekognition_write_only_access_policy=None, s3_crud_policy=None, s3_read_policy=None, s3_write_policy=None, ses_bulk_templated_crud_policy=None, ses_crud_policy=None, ses_email_template_crud_policy=None, ses_send_bounce_policy=None, sns_crud_policy=None, sns_publish_message_policy=None, sqs_poller_policy=None, sqs_send_message_policy=None, ssm_parameter_read_policy=None, step_functions_execution_policy=None, vpc_access_policy=None)
Bases:
object
- Parameters:
ami_describe_policy (
Union
[IResolvable
,EmptySAMPTProperty
,Dict
[str
,Any
],None
]) –aws_secrets_manager_get_secret_value_policy (
Union
[IResolvable
,SecretArnSAMPTProperty
,Dict
[str
,Any
],None
]) –cloud_formation_describe_stacks_policy (
Union
[IResolvable
,EmptySAMPTProperty
,Dict
[str
,Any
],None
]) –cloud_watch_put_metric_policy (
Union
[IResolvable
,EmptySAMPTProperty
,Dict
[str
,Any
],None
]) –dynamo_db_crud_policy (
Union
[IResolvable
,TableSAMPTProperty
,Dict
[str
,Any
],None
]) –dynamo_db_read_policy (
Union
[IResolvable
,TableSAMPTProperty
,Dict
[str
,Any
],None
]) –dynamo_db_stream_read_policy (
Union
[IResolvable
,TableStreamSAMPTProperty
,Dict
[str
,Any
],None
]) –dynamo_db_write_policy (
Union
[IResolvable
,TableSAMPTProperty
,Dict
[str
,Any
],None
]) –ec2_describe_policy (
Union
[IResolvable
,EmptySAMPTProperty
,Dict
[str
,Any
],None
]) –elasticsearch_http_post_policy (
Union
[IResolvable
,DomainSAMPTProperty
,Dict
[str
,Any
],None
]) –filter_log_events_policy (
Union
[IResolvable
,LogGroupSAMPTProperty
,Dict
[str
,Any
],None
]) –kinesis_crud_policy (
Union
[IResolvable
,StreamSAMPTProperty
,Dict
[str
,Any
],None
]) –kinesis_stream_read_policy (
Union
[IResolvable
,StreamSAMPTProperty
,Dict
[str
,Any
],None
]) –kms_decrypt_policy (
Union
[IResolvable
,KeySAMPTProperty
,Dict
[str
,Any
],None
]) –lambda_invoke_policy (
Union
[IResolvable
,FunctionSAMPTProperty
,Dict
[str
,Any
],None
]) –rekognition_detect_only_policy (
Union
[IResolvable
,EmptySAMPTProperty
,Dict
[str
,Any
],None
]) –rekognition_labels_policy (
Union
[IResolvable
,EmptySAMPTProperty
,Dict
[str
,Any
],None
]) –rekognition_no_data_access_policy (
Union
[IResolvable
,CollectionSAMPTProperty
,Dict
[str
,Any
],None
]) –rekognition_read_policy (
Union
[IResolvable
,CollectionSAMPTProperty
,Dict
[str
,Any
],None
]) –rekognition_write_only_access_policy (
Union
[IResolvable
,CollectionSAMPTProperty
,Dict
[str
,Any
],None
]) –s3_crud_policy (
Union
[IResolvable
,BucketSAMPTProperty
,Dict
[str
,Any
],None
]) –s3_read_policy (
Union
[IResolvable
,BucketSAMPTProperty
,Dict
[str
,Any
],None
]) –s3_write_policy (
Union
[IResolvable
,BucketSAMPTProperty
,Dict
[str
,Any
],None
]) –ses_bulk_templated_crud_policy (
Union
[IResolvable
,IdentitySAMPTProperty
,Dict
[str
,Any
],None
]) –ses_crud_policy (
Union
[IResolvable
,IdentitySAMPTProperty
,Dict
[str
,Any
],None
]) –ses_email_template_crud_policy (
Union
[IResolvable
,EmptySAMPTProperty
,Dict
[str
,Any
],None
]) –ses_send_bounce_policy (
Union
[IResolvable
,IdentitySAMPTProperty
,Dict
[str
,Any
],None
]) –sns_crud_policy (
Union
[IResolvable
,TopicSAMPTProperty
,Dict
[str
,Any
],None
]) –sns_publish_message_policy (
Union
[IResolvable
,TopicSAMPTProperty
,Dict
[str
,Any
],None
]) –sqs_poller_policy (
Union
[IResolvable
,QueueSAMPTProperty
,Dict
[str
,Any
],None
]) –sqs_send_message_policy (
Union
[IResolvable
,QueueSAMPTProperty
,Dict
[str
,Any
],None
]) –ssm_parameter_read_policy (
Union
[IResolvable
,ParameterNameSAMPTProperty
,Dict
[str
,Any
],None
]) –step_functions_execution_policy (
Union
[IResolvable
,StateMachineSAMPTProperty
,Dict
[str
,Any
],None
]) –vpc_access_policy (
Union
[IResolvable
,EmptySAMPTProperty
,Dict
[str
,Any
],None
]) –
- 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 import aws_sam as sam s_aMPolicy_template_property = sam.CfnFunction.SAMPolicyTemplateProperty( ami_describe_policy=sam.CfnFunction.EmptySAMPTProperty(), aws_secrets_manager_get_secret_value_policy=sam.CfnFunction.SecretArnSAMPTProperty( secret_arn="secretArn" ), cloud_formation_describe_stacks_policy=sam.CfnFunction.EmptySAMPTProperty(), cloud_watch_put_metric_policy=sam.CfnFunction.EmptySAMPTProperty(), dynamo_db_crud_policy=sam.CfnFunction.TableSAMPTProperty( table_name="tableName" ), dynamo_db_read_policy=sam.CfnFunction.TableSAMPTProperty( table_name="tableName" ), dynamo_db_stream_read_policy=sam.CfnFunction.TableStreamSAMPTProperty( stream_name="streamName", table_name="tableName" ), dynamo_db_write_policy=sam.CfnFunction.TableSAMPTProperty( table_name="tableName" ), ec2_describe_policy=sam.CfnFunction.EmptySAMPTProperty(), elasticsearch_http_post_policy=sam.CfnFunction.DomainSAMPTProperty( domain_name="domainName" ), filter_log_events_policy=sam.CfnFunction.LogGroupSAMPTProperty( log_group_name="logGroupName" ), kinesis_crud_policy=sam.CfnFunction.StreamSAMPTProperty( stream_name="streamName" ), kinesis_stream_read_policy=sam.CfnFunction.StreamSAMPTProperty( stream_name="streamName" ), kms_decrypt_policy=sam.CfnFunction.KeySAMPTProperty( key_id="keyId" ), lambda_invoke_policy=sam.CfnFunction.FunctionSAMPTProperty( function_name="functionName" ), rekognition_detect_only_policy=sam.CfnFunction.EmptySAMPTProperty(), rekognition_labels_policy=sam.CfnFunction.EmptySAMPTProperty(), rekognition_no_data_access_policy=sam.CfnFunction.CollectionSAMPTProperty( collection_id="collectionId" ), rekognition_read_policy=sam.CfnFunction.CollectionSAMPTProperty( collection_id="collectionId" ), rekognition_write_only_access_policy=sam.CfnFunction.CollectionSAMPTProperty( collection_id="collectionId" ), s3_crud_policy=sam.CfnFunction.BucketSAMPTProperty( bucket_name="bucketName" ), s3_read_policy=sam.CfnFunction.BucketSAMPTProperty( bucket_name="bucketName" ), s3_write_policy=sam.CfnFunction.BucketSAMPTProperty( bucket_name="bucketName" ), ses_bulk_templated_crud_policy=sam.CfnFunction.IdentitySAMPTProperty( identity_name="identityName" ), ses_crud_policy=sam.CfnFunction.IdentitySAMPTProperty( identity_name="identityName" ), ses_email_template_crud_policy=sam.CfnFunction.EmptySAMPTProperty(), ses_send_bounce_policy=sam.CfnFunction.IdentitySAMPTProperty( identity_name="identityName" ), sns_crud_policy=sam.CfnFunction.TopicSAMPTProperty( topic_name="topicName" ), sns_publish_message_policy=sam.CfnFunction.TopicSAMPTProperty( topic_name="topicName" ), sqs_poller_policy=sam.CfnFunction.QueueSAMPTProperty( queue_name="queueName" ), sqs_send_message_policy=sam.CfnFunction.QueueSAMPTProperty( queue_name="queueName" ), ssm_parameter_read_policy=sam.CfnFunction.ParameterNameSAMPTProperty( parameter_name="parameterName" ), step_functions_execution_policy=sam.CfnFunction.StateMachineSAMPTProperty( state_machine_name="stateMachineName" ), vpc_access_policy=sam.CfnFunction.EmptySAMPTProperty() )
Attributes
- ami_describe_policy
-
- Type:
see
- aws_secrets_manager_get_secret_value_policy
-
- Type:
see
- cloud_formation_describe_stacks_policy
-
- Type:
see
- cloud_watch_put_metric_policy
-
- Type:
see
- dynamo_db_crud_policy
-
- Type:
see
- dynamo_db_read_policy
-
- Type:
see
- dynamo_db_stream_read_policy
-
- Type:
see
- dynamo_db_write_policy
-
- Type:
see
- ec2_describe_policy
-
- Type:
see
- elasticsearch_http_post_policy
-
- Type:
see
- filter_log_events_policy
-
- Type:
see
- kinesis_crud_policy
-
- Type:
see
- kinesis_stream_read_policy
-
- Type:
see
- kms_decrypt_policy
-
- Type:
see
- lambda_invoke_policy
-
- Type:
see
- rekognition_detect_only_policy
-
- Type:
see
- rekognition_labels_policy
-
- Type:
see
- rekognition_no_data_access_policy
-
- Type:
see
- rekognition_read_policy
-
- Type:
see
- rekognition_write_only_access_policy
-
- Type:
see
- s3_crud_policy
-
- Type:
see
- s3_read_policy
-
- Type:
see
- s3_write_policy
-
- Type:
see
- ses_bulk_templated_crud_policy
-
- Type:
see
- ses_crud_policy
-
- Type:
see
- ses_email_template_crud_policy
-
- Type:
see
- ses_send_bounce_policy
-
- Type:
see
- sns_crud_policy
-
- Type:
see
- sns_publish_message_policy
-
- Type:
see
- sqs_poller_policy
-
- Type:
see
- sqs_send_message_policy
-
- Type:
see
- ssm_parameter_read_policy
-
- Type:
see
- step_functions_execution_policy
-
- Type:
see
SNSEventProperty
- class CfnFunction.SNSEventProperty(*, topic)
Bases:
object
- Parameters:
topic (
str
) –- 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 import aws_sam as sam s_nSEvent_property = sam.CfnFunction.SNSEventProperty( topic="topic" )
Attributes
SQSEventProperty
- class CfnFunction.SQSEventProperty(*, queue, batch_size=None, enabled=None)
Bases:
object
- Parameters:
queue (
str
) –batch_size (
Union
[int
,float
,None
]) –enabled (
Union
[bool
,IResolvable
,None
]) –
- 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 import aws_sam as sam s_qSEvent_property = sam.CfnFunction.SQSEventProperty( queue="queue", # the properties below are optional batch_size=123, enabled=False )
Attributes
- batch_size
-
- Type:
see
- enabled
-
- Type:
see
ScheduleEventProperty
- class CfnFunction.ScheduleEventProperty(*, schedule, description=None, enabled=None, input=None, name=None)
Bases:
object
- Parameters:
schedule (
str
) –description (
Optional
[str
]) –enabled (
Union
[bool
,IResolvable
,None
]) –input (
Optional
[str
]) –name (
Optional
[str
]) –
- 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 import aws_sam as sam schedule_event_property = sam.CfnFunction.ScheduleEventProperty( schedule="schedule", # the properties below are optional description="description", enabled=False, input="input", name="name" )
Attributes
- description
-
- Type:
see
- enabled
-
- Type:
see
- input
-
- Type:
see
- name
-
- Type:
see
SecretArnSAMPTProperty
- class CfnFunction.SecretArnSAMPTProperty(*, secret_arn)
Bases:
object
- Parameters:
secret_arn (
str
) –- 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 import aws_sam as sam secret_arn_sAMPTProperty = sam.CfnFunction.SecretArnSAMPTProperty( secret_arn="secretArn" )
Attributes
StateMachineSAMPTProperty
- class CfnFunction.StateMachineSAMPTProperty(*, state_machine_name)
Bases:
object
- Parameters:
state_machine_name (
str
) –- 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 import aws_sam as sam state_machine_sAMPTProperty = sam.CfnFunction.StateMachineSAMPTProperty( state_machine_name="stateMachineName" )
Attributes
StreamSAMPTProperty
- class CfnFunction.StreamSAMPTProperty(*, stream_name)
Bases:
object
- Parameters:
stream_name (
str
) –- 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 import aws_sam as sam stream_sAMPTProperty = sam.CfnFunction.StreamSAMPTProperty( stream_name="streamName" )
Attributes
TableSAMPTProperty
- class CfnFunction.TableSAMPTProperty(*, table_name)
Bases:
object
- Parameters:
table_name (
str
) –- 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 import aws_sam as sam table_sAMPTProperty = sam.CfnFunction.TableSAMPTProperty( table_name="tableName" )
Attributes
TableStreamSAMPTProperty
- class CfnFunction.TableStreamSAMPTProperty(*, stream_name, table_name)
Bases:
object
- Parameters:
stream_name (
str
) –table_name (
str
) –
- 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 import aws_sam as sam table_stream_sAMPTProperty = sam.CfnFunction.TableStreamSAMPTProperty( stream_name="streamName", table_name="tableName" )
Attributes
- stream_name
-
- Type:
see
TopicSAMPTProperty
- class CfnFunction.TopicSAMPTProperty(*, topic_name)
Bases:
object
- Parameters:
topic_name (
str
) –- 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 import aws_sam as sam topic_sAMPTProperty = sam.CfnFunction.TopicSAMPTProperty( topic_name="topicName" )
Attributes
VpcConfigProperty
- class CfnFunction.VpcConfigProperty(*, security_group_ids, subnet_ids)
Bases:
object
- Parameters:
security_group_ids (
Sequence
[str
]) –subnet_ids (
Sequence
[str
]) –
- 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 import aws_sam as sam vpc_config_property = sam.CfnFunction.VpcConfigProperty( security_group_ids=["securityGroupIds"], subnet_ids=["subnetIds"] )
Attributes
- security_group_ids
-
- Type:
see