FunctionArgs class
The set of arguments for Function. The set of arguments for Function.
Constructors
-
FunctionArgs({required Input<
String> code, Input<String?> ? comment, Input<List< ? keyValueStoreAssociations, Input<String> ?>String?> ? name, Input<bool?> ? publish, required Input<String> runtime, Input<Map< ? tags})String, String> ?> -
Creates a new FunctionArgs.
codeSource code of the function. Must be between 1 and 40960 bytes.commentComment. Must not exceed 128 characters.keyValueStoreAssociationsList ofaws.cloudfront.KeyValueStoreARNs to be associated to the function. AWS limits associations to one key value store per function.nameUnique name for your CloudFront Function. Valid names contain only alphanumeric characters, hyphens, and underscores, and must be between 1 and 64 characters.publishWhether to publish creation/change as Live CloudFront Function Version. Defaults totrue.runtimeIdentifier of the function's runtime. Valid values arecloudfront-js-1.0andcloudfront-js-2.0.tagsMap of tags to assign to the resource. If configured with a providerdefaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.const -
FunctionArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
code
→ Input<
String> -
Source code of the function. Must be between 1 and 40960 bytes.
final
-
comment
→ Input<
String?> ? -
Comment. Must not exceed 128 characters.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
keyValueStoreAssociations
→ Input<
List< ?String> ?> -
List of
aws.cloudfront.KeyValueStoreARNs to be associated to the function. AWS limits associations to one key value store per function.final -
name
→ Input<
String?> ? -
Unique name for your CloudFront Function. Valid names contain only alphanumeric characters, hyphens, and underscores, and must be between 1 and 64 characters.
final
-
publish
→ Input<
bool?> ? -
Whether to publish creation/change as Live CloudFront Function Version. Defaults to
true.final -
runtime
→ Input<
String> -
Identifier of the function's runtime. Valid values are
cloudfront-js-1.0andcloudfront-js-2.0.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited