Skip to content
v2.278.0

MaintenanceWindowLambdaParametersProperty Struct ​

The MaintenanceWindowLambdaParameters property type specifies the parameters for a LAMBDA task type for a maintenance window task in AWS Systems Manager .

MaintenanceWindowLambdaParameters is a property of the TaskInvocationParameters property type.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ssm as ssm } from 'aws-cdk-lib';
const maintenanceWindowLambdaParametersProperty: ssm.CfnMaintenanceWindowTask.MaintenanceWindowLambdaParametersProperty = {
  clientContext: 'clientContext',
  payload: 'payload',
  qualifier: 'qualifier',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ssm as ssm

maintenance_window_lambda_parameters_property = ssm.CfnMaintenanceWindowTask.MaintenanceWindowLambdaParametersProperty(
    client_context="clientContext",
    payload="payload",
    qualifier="qualifier"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ssm.*;

MaintenanceWindowLambdaParametersProperty maintenanceWindowLambdaParametersProperty = MaintenanceWindowLambdaParametersProperty.builder()
        .clientContext("clientContext")
        .payload("payload")
        .qualifier("qualifier")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SSM;

var maintenanceWindowLambdaParametersProperty = new MaintenanceWindowLambdaParametersProperty {
    ClientContext = "clientContext",
    Payload = "payload",
    Qualifier = "qualifier"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

maintenanceWindowLambdaParametersProperty := &MaintenanceWindowLambdaParametersProperty{
	ClientContext: jsii.String("clientContext"),
	Payload: jsii.String("payload"),
	Qualifier: jsii.String("qualifier"),
}

Properties ​

clientContextoptionalstringclient_contextoptionalstrclientContextoptionalStringClientContextoptionalstringClientContextoptional*string #
Client-specific information to pass to the AWS Lambda function that you're invoking.

You can then use the context variable to process the client information in your AWS Lambda function.

payloadoptionalstringpayloadoptionalstrpayloadoptionalStringPayloadoptionalstringPayloadoptional*string #
JSON to provide to your AWS Lambda function as input.

Although Type is listed as "String" for this property, the payload content must be formatted as a Base64-encoded binary data object.

Length Constraint: 4096

qualifieroptionalstringqualifieroptionalstrqualifieroptionalStringQualifieroptionalstringQualifieroptional*string #
An AWS Lambda function version or alias name.
notes

If you specify a function version, the action uses the qualified function Amazon Resource Name (ARN) to invoke a specific Lambda function. If you specify an alias name, the action uses the alias ARN to invoke the Lambda function version that the alias points to.