Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.pubsublite/v1.Subscription
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new subscription.
Create Subscription Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Subscription(name: string, args: SubscriptionArgs, opts?: CustomResourceOptions);
@overload
def Subscription(resource_name: str,
args: SubscriptionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Subscription(resource_name: str,
opts: Optional[ResourceOptions] = None,
subscription_id: Optional[str] = None,
delivery_config: Optional[DeliveryConfigArgs] = None,
export_config: Optional[ExportConfigArgs] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
skip_backlog: Optional[bool] = None,
topic: Optional[str] = None)
func NewSubscription(ctx *Context, name string, args SubscriptionArgs, opts ...ResourceOption) (*Subscription, error)
public Subscription(string name, SubscriptionArgs args, CustomResourceOptions? opts = null)
public Subscription(String name, SubscriptionArgs args)
public Subscription(String name, SubscriptionArgs args, CustomResourceOptions options)
type: google-native:pubsublite/v1:Subscription
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SubscriptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SubscriptionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SubscriptionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SubscriptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SubscriptionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var examplesubscriptionResourceResourceFromPubsublitev1 = new GoogleNative.Pubsublite.V1.Subscription("examplesubscriptionResourceResourceFromPubsublitev1", new()
{
SubscriptionId = "string",
DeliveryConfig = new GoogleNative.Pubsublite.V1.Inputs.DeliveryConfigArgs
{
DeliveryRequirement = GoogleNative.Pubsublite.V1.DeliveryConfigDeliveryRequirement.DeliveryRequirementUnspecified,
},
ExportConfig = new GoogleNative.Pubsublite.V1.Inputs.ExportConfigArgs
{
DeadLetterTopic = "string",
DesiredState = GoogleNative.Pubsublite.V1.ExportConfigDesiredState.StateUnspecified,
PubsubConfig = new GoogleNative.Pubsublite.V1.Inputs.PubSubConfigArgs
{
Topic = "string",
},
},
Location = "string",
Name = "string",
Project = "string",
SkipBacklog = false,
Topic = "string",
});
example, err := pubsublite.NewSubscription(ctx, "examplesubscriptionResourceResourceFromPubsublitev1", &pubsublite.SubscriptionArgs{
SubscriptionId: pulumi.String("string"),
DeliveryConfig: &pubsublite.DeliveryConfigArgs{
DeliveryRequirement: pubsublite.DeliveryConfigDeliveryRequirementDeliveryRequirementUnspecified,
},
ExportConfig: &pubsublite.ExportConfigArgs{
DeadLetterTopic: pulumi.String("string"),
DesiredState: pubsublite.ExportConfigDesiredStateStateUnspecified,
PubsubConfig: &pubsublite.PubSubConfigArgs{
Topic: pulumi.String("string"),
},
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
SkipBacklog: pulumi.Bool(false),
Topic: pulumi.String("string"),
})
var examplesubscriptionResourceResourceFromPubsublitev1 = new Subscription("examplesubscriptionResourceResourceFromPubsublitev1", SubscriptionArgs.builder()
.subscriptionId("string")
.deliveryConfig(DeliveryConfigArgs.builder()
.deliveryRequirement("DELIVERY_REQUIREMENT_UNSPECIFIED")
.build())
.exportConfig(ExportConfigArgs.builder()
.deadLetterTopic("string")
.desiredState("STATE_UNSPECIFIED")
.pubsubConfig(PubSubConfigArgs.builder()
.topic("string")
.build())
.build())
.location("string")
.name("string")
.project("string")
.skipBacklog(false)
.topic("string")
.build());
examplesubscription_resource_resource_from_pubsublitev1 = google_native.pubsublite.v1.Subscription("examplesubscriptionResourceResourceFromPubsublitev1",
subscription_id="string",
delivery_config={
"delivery_requirement": google_native.pubsublite.v1.DeliveryConfigDeliveryRequirement.DELIVERY_REQUIREMENT_UNSPECIFIED,
},
export_config={
"dead_letter_topic": "string",
"desired_state": google_native.pubsublite.v1.ExportConfigDesiredState.STATE_UNSPECIFIED,
"pubsub_config": {
"topic": "string",
},
},
location="string",
name="string",
project="string",
skip_backlog=False,
topic="string")
const examplesubscriptionResourceResourceFromPubsublitev1 = new google_native.pubsublite.v1.Subscription("examplesubscriptionResourceResourceFromPubsublitev1", {
subscriptionId: "string",
deliveryConfig: {
deliveryRequirement: google_native.pubsublite.v1.DeliveryConfigDeliveryRequirement.DeliveryRequirementUnspecified,
},
exportConfig: {
deadLetterTopic: "string",
desiredState: google_native.pubsublite.v1.ExportConfigDesiredState.StateUnspecified,
pubsubConfig: {
topic: "string",
},
},
location: "string",
name: "string",
project: "string",
skipBacklog: false,
topic: "string",
});
type: google-native:pubsublite/v1:Subscription
properties:
deliveryConfig:
deliveryRequirement: DELIVERY_REQUIREMENT_UNSPECIFIED
exportConfig:
deadLetterTopic: string
desiredState: STATE_UNSPECIFIED
pubsubConfig:
topic: string
location: string
name: string
project: string
skipBacklog: false
subscriptionId: string
topic: string
Subscription Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Subscription resource accepts the following input properties:
- Subscription
Id string - Required. The ID to use for the subscription, which will become the final component of the subscription's name. This value is structured like:
my-sub-name
. - Delivery
Config Pulumi.Google Native. Pubsublite. V1. Inputs. Delivery Config - The settings for this subscription's message delivery.
- Export
Config Pulumi.Google Native. Pubsublite. V1. Inputs. Export Config - If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
- Location string
- Name string
- The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
- Project string
- Skip
Backlog bool - If true, the newly created subscription will only receive messages published after the subscription was created. Otherwise, the entire message backlog will be received on the subscription. Defaults to false.
- Topic string
- The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
- Subscription
Id string - Required. The ID to use for the subscription, which will become the final component of the subscription's name. This value is structured like:
my-sub-name
. - Delivery
Config DeliveryConfig Args - The settings for this subscription's message delivery.
- Export
Config ExportConfig Args - If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
- Location string
- Name string
- The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
- Project string
- Skip
Backlog bool - If true, the newly created subscription will only receive messages published after the subscription was created. Otherwise, the entire message backlog will be received on the subscription. Defaults to false.
- Topic string
- The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
- subscription
Id String - Required. The ID to use for the subscription, which will become the final component of the subscription's name. This value is structured like:
my-sub-name
. - delivery
Config DeliveryConfig - The settings for this subscription's message delivery.
- export
Config ExportConfig - If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
- location String
- name String
- The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
- project String
- skip
Backlog Boolean - If true, the newly created subscription will only receive messages published after the subscription was created. Otherwise, the entire message backlog will be received on the subscription. Defaults to false.
- topic String
- The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
- subscription
Id string - Required. The ID to use for the subscription, which will become the final component of the subscription's name. This value is structured like:
my-sub-name
. - delivery
Config DeliveryConfig - The settings for this subscription's message delivery.
- export
Config ExportConfig - If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
- location string
- name string
- The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
- project string
- skip
Backlog boolean - If true, the newly created subscription will only receive messages published after the subscription was created. Otherwise, the entire message backlog will be received on the subscription. Defaults to false.
- topic string
- The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
- subscription_
id str - Required. The ID to use for the subscription, which will become the final component of the subscription's name. This value is structured like:
my-sub-name
. - delivery_
config DeliveryConfig Args - The settings for this subscription's message delivery.
- export_
config ExportConfig Args - If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
- location str
- name str
- The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
- project str
- skip_
backlog bool - If true, the newly created subscription will only receive messages published after the subscription was created. Otherwise, the entire message backlog will be received on the subscription. Defaults to false.
- topic str
- The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
- subscription
Id String - Required. The ID to use for the subscription, which will become the final component of the subscription's name. This value is structured like:
my-sub-name
. - delivery
Config Property Map - The settings for this subscription's message delivery.
- export
Config Property Map - If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
- location String
- name String
- The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
- project String
- skip
Backlog Boolean - If true, the newly created subscription will only receive messages published after the subscription was created. Otherwise, the entire message backlog will be received on the subscription. Defaults to false.
- topic String
- The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
Outputs
All input properties are implicitly available as output properties. Additionally, the Subscription resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
DeliveryConfig, DeliveryConfigArgs
- Delivery
Requirement Pulumi.Google Native. Pubsublite. V1. Delivery Config Delivery Requirement - The DeliveryRequirement for this subscription.
- Delivery
Requirement DeliveryConfig Delivery Requirement - The DeliveryRequirement for this subscription.
- delivery
Requirement DeliveryConfig Delivery Requirement - The DeliveryRequirement for this subscription.
- delivery
Requirement DeliveryConfig Delivery Requirement - The DeliveryRequirement for this subscription.
- delivery_
requirement DeliveryConfig Delivery Requirement - The DeliveryRequirement for this subscription.
- delivery
Requirement "DELIVERY_REQUIREMENT_UNSPECIFIED" | "DELIVER_IMMEDIATELY" | "DELIVER_AFTER_STORED" - The DeliveryRequirement for this subscription.
DeliveryConfigDeliveryRequirement, DeliveryConfigDeliveryRequirementArgs
- Delivery
Requirement Unspecified - DELIVERY_REQUIREMENT_UNSPECIFIEDDefault value. This value is unused.
- Deliver
Immediately - DELIVER_IMMEDIATELYThe server does not wait for a published message to be successfully written to storage before delivering it to subscribers.
- Deliver
After Stored - DELIVER_AFTER_STOREDThe server will not deliver a published message to subscribers until the message has been successfully written to storage. This will result in higher end-to-end latency, but consistent delivery.
- Delivery
Config Delivery Requirement Delivery Requirement Unspecified - DELIVERY_REQUIREMENT_UNSPECIFIEDDefault value. This value is unused.
- Delivery
Config Delivery Requirement Deliver Immediately - DELIVER_IMMEDIATELYThe server does not wait for a published message to be successfully written to storage before delivering it to subscribers.
- Delivery
Config Delivery Requirement Deliver After Stored - DELIVER_AFTER_STOREDThe server will not deliver a published message to subscribers until the message has been successfully written to storage. This will result in higher end-to-end latency, but consistent delivery.
- Delivery
Requirement Unspecified - DELIVERY_REQUIREMENT_UNSPECIFIEDDefault value. This value is unused.
- Deliver
Immediately - DELIVER_IMMEDIATELYThe server does not wait for a published message to be successfully written to storage before delivering it to subscribers.
- Deliver
After Stored - DELIVER_AFTER_STOREDThe server will not deliver a published message to subscribers until the message has been successfully written to storage. This will result in higher end-to-end latency, but consistent delivery.
- Delivery
Requirement Unspecified - DELIVERY_REQUIREMENT_UNSPECIFIEDDefault value. This value is unused.
- Deliver
Immediately - DELIVER_IMMEDIATELYThe server does not wait for a published message to be successfully written to storage before delivering it to subscribers.
- Deliver
After Stored - DELIVER_AFTER_STOREDThe server will not deliver a published message to subscribers until the message has been successfully written to storage. This will result in higher end-to-end latency, but consistent delivery.
- DELIVERY_REQUIREMENT_UNSPECIFIED
- DELIVERY_REQUIREMENT_UNSPECIFIEDDefault value. This value is unused.
- DELIVER_IMMEDIATELY
- DELIVER_IMMEDIATELYThe server does not wait for a published message to be successfully written to storage before delivering it to subscribers.
- DELIVER_AFTER_STORED
- DELIVER_AFTER_STOREDThe server will not deliver a published message to subscribers until the message has been successfully written to storage. This will result in higher end-to-end latency, but consistent delivery.
- "DELIVERY_REQUIREMENT_UNSPECIFIED"
- DELIVERY_REQUIREMENT_UNSPECIFIEDDefault value. This value is unused.
- "DELIVER_IMMEDIATELY"
- DELIVER_IMMEDIATELYThe server does not wait for a published message to be successfully written to storage before delivering it to subscribers.
- "DELIVER_AFTER_STORED"
- DELIVER_AFTER_STOREDThe server will not deliver a published message to subscribers until the message has been successfully written to storage. This will result in higher end-to-end latency, but consistent delivery.
DeliveryConfigResponse, DeliveryConfigResponseArgs
- Delivery
Requirement string - The DeliveryRequirement for this subscription.
- Delivery
Requirement string - The DeliveryRequirement for this subscription.
- delivery
Requirement String - The DeliveryRequirement for this subscription.
- delivery
Requirement string - The DeliveryRequirement for this subscription.
- delivery_
requirement str - The DeliveryRequirement for this subscription.
- delivery
Requirement String - The DeliveryRequirement for this subscription.
ExportConfig, ExportConfigArgs
- Dead
Letter stringTopic - Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
- Desired
State Pulumi.Google Native. Pubsublite. V1. Export Config Desired State - The desired state of this export. Setting this to values other than
ACTIVE
andPAUSED
will result in an error. - Pubsub
Config Pulumi.Google Native. Pubsublite. V1. Inputs. Pub Sub Config - Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
- Dead
Letter stringTopic - Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
- Desired
State ExportConfig Desired State - The desired state of this export. Setting this to values other than
ACTIVE
andPAUSED
will result in an error. - Pubsub
Config PubSub Config - Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
- dead
Letter StringTopic - Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
- desired
State ExportConfig Desired State - The desired state of this export. Setting this to values other than
ACTIVE
andPAUSED
will result in an error. - pubsub
Config PubSub Config - Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
- dead
Letter stringTopic - Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
- desired
State ExportConfig Desired State - The desired state of this export. Setting this to values other than
ACTIVE
andPAUSED
will result in an error. - pubsub
Config PubSub Config - Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
- dead_
letter_ strtopic - Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
- desired_
state ExportConfig Desired State - The desired state of this export. Setting this to values other than
ACTIVE
andPAUSED
will result in an error. - pubsub_
config PubSub Config - Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
- dead
Letter StringTopic - Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
- desired
State "STATE_UNSPECIFIED" | "ACTIVE" | "PAUSED" | "PERMISSION_DENIED" | "NOT_FOUND" - The desired state of this export. Setting this to values other than
ACTIVE
andPAUSED
will result in an error. - pubsub
Config Property Map - Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
ExportConfigDesiredState, ExportConfigDesiredStateArgs
- State
Unspecified - STATE_UNSPECIFIEDDefault value. This value is unused.
- Active
- ACTIVEMessages are being exported.
- Paused
- PAUSEDExporting messages is suspended.
- Permission
Denied - PERMISSION_DENIEDMessages cannot be exported due to permission denied errors. Output only.
- Not
Found - NOT_FOUNDMessages cannot be exported due to missing resources. Output only.
- Export
Config Desired State State Unspecified - STATE_UNSPECIFIEDDefault value. This value is unused.
- Export
Config Desired State Active - ACTIVEMessages are being exported.
- Export
Config Desired State Paused - PAUSEDExporting messages is suspended.
- Export
Config Desired State Permission Denied - PERMISSION_DENIEDMessages cannot be exported due to permission denied errors. Output only.
- Export
Config Desired State Not Found - NOT_FOUNDMessages cannot be exported due to missing resources. Output only.
- State
Unspecified - STATE_UNSPECIFIEDDefault value. This value is unused.
- Active
- ACTIVEMessages are being exported.
- Paused
- PAUSEDExporting messages is suspended.
- Permission
Denied - PERMISSION_DENIEDMessages cannot be exported due to permission denied errors. Output only.
- Not
Found - NOT_FOUNDMessages cannot be exported due to missing resources. Output only.
- State
Unspecified - STATE_UNSPECIFIEDDefault value. This value is unused.
- Active
- ACTIVEMessages are being exported.
- Paused
- PAUSEDExporting messages is suspended.
- Permission
Denied - PERMISSION_DENIEDMessages cannot be exported due to permission denied errors. Output only.
- Not
Found - NOT_FOUNDMessages cannot be exported due to missing resources. Output only.
- STATE_UNSPECIFIED
- STATE_UNSPECIFIEDDefault value. This value is unused.
- ACTIVE
- ACTIVEMessages are being exported.
- PAUSED
- PAUSEDExporting messages is suspended.
- PERMISSION_DENIED
- PERMISSION_DENIEDMessages cannot be exported due to permission denied errors. Output only.
- NOT_FOUND
- NOT_FOUNDMessages cannot be exported due to missing resources. Output only.
- "STATE_UNSPECIFIED"
- STATE_UNSPECIFIEDDefault value. This value is unused.
- "ACTIVE"
- ACTIVEMessages are being exported.
- "PAUSED"
- PAUSEDExporting messages is suspended.
- "PERMISSION_DENIED"
- PERMISSION_DENIEDMessages cannot be exported due to permission denied errors. Output only.
- "NOT_FOUND"
- NOT_FOUNDMessages cannot be exported due to missing resources. Output only.
ExportConfigResponse, ExportConfigResponseArgs
- Current
State string - The current state of the export, which may be different to the desired state due to errors. This field is output only.
- Dead
Letter stringTopic - Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
- Desired
State string - The desired state of this export. Setting this to values other than
ACTIVE
andPAUSED
will result in an error. - Pubsub
Config Pulumi.Google Native. Pubsublite. V1. Inputs. Pub Sub Config Response - Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
- Current
State string - The current state of the export, which may be different to the desired state due to errors. This field is output only.
- Dead
Letter stringTopic - Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
- Desired
State string - The desired state of this export. Setting this to values other than
ACTIVE
andPAUSED
will result in an error. - Pubsub
Config PubSub Config Response - Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
- current
State String - The current state of the export, which may be different to the desired state due to errors. This field is output only.
- dead
Letter StringTopic - Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
- desired
State String - The desired state of this export. Setting this to values other than
ACTIVE
andPAUSED
will result in an error. - pubsub
Config PubSub Config Response - Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
- current
State string - The current state of the export, which may be different to the desired state due to errors. This field is output only.
- dead
Letter stringTopic - Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
- desired
State string - The desired state of this export. Setting this to values other than
ACTIVE
andPAUSED
will result in an error. - pubsub
Config PubSub Config Response - Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
- current_
state str - The current state of the export, which may be different to the desired state due to errors. This field is output only.
- dead_
letter_ strtopic - Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
- desired_
state str - The desired state of this export. Setting this to values other than
ACTIVE
andPAUSED
will result in an error. - pubsub_
config PubSub Config Response - Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
- current
State String - The current state of the export, which may be different to the desired state due to errors. This field is output only.
- dead
Letter StringTopic - Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.
- desired
State String - The desired state of this export. Setting this to values other than
ACTIVE
andPAUSED
will result in an error. - pubsub
Config Property Map - Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
PubSubConfig, PubSubConfigArgs
- Topic string
- The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
- Topic string
- The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
- topic String
- The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
- topic string
- The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
- topic str
- The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
- topic String
- The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
PubSubConfigResponse, PubSubConfigResponseArgs
- Topic string
- The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
- Topic string
- The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
- topic String
- The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
- topic string
- The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
- topic str
- The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
- topic String
- The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.