// This project is for use in the workshop DOP 401: Get better at building AWS CDK constructs. package cdklabscdkcodepipelineextensions import ( _jsii_ "github.com/aws/jsii-runtime-go/runtime" _init_ "github.com/cdklabs/cdk-codepipeline-extensions/cdklabscdkcodepipelineextensions/jsii" "github.com/aws/aws-cdk-go/awscdk/v2" "github.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch" "github.com/aws/aws-cdk-go/awscdk/v2/awsec2" "github.com/aws/aws-cdk-go/awscdk/v2/awsiam" "github.com/aws/aws-cdk-go/awscdk/v2/awslambda" "github.com/aws/aws-cdk-go/awscdk/v2/awslogs" "github.com/aws/aws-cdk-go/awscdk/v2/awssns" "github.com/aws/aws-cdk-go/awscdk/v2/awssqs" "github.com/aws/constructs-go/constructs/v10" "github.com/cdklabs/cdk-codepipeline-extensions/cdklabscdkcodepipelineextensions/internal" ) // An AWS Lambda function which executes src/time-windows/calendar/calendar-setup. // Experimental. type CalendarSetupFunction interface { awslambda.Function // The architecture of this Lambda Function (this is an optional attribute and defaults to X86_64). // Experimental. Architecture() awslambda.Architecture // Whether the addPermission() call adds any permissions. // // True for new Lambdas, false for version $LATEST and imported Lambdas // from different accounts. // Experimental. CanCreatePermissions() *bool // Access the Connections object. // // Will fail if not a VPC-enabled Lambda Function. // Experimental. Connections() awsec2.Connections // Returns a `lambda.Version` which represents the current version of this Lambda function. A new version will be created every time the function's configuration changes. // // You can specify options for this version using the `currentVersionOptions` // prop when initializing the `lambda.Function`. // Experimental. CurrentVersion() awslambda.Version // The DLQ (as queue) associated with this Lambda Function (this is an optional attribute). // Experimental. DeadLetterQueue() awssqs.IQueue // The DLQ (as topic) associated with this Lambda Function (this is an optional attribute). // Experimental. DeadLetterTopic() awssns.ITopic // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. // Experimental. Env() *awscdk.ResourceEnvironment // ARN of this function. // Experimental. FunctionArn() *string // Name of this function. // Experimental. FunctionName() *string // The principal this Lambda Function is running as. // Experimental. GrantPrincipal() awsiam.IPrincipal // Whether or not this Lambda function was bound to a VPC. // // If this is is `false`, trying to access the `connections` object will fail. // Experimental. IsBoundToVpc() *bool // The `$LATEST` version of this function. // // Note that this is reference to a non-specific AWS Lambda version, which // means the function this version refers to can return different results in // different invocations. // // To obtain a reference to an explicit version which references the current // function configuration, use `lambdaFunction.currentVersion` instead. // Experimental. LatestVersion() awslambda.IVersion // The LogGroup where the Lambda function's logs are made available. // // If either `logRetention` is set or this property is called, a CloudFormation custom resource is added to the stack that // pre-creates the log group as part of the stack deployment, if it already doesn't exist, and sets the correct log retention // period (never expire, by default). // // Further, if the log group already exists and the `logRetention` is not set, the custom resource will reset the log retention // to never expire even if it was configured with a different value. // Experimental. LogGroup() awslogs.ILogGroup // The tree node. // Experimental. Node() constructs.Node // The construct node where permissions are attached. // Experimental. PermissionsNode() constructs.Node // Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by CloudFormation // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. // Experimental. PhysicalName() *string // The ARN(s) to put into the resource field of the generated IAM policy for grantInvoke(). // Experimental. ResourceArnsForGrantInvoke() *[]*string // Execution role associated with this function. // Experimental. Role() awsiam.IRole // The runtime configured for this lambda. // Experimental. Runtime() awslambda.Runtime // The stack in which this resource is defined. // Experimental. Stack() awscdk.Stack // The timeout configured for this lambda. // Experimental. Timeout() awscdk.Duration // Defines an alias for this function. // // The alias will automatically be updated to point to the latest version of // the function as it is being updated during a deployment. // // ```ts // declare const fn: lambda.Function; // // fn.addAlias('Live'); // // // Is equivalent to // // new lambda.Alias(this, 'AliasLive', { // aliasName: 'Live', // version: fn.currentVersion, // }); // ```. // Experimental. AddAlias(aliasName *string, options *awslambda.AliasOptions) awslambda.Alias // Adds an environment variable to this Lambda function. // // If this is a ref to a Lambda function, this operation results in a no-op. // Experimental. AddEnvironment(key *string, value *string, options *awslambda.EnvironmentOptions) awslambda.Function // Adds an event source to this function. // // Event sources are implemented in the @aws-cdk/aws-lambda-event-sources module. // // The following example adds an SQS Queue as an event source: // ``` // import { SqsEventSource } from '@aws-cdk/aws-lambda-event-sources'; // myFunction.addEventSource(new SqsEventSource(myQueue)); // ```. // Experimental. AddEventSource(source awslambda.IEventSource) // Adds an event source that maps to this AWS Lambda function. // Experimental. AddEventSourceMapping(id *string, options *awslambda.EventSourceMappingOptions) awslambda.EventSourceMapping // Adds a url to this lambda function. // Experimental. AddFunctionUrl(options *awslambda.FunctionUrlOptions) awslambda.FunctionUrl // Adds one or more Lambda Layers to this Lambda function. // Experimental. AddLayers(layers ...awslambda.ILayerVersion) // Adds a permission to the Lambda resource policy. // See: Permission for details. // // Experimental. AddPermission(id *string, permission *awslambda.Permission) // Adds a statement to the IAM role assumed by the instance. // Experimental. AddToRolePolicy(statement awsiam.PolicyStatement) // Apply the given removal policy to this resource. // // 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`). // Experimental. ApplyRemovalPolicy(policy awscdk.RemovalPolicy) // Configures options for asynchronous invocation. // Experimental. ConfigureAsyncInvoke(options *awslambda.EventInvokeConfigOptions) // A warning will be added to functions under the following conditions: - permissions that include `lambda:InvokeFunction` are added to the unqualified function. // // - function.currentVersion is invoked before or after the permission is created. // // This applies only to permissions on Lambda functions, not versions or aliases. // This function is overridden as a noOp for QualifiedFunctionBase. // Experimental. ConsiderWarningOnInvokeFunctionPermissions(scope constructs.Construct, action *string) // Experimental. GeneratePhysicalName() *string // Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`). // // Normally, this token will resolve to `arnAttr`, but if the resource is // referenced across environments, `arnComponents` will be used to synthesize // a concrete ARN with the resource's physical name. Make sure to reference // `this.physicalName` in `arnComponents`. // Experimental. GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string // Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`). // // Normally, this token will resolve to `nameAttr`, but if the resource is // referenced across environments, it will be resolved to `this.physicalName`, // which will be a concrete name. // Experimental. GetResourceNameAttribute(nameAttr *string) *string // Grant the given identity permissions to invoke this Lambda. // Experimental. GrantInvoke(grantee awsiam.IGrantable) awsiam.Grant // Grant the given identity permissions to invoke this Lambda Function URL. // Experimental. GrantInvokeUrl(grantee awsiam.IGrantable) awsiam.Grant // Return the given named metric for this Function. // Experimental. Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric // How long execution of this Lambda takes. // // Average over 5 minutes. // Experimental. MetricDuration(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // How many invocations of this Lambda fail. // // Sum over 5 minutes. // Experimental. MetricErrors(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // How often this Lambda is invoked. // // Sum over 5 minutes. // Experimental. MetricInvocations(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // How often this Lambda is throttled. // // Sum over 5 minutes. // Experimental. MetricThrottles(props *awscloudwatch.MetricOptions) awscloudwatch.Metric // Returns a string representation of this construct. // Experimental. ToString() *string // Experimental. WarnInvokeFunctionPermissions(scope constructs.Construct) } // The jsii proxy struct for CalendarSetupFunction type jsiiProxy_CalendarSetupFunction struct { internal.Type__awslambdaFunction } func (j *jsiiProxy_CalendarSetupFunction) Architecture() awslambda.Architecture { var returns awslambda.Architecture _jsii_.Get( j, "architecture", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) CanCreatePermissions() *bool { var returns *bool _jsii_.Get( j, "canCreatePermissions", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) Connections() awsec2.Connections { var returns awsec2.Connections _jsii_.Get( j, "connections", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) CurrentVersion() awslambda.Version { var returns awslambda.Version _jsii_.Get( j, "currentVersion", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) DeadLetterQueue() awssqs.IQueue { var returns awssqs.IQueue _jsii_.Get( j, "deadLetterQueue", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) DeadLetterTopic() awssns.ITopic { var returns awssns.ITopic _jsii_.Get( j, "deadLetterTopic", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) Env() *awscdk.ResourceEnvironment { var returns *awscdk.ResourceEnvironment _jsii_.Get( j, "env", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) FunctionArn() *string { var returns *string _jsii_.Get( j, "functionArn", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) FunctionName() *string { var returns *string _jsii_.Get( j, "functionName", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) GrantPrincipal() awsiam.IPrincipal { var returns awsiam.IPrincipal _jsii_.Get( j, "grantPrincipal", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) IsBoundToVpc() *bool { var returns *bool _jsii_.Get( j, "isBoundToVpc", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) LatestVersion() awslambda.IVersion { var returns awslambda.IVersion _jsii_.Get( j, "latestVersion", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) LogGroup() awslogs.ILogGroup { var returns awslogs.ILogGroup _jsii_.Get( j, "logGroup", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) Node() constructs.Node { var returns constructs.Node _jsii_.Get( j, "node", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) PermissionsNode() constructs.Node { var returns constructs.Node _jsii_.Get( j, "permissionsNode", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) PhysicalName() *string { var returns *string _jsii_.Get( j, "physicalName", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) ResourceArnsForGrantInvoke() *[]*string { var returns *[]*string _jsii_.Get( j, "resourceArnsForGrantInvoke", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) Role() awsiam.IRole { var returns awsiam.IRole _jsii_.Get( j, "role", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) Runtime() awslambda.Runtime { var returns awslambda.Runtime _jsii_.Get( j, "runtime", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) Stack() awscdk.Stack { var returns awscdk.Stack _jsii_.Get( j, "stack", &returns, ) return returns } func (j *jsiiProxy_CalendarSetupFunction) Timeout() awscdk.Duration { var returns awscdk.Duration _jsii_.Get( j, "timeout", &returns, ) return returns } // Experimental. func NewCalendarSetupFunction(scope constructs.Construct, id *string, props *CalendarSetupFunctionProps) CalendarSetupFunction { _init_.Initialize() if err := validateNewCalendarSetupFunctionParameters(scope, id, props); err != nil { panic(err) } j := jsiiProxy_CalendarSetupFunction{} _jsii_.Create( "@cdklabs/cdk-codepipeline-extensions.CalendarSetupFunction", []interface{}{scope, id, props}, &j, ) return &j } // Experimental. func NewCalendarSetupFunction_Override(c CalendarSetupFunction, scope constructs.Construct, id *string, props *CalendarSetupFunctionProps) { _init_.Initialize() _jsii_.Create( "@cdklabs/cdk-codepipeline-extensions.CalendarSetupFunction", []interface{}{scope, id, props}, c, ) } // Record whether specific properties in the `AWS::Lambda::Function` resource should also be associated to the Version resource. // // See 'currentVersion' section in the module README for more details. // Experimental. func CalendarSetupFunction_ClassifyVersionProperty(propertyName *string, locked *bool) { _init_.Initialize() if err := validateCalendarSetupFunction_ClassifyVersionPropertyParameters(propertyName, locked); err != nil { panic(err) } _jsii_.StaticInvokeVoid( "@cdklabs/cdk-codepipeline-extensions.CalendarSetupFunction", "classifyVersionProperty", []interface{}{propertyName, locked}, ) } // Import a lambda function into the CDK using its ARN. // Experimental. func CalendarSetupFunction_FromFunctionArn(scope constructs.Construct, id *string, functionArn *string) awslambda.IFunction { _init_.Initialize() if err := validateCalendarSetupFunction_FromFunctionArnParameters(scope, id, functionArn); err != nil { panic(err) } var returns awslambda.IFunction _jsii_.StaticInvoke( "@cdklabs/cdk-codepipeline-extensions.CalendarSetupFunction", "fromFunctionArn", []interface{}{scope, id, functionArn}, &returns, ) return returns } // Creates a Lambda function object which represents a function not defined within this stack. // Experimental. func CalendarSetupFunction_FromFunctionAttributes(scope constructs.Construct, id *string, attrs *awslambda.FunctionAttributes) awslambda.IFunction { _init_.Initialize() if err := validateCalendarSetupFunction_FromFunctionAttributesParameters(scope, id, attrs); err != nil { panic(err) } var returns awslambda.IFunction _jsii_.StaticInvoke( "@cdklabs/cdk-codepipeline-extensions.CalendarSetupFunction", "fromFunctionAttributes", []interface{}{scope, id, attrs}, &returns, ) return returns } // Import a lambda function into the CDK using its name. // Experimental. func CalendarSetupFunction_FromFunctionName(scope constructs.Construct, id *string, functionName *string) awslambda.IFunction { _init_.Initialize() if err := validateCalendarSetupFunction_FromFunctionNameParameters(scope, id, functionName); err != nil { panic(err) } var returns awslambda.IFunction _jsii_.StaticInvoke( "@cdklabs/cdk-codepipeline-extensions.CalendarSetupFunction", "fromFunctionName", []interface{}{scope, id, functionName}, &returns, ) return returns } // Checks if `x` is a construct. // // Returns: true if `x` is an object created from a class which extends `Construct`. // Deprecated: use `x instanceof Construct` instead. func CalendarSetupFunction_IsConstruct(x interface{}) *bool { _init_.Initialize() if err := validateCalendarSetupFunction_IsConstructParameters(x); err != nil { panic(err) } var returns *bool _jsii_.StaticInvoke( "@cdklabs/cdk-codepipeline-extensions.CalendarSetupFunction", "isConstruct", []interface{}{x}, &returns, ) return returns } // Returns true if the construct was created by CDK, and false otherwise. // Experimental. func CalendarSetupFunction_IsOwnedResource(construct constructs.IConstruct) *bool { _init_.Initialize() if err := validateCalendarSetupFunction_IsOwnedResourceParameters(construct); err != nil { panic(err) } var returns *bool _jsii_.StaticInvoke( "@cdklabs/cdk-codepipeline-extensions.CalendarSetupFunction", "isOwnedResource", []interface{}{construct}, &returns, ) return returns } // Check whether the given construct is a Resource. // Experimental. func CalendarSetupFunction_IsResource(construct constructs.IConstruct) *bool { _init_.Initialize() if err := validateCalendarSetupFunction_IsResourceParameters(construct); err != nil { panic(err) } var returns *bool _jsii_.StaticInvoke( "@cdklabs/cdk-codepipeline-extensions.CalendarSetupFunction", "isResource", []interface{}{construct}, &returns, ) return returns } // Return the given named metric for this Lambda. // Experimental. func CalendarSetupFunction_MetricAll(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric { _init_.Initialize() if err := validateCalendarSetupFunction_MetricAllParameters(metricName, props); err != nil { panic(err) } var returns awscloudwatch.Metric _jsii_.StaticInvoke( "@cdklabs/cdk-codepipeline-extensions.CalendarSetupFunction", "metricAll", []interface{}{metricName, props}, &returns, ) return returns } // Metric for the number of concurrent executions across all Lambdas. // Experimental. func CalendarSetupFunction_MetricAllConcurrentExecutions(props *awscloudwatch.MetricOptions) awscloudwatch.Metric { _init_.Initialize() if err := validateCalendarSetupFunction_MetricAllConcurrentExecutionsParameters(props); err != nil { panic(err) } var returns awscloudwatch.Metric _jsii_.StaticInvoke( "@cdklabs/cdk-codepipeline-extensions.CalendarSetupFunction", "metricAllConcurrentExecutions", []interface{}{props}, &returns, ) return returns } // Metric for the Duration executing all Lambdas. // Experimental. func CalendarSetupFunction_MetricAllDuration(props *awscloudwatch.MetricOptions) awscloudwatch.Metric { _init_.Initialize() if err := validateCalendarSetupFunction_MetricAllDurationParameters(props); err != nil { panic(err) } var returns awscloudwatch.Metric _jsii_.StaticInvoke( "@cdklabs/cdk-codepipeline-extensions.CalendarSetupFunction", "metricAllDuration", []interface{}{props}, &returns, ) return returns } // Metric for the number of Errors executing all Lambdas. // Experimental. func CalendarSetupFunction_MetricAllErrors(props *awscloudwatch.MetricOptions) awscloudwatch.Metric { _init_.Initialize() if err := validateCalendarSetupFunction_MetricAllErrorsParameters(props); err != nil { panic(err) } var returns awscloudwatch.Metric _jsii_.StaticInvoke( "@cdklabs/cdk-codepipeline-extensions.CalendarSetupFunction", "metricAllErrors", []interface{}{props}, &returns, ) return returns } // Metric for the number of invocations of all Lambdas. // Experimental. func CalendarSetupFunction_MetricAllInvocations(props *awscloudwatch.MetricOptions) awscloudwatch.Metric { _init_.Initialize() if err := validateCalendarSetupFunction_MetricAllInvocationsParameters(props); err != nil { panic(err) } var returns awscloudwatch.Metric _jsii_.StaticInvoke( "@cdklabs/cdk-codepipeline-extensions.CalendarSetupFunction", "metricAllInvocations", []interface{}{props}, &returns, ) return returns } // Metric for the number of throttled invocations of all Lambdas. // Experimental. func CalendarSetupFunction_MetricAllThrottles(props *awscloudwatch.MetricOptions) awscloudwatch.Metric { _init_.Initialize() if err := validateCalendarSetupFunction_MetricAllThrottlesParameters(props); err != nil { panic(err) } var returns awscloudwatch.Metric _jsii_.StaticInvoke( "@cdklabs/cdk-codepipeline-extensions.CalendarSetupFunction", "metricAllThrottles", []interface{}{props}, &returns, ) return returns } // Metric for the number of unreserved concurrent executions across all Lambdas. // Experimental. func CalendarSetupFunction_MetricAllUnreservedConcurrentExecutions(props *awscloudwatch.MetricOptions) awscloudwatch.Metric { _init_.Initialize() if err := validateCalendarSetupFunction_MetricAllUnreservedConcurrentExecutionsParameters(props); err != nil { panic(err) } var returns awscloudwatch.Metric _jsii_.StaticInvoke( "@cdklabs/cdk-codepipeline-extensions.CalendarSetupFunction", "metricAllUnreservedConcurrentExecutions", []interface{}{props}, &returns, ) return returns } func (c *jsiiProxy_CalendarSetupFunction) AddAlias(aliasName *string, options *awslambda.AliasOptions) awslambda.Alias { if err := c.validateAddAliasParameters(aliasName, options); err != nil { panic(err) } var returns awslambda.Alias _jsii_.Invoke( c, "addAlias", []interface{}{aliasName, options}, &returns, ) return returns } func (c *jsiiProxy_CalendarSetupFunction) AddEnvironment(key *string, value *string, options *awslambda.EnvironmentOptions) awslambda.Function { if err := c.validateAddEnvironmentParameters(key, value, options); err != nil { panic(err) } var returns awslambda.Function _jsii_.Invoke( c, "addEnvironment", []interface{}{key, value, options}, &returns, ) return returns } func (c *jsiiProxy_CalendarSetupFunction) AddEventSource(source awslambda.IEventSource) { if err := c.validateAddEventSourceParameters(source); err != nil { panic(err) } _jsii_.InvokeVoid( c, "addEventSource", []interface{}{source}, ) } func (c *jsiiProxy_CalendarSetupFunction) AddEventSourceMapping(id *string, options *awslambda.EventSourceMappingOptions) awslambda.EventSourceMapping { if err := c.validateAddEventSourceMappingParameters(id, options); err != nil { panic(err) } var returns awslambda.EventSourceMapping _jsii_.Invoke( c, "addEventSourceMapping", []interface{}{id, options}, &returns, ) return returns } func (c *jsiiProxy_CalendarSetupFunction) AddFunctionUrl(options *awslambda.FunctionUrlOptions) awslambda.FunctionUrl { if err := c.validateAddFunctionUrlParameters(options); err != nil { panic(err) } var returns awslambda.FunctionUrl _jsii_.Invoke( c, "addFunctionUrl", []interface{}{options}, &returns, ) return returns } func (c *jsiiProxy_CalendarSetupFunction) AddLayers(layers ...awslambda.ILayerVersion) { args := []interface{}{} for _, a := range layers { args = append(args, a) } _jsii_.InvokeVoid( c, "addLayers", args, ) } func (c *jsiiProxy_CalendarSetupFunction) AddPermission(id *string, permission *awslambda.Permission) { if err := c.validateAddPermissionParameters(id, permission); err != nil { panic(err) } _jsii_.InvokeVoid( c, "addPermission", []interface{}{id, permission}, ) } func (c *jsiiProxy_CalendarSetupFunction) AddToRolePolicy(statement awsiam.PolicyStatement) { if err := c.validateAddToRolePolicyParameters(statement); err != nil { panic(err) } _jsii_.InvokeVoid( c, "addToRolePolicy", []interface{}{statement}, ) } func (c *jsiiProxy_CalendarSetupFunction) ApplyRemovalPolicy(policy awscdk.RemovalPolicy) { if err := c.validateApplyRemovalPolicyParameters(policy); err != nil { panic(err) } _jsii_.InvokeVoid( c, "applyRemovalPolicy", []interface{}{policy}, ) } func (c *jsiiProxy_CalendarSetupFunction) ConfigureAsyncInvoke(options *awslambda.EventInvokeConfigOptions) { if err := c.validateConfigureAsyncInvokeParameters(options); err != nil { panic(err) } _jsii_.InvokeVoid( c, "configureAsyncInvoke", []interface{}{options}, ) } func (c *jsiiProxy_CalendarSetupFunction) ConsiderWarningOnInvokeFunctionPermissions(scope constructs.Construct, action *string) { if err := c.validateConsiderWarningOnInvokeFunctionPermissionsParameters(scope, action); err != nil { panic(err) } _jsii_.InvokeVoid( c, "considerWarningOnInvokeFunctionPermissions", []interface{}{scope, action}, ) } func (c *jsiiProxy_CalendarSetupFunction) GeneratePhysicalName() *string { var returns *string _jsii_.Invoke( c, "generatePhysicalName", nil, // no parameters &returns, ) return returns } func (c *jsiiProxy_CalendarSetupFunction) GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string { if err := c.validateGetResourceArnAttributeParameters(arnAttr, arnComponents); err != nil { panic(err) } var returns *string _jsii_.Invoke( c, "getResourceArnAttribute", []interface{}{arnAttr, arnComponents}, &returns, ) return returns } func (c *jsiiProxy_CalendarSetupFunction) GetResourceNameAttribute(nameAttr *string) *string { if err := c.validateGetResourceNameAttributeParameters(nameAttr); err != nil { panic(err) } var returns *string _jsii_.Invoke( c, "getResourceNameAttribute", []interface{}{nameAttr}, &returns, ) return returns } func (c *jsiiProxy_CalendarSetupFunction) GrantInvoke(grantee awsiam.IGrantable) awsiam.Grant { if err := c.validateGrantInvokeParameters(grantee); err != nil { panic(err) } var returns awsiam.Grant _jsii_.Invoke( c, "grantInvoke", []interface{}{grantee}, &returns, ) return returns } func (c *jsiiProxy_CalendarSetupFunction) GrantInvokeUrl(grantee awsiam.IGrantable) awsiam.Grant { if err := c.validateGrantInvokeUrlParameters(grantee); err != nil { panic(err) } var returns awsiam.Grant _jsii_.Invoke( c, "grantInvokeUrl", []interface{}{grantee}, &returns, ) return returns } func (c *jsiiProxy_CalendarSetupFunction) Metric(metricName *string, props *awscloudwatch.MetricOptions) awscloudwatch.Metric { if err := c.validateMetricParameters(metricName, props); err != nil { panic(err) } var returns awscloudwatch.Metric _jsii_.Invoke( c, "metric", []interface{}{metricName, props}, &returns, ) return returns } func (c *jsiiProxy_CalendarSetupFunction) MetricDuration(props *awscloudwatch.MetricOptions) awscloudwatch.Metric { if err := c.validateMetricDurationParameters(props); err != nil { panic(err) } var returns awscloudwatch.Metric _jsii_.Invoke( c, "metricDuration", []interface{}{props}, &returns, ) return returns } func (c *jsiiProxy_CalendarSetupFunction) MetricErrors(props *awscloudwatch.MetricOptions) awscloudwatch.Metric { if err := c.validateMetricErrorsParameters(props); err != nil { panic(err) } var returns awscloudwatch.Metric _jsii_.Invoke( c, "metricErrors", []interface{}{props}, &returns, ) return returns } func (c *jsiiProxy_CalendarSetupFunction) MetricInvocations(props *awscloudwatch.MetricOptions) awscloudwatch.Metric { if err := c.validateMetricInvocationsParameters(props); err != nil { panic(err) } var returns awscloudwatch.Metric _jsii_.Invoke( c, "metricInvocations", []interface{}{props}, &returns, ) return returns } func (c *jsiiProxy_CalendarSetupFunction) MetricThrottles(props *awscloudwatch.MetricOptions) awscloudwatch.Metric { if err := c.validateMetricThrottlesParameters(props); err != nil { panic(err) } var returns awscloudwatch.Metric _jsii_.Invoke( c, "metricThrottles", []interface{}{props}, &returns, ) return returns } func (c *jsiiProxy_CalendarSetupFunction) ToString() *string { var returns *string _jsii_.Invoke( c, "toString", nil, // no parameters &returns, ) return returns } func (c *jsiiProxy_CalendarSetupFunction) WarnInvokeFunctionPermissions(scope constructs.Construct) { if err := c.validateWarnInvokeFunctionPermissionsParameters(scope); err != nil { panic(err) } _jsii_.InvokeVoid( c, "warnInvokeFunctionPermissions", []interface{}{scope}, ) }