Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.pubsublite/v1.getSubscription
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Returns the subscription configuration.
Using getSubscription
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSubscription(args: GetSubscriptionArgs, opts?: InvokeOptions): Promise<GetSubscriptionResult>
function getSubscriptionOutput(args: GetSubscriptionOutputArgs, opts?: InvokeOptions): Output<GetSubscriptionResult>
def get_subscription(location: Optional[str] = None,
project: Optional[str] = None,
subscription_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSubscriptionResult
def get_subscription_output(location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
subscription_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSubscriptionResult]
func LookupSubscription(ctx *Context, args *LookupSubscriptionArgs, opts ...InvokeOption) (*LookupSubscriptionResult, error)
func LookupSubscriptionOutput(ctx *Context, args *LookupSubscriptionOutputArgs, opts ...InvokeOption) LookupSubscriptionResultOutput
> Note: This function is named LookupSubscription
in the Go SDK.
public static class GetSubscription
{
public static Task<GetSubscriptionResult> InvokeAsync(GetSubscriptionArgs args, InvokeOptions? opts = null)
public static Output<GetSubscriptionResult> Invoke(GetSubscriptionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSubscriptionResult> getSubscription(GetSubscriptionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:pubsublite/v1:getSubscription
arguments:
# arguments dictionary
The following arguments are supported:
- Location string
- Subscription
Id string - Project string
- Location string
- Subscription
Id string - Project string
- location String
- subscription
Id String - project String
- location string
- subscription
Id string - project string
- location str
- subscription_
id str - project str
- location String
- subscription
Id String - project String
getSubscription Result
The following output properties are available:
- Delivery
Config Pulumi.Google Native. Pubsublite. V1. Outputs. Delivery Config Response - The settings for this subscription's message delivery.
- Export
Config Pulumi.Google Native. Pubsublite. V1. Outputs. Export Config Response - If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
- Name string
- The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
- Topic string
- The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
- Delivery
Config DeliveryConfig Response - The settings for this subscription's message delivery.
- Export
Config ExportConfig Response - If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
- Name string
- The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
- Topic string
- The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
- delivery
Config DeliveryConfig Response - The settings for this subscription's message delivery.
- export
Config ExportConfig Response - If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
- name String
- The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
- topic String
- The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
- delivery
Config DeliveryConfig Response - The settings for this subscription's message delivery.
- export
Config ExportConfig Response - If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
- name string
- The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
- topic string
- The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
- delivery_
config DeliveryConfig Response - The settings for this subscription's message delivery.
- export_
config ExportConfig Response - If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
- name str
- The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
- topic str
- The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
- 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.
- name String
- The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
- topic String
- The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
Supporting Types
DeliveryConfigResponse
- 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.
ExportConfigResponse
- 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.
PubSubConfigResponse
- 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.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi