ons

package
v1.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetNotificationTopicsArgs

type GetNotificationTopicsArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
	CompartmentId string                        `pulumi:"compartmentId"`
	Filters       []GetNotificationTopicsFilter `pulumi:"filters"`
	// A filter to only return resources that match the given id exactly.
	Id *string `pulumi:"id"`
	// A filter to only return resources that match the given name exactly.
	Name *string `pulumi:"name"`
	// Filter returned list by specified lifecycle state. This parameter is case-insensitive.
	State *string `pulumi:"state"`
}

A collection of arguments for invoking getNotificationTopics.

type GetNotificationTopicsFilter

type GetNotificationTopicsFilter struct {
	// A filter to only return resources that match the given name exactly.
	Name   string   `pulumi:"name"`
	Regex  *bool    `pulumi:"regex"`
	Values []string `pulumi:"values"`
}

type GetNotificationTopicsFilterArgs

type GetNotificationTopicsFilterArgs struct {
	// A filter to only return resources that match the given name exactly.
	Name   pulumi.StringInput      `pulumi:"name"`
	Regex  pulumi.BoolPtrInput     `pulumi:"regex"`
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (GetNotificationTopicsFilterArgs) ElementType

func (GetNotificationTopicsFilterArgs) ToGetNotificationTopicsFilterOutput

func (i GetNotificationTopicsFilterArgs) ToGetNotificationTopicsFilterOutput() GetNotificationTopicsFilterOutput

func (GetNotificationTopicsFilterArgs) ToGetNotificationTopicsFilterOutputWithContext

func (i GetNotificationTopicsFilterArgs) ToGetNotificationTopicsFilterOutputWithContext(ctx context.Context) GetNotificationTopicsFilterOutput

type GetNotificationTopicsFilterArray

type GetNotificationTopicsFilterArray []GetNotificationTopicsFilterInput

func (GetNotificationTopicsFilterArray) ElementType

func (GetNotificationTopicsFilterArray) ToGetNotificationTopicsFilterArrayOutput

func (i GetNotificationTopicsFilterArray) ToGetNotificationTopicsFilterArrayOutput() GetNotificationTopicsFilterArrayOutput

func (GetNotificationTopicsFilterArray) ToGetNotificationTopicsFilterArrayOutputWithContext

func (i GetNotificationTopicsFilterArray) ToGetNotificationTopicsFilterArrayOutputWithContext(ctx context.Context) GetNotificationTopicsFilterArrayOutput

type GetNotificationTopicsFilterArrayInput

type GetNotificationTopicsFilterArrayInput interface {
	pulumi.Input

	ToGetNotificationTopicsFilterArrayOutput() GetNotificationTopicsFilterArrayOutput
	ToGetNotificationTopicsFilterArrayOutputWithContext(context.Context) GetNotificationTopicsFilterArrayOutput
}

GetNotificationTopicsFilterArrayInput is an input type that accepts GetNotificationTopicsFilterArray and GetNotificationTopicsFilterArrayOutput values. You can construct a concrete instance of `GetNotificationTopicsFilterArrayInput` via:

GetNotificationTopicsFilterArray{ GetNotificationTopicsFilterArgs{...} }

type GetNotificationTopicsFilterArrayOutput

type GetNotificationTopicsFilterArrayOutput struct{ *pulumi.OutputState }

func (GetNotificationTopicsFilterArrayOutput) ElementType

func (GetNotificationTopicsFilterArrayOutput) Index

func (GetNotificationTopicsFilterArrayOutput) ToGetNotificationTopicsFilterArrayOutput

func (o GetNotificationTopicsFilterArrayOutput) ToGetNotificationTopicsFilterArrayOutput() GetNotificationTopicsFilterArrayOutput

func (GetNotificationTopicsFilterArrayOutput) ToGetNotificationTopicsFilterArrayOutputWithContext

func (o GetNotificationTopicsFilterArrayOutput) ToGetNotificationTopicsFilterArrayOutputWithContext(ctx context.Context) GetNotificationTopicsFilterArrayOutput

type GetNotificationTopicsFilterInput

type GetNotificationTopicsFilterInput interface {
	pulumi.Input

	ToGetNotificationTopicsFilterOutput() GetNotificationTopicsFilterOutput
	ToGetNotificationTopicsFilterOutputWithContext(context.Context) GetNotificationTopicsFilterOutput
}

GetNotificationTopicsFilterInput is an input type that accepts GetNotificationTopicsFilterArgs and GetNotificationTopicsFilterOutput values. You can construct a concrete instance of `GetNotificationTopicsFilterInput` via:

GetNotificationTopicsFilterArgs{...}

type GetNotificationTopicsFilterOutput

type GetNotificationTopicsFilterOutput struct{ *pulumi.OutputState }

func (GetNotificationTopicsFilterOutput) ElementType

func (GetNotificationTopicsFilterOutput) Name

A filter to only return resources that match the given name exactly.

func (GetNotificationTopicsFilterOutput) Regex

func (GetNotificationTopicsFilterOutput) ToGetNotificationTopicsFilterOutput

func (o GetNotificationTopicsFilterOutput) ToGetNotificationTopicsFilterOutput() GetNotificationTopicsFilterOutput

func (GetNotificationTopicsFilterOutput) ToGetNotificationTopicsFilterOutputWithContext

func (o GetNotificationTopicsFilterOutput) ToGetNotificationTopicsFilterOutputWithContext(ctx context.Context) GetNotificationTopicsFilterOutput

func (GetNotificationTopicsFilterOutput) Values

type GetNotificationTopicsNotificationTopic

type GetNotificationTopicsNotificationTopic struct {
	// The endpoint for managing subscriptions or publishing messages to the topic.
	ApiEndpoint string `pulumi:"apiEndpoint"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
	CompartmentId string `pulumi:"compartmentId"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags map[string]interface{} `pulumi:"definedTags"`
	// The description of the topic.
	Description string `pulumi:"description"`
	// For optimistic concurrency control. See `if-match`.
	Etag string `pulumi:"etag"`
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags map[string]interface{} `pulumi:"freeformTags"`
	// A filter to only return resources that match the given id exactly.
	Id string `pulumi:"id"`
	// A filter to only return resources that match the given name exactly.
	Name string `pulumi:"name"`
	// A unique short topic Id. This is used only for SMS subscriptions.
	ShortTopicId string `pulumi:"shortTopicId"`
	// Filter returned list by specified lifecycle state. This parameter is case-insensitive.
	State string `pulumi:"state"`
	// The time the topic was created.
	TimeCreated string `pulumi:"timeCreated"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic.
	TopicId string `pulumi:"topicId"`
}

type GetNotificationTopicsNotificationTopicArgs

type GetNotificationTopicsNotificationTopicArgs struct {
	// The endpoint for managing subscriptions or publishing messages to the topic.
	ApiEndpoint pulumi.StringInput `pulumi:"apiEndpoint"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
	CompartmentId pulumi.StringInput `pulumi:"compartmentId"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapInput `pulumi:"definedTags"`
	// The description of the topic.
	Description pulumi.StringInput `pulumi:"description"`
	// For optimistic concurrency control. See `if-match`.
	Etag pulumi.StringInput `pulumi:"etag"`
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapInput `pulumi:"freeformTags"`
	// A filter to only return resources that match the given id exactly.
	Id pulumi.StringInput `pulumi:"id"`
	// A filter to only return resources that match the given name exactly.
	Name pulumi.StringInput `pulumi:"name"`
	// A unique short topic Id. This is used only for SMS subscriptions.
	ShortTopicId pulumi.StringInput `pulumi:"shortTopicId"`
	// Filter returned list by specified lifecycle state. This parameter is case-insensitive.
	State pulumi.StringInput `pulumi:"state"`
	// The time the topic was created.
	TimeCreated pulumi.StringInput `pulumi:"timeCreated"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic.
	TopicId pulumi.StringInput `pulumi:"topicId"`
}

func (GetNotificationTopicsNotificationTopicArgs) ElementType

func (GetNotificationTopicsNotificationTopicArgs) ToGetNotificationTopicsNotificationTopicOutput

func (i GetNotificationTopicsNotificationTopicArgs) ToGetNotificationTopicsNotificationTopicOutput() GetNotificationTopicsNotificationTopicOutput

func (GetNotificationTopicsNotificationTopicArgs) ToGetNotificationTopicsNotificationTopicOutputWithContext

func (i GetNotificationTopicsNotificationTopicArgs) ToGetNotificationTopicsNotificationTopicOutputWithContext(ctx context.Context) GetNotificationTopicsNotificationTopicOutput

type GetNotificationTopicsNotificationTopicArray

type GetNotificationTopicsNotificationTopicArray []GetNotificationTopicsNotificationTopicInput

func (GetNotificationTopicsNotificationTopicArray) ElementType

func (GetNotificationTopicsNotificationTopicArray) ToGetNotificationTopicsNotificationTopicArrayOutput

func (i GetNotificationTopicsNotificationTopicArray) ToGetNotificationTopicsNotificationTopicArrayOutput() GetNotificationTopicsNotificationTopicArrayOutput

func (GetNotificationTopicsNotificationTopicArray) ToGetNotificationTopicsNotificationTopicArrayOutputWithContext

func (i GetNotificationTopicsNotificationTopicArray) ToGetNotificationTopicsNotificationTopicArrayOutputWithContext(ctx context.Context) GetNotificationTopicsNotificationTopicArrayOutput

type GetNotificationTopicsNotificationTopicArrayInput

type GetNotificationTopicsNotificationTopicArrayInput interface {
	pulumi.Input

	ToGetNotificationTopicsNotificationTopicArrayOutput() GetNotificationTopicsNotificationTopicArrayOutput
	ToGetNotificationTopicsNotificationTopicArrayOutputWithContext(context.Context) GetNotificationTopicsNotificationTopicArrayOutput
}

GetNotificationTopicsNotificationTopicArrayInput is an input type that accepts GetNotificationTopicsNotificationTopicArray and GetNotificationTopicsNotificationTopicArrayOutput values. You can construct a concrete instance of `GetNotificationTopicsNotificationTopicArrayInput` via:

GetNotificationTopicsNotificationTopicArray{ GetNotificationTopicsNotificationTopicArgs{...} }

type GetNotificationTopicsNotificationTopicArrayOutput

type GetNotificationTopicsNotificationTopicArrayOutput struct{ *pulumi.OutputState }

func (GetNotificationTopicsNotificationTopicArrayOutput) ElementType

func (GetNotificationTopicsNotificationTopicArrayOutput) Index

func (GetNotificationTopicsNotificationTopicArrayOutput) ToGetNotificationTopicsNotificationTopicArrayOutput

func (o GetNotificationTopicsNotificationTopicArrayOutput) ToGetNotificationTopicsNotificationTopicArrayOutput() GetNotificationTopicsNotificationTopicArrayOutput

func (GetNotificationTopicsNotificationTopicArrayOutput) ToGetNotificationTopicsNotificationTopicArrayOutputWithContext

func (o GetNotificationTopicsNotificationTopicArrayOutput) ToGetNotificationTopicsNotificationTopicArrayOutputWithContext(ctx context.Context) GetNotificationTopicsNotificationTopicArrayOutput

type GetNotificationTopicsNotificationTopicInput

type GetNotificationTopicsNotificationTopicInput interface {
	pulumi.Input

	ToGetNotificationTopicsNotificationTopicOutput() GetNotificationTopicsNotificationTopicOutput
	ToGetNotificationTopicsNotificationTopicOutputWithContext(context.Context) GetNotificationTopicsNotificationTopicOutput
}

GetNotificationTopicsNotificationTopicInput is an input type that accepts GetNotificationTopicsNotificationTopicArgs and GetNotificationTopicsNotificationTopicOutput values. You can construct a concrete instance of `GetNotificationTopicsNotificationTopicInput` via:

GetNotificationTopicsNotificationTopicArgs{...}

type GetNotificationTopicsNotificationTopicOutput

type GetNotificationTopicsNotificationTopicOutput struct{ *pulumi.OutputState }

func (GetNotificationTopicsNotificationTopicOutput) ApiEndpoint

The endpoint for managing subscriptions or publishing messages to the topic.

func (GetNotificationTopicsNotificationTopicOutput) CompartmentId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.

func (GetNotificationTopicsNotificationTopicOutput) DefinedTags

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (GetNotificationTopicsNotificationTopicOutput) Description

The description of the topic.

func (GetNotificationTopicsNotificationTopicOutput) ElementType

func (GetNotificationTopicsNotificationTopicOutput) Etag

For optimistic concurrency control. See `if-match`.

func (GetNotificationTopicsNotificationTopicOutput) FreeformTags

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (GetNotificationTopicsNotificationTopicOutput) Id

A filter to only return resources that match the given id exactly.

func (GetNotificationTopicsNotificationTopicOutput) Name

A filter to only return resources that match the given name exactly.

func (GetNotificationTopicsNotificationTopicOutput) ShortTopicId

A unique short topic Id. This is used only for SMS subscriptions.

func (GetNotificationTopicsNotificationTopicOutput) State

Filter returned list by specified lifecycle state. This parameter is case-insensitive.

func (GetNotificationTopicsNotificationTopicOutput) TimeCreated

The time the topic was created.

func (GetNotificationTopicsNotificationTopicOutput) ToGetNotificationTopicsNotificationTopicOutput

func (o GetNotificationTopicsNotificationTopicOutput) ToGetNotificationTopicsNotificationTopicOutput() GetNotificationTopicsNotificationTopicOutput

func (GetNotificationTopicsNotificationTopicOutput) ToGetNotificationTopicsNotificationTopicOutputWithContext

func (o GetNotificationTopicsNotificationTopicOutput) ToGetNotificationTopicsNotificationTopicOutputWithContext(ctx context.Context) GetNotificationTopicsNotificationTopicOutput

func (GetNotificationTopicsNotificationTopicOutput) TopicId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic.

type GetNotificationTopicsOutputArgs

type GetNotificationTopicsOutputArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
	CompartmentId pulumi.StringInput                    `pulumi:"compartmentId"`
	Filters       GetNotificationTopicsFilterArrayInput `pulumi:"filters"`
	// A filter to only return resources that match the given id exactly.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// A filter to only return resources that match the given name exactly.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Filter returned list by specified lifecycle state. This parameter is case-insensitive.
	State pulumi.StringPtrInput `pulumi:"state"`
}

