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<String>?>? keyValueStoreAssociations, Input<String?>? name, Input<bool?>? publish, required Input<String> runtime, Input<Map<String, String>?>? tags})
Creates a new FunctionArgs. code Source code of the function. Must be between 1 and 40960 bytes. comment Comment. Must not exceed 128 characters. keyValueStoreAssociations List of aws.cloudfront.KeyValueStore ARNs to be associated to the function. AWS limits associations to one key value store per function. name Unique name for your CloudFront Function. Valid names contain only alphanumeric characters, hyphens, and underscores, and must be between 1 and 64 characters. publish Whether to publish creation/change as Live CloudFront Function Version. Defaults to true. runtime Identifier of the function's runtime. Valid values are cloudfront-js-1.0 and cloudfront-js-2.0. tags Map of tags to assign to the resource. If configured with a provider defaultTags configuration 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.KeyValueStore ARNs 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.0 and cloudfront-js-2.0.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tags → Input<Map<String, String>?>?
Map of tags to assign to the resource. If configured with a provider defaultTags configuration 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