Skip to content
v2.278.0

SqsActionProperty ​

Struct External

Describes an action to publish data to an Amazon SQS queue.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const sqsActionProperty: iot.CfnTopicRule.SqsActionProperty = {
  queueUrl: 'queueUrl',
  roleArn: 'roleArn',

  // the properties below are optional
  useBase64: false,
};
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_iot as iot

sqs_action_property = iot.CfnTopicRule.SqsActionProperty(
    queue_url="queueUrl",
    role_arn="roleArn",

    # the properties below are optional
    use_base64=False
)
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.iot.*;

SqsActionProperty sqsActionProperty = SqsActionProperty.builder()
        .queueUrl("queueUrl")
        .roleArn("roleArn")

        // the properties below are optional
        .useBase64(false)
        .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.IoT;

var sqsActionProperty = new SqsActionProperty {
    QueueUrl = "queueUrl",
    RoleArn = "roleArn",

    // the properties below are optional
    UseBase64 = false
};
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"

sqsActionProperty := &SqsActionProperty{
	QueueUrl: jsii.String("queueUrl"),
	RoleArn: jsii.String("roleArn"),

	// the properties below are optional
	UseBase64: jsii.Boolean(false),
}

Properties ​

queueUrlstringqueue_urlstrqueueUrlStringQueueUrlstringQueueUrl*string required #
The URL of the Amazon SQS queue.
roleArnstringrole_arnstrroleArnStringRoleArnstringRoleArn*string required #
The ARN of the IAM role that grants access.
useBase64optionalboolean | IResolvableuse_base64optionaltyping.Union[bool, IResolvable]useBase64optionalBooleanUseBase64optionalboolUseBase64optionalinterface{} #
Specifies whether to use Base64 encoding.