A collection of arguments for invoking getNotificationTopics.

func (GetNotificationTopicsOutputArgs) ElementType

type GetNotificationTopicsResult

type GetNotificationTopicsResult struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the topic.
	CompartmentId string                        `pulumi:"compartmentId"`
	Filters       []GetNotificationTopicsFilter `pulumi:"filters"`
	Id            *string                       `pulumi:"id"`
	// The name of the topic.
	Name *string `pulumi:"name"`
	// The list of notification_topics.
	NotificationTopics []GetNotificationTopicsNotificationTopic `pulumi:"notificationTopics"`
	// The lifecycle state of the topic.
	State *string `pulumi:"state"`
}

A collection of values returned by getNotificationTopics.

func GetNotificationTopics

func GetNotificationTopics(ctx *pulumi.Context, args *GetNotificationTopicsArgs, opts ...pulumi.InvokeOption) (*GetNotificationTopicsResult, error)

This data source provides the list of Notification Topics in Oracle Cloud Infrastructure Notifications service.

Lists topics in the specified compartment.

Transactions Per Minute (TPM) per-tenancy limit for this operation: 120.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/Ons"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Ons.GetNotificationTopics(ctx, &ons.GetNotificationTopicsArgs{
			CompartmentId: compartmentId,
			Id:            pulumi.StringRef(notificationTopicId),
			Name:          pulumi.StringRef(notificationTopicName),
			State:         pulumi.StringRef(notificationTopicState),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetNotificationTopicsResultOutput

type GetNotificationTopicsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getNotificationTopics.

func (GetNotificationTopicsResultOutput) CompartmentId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the topic.

func (GetNotificationTopicsResultOutput) ElementType

func (GetNotificationTopicsResultOutput) Filters

func (GetNotificationTopicsResultOutput) Id

func (GetNotificationTopicsResultOutput) Name

The name of the topic.

func (GetNotificationTopicsResultOutput) NotificationTopics

The list of notification_topics.

func (GetNotificationTopicsResultOutput) State

The lifecycle state of the topic.

func (GetNotificationTopicsResultOutput) ToGetNotificationTopicsResultOutput

func (o GetNotificationTopicsResultOutput) ToGetNotificationTopicsResultOutput() GetNotificationTopicsResultOutput

func (GetNotificationTopicsResultOutput) ToGetNotificationTopicsResultOutputWithContext

func (o GetNotificationTopicsResultOutput) ToGetNotificationTopicsResultOutputWithContext(ctx context.Context) GetNotificationTopicsResultOutput

type GetSubscriptionsArgs

type GetSubscriptionsArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
	CompartmentId string                   `pulumi:"compartmentId"`
	Filters       []GetSubscriptionsFilter `pulumi:"filters"`
	// Return all subscriptions that are subscribed to the given topic OCID. Either this query parameter or the compartmentId query parameter must be set.
	TopicId *string `pulumi:"topicId"`
}

A collection of arguments for invoking getSubscriptions.

type GetSubscriptionsFilter

type GetSubscriptionsFilter struct {
	Name   string   `pulumi:"name"`
	Regex  *bool    `pulumi:"regex"`
	Values []string `pulumi:"values"`
}

type GetSubscriptionsFilterArgs

