Documentation ¶
Overview ¶
A construct for deploying a Lambda function that can be invoked every time unit less than one minute.
Index ¶
- func IteratorLambda_IsConstruct(x interface{}) *bool
- func LambdaSubminute_IsConstruct(x interface{}) *bool
- func NewIteratorLambda_Override(i IteratorLambda, scope constructs.Construct, name *string, ...)
- func NewLambdaSubminute_Override(l LambdaSubminute, parent constructs.Construct, name *string, ...)
- func NewSubminuteStateMachine_Override(s SubminuteStateMachine, scope constructs.Construct, id *string, ...)
- func SubminuteStateMachine_IsConstruct(x interface{}) *bool
- type IteratorLambda
- type IteratorLambdaProps
- type LambdaSubminute
- type LambdaSubminuteProps
- type SubminuteStateMachine
- type SubminuteStateMachineProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IteratorLambda_IsConstruct ¶
func IteratorLambda_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` 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 class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` 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 the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func LambdaSubminute_IsConstruct ¶
func LambdaSubminute_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` 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 class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` 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 the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func NewIteratorLambda_Override ¶
func NewIteratorLambda_Override(i IteratorLambda, scope constructs.Construct, name *string, props *IteratorLambdaProps)
func NewLambdaSubminute_Override ¶
func NewLambdaSubminute_Override(l LambdaSubminute, parent constructs.Construct, name *string, props *LambdaSubminuteProps)
func NewSubminuteStateMachine_Override ¶
func NewSubminuteStateMachine_Override(s SubminuteStateMachine, scope constructs.Construct, id *string, props *SubminuteStateMachineProps)
func SubminuteStateMachine_IsConstruct ¶
func SubminuteStateMachine_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` 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 class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` 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 the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
Types ¶
type IteratorLambda ¶
type IteratorLambda interface { constructs.Construct // A Lambda function that plays the role of the iterator. Function() awslambda.IFunction // The tree node. Node() constructs.Node // Returns a string representation of this construct. ToString() *string }
func NewIteratorLambda ¶
func NewIteratorLambda(scope constructs.Construct, name *string, props *IteratorLambdaProps) IteratorLambda
type IteratorLambdaProps ¶
type LambdaSubminute ¶
type LambdaSubminute interface { constructs.Construct // The Lambda function that plays the role of the iterator. IteratorFunction() awslambda.IFunction // The tree node. Node() constructs.Node // The ARN of the state machine that executes the target Lambda function per time unit less than one minute. StateMachineArn() *string // Returns a string representation of this construct. ToString() *string }
func NewLambdaSubminute ¶
func NewLambdaSubminute(parent constructs.Construct, name *string, props *LambdaSubminuteProps) LambdaSubminute
type LambdaSubminuteProps ¶
type LambdaSubminuteProps struct { // The Lambda function that is going to be executed per time unit less than one minute. TargetFunction awslambda.IFunction `field:"required" json:"targetFunction" yaml:"targetFunction"` // A pattern you want this statemachine to be executed. // See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html // // Default: cron(50/1 15-17 ? * * *) UTC+0 being run every minute starting from 15:00 PM to 17:00 PM. // CronjobExpression *string `field:"optional" json:"cronjobExpression" yaml:"cronjobExpression"` // How many times you intent to execute in a minute. // Default: 6. // Frequency *float64 `field:"optional" json:"frequency" yaml:"frequency"` // Seconds for an interval, the product of `frequency` and `intervalTime` should be approximagely 1 minute. // Default: 10. // IntervalTime *float64 `field:"optional" json:"intervalTime" yaml:"intervalTime"` }
type SubminuteStateMachine ¶
type SubminuteStateMachine interface { constructs.Construct // The tree node. Node() constructs.Node StateMachine() awsstepfunctions.StateMachine // Returns a string representation of this construct. ToString() *string }
func NewSubminuteStateMachine ¶
func NewSubminuteStateMachine(scope constructs.Construct, id *string, props *SubminuteStateMachineProps) SubminuteStateMachine
type SubminuteStateMachineProps ¶
type SubminuteStateMachineProps struct { // How many times you intent to execute in a minute. // Default: 6. // Frequency *float64 `field:"required" json:"frequency" yaml:"frequency"` // Seconds for an interval, the product of `frequency` and `intervalTime` should be approximagely 1 minute. // Default: 10. // IntervalTime *float64 `field:"required" json:"intervalTime" yaml:"intervalTime"` // the iterator Lambda function for the target Lambda function. IteratorFunction awslambda.IFunction `field:"required" json:"iteratorFunction" yaml:"iteratorFunction"` // the name of the state machine. StateMachineName *string `field:"required" json:"stateMachineName" yaml:"stateMachineName"` // the Lambda function that executes your intention. TargetFunction awslambda.IFunction `field:"required" json:"targetFunction" yaml:"targetFunction"` }