Queue
A named resource to which messages are sent by publishers.
Create a Queue Resource
new Queue(name: string, args: QueueArgs, opts?: CustomResourceOptions);def Queue(resource_name, opts=None, app_engine_routing_override=None, location=None, name=None, project=None, rate_limits=None, retry_config=None, __props__=None);public Queue(string name, QueueArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args QueueArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args QueueArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args QueueArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Queue Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Queue resource accepts the following input properties:
- Location string
The location of the queue
- App
Engine QueueRouting Override App Engine Routing Override Args Overrides for task-level appEngineRouting. These settings apply only to App Engine tasks in this queue Structure is documented below.
- Name string
The queue name.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Rate
Limits QueueRate Limits Args Rate limits for task dispatches. The queue’s actual dispatch rate is the result of: * Number of tasks in the queue * User-specified throttling: rateLimits, retryConfig, and the queue’s state. * System throttling due to 429 (Too Many Requests) or 503 (Service Unavailable) responses from the worker, high error rates, or to smooth sudden large traffic spikes. Structure is documented below.
- Retry
Config QueueRetry Config Args Settings that determine the retry behavior. Structure is documented below.
- Location string
The location of the queue
- App
Engine QueueRouting Override App Engine Routing Override Overrides for task-level appEngineRouting. These settings apply only to App Engine tasks in this queue Structure is documented below.
- Name string
The queue name.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Rate
Limits QueueRate Limits Rate limits for task dispatches. The queue’s actual dispatch rate is the result of: * Number of tasks in the queue * User-specified throttling: rateLimits, retryConfig, and the queue’s state. * System throttling due to 429 (Too Many Requests) or 503 (Service Unavailable) responses from the worker, high error rates, or to smooth sudden large traffic spikes. Structure is documented below.
- Retry
Config QueueRetry Config Settings that determine the retry behavior. Structure is documented below.
- location string
The location of the queue
- app
Engine QueueRouting Override App Engine Routing Override Overrides for task-level appEngineRouting. These settings apply only to App Engine tasks in this queue Structure is documented below.
- name string
The queue name.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- rate
Limits QueueRate Limits Rate limits for task dispatches. The queue’s actual dispatch rate is the result of: * Number of tasks in the queue * User-specified throttling: rateLimits, retryConfig, and the queue’s state. * System throttling due to 429 (Too Many Requests) or 503 (Service Unavailable) responses from the worker, high error rates, or to smooth sudden large traffic spikes. Structure is documented below.
- retry
Config QueueRetry Config Settings that determine the retry behavior. Structure is documented below.
- location str
The location of the queue
- app_
engine_ Dict[Queuerouting_ override App Engine Routing Override] Overrides for task-level appEngineRouting. These settings apply only to App Engine tasks in this queue Structure is documented below.
- name str
The queue name.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- rate_
limits Dict[QueueRate Limits] Rate limits for task dispatches. The queue’s actual dispatch rate is the result of: * Number of tasks in the queue * User-specified throttling: rateLimits, retryConfig, and the queue’s state. * System throttling due to 429 (Too Many Requests) or 503 (Service Unavailable) responses from the worker, high error rates, or to smooth sudden large traffic spikes. Structure is documented below.
- retry_
config Dict[QueueRetry Config] Settings that determine the retry behavior. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Queue resource produces the following output properties:
Look up an Existing Queue Resource
Get an existing Queue resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: QueueState, opts?: CustomResourceOptions): Queuestatic get(resource_name, id, opts=None, app_engine_routing_override=None, location=None, name=None, project=None, rate_limits=None, retry_config=None, __props__=None);func GetQueue(ctx *Context, name string, id IDInput, state *QueueState, opts ...ResourceOption) (*Queue, error)public static Queue Get(string name, Input<string> id, QueueState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- App
Engine QueueRouting Override App Engine Routing Override Args Overrides for task-level appEngineRouting. These settings apply only to App Engine tasks in this queue Structure is documented below.
- Location string
The location of the queue
- Name string
The queue name.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Rate
Limits QueueRate Limits Args Rate limits for task dispatches. The queue’s actual dispatch rate is the result of: * Number of tasks in the queue * User-specified throttling: rateLimits, retryConfig, and the queue’s state. * System throttling due to 429 (Too Many Requests) or 503 (Service Unavailable) responses from the worker, high error rates, or to smooth sudden large traffic spikes. Structure is documented below.
- Retry
Config QueueRetry Config Args Settings that determine the retry behavior. Structure is documented below.
- App
Engine QueueRouting Override App Engine Routing Override Overrides for task-level appEngineRouting. These settings apply only to App Engine tasks in this queue Structure is documented below.
- Location string
The location of the queue
- Name string
The queue name.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Rate
Limits QueueRate Limits Rate limits for task dispatches. The queue’s actual dispatch rate is the result of: * Number of tasks in the queue * User-specified throttling: rateLimits, retryConfig, and the queue’s state. * System throttling due to 429 (Too Many Requests) or 503 (Service Unavailable) responses from the worker, high error rates, or to smooth sudden large traffic spikes. Structure is documented below.
- Retry
Config QueueRetry Config Settings that determine the retry behavior. Structure is documented below.
- app
Engine QueueRouting Override App Engine Routing Override Overrides for task-level appEngineRouting. These settings apply only to App Engine tasks in this queue Structure is documented below.
- location string
The location of the queue
- name string
The queue name.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- rate
Limits QueueRate Limits Rate limits for task dispatches. The queue’s actual dispatch rate is the result of: * Number of tasks in the queue * User-specified throttling: rateLimits, retryConfig, and the queue’s state. * System throttling due to 429 (Too Many Requests) or 503 (Service Unavailable) responses from the worker, high error rates, or to smooth sudden large traffic spikes. Structure is documented below.
- retry
Config QueueRetry Config Settings that determine the retry behavior. Structure is documented below.
- app_
engine_ Dict[Queuerouting_ override App Engine Routing Override] Overrides for task-level appEngineRouting. These settings apply only to App Engine tasks in this queue Structure is documented below.
- location str
The location of the queue
- name str
The queue name.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- rate_
limits Dict[QueueRate Limits] Rate limits for task dispatches. The queue’s actual dispatch rate is the result of: * Number of tasks in the queue * User-specified throttling: rateLimits, retryConfig, and the queue’s state. * System throttling due to 429 (Too Many Requests) or 503 (Service Unavailable) responses from the worker, high error rates, or to smooth sudden large traffic spikes. Structure is documented below.
- retry_
config Dict[QueueRetry Config] Settings that determine the retry behavior. Structure is documented below.
Supporting Types
QueueAppEngineRoutingOverride
- Host string
- The host that the task is sent to.
- Instance string
App instance. By default, the task is sent to an instance which is available when the task is attempted.
- Service string
App service. By default, the task is sent to the service which is the default service when the task is attempted.
- Version string
App version. By default, the task is sent to the version which is the default version when the task is attempted.
- Host string
- The host that the task is sent to.
- Instance string
App instance. By default, the task is sent to an instance which is available when the task is attempted.
- Service string
App service. By default, the task is sent to the service which is the default service when the task is attempted.
- Version string
App version. By default, the task is sent to the version which is the default version when the task is attempted.
- host string
- The host that the task is sent to.
- instance string
App instance. By default, the task is sent to an instance which is available when the task is attempted.
- service string
App service. By default, the task is sent to the service which is the default service when the task is attempted.
- version string
App version. By default, the task is sent to the version which is the default version when the task is attempted.
- host str
- The host that the task is sent to.
- instance str
App instance. By default, the task is sent to an instance which is available when the task is attempted.
- service str
App service. By default, the task is sent to the service which is the default service when the task is attempted.
- version str
App version. By default, the task is sent to the version which is the default version when the task is attempted.
QueueRateLimits
- Max
Burst intSize - The max burst size. Max burst size limits how fast tasks in queue are processed when many tasks are in the queue and the rate is high. This field allows the queue to have a high rate so processing starts shortly after a task is enqueued, but still limits resource usage when many tasks are enqueued in a short period of time.
- Max
Concurrent intDispatches The maximum number of concurrent tasks that Cloud Tasks allows to be dispatched for this queue. After this threshold has been reached, Cloud Tasks stops dispatching tasks until the number of concurrent requests decreases.
- Max
Dispatches doublePer Second The maximum rate at which tasks are dispatched from this queue. If unspecified when the queue is created, Cloud Tasks will pick the default.
- Max
Burst intSize - The max burst size. Max burst size limits how fast tasks in queue are processed when many tasks are in the queue and the rate is high. This field allows the queue to have a high rate so processing starts shortly after a task is enqueued, but still limits resource usage when many tasks are enqueued in a short period of time.
- Max
Concurrent intDispatches The maximum number of concurrent tasks that Cloud Tasks allows to be dispatched for this queue. After this threshold has been reached, Cloud Tasks stops dispatching tasks until the number of concurrent requests decreases.
- Max
Dispatches float64Per Second The maximum rate at which tasks are dispatched from this queue. If unspecified when the queue is created, Cloud Tasks will pick the default.
- max
Burst numberSize - The max burst size. Max burst size limits how fast tasks in queue are processed when many tasks are in the queue and the rate is high. This field allows the queue to have a high rate so processing starts shortly after a task is enqueued, but still limits resource usage when many tasks are enqueued in a short period of time.
- max
Concurrent numberDispatches The maximum number of concurrent tasks that Cloud Tasks allows to be dispatched for this queue. After this threshold has been reached, Cloud Tasks stops dispatching tasks until the number of concurrent requests decreases.
- max
Dispatches numberPer Second The maximum rate at which tasks are dispatched from this queue. If unspecified when the queue is created, Cloud Tasks will pick the default.
- max
Burst floatSize - The max burst size. Max burst size limits how fast tasks in queue are processed when many tasks are in the queue and the rate is high. This field allows the queue to have a high rate so processing starts shortly after a task is enqueued, but still limits resource usage when many tasks are enqueued in a short period of time.
- max
Concurrent floatDispatches The maximum number of concurrent tasks that Cloud Tasks allows to be dispatched for this queue. After this threshold has been reached, Cloud Tasks stops dispatching tasks until the number of concurrent requests decreases.
- max
Dispatches floatPer Second The maximum rate at which tasks are dispatched from this queue. If unspecified when the queue is created, Cloud Tasks will pick the default.
QueueRetryConfig
- Max
Attempts int Number of attempts per task. Cloud Tasks will attempt the task maxAttempts times (that is, if the first attempt fails, then there will be maxAttempts - 1 retries). Must be >= -1. If unspecified when the queue is created, Cloud Tasks will pick the default. -1 indicates unlimited attempts.
- Max
Backoff string A task will be scheduled for retry between minBackoff and maxBackoff duration after it fails, if the queue’s RetryConfig specifies that the task should be retried.
- Max
Doublings int The time between retries will double maxDoublings times. A task’s retry interval starts at minBackoff, then doubles maxDoublings times, then increases linearly, and finally retries retries at intervals of maxBackoff up to maxAttempts times.
- Max
Retry stringDuration If positive, maxRetryDuration specifies the time limit for retrying a failed task, measured from when the task was first attempted. Once maxRetryDuration time has passed and the task has been attempted maxAttempts times, no further attempts will be made and the task will be deleted. If zero, then the task age is unlimited.
- Min
Backoff string A task will be scheduled for retry between minBackoff and maxBackoff duration after it fails, if the queue’s RetryConfig specifies that the task should be retried.
- Max
Attempts int Number of attempts per task. Cloud Tasks will attempt the task maxAttempts times (that is, if the first attempt fails, then there will be maxAttempts - 1 retries). Must be >= -1. If unspecified when the queue is created, Cloud Tasks will pick the default. -1 indicates unlimited attempts.
- Max
Backoff string A task will be scheduled for retry between minBackoff and maxBackoff duration after it fails, if the queue’s RetryConfig specifies that the task should be retried.
- Max
Doublings int The time between retries will double maxDoublings times. A task’s retry interval starts at minBackoff, then doubles maxDoublings times, then increases linearly, and finally retries retries at intervals of maxBackoff up to maxAttempts times.
- Max
Retry stringDuration If positive, maxRetryDuration specifies the time limit for retrying a failed task, measured from when the task was first attempted. Once maxRetryDuration time has passed and the task has been attempted maxAttempts times, no further attempts will be made and the task will be deleted. If zero, then the task age is unlimited.
- Min
Backoff string A task will be scheduled for retry between minBackoff and maxBackoff duration after it fails, if the queue’s RetryConfig specifies that the task should be retried.
- max
Attempts number Number of attempts per task. Cloud Tasks will attempt the task maxAttempts times (that is, if the first attempt fails, then there will be maxAttempts - 1 retries). Must be >= -1. If unspecified when the queue is created, Cloud Tasks will pick the default. -1 indicates unlimited attempts.
- max
Backoff string A task will be scheduled for retry between minBackoff and maxBackoff duration after it fails, if the queue’s RetryConfig specifies that the task should be retried.
- max
Doublings number The time between retries will double maxDoublings times. A task’s retry interval starts at minBackoff, then doubles maxDoublings times, then increases linearly, and finally retries retries at intervals of maxBackoff up to maxAttempts times.
- max
Retry stringDuration If positive, maxRetryDuration specifies the time limit for retrying a failed task, measured from when the task was first attempted. Once maxRetryDuration time has passed and the task has been attempted maxAttempts times, no further attempts will be made and the task will be deleted. If zero, then the task age is unlimited.
- min
Backoff string A task will be scheduled for retry between minBackoff and maxBackoff duration after it fails, if the queue’s RetryConfig specifies that the task should be retried.
- max
Attempts float Number of attempts per task. Cloud Tasks will attempt the task maxAttempts times (that is, if the first attempt fails, then there will be maxAttempts - 1 retries). Must be >= -1. If unspecified when the queue is created, Cloud Tasks will pick the default. -1 indicates unlimited attempts.
- max
Backoff str A task will be scheduled for retry between minBackoff and maxBackoff duration after it fails, if the queue’s RetryConfig specifies that the task should be retried.
- max
Doublings float The time between retries will double maxDoublings times. A task’s retry interval starts at minBackoff, then doubles maxDoublings times, then increases linearly, and finally retries retries at intervals of maxBackoff up to maxAttempts times.
- max
Retry strDuration If positive, maxRetryDuration specifies the time limit for retrying a failed task, measured from when the task was first attempted. Once maxRetryDuration time has passed and the task has been attempted maxAttempts times, no further attempts will be made and the task will be deleted. If zero, then the task age is unlimited.
- min
Backoff str A task will be scheduled for retry between minBackoff and maxBackoff duration after it fails, if the queue’s RetryConfig specifies that the task should be retried.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.