type GetSubscriptionsFilterArgs struct {
	Name   pulumi.StringInput      `pulumi:"name"`
	Regex  pulumi.BoolPtrInput     `pulumi:"regex"`
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (GetSubscriptionsFilterArgs) ElementType

func (GetSubscriptionsFilterArgs) ElementType() reflect.Type

func (GetSubscriptionsFilterArgs) ToGetSubscriptionsFilterOutput

func (i GetSubscriptionsFilterArgs) ToGetSubscriptionsFilterOutput() GetSubscriptionsFilterOutput

func (GetSubscriptionsFilterArgs) ToGetSubscriptionsFilterOutputWithContext

func (i GetSubscriptionsFilterArgs) ToGetSubscriptionsFilterOutputWithContext(ctx context.Context) GetSubscriptionsFilterOutput

type GetSubscriptionsFilterArray

type GetSubscriptionsFilterArray []GetSubscriptionsFilterInput

func (GetSubscriptionsFilterArray) ElementType

func (GetSubscriptionsFilterArray) ToGetSubscriptionsFilterArrayOutput

func (i GetSubscriptionsFilterArray) ToGetSubscriptionsFilterArrayOutput() GetSubscriptionsFilterArrayOutput

func (GetSubscriptionsFilterArray) ToGetSubscriptionsFilterArrayOutputWithContext

func (i GetSubscriptionsFilterArray) ToGetSubscriptionsFilterArrayOutputWithContext(ctx context.Context) GetSubscriptionsFilterArrayOutput

type GetSubscriptionsFilterArrayInput

type GetSubscriptionsFilterArrayInput interface {
	pulumi.Input

	ToGetSubscriptionsFilterArrayOutput() GetSubscriptionsFilterArrayOutput
	ToGetSubscriptionsFilterArrayOutputWithContext(context.Context) GetSubscriptionsFilterArrayOutput
}

GetSubscriptionsFilterArrayInput is an input type that accepts GetSubscriptionsFilterArray and GetSubscriptionsFilterArrayOutput values. You can construct a concrete instance of `GetSubscriptionsFilterArrayInput` via:

GetSubscriptionsFilterArray{ GetSubscriptionsFilterArgs{...} }

type GetSubscriptionsFilterArrayOutput

type GetSubscriptionsFilterArrayOutput struct{ *pulumi.OutputState }

func (GetSubscriptionsFilterArrayOutput) ElementType

func (GetSubscriptionsFilterArrayOutput) Index

func (GetSubscriptionsFilterArrayOutput) ToGetSubscriptionsFilterArrayOutput

func (o GetSubscriptionsFilterArrayOutput) ToGetSubscriptionsFilterArrayOutput() GetSubscriptionsFilterArrayOutput

func (GetSubscriptionsFilterArrayOutput) ToGetSubscriptionsFilterArrayOutputWithContext

func (o GetSubscriptionsFilterArrayOutput) ToGetSubscriptionsFilterArrayOutputWithContext(ctx context.Context) GetSubscriptionsFilterArrayOutput

type GetSubscriptionsFilterInput

type GetSubscriptionsFilterInput interface {
	pulumi.Input

	ToGetSubscriptionsFilterOutput() GetSubscriptionsFilterOutput
	ToGetSubscriptionsFilterOutputWithContext(context.Context) GetSubscriptionsFilterOutput
}

GetSubscriptionsFilterInput is an input type that accepts GetSubscriptionsFilterArgs and GetSubscriptionsFilterOutput values. You can construct a concrete instance of `GetSubscriptionsFilterInput` via:

GetSubscriptionsFilterArgs{...}

type GetSubscriptionsFilterOutput

type GetSubscriptionsFilterOutput struct{ *pulumi.OutputState }

func (GetSubscriptionsFilterOutput) ElementType

func (GetSubscriptionsFilterOutput) Name

func (GetSubscriptionsFilterOutput) Regex

func (GetSubscriptionsFilterOutput) ToGetSubscriptionsFilterOutput

func (o GetSubscriptionsFilterOutput) ToGetSubscriptionsFilterOutput() GetSubscriptionsFilterOutput

func (GetSubscriptionsFilterOutput) ToGetSubscriptionsFilterOutputWithContext

func (o GetSubscriptionsFilterOutput) ToGetSubscriptionsFilterOutputWithContext(ctx context.Context) GetSubscriptionsFilterOutput

func (GetSubscriptionsFilterOutput) Values

type GetSubscriptionsOutputArgs

type GetSubscriptionsOutputArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
	CompartmentId pulumi.StringInput               `pulumi:"compartmentId"`
	Filters       GetSubscriptionsFilterArrayInput `pulumi:"filters"`
	// Return all subscriptions that are subscribed to the given topic OCID. Either this query parameter or the compartmentId query parameter must be set.
	TopicId pulumi.StringPtrInput `pulumi:"topicId"`
}

A collection of arguments for invoking getSubscriptions.

func (GetSubscriptionsOutputArgs) ElementType

func (GetSubscriptionsOutputArgs) ElementType() reflect.Type

type GetSubscriptionsResult

type GetSubscriptionsResult struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the subscription.
	CompartmentId string                   `pulumi:"compartmentId"`
	Filters       []GetSubscriptionsFilter `pulumi:"filters"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The list of subscriptions.
	Subscriptions []GetSubscriptionsSubscription `pulumi:"subscriptions"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated topic.
	TopicId *string `pulumi:"topicId"`
}

A collection of values returned by getSubscriptions.

func GetSubscriptions

func GetSubscriptions(ctx *pulumi.Context, args *GetSubscriptionsArgs, opts ...pulumi.InvokeOption) (*GetSubscriptionsResult, error)

This data source provides the list of Subscriptions in Oracle Cloud Infrastructure Notifications service.

Lists the subscriptions in the specified compartment or topic.

Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/Ons"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Ons.GetSubscriptions(ctx, &ons.GetSubscriptionsArgs{
			CompartmentId: compartmentId,
			TopicId:       pulumi.StringRef(testNotificationTopic.Id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetSubscriptionsResultOutput

type GetSubscriptionsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSubscriptions.

func (GetSubscriptionsResultOutput) CompartmentId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the subscription.

func (GetSubscriptionsResultOutput) ElementType

func (GetSubscriptionsResultOutput) Filters

func (GetSubscriptionsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetSubscriptionsResultOutput) Subscriptions

The list of subscriptions.

func (GetSubscriptionsResultOutput) ToGetSubscriptionsResultOutput

func (o GetSubscriptionsResultOutput) ToGetSubscriptionsResultOutput() GetSubscriptionsResultOutput

func (GetSubscriptionsResultOutput) ToGetSubscriptionsResultOutputWithContext

func (o GetSubscriptionsResultOutput) ToGetSubscriptionsResultOutputWithContext(ctx context.Context) GetSubscriptionsResultOutput

func (GetSubscriptionsResultOutput) TopicId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated topic.

type GetSubscriptionsSubscription

type GetSubscriptionsSubscription struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
	CompartmentId string `pulumi:"compartmentId"`
	// The time when this suscription was created.
	CreatedTime string `pulumi:"createdTime"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags      map[string]interface{}                       `pulumi:"definedTags"`
	DeliveryPolicies []GetSubscriptionsSubscriptionDeliveryPolicy `pulumi:"deliveryPolicies"`
	// A locator that corresponds to the subscription protocol.  For example, an email address for a subscription that uses the `EMAIL` protocol, or a URL for a subscription that uses an HTTP-based protocol. Avoid entering confidential information.
	Endpoint string `pulumi:"endpoint"`
	// For optimistic concurrency control. See `if-match`.
	Etag string `pulumi:"etag"`
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags map[string]interface{} `pulumi:"freeformTags"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription.
	Id string `pulumi:"id"`
	// The protocol used for the subscription.
	Protocol string `pulumi:"protocol"`
	// The lifecycle state of the subscription. The status of a new subscription is PENDING; when confirmed, the subscription status changes to ACTIVE.
	State string `pulumi:"state"`
	// Return all subscriptions that are subscribed to the given topic OCID. Either this query parameter or the compartmentId query parameter must be set.
	TopicId string `pulumi:"topicId"`
}

type GetSubscriptionsSubscriptionArgs

type GetSubscriptionsSubscriptionArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
	CompartmentId pulumi.StringInput `pulumi:"compartmentId"`
	// The time when this suscription was created.
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags      pulumi.MapInput                                      `pulumi:"definedTags"`
	DeliveryPolicies GetSubscriptionsSubscriptionDeliveryPolicyArrayInput `pulumi:"deliveryPolicies"`
	// A locator that corresponds to the subscription protocol.  For example, an email address for a subscription that uses the `EMAIL` protocol, or a URL for a subscription that uses an HTTP-based protocol. Avoid entering confidential information.
	Endpoint pulumi.StringInput `pulumi:"endpoint"`
	// For optimistic concurrency control. See `if-match`.
	Etag pulumi.StringInput `pulumi:"etag"`
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapInput `pulumi:"freeformTags"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription.
	Id pulumi.StringInput `pulumi:"id"`
	// The protocol used for the subscription.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// The lifecycle state of the subscription. The status of a new subscription is PENDING; when confirmed, the subscription status changes to ACTIVE.
	State pulumi.StringInput `pulumi:"state"`
	// Return all subscriptions that are subscribed to the given topic OCID. Either this query parameter or the compartmentId query parameter must be set.
	TopicId pulumi.StringInput `pulumi:"topicId"`
}

func (GetSubscriptionsSubscriptionArgs) ElementType

func (GetSubscriptionsSubscriptionArgs) ToGetSubscriptionsSubscriptionOutput

func (i GetSubscriptionsSubscriptionArgs) ToGetSubscriptionsSubscriptionOutput() GetSubscriptionsSubscriptionOutput

func (GetSubscriptionsSubscriptionArgs) ToGetSubscriptionsSubscriptionOutputWithContext

func (i GetSubscriptionsSubscriptionArgs) ToGetSubscriptionsSubscriptionOutputWithContext(ctx context.Context) GetSubscriptionsSubscriptionOutput

type GetSubscriptionsSubscriptionArray

type GetSubscriptionsSubscriptionArray []GetSubscriptionsSubscriptionInput

func (GetSubscriptionsSubscriptionArray) ElementType

func (GetSubscriptionsSubscriptionArray) ToGetSubscriptionsSubscriptionArrayOutput

func (i GetSubscriptionsSubscriptionArray) ToGetSubscriptionsSubscriptionArrayOutput() GetSubscriptionsSubscriptionArrayOutput

func (GetSubscriptionsSubscriptionArray) ToGetSubscriptionsSubscriptionArrayOutputWithContext

func (i GetSubscriptionsSubscriptionArray) ToGetSubscriptionsSubscriptionArrayOutputWithContext(ctx context.Context) GetSubscriptionsSubscriptionArrayOutput

type GetSubscriptionsSubscriptionArrayInput

type GetSubscriptionsSubscriptionArrayInput interface {
	pulumi.Input

	ToGetSubscriptionsSubscriptionArrayOutput() GetSubscriptionsSubscriptionArrayOutput
	ToGetSubscriptionsSubscriptionArrayOutputWithContext(context.Context) GetSubscriptionsSubscriptionArrayOutput
}

GetSubscriptionsSubscriptionArrayInput is an input type that accepts GetSubscriptionsSubscriptionArray and GetSubscriptionsSubscriptionArrayOutput values. You can construct a concrete instance of `GetSubscriptionsSubscriptionArrayInput` via:

GetSubscriptionsSubscriptionArray{ GetSubscriptionsSubscriptionArgs{...} }

type GetSubscriptionsSubscriptionArrayOutput

type GetSubscriptionsSubscriptionArrayOutput struct{ *pulumi.OutputState }

func (GetSubscriptionsSubscriptionArrayOutput) ElementType

func (GetSubscriptionsSubscriptionArrayOutput) Index

func (GetSubscriptionsSubscriptionArrayOutput) ToGetSubscriptionsSubscriptionArrayOutput

func (o GetSubscriptionsSubscriptionArrayOutput) ToGetSubscriptionsSubscriptionArrayOutput() GetSubscriptionsSubscriptionArrayOutput

func (GetSubscriptionsSubscriptionArrayOutput) ToGetSubscriptionsSubscriptionArrayOutputWithContext

func (o GetSubscriptionsSubscriptionArrayOutput) ToGetSubscriptionsSubscriptionArrayOutputWithContext(ctx context.Context) GetSubscriptionsSubscriptionArrayOutput

type GetSubscriptionsSubscriptionDeliveryPolicy

type GetSubscriptionsSubscriptionDeliveryPolicy struct {
	BackoffRetryPolicies []GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicy `pulumi:"backoffRetryPolicies"`
}

type GetSubscriptionsSubscriptionDeliveryPolicyArgs

type GetSubscriptionsSubscriptionDeliveryPolicyArgs struct {
	BackoffRetryPolicies GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayInput `pulumi:"backoffRetryPolicies"`
}

func (GetSubscriptionsSubscriptionDeliveryPolicyArgs) ElementType

func (GetSubscriptionsSubscriptionDeliveryPolicyArgs) ToGetSubscriptionsSubscriptionDeliveryPolicyOutput

func (i GetSubscriptionsSubscriptionDeliveryPolicyArgs) ToGetSubscriptionsSubscriptionDeliveryPolicyOutput() GetSubscriptionsSubscriptionDeliveryPolicyOutput

func (GetSubscriptionsSubscriptionDeliveryPolicyArgs) ToGetSubscriptionsSubscriptionDeliveryPolicyOutputWithContext

func (i GetSubscriptionsSubscriptionDeliveryPolicyArgs) ToGetSubscriptionsSubscriptionDeliveryPolicyOutputWithContext(ctx context.Context) GetSubscriptionsSubscriptionDeliveryPolicyOutput

type GetSubscriptionsSubscriptionDeliveryPolicyArray

type GetSubscriptionsSubscriptionDeliveryPolicyArray []GetSubscriptionsSubscriptionDeliveryPolicyInput

func (GetSubscriptionsSubscriptionDeliveryPolicyArray) ElementType

func (GetSubscriptionsSubscriptionDeliveryPolicyArray) ToGetSubscriptionsSubscriptionDeliveryPolicyArrayOutput

func (i GetSubscriptionsSubscriptionDeliveryPolicyArray) ToGetSubscriptionsSubscriptionDeliveryPolicyArrayOutput() GetSubscriptionsSubscriptionDeliveryPolicyArrayOutput

func (GetSubscriptionsSubscriptionDeliveryPolicyArray) ToGetSubscriptionsSubscriptionDeliveryPolicyArrayOutputWithContext

func (i GetSubscriptionsSubscriptionDeliveryPolicyArray) ToGetSubscriptionsSubscriptionDeliveryPolicyArrayOutputWithContext(ctx context.Context) GetSubscriptionsSubscriptionDeliveryPolicyArrayOutput

type GetSubscriptionsSubscriptionDeliveryPolicyArrayInput

type GetSubscriptionsSubscriptionDeliveryPolicyArrayInput interface {
	pulumi.Input

	ToGetSubscriptionsSubscriptionDeliveryPolicyArrayOutput() GetSubscriptionsSubscriptionDeliveryPolicyArrayOutput
	ToGetSubscriptionsSubscriptionDeliveryPolicyArrayOutputWithContext(context.Context) GetSubscriptionsSubscriptionDeliveryPolicyArrayOutput
}

GetSubscriptionsSubscriptionDeliveryPolicyArrayInput is an input type that accepts GetSubscriptionsSubscriptionDeliveryPolicyArray and GetSubscriptionsSubscriptionDeliveryPolicyArrayOutput values. You can construct a concrete instance of `GetSubscriptionsSubscriptionDeliveryPolicyArrayInput` via:

GetSubscriptionsSubscriptionDeliveryPolicyArray{ GetSubscriptionsSubscriptionDeliveryPolicyArgs{...} }

type GetSubscriptionsSubscriptionDeliveryPolicyArrayOutput

type GetSubscriptionsSubscriptionDeliveryPolicyArrayOutput struct{ *pulumi.OutputState }

func (GetSubscriptionsSubscriptionDeliveryPolicyArrayOutput) ElementType

func (GetSubscriptionsSubscriptionDeliveryPolicyArrayOutput) Index

func (GetSubscriptionsSubscriptionDeliveryPolicyArrayOutput) ToGetSubscriptionsSubscriptionDeliveryPolicyArrayOutput

func (GetSubscriptionsSubscriptionDeliveryPolicyArrayOutput) ToGetSubscriptionsSubscriptionDeliveryPolicyArrayOutputWithContext

func (o GetSubscriptionsSubscriptionDeliveryPolicyArrayOutput) ToGetSubscriptionsSubscriptionDeliveryPolicyArrayOutputWithContext(ctx context.Context) GetSubscriptionsSubscriptionDeliveryPolicyArrayOutput

type GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicy

type GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicy struct {
	// The maximum retry duration in milliseconds.
	MaxRetryDuration int `pulumi:"maxRetryDuration"`
	// The type of delivery policy. Default value: EXPONENTIAL.
	PolicyType string `pulumi:"policyType"`
}

type GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArgs

type GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArgs struct {
	// The maximum retry duration in milliseconds.
	MaxRetryDuration pulumi.IntInput `pulumi:"maxRetryDuration"`
	// The type of delivery policy. Default value: EXPONENTIAL.
	PolicyType pulumi.StringInput `pulumi:"policyType"`
}

func (GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArgs) ElementType

func (GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArgs) ToGetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutput

func (GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArgs) ToGetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutputWithContext

func (i GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArgs) ToGetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutputWithContext(ctx context.Context) GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutput

type GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArray

type GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArray []GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyInput

func (GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArray) ElementType

func (GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArray) ToGetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutput

func (GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArray) ToGetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutputWithContext

func (i GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArray) ToGetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutputWithContext(ctx context.Context) GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutput

type GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayInput

type GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayInput interface {
	pulumi.Input

	ToGetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutput() GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutput
	ToGetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutputWithContext(context.Context) GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutput
}

GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayInput is an input type that accepts GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArray and GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutput values. You can construct a concrete instance of `GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayInput` via:

GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArray{ GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArgs{...} }

type GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutput

type GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutput struct{ *pulumi.OutputState }

func (GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutput) ElementType

func (GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutput) ToGetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutput

func (GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutput) ToGetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutputWithContext

func (o GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutput) ToGetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutputWithContext(ctx context.Context) GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArrayOutput

type GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyInput

type GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyInput interface {
	pulumi.Input

	ToGetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutput() GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutput
	ToGetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutputWithContext(context.Context) GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutput
}

GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyInput is an input type that accepts GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArgs and GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutput values. You can construct a concrete instance of `GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyInput` via:

GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyArgs{...}

type GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutput

type GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutput struct{ *pulumi.OutputState }

func (GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutput) ElementType

func (GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutput) MaxRetryDuration

The maximum retry duration in milliseconds.

func (GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutput) PolicyType

The type of delivery policy. Default value: EXPONENTIAL.

func (GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutput) ToGetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutput

func (GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutput) ToGetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutputWithContext

func (o GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutput) ToGetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutputWithContext(ctx context.Context) GetSubscriptionsSubscriptionDeliveryPolicyBackoffRetryPolicyOutput

type GetSubscriptionsSubscriptionDeliveryPolicyInput

type GetSubscriptionsSubscriptionDeliveryPolicyInput interface {
	pulumi.Input

	ToGetSubscriptionsSubscriptionDeliveryPolicyOutput() GetSubscriptionsSubscriptionDeliveryPolicyOutput
	ToGetSubscriptionsSubscriptionDeliveryPolicyOutputWithContext(context.Context) GetSubscriptionsSubscriptionDeliveryPolicyOutput
}

GetSubscriptionsSubscriptionDeliveryPolicyInput is an input type that accepts GetSubscriptionsSubscriptionDeliveryPolicyArgs and GetSubscriptionsSubscriptionDeliveryPolicyOutput values. You can construct a concrete instance of `GetSubscriptionsSubscriptionDeliveryPolicyInput` via:

GetSubscriptionsSubscriptionDeliveryPolicyArgs{...}

type GetSubscriptionsSubscriptionDeliveryPolicyOutput

type GetSubscriptionsSubscriptionDeliveryPolicyOutput struct{ *pulumi.OutputState }

func (GetSubscriptionsSubscriptionDeliveryPolicyOutput) ElementType

func (GetSubscriptionsSubscriptionDeliveryPolicyOutput) ToGetSubscriptionsSubscriptionDeliveryPolicyOutput

func (o GetSubscriptionsSubscriptionDeliveryPolicyOutput) ToGetSubscriptionsSubscriptionDeliveryPolicyOutput() GetSubscriptionsSubscriptionDeliveryPolicyOutput

func (GetSubscriptionsSubscriptionDeliveryPolicyOutput) ToGetSubscriptionsSubscriptionDeliveryPolicyOutputWithContext

func (o GetSubscriptionsSubscriptionDeliveryPolicyOutput) ToGetSubscriptionsSubscriptionDeliveryPolicyOutputWithContext(ctx context.Context) GetSubscriptionsSubscriptionDeliveryPolicyOutput

type GetSubscriptionsSubscriptionInput

type GetSubscriptionsSubscriptionInput interface {
	pulumi.Input

	ToGetSubscriptionsSubscriptionOutput() GetSubscriptionsSubscriptionOutput
	ToGetSubscriptionsSubscriptionOutputWithContext(context.Context) GetSubscriptionsSubscriptionOutput
}

GetSubscriptionsSubscriptionInput is an input type that accepts GetSubscriptionsSubscriptionArgs and GetSubscriptionsSubscriptionOutput values. You can construct a concrete instance of `GetSubscriptionsSubscriptionInput` via:

GetSubscriptionsSubscriptionArgs{...}

type GetSubscriptionsSubscriptionOutput

type GetSubscriptionsSubscriptionOutput struct{ *pulumi.OutputState }

func (GetSubscriptionsSubscriptionOutput) CompartmentId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.

func (GetSubscriptionsSubscriptionOutput) CreatedTime

The time when this suscription was created.

func (GetSubscriptionsSubscriptionOutput) DefinedTags

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (GetSubscriptionsSubscriptionOutput) DeliveryPolicies

func (GetSubscriptionsSubscriptionOutput) ElementType

func (GetSubscriptionsSubscriptionOutput) Endpoint

A locator that corresponds to the subscription protocol. For example, an email address for a subscription that uses the `EMAIL` protocol, or a URL for a subscription that uses an HTTP-based protocol. Avoid entering confidential information.

func (GetSubscriptionsSubscriptionOutput) Etag

For optimistic concurrency control. See `if-match`.

func (GetSubscriptionsSubscriptionOutput) FreeformTags

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (GetSubscriptionsSubscriptionOutput) Id

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription.

func (GetSubscriptionsSubscriptionOutput) Protocol

The protocol used for the subscription.

func (GetSubscriptionsSubscriptionOutput) State

The lifecycle state of the subscription. The status of a new subscription is PENDING; when confirmed, the subscription status changes to ACTIVE.

func (GetSubscriptionsSubscriptionOutput) ToGetSubscriptionsSubscriptionOutput

func (o GetSubscriptionsSubscriptionOutput) ToGetSubscriptionsSubscriptionOutput() GetSubscriptionsSubscriptionOutput

func (GetSubscriptionsSubscriptionOutput) ToGetSubscriptionsSubscriptionOutputWithContext

func (o GetSubscriptionsSubscriptionOutput) ToGetSubscriptionsSubscriptionOutputWithContext(ctx context.Context) GetSubscriptionsSubscriptionOutput

func (GetSubscriptionsSubscriptionOutput) TopicId

Return all subscriptions that are subscribed to the given topic OCID. Either this query parameter or the compartmentId query parameter must be set.

type LookupNotificationTopicArgs

type LookupNotificationTopicArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to retrieve.
	//
	// Transactions Per Minute (TPM) per-tenancy limit for this operation: 120.
	TopicId string `pulumi:"topicId"`
}

A collection of arguments for invoking getNotificationTopic.

type LookupNotificationTopicOutputArgs

type LookupNotificationTopicOutputArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to retrieve.
	//
	// Transactions Per Minute (TPM) per-tenancy limit for this operation: 120.
	TopicId pulumi.StringInput `pulumi:"topicId"`
}

A collection of arguments for invoking getNotificationTopic.

func (LookupNotificationTopicOutputArgs) ElementType

type LookupNotificationTopicResult

type LookupNotificationTopicResult struct {
	// The endpoint for managing subscriptions or publishing messages to the topic.
	ApiEndpoint string `pulumi:"apiEndpoint"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the topic.
	CompartmentId string `pulumi:"compartmentId"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags map[string]interface{} `pulumi:"definedTags"`
	// The description of the topic.
	Description string `pulumi:"description"`
	// For optimistic concurrency control. See `if-match`.
	Etag string `pulumi:"etag"`
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags map[string]interface{} `pulumi:"freeformTags"`
	Id           string                 `pulumi:"id"`
	// The name of the topic.
	Name string `pulumi:"name"`
	// A unique short topic Id. This is used only for SMS subscriptions.
	ShortTopicId string `pulumi:"shortTopicId"`
	// The lifecycle state of the topic.
	State string `pulumi:"state"`
	// The time the topic was created.
	TimeCreated string `pulumi:"timeCreated"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic.
	TopicId string `pulumi:"topicId"`
}

