Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LookupQueueArgs ¶
type LookupQueueArgs struct { // The name of the queue to match. Name string `pulumi:"name"` // A mapping of tags for the resource. Tags map[string]interface{} `pulumi:"tags"` }
A collection of arguments for invoking getQueue.
type LookupQueueResult ¶
type LookupQueueResult struct { // The Amazon Resource Name (ARN) of the queue. Arn string `pulumi:"arn"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` // A mapping of tags for the resource. Tags map[string]interface{} `pulumi:"tags"` // The URL of the queue. Url string `pulumi:"url"` }
A collection of values returned by getQueue.
func LookupQueue ¶
func LookupQueue(ctx *pulumi.Context, args *LookupQueueArgs, opts ...pulumi.InvokeOption) (*LookupQueueResult, error)
Use this data source to get the ARN and URL of queue in AWS Simple Queue Service (SQS). By using this data source, you can reference SQS queues without having to hardcode the ARNs as input.
type Queue ¶
type Queue struct { pulumi.CustomResourceState // The ARN of the SQS queue Arn pulumi.StringOutput `pulumi:"arn"` // Enables content-based deduplication for FIFO queues. For more information, see the [related documentation](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing) ContentBasedDeduplication pulumi.BoolPtrOutput `pulumi:"contentBasedDeduplication"` // The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 seconds. DelaySeconds pulumi.IntPtrOutput `pulumi:"delaySeconds"` // Boolean designating a FIFO queue. If not set, it defaults to `false` making it standard. FifoQueue pulumi.BoolPtrOutput `pulumi:"fifoQueue"` // The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes). KmsDataKeyReusePeriodSeconds pulumi.IntOutput `pulumi:"kmsDataKeyReusePeriodSeconds"` // The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see [Key Terms](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms). KmsMasterKeyId pulumi.StringPtrOutput `pulumi:"kmsMasterKeyId"` // The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB). MaxMessageSize pulumi.IntPtrOutput `pulumi:"maxMessageSize"` // The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days). MessageRetentionSeconds pulumi.IntPtrOutput `pulumi:"messageRetentionSeconds"` // This is the human-readable name of the queue. If omitted, this provider will assign a random name. Name pulumi.StringOutput `pulumi:"name"` // Creates a unique name beginning with the specified prefix. Conflicts with `name`. NamePrefix pulumi.StringPtrOutput `pulumi:"namePrefix"` // The JSON policy for the SQS queue. Policy pulumi.StringOutput `pulumi:"policy"` // The time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds). The default for this attribute is 0, meaning that the call will return immediately. ReceiveWaitTimeSeconds pulumi.IntPtrOutput `pulumi:"receiveWaitTimeSeconds"` // The JSON policy to set up the Dead Letter Queue, see [AWS docs](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html). **Note:** when specifying `maxReceiveCount`, you must specify it as an integer (`5`), and not a string (`"5"`). RedrivePolicy pulumi.StringPtrOutput `pulumi:"redrivePolicy"` // A mapping of tags to assign to the queue. Tags pulumi.MapOutput `pulumi:"tags"` // The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see [AWS docs](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html). VisibilityTimeoutSeconds pulumi.IntPtrOutput `pulumi:"visibilityTimeoutSeconds"` }
func GetQueue ¶
func GetQueue(ctx *pulumi.Context, name string, id pulumi.IDInput, state *QueueState, opts ...pulumi.ResourceOption) (*Queue, error)
GetQueue gets an existing Queue resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
type QueueArgs ¶
type QueueArgs struct { // Enables content-based deduplication for FIFO queues. For more information, see the [related documentation](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing) ContentBasedDeduplication pulumi.BoolPtrInput // The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 seconds. DelaySeconds pulumi.IntPtrInput // Boolean designating a FIFO queue. If not set, it defaults to `false` making it standard. FifoQueue pulumi.BoolPtrInput // The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes). KmsDataKeyReusePeriodSeconds pulumi.IntPtrInput // The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see [Key Terms](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms). KmsMasterKeyId pulumi.StringPtrInput // The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB). MaxMessageSize pulumi.IntPtrInput // The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days). MessageRetentionSeconds pulumi.IntPtrInput // This is the human-readable name of the queue. If omitted, this provider will assign a random name. Name pulumi.StringPtrInput // Creates a unique name beginning with the specified prefix. Conflicts with `name`. NamePrefix pulumi.StringPtrInput // The JSON policy for the SQS queue. Policy pulumi.StringPtrInput // The time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds). The default for this attribute is 0, meaning that the call will return immediately. ReceiveWaitTimeSeconds pulumi.IntPtrInput // The JSON policy to set up the Dead Letter Queue, see [AWS docs](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html). **Note:** when specifying `maxReceiveCount`, you must specify it as an integer (`5`), and not a string (`"5"`). RedrivePolicy pulumi.StringPtrInput // A mapping of tags to assign to the queue. Tags pulumi.MapInput // The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see [AWS docs](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html). VisibilityTimeoutSeconds pulumi.IntPtrInput }
The set of arguments for constructing a Queue resource.
func (QueueArgs) ElementType ¶
type QueuePolicy ¶
type QueuePolicy struct { pulumi.CustomResourceState // The JSON policy for the SQS queue. Policy pulumi.StringOutput `pulumi:"policy"` // The URL of the SQS Queue to which to attach the policy QueueUrl pulumi.StringOutput `pulumi:"queueUrl"` }
Allows you to set a policy of an SQS Queue while referencing ARN of the queue within the policy.
func GetQueuePolicy ¶
func GetQueuePolicy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *QueuePolicyState, opts ...pulumi.ResourceOption) (*QueuePolicy, error)
GetQueuePolicy gets an existing QueuePolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewQueuePolicy ¶
func NewQueuePolicy(ctx *pulumi.Context, name string, args *QueuePolicyArgs, opts ...pulumi.ResourceOption) (*QueuePolicy, error)
NewQueuePolicy registers a new resource with the given unique name, arguments, and options.
type QueuePolicyArgs ¶
type QueuePolicyArgs struct { // The JSON policy for the SQS queue. Policy pulumi.StringInput // The URL of the SQS Queue to which to attach the policy QueueUrl pulumi.StringInput }
The set of arguments for constructing a QueuePolicy resource.
func (QueuePolicyArgs) ElementType ¶
func (QueuePolicyArgs) ElementType() reflect.Type
type QueuePolicyState ¶
type QueuePolicyState struct { // The JSON policy for the SQS queue. Policy pulumi.StringPtrInput // The URL of the SQS Queue to which to attach the policy QueueUrl pulumi.StringPtrInput }
func (QueuePolicyState) ElementType ¶
func (QueuePolicyState) ElementType() reflect.Type
type QueueState ¶
type QueueState struct { // The ARN of the SQS queue Arn pulumi.StringPtrInput // Enables content-based deduplication for FIFO queues. For more information, see the [related documentation](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing) ContentBasedDeduplication pulumi.BoolPtrInput // The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 seconds. DelaySeconds pulumi.IntPtrInput // Boolean designating a FIFO queue. If not set, it defaults to `false` making it standard. FifoQueue pulumi.BoolPtrInput // The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes). KmsDataKeyReusePeriodSeconds pulumi.IntPtrInput // The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see [Key Terms](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms). KmsMasterKeyId pulumi.StringPtrInput // The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB). MaxMessageSize pulumi.IntPtrInput // The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days). MessageRetentionSeconds pulumi.IntPtrInput // This is the human-readable name of the queue. If omitted, this provider will assign a random name. Name pulumi.StringPtrInput // Creates a unique name beginning with the specified prefix. Conflicts with `name`. NamePrefix pulumi.StringPtrInput // The JSON policy for the SQS queue. Policy pulumi.StringPtrInput // The time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds). The default for this attribute is 0, meaning that the call will return immediately. ReceiveWaitTimeSeconds pulumi.IntPtrInput // The JSON policy to set up the Dead Letter Queue, see [AWS docs](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html). **Note:** when specifying `maxReceiveCount`, you must specify it as an integer (`5`), and not a string (`"5"`). RedrivePolicy pulumi.StringPtrInput // A mapping of tags to assign to the queue. Tags pulumi.MapInput // The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see [AWS docs](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html). VisibilityTimeoutSeconds pulumi.IntPtrInput }
func (QueueState) ElementType ¶
func (QueueState) ElementType() reflect.Type