Google Native
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
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-google-native
- License
- Apache-2.0