A collection of values returned by getNotificationTopic.

func LookupNotificationTopic

func LookupNotificationTopic(ctx *pulumi.Context, args *LookupNotificationTopicArgs, opts ...pulumi.InvokeOption) (*LookupNotificationTopicResult, error)

This data source provides details about a specific Notification Topic resource in Oracle Cloud Infrastructure Notifications service.

Gets the specified topic's configuration information.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/Ons"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Ons.GetNotificationTopic(ctx, &ons.GetNotificationTopicArgs{
			TopicId: testNotificationTopicOciOnsNotificationTopic.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupNotificationTopicResultOutput

type LookupNotificationTopicResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getNotificationTopic.

func (LookupNotificationTopicResultOutput) ApiEndpoint

The endpoint for managing subscriptions or publishing messages to the topic.

func (LookupNotificationTopicResultOutput) CompartmentId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the topic.

func (LookupNotificationTopicResultOutput) DefinedTags

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (LookupNotificationTopicResultOutput) Description

The description of the topic.

func (LookupNotificationTopicResultOutput) ElementType

func (LookupNotificationTopicResultOutput) Etag

For optimistic concurrency control. See `if-match`.

func (LookupNotificationTopicResultOutput) FreeformTags

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (LookupNotificationTopicResultOutput) Id

func (LookupNotificationTopicResultOutput) Name

The name of the topic.

func (LookupNotificationTopicResultOutput) ShortTopicId

A unique short topic Id. This is used only for SMS subscriptions.

func (LookupNotificationTopicResultOutput) State

The lifecycle state of the topic.

func (LookupNotificationTopicResultOutput) TimeCreated

