Google Native

Pulumi Official
Package maintained by Pulumi
v0.20.0 published on Monday, Jun 6, 2022 by Pulumi

getSubscription

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
SubscriptionId string
Project string
Location string
SubscriptionId string
Project string
location String
subscriptionId String
project String
location string
subscriptionId string
project string
location String
subscriptionId String
project String

getSubscription Result

The following output properties are available:

DeliveryConfig Pulumi.GoogleNative.Pubsublite.V1.Outputs.DeliveryConfigResponse

The settings for this subscription's message delivery.

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}

DeliveryConfig DeliveryConfigResponse

The settings for this subscription's message delivery.

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}

deliveryConfig DeliveryConfigResponse

The settings for this subscription's message delivery.

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}

deliveryConfig DeliveryConfigResponse

The settings for this subscription's message delivery.

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 DeliveryConfigResponse

The settings for this subscription's message delivery.

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}

deliveryConfig Property Map

The settings for this subscription's message delivery.

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

DeliveryRequirement string

The DeliveryRequirement for this subscription.

DeliveryRequirement string

The DeliveryRequirement for this subscription.

deliveryRequirement String

The DeliveryRequirement for this subscription.

deliveryRequirement string

The DeliveryRequirement for this subscription.

delivery_requirement str

The DeliveryRequirement for this subscription.

deliveryRequirement String

The DeliveryRequirement for this subscription.

Package Details

Repository
https://github.com/pulumi/pulumi-google-native
License
Apache-2.0