The time the topic was created.

func (LookupNotificationTopicResultOutput) ToLookupNotificationTopicResultOutput

func (o LookupNotificationTopicResultOutput) ToLookupNotificationTopicResultOutput() LookupNotificationTopicResultOutput

func (LookupNotificationTopicResultOutput) ToLookupNotificationTopicResultOutputWithContext

func (o LookupNotificationTopicResultOutput) ToLookupNotificationTopicResultOutputWithContext(ctx context.Context) LookupNotificationTopicResultOutput

func (LookupNotificationTopicResultOutput) TopicId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic.

type LookupSubscriptionArgs

type LookupSubscriptionArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription to retrieve.
	SubscriptionId string `pulumi:"subscriptionId"`
}

A collection of arguments for invoking getSubscription.

type LookupSubscriptionOutputArgs

type LookupSubscriptionOutputArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription to retrieve.
	SubscriptionId pulumi.StringInput `pulumi:"subscriptionId"`
}

A collection of arguments for invoking getSubscription.

func (LookupSubscriptionOutputArgs) ElementType

type LookupSubscriptionResult

type LookupSubscriptionResult struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the subscription.
	CompartmentId string `pulumi:"compartmentId"`
	// The time when this suscription was created.
	CreatedTime string `pulumi:"createdTime"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags map[string]interface{} `pulumi:"definedTags"`
	// The delivery policy of the subscription. Stored as a JSON string.
	DeliveryPolicy string `pulumi:"deliveryPolicy"`
	// A locator that corresponds to the subscription protocol. For example, an email address for a subscription that uses the `EMAIL` protocol, or a URL for a subscription that uses an HTTP-based protocol.
	Endpoint string `pulumi:"endpoint"`
	// For optimistic concurrency control. See `if-match`.
	Etag string `pulumi:"etag"`
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags map[string]interface{} `pulumi:"freeformTags"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription.
	Id string `pulumi:"id"`
	// The protocol used for the subscription.
	Protocol string `pulumi:"protocol"`
	// The lifecycle state of the subscription. The status of a new subscription is PENDING; when confirmed, the subscription status changes to ACTIVE.
	State          string `pulumi:"state"`
	SubscriptionId string `pulumi:"subscriptionId"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated topic.
	TopicId string `pulumi:"topicId"`
}

A collection of values returned by getSubscription.

func LookupSubscription

func LookupSubscription(ctx *pulumi.Context, args *LookupSubscriptionArgs, opts ...pulumi.InvokeOption) (*LookupSubscriptionResult, error)

This data source provides details about a specific Subscription resource in Oracle Cloud Infrastructure Notifications service.

Gets the specified subscription's configuration information.

Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/Ons"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Ons.GetSubscription(ctx, &ons.GetSubscriptionArgs{
			SubscriptionId: testSubscriptionOciOnsSubscription.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupSubscriptionResultOutput

type LookupSubscriptionResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSubscription.

func (LookupSubscriptionResultOutput) CompartmentId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the subscription.

func (LookupSubscriptionResultOutput) CreatedTime

The time when this suscription was created.

func (LookupSubscriptionResultOutput) DefinedTags

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (LookupSubscriptionResultOutput) DeliveryPolicy

The delivery policy of the subscription. Stored as a JSON string.

func (LookupSubscriptionResultOutput) ElementType

func (LookupSubscriptionResultOutput) Endpoint

A locator that corresponds to the subscription protocol. For example, an email address for a subscription that uses the `EMAIL` protocol, or a URL for a subscription that uses an HTTP-based protocol.

func (LookupSubscriptionResultOutput) Etag

For optimistic concurrency control. See `if-match`.

func (LookupSubscriptionResultOutput) FreeformTags

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (LookupSubscriptionResultOutput) Id

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription.

func (LookupSubscriptionResultOutput) Protocol

The protocol used for the subscription.

func (LookupSubscriptionResultOutput) State

The lifecycle state of the subscription. The status of a new subscription is PENDING; when confirmed, the subscription status changes to ACTIVE.

func (LookupSubscriptionResultOutput) SubscriptionId

func (LookupSubscriptionResultOutput) ToLookupSubscriptionResultOutput

func (o LookupSubscriptionResultOutput) ToLookupSubscriptionResultOutput() LookupSubscriptionResultOutput

func (LookupSubscriptionResultOutput) ToLookupSubscriptionResultOutputWithContext

func (o LookupSubscriptionResultOutput) ToLookupSubscriptionResultOutputWithContext(ctx context.Context) LookupSubscriptionResultOutput

func (LookupSubscriptionResultOutput) TopicId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated topic.

type NotificationTopic

type NotificationTopic struct {
	pulumi.CustomResourceState

	// The endpoint for managing subscriptions or publishing messages to the topic.
	ApiEndpoint pulumi.StringOutput `pulumi:"apiEndpoint"`
	// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the topic in.
	CompartmentId pulumi.StringOutput `pulumi:"compartmentId"`
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapOutput `pulumi:"definedTags"`
	// (Updatable) The description of the topic being created. Avoid entering confidential information.
	Description pulumi.StringOutput `pulumi:"description"`
	// For optimistic concurrency control. See `if-match`.
	Etag pulumi.StringOutput `pulumi:"etag"`
	// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapOutput `pulumi:"freeformTags"`
	// The name of the topic being created. The topic name must be unique across the tenancy. Avoid entering confidential information.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	Name pulumi.StringOutput `pulumi:"name"`
	// A unique short topic Id. This is used only for SMS subscriptions.
	ShortTopicId pulumi.StringOutput `pulumi:"shortTopicId"`
	// The lifecycle state of the topic.
	State pulumi.StringOutput `pulumi:"state"`
	// The time the topic was created.
	TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic.
	TopicId pulumi.StringOutput `pulumi:"topicId"`
}

This resource provides the Notification Topic resource in Oracle Cloud Infrastructure Notifications service.

Creates a topic in the specified compartment. For general information about topics, see [Managing Topics and Subscriptions](https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm).

For the purposes of access control, you must provide the OCID of the compartment where you want the topic to reside. For information about access control and compartments, see [Overview of the IAM Service](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm).

You must specify a display name for the topic.

All Oracle Cloud Infrastructure resources, including topics, get an Oracle-assigned, unique ID called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID in the response. You can also retrieve a resource's OCID by using a List API operation on that resource type, or by viewing the resource in the Console. For more information, see [Resource Identifiers](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/Ons"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Ons.NewNotificationTopic(ctx, "test_notification_topic", &Ons.NotificationTopicArgs{
			CompartmentId: pulumi.Any(compartmentId),
			Name:          pulumi.Any(notificationTopicName),
			DefinedTags: pulumi.Map{
				"Operations.CostCenter": pulumi.Any("42"),
			},
			Description: pulumi.Any(notificationTopicDescription),
			FreeformTags: pulumi.Map{
				"Department": pulumi.Any("Finance"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

NotificationTopics can be imported using the `id`, e.g.

```sh $ pulumi import oci:Ons/notificationTopic:NotificationTopic test_notification_topic "id" ```

func GetNotificationTopic

func GetNotificationTopic(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NotificationTopicState, opts ...pulumi.ResourceOption) (*NotificationTopic, error)

GetNotificationTopic gets an existing NotificationTopic resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNotificationTopic

func NewNotificationTopic(ctx *pulumi.Context,
	name string, args *NotificationTopicArgs, opts ...pulumi.ResourceOption) (*NotificationTopic, error)

NewNotificationTopic registers a new resource with the given unique name, arguments, and options.

func (*NotificationTopic) ElementType

func (*NotificationTopic) ElementType() reflect.Type

func (*NotificationTopic) ToNotificationTopicOutput

func (i *NotificationTopic) ToNotificationTopicOutput() NotificationTopicOutput

func (*NotificationTopic) ToNotificationTopicOutputWithContext

func (i *NotificationTopic) ToNotificationTopicOutputWithContext(ctx context.Context) NotificationTopicOutput

type NotificationTopicArgs

type NotificationTopicArgs struct {
	// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the topic in.
	CompartmentId pulumi.StringInput
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapInput
	// (Updatable) The description of the topic being created. Avoid entering confidential information.
	Description pulumi.StringPtrInput
	// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapInput
	// The name of the topic being created. The topic name must be unique across the tenancy. Avoid entering confidential information.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a NotificationTopic resource.

func (NotificationTopicArgs) ElementType

func (NotificationTopicArgs) ElementType() reflect.Type

type NotificationTopicArray

type NotificationTopicArray []NotificationTopicInput

func (NotificationTopicArray) ElementType

func (NotificationTopicArray) ElementType() reflect.Type

func (NotificationTopicArray) ToNotificationTopicArrayOutput

func (i NotificationTopicArray) ToNotificationTopicArrayOutput() NotificationTopicArrayOutput

func (NotificationTopicArray) ToNotificationTopicArrayOutputWithContext

func (i NotificationTopicArray) ToNotificationTopicArrayOutputWithContext(ctx context.Context) NotificationTopicArrayOutput

type NotificationTopicArrayInput

type NotificationTopicArrayInput interface {
	pulumi.Input

	ToNotificationTopicArrayOutput() NotificationTopicArrayOutput
	ToNotificationTopicArrayOutputWithContext(context.Context) NotificationTopicArrayOutput
}

NotificationTopicArrayInput is an input type that accepts NotificationTopicArray and NotificationTopicArrayOutput values. You can construct a concrete instance of `NotificationTopicArrayInput` via:

NotificationTopicArray{ NotificationTopicArgs{...} }

type NotificationTopicArrayOutput

type NotificationTopicArrayOutput struct{ *pulumi.OutputState }

func (NotificationTopicArrayOutput) ElementType

func (NotificationTopicArrayOutput) Index

func (NotificationTopicArrayOutput) ToNotificationTopicArrayOutput

func (o NotificationTopicArrayOutput) ToNotificationTopicArrayOutput() NotificationTopicArrayOutput

func (NotificationTopicArrayOutput) ToNotificationTopicArrayOutputWithContext

func (o NotificationTopicArrayOutput) ToNotificationTopicArrayOutputWithContext(ctx context.Context) NotificationTopicArrayOutput

type NotificationTopicInput

type NotificationTopicInput interface {
	pulumi.Input

	ToNotificationTopicOutput() NotificationTopicOutput
	ToNotificationTopicOutputWithContext(ctx context.Context) NotificationTopicOutput
}

type NotificationTopicMap

type NotificationTopicMap map[string]NotificationTopicInput

func (NotificationTopicMap) ElementType

func (NotificationTopicMap) ElementType() reflect.Type

func (NotificationTopicMap) ToNotificationTopicMapOutput

func (i NotificationTopicMap) ToNotificationTopicMapOutput() NotificationTopicMapOutput

func (NotificationTopicMap) ToNotificationTopicMapOutputWithContext

func (i NotificationTopicMap) ToNotificationTopicMapOutputWithContext(ctx context.Context) NotificationTopicMapOutput

type NotificationTopicMapInput

type NotificationTopicMapInput interface {
	pulumi.Input

	ToNotificationTopicMapOutput() NotificationTopicMapOutput
	ToNotificationTopicMapOutputWithContext(context.Context) NotificationTopicMapOutput
}

NotificationTopicMapInput is an input type that accepts NotificationTopicMap and NotificationTopicMapOutput values. You can construct a concrete instance of `NotificationTopicMapInput` via:

NotificationTopicMap{ "key": NotificationTopicArgs{...} }

type NotificationTopicMapOutput

type NotificationTopicMapOutput struct{ *pulumi.OutputState }

func (NotificationTopicMapOutput) ElementType

func (NotificationTopicMapOutput) ElementType() reflect.Type

func (NotificationTopicMapOutput) MapIndex

func (NotificationTopicMapOutput) ToNotificationTopicMapOutput

func (o NotificationTopicMapOutput) ToNotificationTopicMapOutput() NotificationTopicMapOutput

func (NotificationTopicMapOutput) ToNotificationTopicMapOutputWithContext

func (o NotificationTopicMapOutput) ToNotificationTopicMapOutputWithContext(ctx context.Context) NotificationTopicMapOutput

type NotificationTopicOutput

type NotificationTopicOutput struct{ *pulumi.OutputState }

func (NotificationTopicOutput) ApiEndpoint added in v0.4.0

The endpoint for managing subscriptions or publishing messages to the topic.

func (NotificationTopicOutput) CompartmentId added in v0.4.0

func (o NotificationTopicOutput) CompartmentId() pulumi.StringOutput

(Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the topic in.

func (NotificationTopicOutput) DefinedTags added in v0.4.0

func (o NotificationTopicOutput) DefinedTags() pulumi.MapOutput

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (NotificationTopicOutput) Description added in v0.4.0

(Updatable) The description of the topic being created. Avoid entering confidential information.

func (NotificationTopicOutput) ElementType

func (NotificationTopicOutput) ElementType() reflect.Type

func (NotificationTopicOutput) Etag added in v0.4.0

For optimistic concurrency control. See `if-match`.

func (NotificationTopicOutput) FreeformTags added in v0.4.0

func (o NotificationTopicOutput) FreeformTags() pulumi.MapOutput

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (NotificationTopicOutput) Name added in v0.4.0

The name of the topic being created. The topic name must be unique across the tenancy. Avoid entering confidential information.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

func (NotificationTopicOutput) ShortTopicId added in v0.4.0

func (o NotificationTopicOutput) ShortTopicId() pulumi.StringOutput

A unique short topic Id. This is used only for SMS subscriptions.

func (NotificationTopicOutput) State added in v0.4.0

The lifecycle state of the topic.

func (NotificationTopicOutput) TimeCreated added in v0.4.0

The time the topic was created.

func (NotificationTopicOutput) ToNotificationTopicOutput

func (o NotificationTopicOutput) ToNotificationTopicOutput() NotificationTopicOutput

func (NotificationTopicOutput) ToNotificationTopicOutputWithContext

func (o NotificationTopicOutput) ToNotificationTopicOutputWithContext(ctx context.Context) NotificationTopicOutput

func (NotificationTopicOutput) TopicId added in v0.4.0

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic.

type NotificationTopicState

type NotificationTopicState struct {
	// The endpoint for managing subscriptions or publishing messages to the topic.
	ApiEndpoint pulumi.StringPtrInput
	// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the topic in.
	CompartmentId pulumi.StringPtrInput
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapInput
	// (Updatable) The description of the topic being created. Avoid entering confidential information.
	Description pulumi.StringPtrInput
	// For optimistic concurrency control. See `if-match`.
	Etag pulumi.StringPtrInput
	// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapInput
	// The name of the topic being created. The topic name must be unique across the tenancy. Avoid entering confidential information.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	Name pulumi.StringPtrInput
	// A unique short topic Id. This is used only for SMS subscriptions.
	ShortTopicId pulumi.StringPtrInput
	// The lifecycle state of the topic.
	State pulumi.StringPtrInput
	// The time the topic was created.
	TimeCreated pulumi.StringPtrInput
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic.
	TopicId pulumi.StringPtrInput
}

func (NotificationTopicState) ElementType

func (NotificationTopicState) ElementType() reflect.Type

type Subscription

type Subscription struct {
	pulumi.CustomResourceState

	// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the subscription.
	CompartmentId pulumi.StringOutput `pulumi:"compartmentId"`
	// The time when this suscription was created.
	CreatedTime pulumi.StringOutput `pulumi:"createdTime"`
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapOutput `pulumi:"definedTags"`
	// The delivery policy of the subscription. Stored as a JSON string.
	DeliveryPolicy pulumi.StringOutput `pulumi:"deliveryPolicy"`
	// A locator that corresponds to the subscription protocol. For example, an email address for a subscription that uses the `EMAIL` protocol, or a URL for a subscription that uses an HTTP-based protocol. HTTP-based protocols use URL endpoints that begin with "http:" or "https:". A URL cannot exceed 512 characters. Avoid entering confidential information.
	//
	// For protocol-specific endpoint formats and steps to get or create endpoints, see [To create a subscription](https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub).
	Endpoint pulumi.StringOutput `pulumi:"endpoint"`
	// For optimistic concurrency control. See `if-match`.
	Etag pulumi.StringOutput `pulumi:"etag"`
	// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapOutput `pulumi:"freeformTags"`
	// The protocol used for the subscription.
	//
	// Allowed values:
	Protocol pulumi.StringOutput `pulumi:"protocol"`
	// The lifecycle state of the subscription. The status of a new subscription is PENDING; when confirmed, the subscription status changes to ACTIVE.
	State pulumi.StringOutput `pulumi:"state"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic for the subscription.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	TopicId pulumi.StringOutput `pulumi:"topicId"`
}

This resource provides the Subscription resource in Oracle Cloud Infrastructure Notifications service.

Creates a subscription for the specified topic and sends a subscription confirmation URL to the endpoint. The subscription remains in "Pending" status until it has been confirmed. For information about confirming subscriptions, see [To confirm a subscription](https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#confirmSub).

Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/Ons"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Ons.NewSubscription(ctx, "test_subscription", &Ons.SubscriptionArgs{
			CompartmentId: pulumi.Any(compartmentId),
			Endpoint:      pulumi.Any(subscriptionEndpoint),
			Protocol:      pulumi.Any(subscriptionProtocol),
			TopicId:       pulumi.Any(testNotificationTopic.Id),
			DefinedTags: pulumi.Map{
				"Operations.CostCenter": pulumi.Any("42"),
			},
			FreeformTags: pulumi.Map{
				"Department": pulumi.Any("Finance"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Subscriptions can be imported using the `id`, e.g.

```sh $ pulumi import oci:Ons/subscription:Subscription test_subscription "id" ```

func GetSubscription

func GetSubscription(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SubscriptionState, opts ...pulumi.ResourceOption) (*Subscription, error)

GetSubscription gets an existing Subscription resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSubscription

func NewSubscription(ctx *pulumi.Context,
	name string, args *SubscriptionArgs, opts ...pulumi.ResourceOption) (*Subscription, error)

NewSubscription registers a new resource with the given unique name, arguments, and options.

func (*Subscription) ElementType

func (*Subscription) ElementType() reflect.Type

func (*Subscription) ToSubscriptionOutput

func (i *Subscription) ToSubscriptionOutput() SubscriptionOutput

func (*Subscription) ToSubscriptionOutputWithContext

func (i *Subscription) ToSubscriptionOutputWithContext(ctx context.Context) SubscriptionOutput

type SubscriptionArgs

type SubscriptionArgs struct {
	// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the subscription.
	CompartmentId pulumi.StringInput
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapInput
	// The delivery policy of the subscription. Stored as a JSON string.
	DeliveryPolicy pulumi.StringPtrInput
	// A locator that corresponds to the subscription protocol. For example, an email address for a subscription that uses the `EMAIL` protocol, or a URL for a subscription that uses an HTTP-based protocol. HTTP-based protocols use URL endpoints that begin with "http:" or "https:". A URL cannot exceed 512 characters. Avoid entering confidential information.
	//
	// For protocol-specific endpoint formats and steps to get or create endpoints, see [To create a subscription](https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub).
	Endpoint pulumi.StringInput
	// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapInput
	// The protocol used for the subscription.
	//
	// Allowed values:
	Protocol pulumi.StringInput
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic for the subscription.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	TopicId pulumi.StringInput
}

The set of arguments for constructing a Subscription resource.

func (SubscriptionArgs) ElementType

func (SubscriptionArgs) ElementType() reflect.Type

type SubscriptionArray

type SubscriptionArray []SubscriptionInput

func (SubscriptionArray) ElementType

func (SubscriptionArray) ElementType() reflect.Type

func (SubscriptionArray) ToSubscriptionArrayOutput

func (i SubscriptionArray) ToSubscriptionArrayOutput() SubscriptionArrayOutput

func (SubscriptionArray) ToSubscriptionArrayOutputWithContext

func (i SubscriptionArray) ToSubscriptionArrayOutputWithContext(ctx context.Context) SubscriptionArrayOutput

type SubscriptionArrayInput

type SubscriptionArrayInput interface {
	pulumi.Input

	ToSubscriptionArrayOutput() SubscriptionArrayOutput
	ToSubscriptionArrayOutputWithContext(context.Context) SubscriptionArrayOutput
}

SubscriptionArrayInput is an input type that accepts SubscriptionArray and SubscriptionArrayOutput values. You can construct a concrete instance of `SubscriptionArrayInput` via:

SubscriptionArray{ SubscriptionArgs{...} }

type SubscriptionArrayOutput

type SubscriptionArrayOutput struct{ *pulumi.OutputState }

func (SubscriptionArrayOutput) ElementType

func (SubscriptionArrayOutput) ElementType() reflect.Type

func (SubscriptionArrayOutput) Index

func (SubscriptionArrayOutput) ToSubscriptionArrayOutput

func (o SubscriptionArrayOutput) ToSubscriptionArrayOutput() SubscriptionArrayOutput

func (SubscriptionArrayOutput) ToSubscriptionArrayOutputWithContext

func (o SubscriptionArrayOutput) ToSubscriptionArrayOutputWithContext(ctx context.Context) SubscriptionArrayOutput

type SubscriptionInput

type SubscriptionInput interface {
	pulumi.Input

	ToSubscriptionOutput() SubscriptionOutput
	ToSubscriptionOutputWithContext(ctx context.Context) SubscriptionOutput
}

type SubscriptionMap

type SubscriptionMap map[string]SubscriptionInput

func (SubscriptionMap) ElementType

func (SubscriptionMap) ElementType() reflect.Type

func (SubscriptionMap) ToSubscriptionMapOutput

func (i SubscriptionMap) ToSubscriptionMapOutput() SubscriptionMapOutput

func (SubscriptionMap) ToSubscriptionMapOutputWithContext

func (i SubscriptionMap) ToSubscriptionMapOutputWithContext(ctx context.Context) SubscriptionMapOutput

type SubscriptionMapInput

type SubscriptionMapInput interface {
	pulumi.Input

	ToSubscriptionMapOutput() SubscriptionMapOutput
	ToSubscriptionMapOutputWithContext(context.Context) SubscriptionMapOutput
}

SubscriptionMapInput is an input type that accepts SubscriptionMap and SubscriptionMapOutput values. You can construct a concrete instance of `SubscriptionMapInput` via:

SubscriptionMap{ "key": SubscriptionArgs{...} }

type SubscriptionMapOutput

type SubscriptionMapOutput struct{ *pulumi.OutputState }

func (SubscriptionMapOutput) ElementType

func (SubscriptionMapOutput) ElementType() reflect.Type

func (SubscriptionMapOutput) MapIndex

func (SubscriptionMapOutput) ToSubscriptionMapOutput

func (o SubscriptionMapOutput) ToSubscriptionMapOutput() SubscriptionMapOutput

func (SubscriptionMapOutput) ToSubscriptionMapOutputWithContext

func (o SubscriptionMapOutput) ToSubscriptionMapOutputWithContext(ctx context.Context) SubscriptionMapOutput

type SubscriptionOutput

type SubscriptionOutput struct{ *pulumi.OutputState }

func (SubscriptionOutput) CompartmentId added in v0.4.0

func (o SubscriptionOutput) CompartmentId() pulumi.StringOutput

(Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the subscription.

func (SubscriptionOutput) CreatedTime added in v0.4.0

func (o SubscriptionOutput) CreatedTime() pulumi.StringOutput

The time when this suscription was created.

func (SubscriptionOutput) DefinedTags added in v0.4.0

func (o SubscriptionOutput) DefinedTags() pulumi.MapOutput

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (SubscriptionOutput) DeliveryPolicy added in v0.4.0

func (o SubscriptionOutput) DeliveryPolicy() pulumi.StringOutput

The delivery policy of the subscription. Stored as a JSON string.

func (SubscriptionOutput) ElementType

func (SubscriptionOutput) ElementType() reflect.Type

func (SubscriptionOutput) Endpoint added in v0.4.0

func (o SubscriptionOutput) Endpoint() pulumi.StringOutput

A locator that corresponds to the subscription protocol. For example, an email address for a subscription that uses the `EMAIL` protocol, or a URL for a subscription that uses an HTTP-based protocol. HTTP-based protocols use URL endpoints that begin with "http:" or "https:". A URL cannot exceed 512 characters. Avoid entering confidential information.

For protocol-specific endpoint formats and steps to get or create endpoints, see [To create a subscription](https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub).

func (SubscriptionOutput) Etag added in v0.4.0

For optimistic concurrency control. See `if-match`.

func (SubscriptionOutput) FreeformTags added in v0.4.0

func (o SubscriptionOutput) FreeformTags() pulumi.MapOutput

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (SubscriptionOutput) Protocol added in v0.4.0

func (o SubscriptionOutput) Protocol() pulumi.StringOutput

The protocol used for the subscription.

Allowed values:

func (SubscriptionOutput) State added in v0.4.0

The lifecycle state of the subscription. The status of a new subscription is PENDING; when confirmed, the subscription status changes to ACTIVE.

func (SubscriptionOutput) ToSubscriptionOutput

func (o SubscriptionOutput) ToSubscriptionOutput() SubscriptionOutput

func (SubscriptionOutput) ToSubscriptionOutputWithContext

func (o SubscriptionOutput) ToSubscriptionOutputWithContext(ctx context.Context) SubscriptionOutput

func (SubscriptionOutput) TopicId added in v0.4.0

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic for the subscription.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

type SubscriptionState

type SubscriptionState struct {
	// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the subscription.
	CompartmentId pulumi.StringPtrInput
	// The time when this suscription was created.
	CreatedTime pulumi.StringPtrInput
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapInput
	// The delivery policy of the subscription. Stored as a JSON string.
	DeliveryPolicy pulumi.StringPtrInput
	// A locator that corresponds to the subscription protocol. For example, an email address for a subscription that uses the `EMAIL` protocol, or a URL for a subscription that uses an HTTP-based protocol. HTTP-based protocols use URL endpoints that begin with "http:" or "https:". A URL cannot exceed 512 characters. Avoid entering confidential information.
	//
	// For protocol-specific endpoint formats and steps to get or create endpoints, see [To create a subscription](https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub).
	Endpoint pulumi.StringPtrInput
	// For optimistic concurrency control. See `if-match`.
	Etag pulumi.StringPtrInput
	// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapInput
	// The protocol used for the subscription.
	//
	// Allowed values:
	Protocol pulumi.StringPtrInput
	// The lifecycle state of the subscription. The status of a new subscription is PENDING; when confirmed, the subscription status changes to ACTIVE.
	State pulumi.StringPtrInput
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic for the subscription.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	TopicId pulumi.StringPtrInput
}

func (SubscriptionState) ElementType

func (SubscriptionState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL