Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

AnnouncementSubscription

This resource provides the Announcement Subscription resource in Oracle Cloud Infrastructure Announcements Service service.

Creates a new announcement subscription.

This call is subject to an Announcements limit that applies to the total number of requests across all read or write operations. Announcements might throttle this call to reject an otherwise valid request when the total rate of operations exceeds 20 requests per second for a given user. The service might also throttle this call to reject an otherwise valid request when the total rate of operations exceeds 100 requests per second for a given tenancy.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testAnnouncementSubscription = new Oci.AnnouncementsService.AnnouncementSubscription("testAnnouncementSubscription", new()
    {
        CompartmentId = @var.Compartment_id,
        DisplayName = @var.Announcement_subscription_display_name,
        OnsTopicId = oci_ons_notification_topic.Test_notification_topic.Id,
        DefinedTags = 
        {
            { "foo-namespace.bar-key", "value" },
        },
        Description = @var.Announcement_subscription_description,
        FilterGroups = new Oci.AnnouncementsService.Inputs.AnnouncementSubscriptionFilterGroupsArgs
        {
            Filters = new[]
            {
                new Oci.AnnouncementsService.Inputs.AnnouncementSubscriptionFilterGroupsFilterArgs
                {
                    Type = @var.Announcement_subscription_filter_groups_filters_type,
                    Value = @var.Announcement_subscription_filter_groups_filters_value,
                },
            },
        },
        FreeformTags = 
        {
            { "bar-key", "value" },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/AnnouncementsService"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := AnnouncementsService.NewAnnouncementSubscription(ctx, "testAnnouncementSubscription", &AnnouncementsService.AnnouncementSubscriptionArgs{
			CompartmentId: pulumi.Any(_var.Compartment_id),
			DisplayName:   pulumi.Any(_var.Announcement_subscription_display_name),
			OnsTopicId:    pulumi.Any(oci_ons_notification_topic.Test_notification_topic.Id),
			DefinedTags: pulumi.AnyMap{
				"foo-namespace.bar-key": pulumi.Any("value"),
			},
			Description: pulumi.Any(_var.Announcement_subscription_description),
			FilterGroups: &announcementsservice.AnnouncementSubscriptionFilterGroupsArgs{
				Filters: announcementsservice.AnnouncementSubscriptionFilterGroupsFilterArray{
					&announcementsservice.AnnouncementSubscriptionFilterGroupsFilterArgs{
						Type:  pulumi.Any(_var.Announcement_subscription_filter_groups_filters_type),
						Value: pulumi.Any(_var.Announcement_subscription_filter_groups_filters_value),
					},
				},
			},
			FreeformTags: pulumi.AnyMap{
				"bar-key": pulumi.Any("value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.AnnouncementsService.AnnouncementSubscription;
import com.pulumi.oci.AnnouncementsService.AnnouncementSubscriptionArgs;
import com.pulumi.oci.AnnouncementsService.inputs.AnnouncementSubscriptionFilterGroupsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var testAnnouncementSubscription = new AnnouncementSubscription("testAnnouncementSubscription", AnnouncementSubscriptionArgs.builder()        
            .compartmentId(var_.compartment_id())
            .displayName(var_.announcement_subscription_display_name())
            .onsTopicId(oci_ons_notification_topic.test_notification_topic().id())
            .definedTags(Map.of("foo-namespace.bar-key", "value"))
            .description(var_.announcement_subscription_description())
            .filterGroups(AnnouncementSubscriptionFilterGroupsArgs.builder()
                .filters(AnnouncementSubscriptionFilterGroupsFilterArgs.builder()
                    .type(var_.announcement_subscription_filter_groups_filters_type())
                    .value(var_.announcement_subscription_filter_groups_filters_value())
                    .build())
                .build())
            .freeformTags(Map.of("bar-key", "value"))
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_announcement_subscription = oci.announcements_service.AnnouncementSubscription("testAnnouncementSubscription",
    compartment_id=var["compartment_id"],
    display_name=var["announcement_subscription_display_name"],
    ons_topic_id=oci_ons_notification_topic["test_notification_topic"]["id"],
    defined_tags={
        "foo-namespace.bar-key": "value",
    },
    description=var["announcement_subscription_description"],
    filter_groups=oci.announcements_service.AnnouncementSubscriptionFilterGroupsArgs(
        filters=[oci.announcements_service.AnnouncementSubscriptionFilterGroupsFilterArgs(
            type=var["announcement_subscription_filter_groups_filters_type"],
            value=var["announcement_subscription_filter_groups_filters_value"],
        )],
    ),
    freeform_tags={
        "bar-key": "value",
    })
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAnnouncementSubscription = new oci.announcementsservice.AnnouncementSubscription("testAnnouncementSubscription", {
    compartmentId: _var.compartment_id,
    displayName: _var.announcement_subscription_display_name,
    onsTopicId: oci_ons_notification_topic.test_notification_topic.id,
    definedTags: {
        "foo-namespace.bar-key": "value",
    },
    description: _var.announcement_subscription_description,
    filterGroups: {
        filters: [{
            type: _var.announcement_subscription_filter_groups_filters_type,
            value: _var.announcement_subscription_filter_groups_filters_value,
        }],
    },
    freeformTags: {
        "bar-key": "value",
    },
});
resources:
  testAnnouncementSubscription:
    type: oci:AnnouncementsService:AnnouncementSubscription
    properties:
      #Required
      compartmentId: ${var.compartment_id}
      displayName: ${var.announcement_subscription_display_name}
      onsTopicId: ${oci_ons_notification_topic.test_notification_topic.id}
      #Optional
      definedTags:
        foo-namespace.bar-key: value
      description: ${var.announcement_subscription_description}
      filterGroups:
        filters:
          - type: ${var.announcement_subscription_filter_groups_filters_type}
            value: ${var.announcement_subscription_filter_groups_filters_value}
      freeformTags:
        bar-key: value

Create AnnouncementSubscription Resource

new AnnouncementSubscription(name: string, args: AnnouncementSubscriptionArgs, opts?: CustomResourceOptions);
@overload
def AnnouncementSubscription(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             compartment_id: Optional[str] = None,
                             defined_tags: Optional[Mapping[str, Any]] = None,
                             description: Optional[str] = None,
                             display_name: Optional[str] = None,
                             filter_groups: Optional[_announcementsservice.AnnouncementSubscriptionFilterGroupsArgs] = None,
                             freeform_tags: Optional[Mapping[str, Any]] = None,
                             ons_topic_id: Optional[str] = None)
@overload
def AnnouncementSubscription(resource_name: str,
                             args: AnnouncementSubscriptionArgs,
                             opts: Optional[ResourceOptions] = None)
func NewAnnouncementSubscription(ctx *Context, name string, args AnnouncementSubscriptionArgs, opts ...ResourceOption) (*AnnouncementSubscription, error)
public AnnouncementSubscription(string name, AnnouncementSubscriptionArgs args, CustomResourceOptions? opts = null)
public AnnouncementSubscription(String name, AnnouncementSubscriptionArgs args)
public AnnouncementSubscription(String name, AnnouncementSubscriptionArgs args, CustomResourceOptions options)
type: oci:AnnouncementsService:AnnouncementSubscription
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AnnouncementSubscriptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AnnouncementSubscriptionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AnnouncementSubscriptionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AnnouncementSubscriptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AnnouncementSubscriptionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AnnouncementSubscription Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The AnnouncementSubscription resource accepts the following input properties:

CompartmentId string

(Updatable) The OCID of the compartment where you want to create the announcement subscription.

DisplayName string

(Updatable) A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.

OnsTopicId string

(Updatable) The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription. The caller of the operation needs the ONS_TOPIC_PUBLISH permission for the targeted Notifications service topic. For more information about Notifications permissions, see Details for Notifications.

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

(Updatable) A description of the announcement subscription. Avoid entering confidential information.

FilterGroups AnnouncementSubscriptionFilterGroupsArgs

A list of filter groups for the announcement subscription. A filter group combines one or more filters that the Announcements service applies to announcements for matching purposes.

FreeformTags Dictionary<string, object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

CompartmentId string

(Updatable) The OCID of the compartment where you want to create the announcement subscription.

DisplayName string

(Updatable) A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.

OnsTopicId string

(Updatable) The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription. The caller of the operation needs the ONS_TOPIC_PUBLISH permission for the targeted Notifications service topic. For more information about Notifications permissions, see Details for Notifications.

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

(Updatable) A description of the announcement subscription. Avoid entering confidential information.

FilterGroups AnnouncementSubscriptionFilterGroupsArgs

A list of filter groups for the announcement subscription. A filter group combines one or more filters that the Announcements service applies to announcements for matching purposes.

FreeformTags map[string]interface{}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

compartmentId String

(Updatable) The OCID of the compartment where you want to create the announcement subscription.

displayName String

(Updatable) A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.

onsTopicId String

(Updatable) The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription. The caller of the operation needs the ONS_TOPIC_PUBLISH permission for the targeted Notifications service topic. For more information about Notifications permissions, see Details for Notifications.

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

(Updatable) A description of the announcement subscription. Avoid entering confidential information.

filterGroups AnnouncementSubscriptionFilterGroupsArgs

A list of filter groups for the announcement subscription. A filter group combines one or more filters that the Announcements service applies to announcements for matching purposes.

freeformTags Map<String,Object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

compartmentId string

(Updatable) The OCID of the compartment where you want to create the announcement subscription.

displayName string

(Updatable) A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.

onsTopicId string

(Updatable) The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription. The caller of the operation needs the ONS_TOPIC_PUBLISH permission for the targeted Notifications service topic. For more information about Notifications permissions, see Details for Notifications.

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description string

(Updatable) A description of the announcement subscription. Avoid entering confidential information.

filterGroups AnnouncementSubscriptionFilterGroupsArgs

A list of filter groups for the announcement subscription. A filter group combines one or more filters that the Announcements service applies to announcements for matching purposes.

freeformTags {[key: string]: any}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

compartment_id str

(Updatable) The OCID of the compartment where you want to create the announcement subscription.

display_name str

(Updatable) A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.

ons_topic_id str

(Updatable) The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription. The caller of the operation needs the ONS_TOPIC_PUBLISH permission for the targeted Notifications service topic. For more information about Notifications permissions, see Details for Notifications.

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description str

(Updatable) A description of the announcement subscription. Avoid entering confidential information.

filter_groups AnnouncementSubscriptionFilterGroupsArgs

A list of filter groups for the announcement subscription. A filter group combines one or more filters that the Announcements service applies to announcements for matching purposes.

freeform_tags Mapping[str, Any]

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

compartmentId String

(Updatable) The OCID of the compartment where you want to create the announcement subscription.

displayName String

(Updatable) A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.

onsTopicId String

(Updatable) The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription. The caller of the operation needs the ONS_TOPIC_PUBLISH permission for the targeted Notifications service topic. For more information about Notifications permissions, see Details for Notifications.

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

(Updatable) A description of the announcement subscription. Avoid entering confidential information.

filterGroups Property Map

A list of filter groups for the announcement subscription. A filter group combines one or more filters that the Announcements service applies to announcements for matching purposes.

freeformTags Map<Any>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Outputs

All input properties are implicitly available as output properties. Additionally, the AnnouncementSubscription resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

LifecycleDetails string

A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.

State string

The current lifecycle state of the announcement subscription.

SystemTags Dictionary<string, object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.

TimeUpdated string

The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.

Id string

The provider-assigned unique ID for this managed resource.

LifecycleDetails string

A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.

State string

The current lifecycle state of the announcement subscription.

SystemTags map[string]interface{}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.

TimeUpdated string

The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.

id String

The provider-assigned unique ID for this managed resource.

lifecycleDetails String

A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.

state String

The current lifecycle state of the announcement subscription.

systemTags Map<String,Object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.

timeUpdated String

The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.

id string

The provider-assigned unique ID for this managed resource.

lifecycleDetails string

A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.

state string

The current lifecycle state of the announcement subscription.

systemTags {[key: string]: any}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated string

The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.

timeUpdated string

The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.

id str

The provider-assigned unique ID for this managed resource.

lifecycle_details str

A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.

state str

The current lifecycle state of the announcement subscription.

system_tags Mapping[str, Any]

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

time_created str

The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.

time_updated str

The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.

id String

The provider-assigned unique ID for this managed resource.

lifecycleDetails String

A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.

state String

The current lifecycle state of the announcement subscription.

systemTags Map<Any>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.

timeUpdated String

The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.

Look up Existing AnnouncementSubscription Resource

Get an existing AnnouncementSubscription resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AnnouncementSubscriptionState, opts?: CustomResourceOptions): AnnouncementSubscription
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, Any]] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        filter_groups: Optional[_announcementsservice.AnnouncementSubscriptionFilterGroupsArgs] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        lifecycle_details: Optional[str] = None,
        ons_topic_id: Optional[str] = None,
        state: Optional[str] = None,
        system_tags: Optional[Mapping[str, Any]] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None) -> AnnouncementSubscription
func GetAnnouncementSubscription(ctx *Context, name string, id IDInput, state *AnnouncementSubscriptionState, opts ...ResourceOption) (*AnnouncementSubscription, error)
public static AnnouncementSubscription Get(string name, Input<string> id, AnnouncementSubscriptionState? state, CustomResourceOptions? opts = null)
public static AnnouncementSubscription get(String name, Output<String> id, AnnouncementSubscriptionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CompartmentId string

(Updatable) The OCID of the compartment where you want to create the announcement subscription.

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

(Updatable) A description of the announcement subscription. Avoid entering confidential information.

DisplayName string

(Updatable) A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.

FilterGroups AnnouncementSubscriptionFilterGroupsArgs

A list of filter groups for the announcement subscription. A filter group combines one or more filters that the Announcements service applies to announcements for matching purposes.

FreeformTags Dictionary<string, object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

LifecycleDetails string

A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.

OnsTopicId string

(Updatable) The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription. The caller of the operation needs the ONS_TOPIC_PUBLISH permission for the targeted Notifications service topic. For more information about Notifications permissions, see Details for Notifications.

State string

The current lifecycle state of the announcement subscription.

SystemTags Dictionary<string, object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.

TimeUpdated string

The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.

CompartmentId string

(Updatable) The OCID of the compartment where you want to create the announcement subscription.

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

(Updatable) A description of the announcement subscription. Avoid entering confidential information.

DisplayName string

(Updatable) A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.

FilterGroups AnnouncementSubscriptionFilterGroupsArgs

A list of filter groups for the announcement subscription. A filter group combines one or more filters that the Announcements service applies to announcements for matching purposes.

FreeformTags map[string]interface{}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

LifecycleDetails string

A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.

OnsTopicId string

(Updatable) The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription. The caller of the operation needs the ONS_TOPIC_PUBLISH permission for the targeted Notifications service topic. For more information about Notifications permissions, see Details for Notifications.

State string

The current lifecycle state of the announcement subscription.

SystemTags map[string]interface{}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.

TimeUpdated string

The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.

compartmentId String

(Updatable) The OCID of the compartment where you want to create the announcement subscription.

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

(Updatable) A description of the announcement subscription. Avoid entering confidential information.

displayName String

(Updatable) A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.

filterGroups AnnouncementSubscriptionFilterGroupsArgs

A list of filter groups for the announcement subscription. A filter group combines one or more filters that the Announcements service applies to announcements for matching purposes.

freeformTags Map<String,Object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

lifecycleDetails String

A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.

onsTopicId String

(Updatable) The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription. The caller of the operation needs the ONS_TOPIC_PUBLISH permission for the targeted Notifications service topic. For more information about Notifications permissions, see Details for Notifications.

state String

The current lifecycle state of the announcement subscription.

systemTags Map<String,Object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.

timeUpdated String

The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.

compartmentId string

(Updatable) The OCID of the compartment where you want to create the announcement subscription.

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description string

(Updatable) A description of the announcement subscription. Avoid entering confidential information.

displayName string

(Updatable) A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.

filterGroups AnnouncementSubscriptionFilterGroupsArgs

A list of filter groups for the announcement subscription. A filter group combines one or more filters that the Announcements service applies to announcements for matching purposes.

freeformTags {[key: string]: any}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

lifecycleDetails string

A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.

onsTopicId string

(Updatable) The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription. The caller of the operation needs the ONS_TOPIC_PUBLISH permission for the targeted Notifications service topic. For more information about Notifications permissions, see Details for Notifications.

state string

The current lifecycle state of the announcement subscription.

systemTags {[key: string]: any}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated string

The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.

timeUpdated string

The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.

compartment_id str

(Updatable) The OCID of the compartment where you want to create the announcement subscription.

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description str

(Updatable) A description of the announcement subscription. Avoid entering confidential information.

display_name str

(Updatable) A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.

filter_groups AnnouncementSubscriptionFilterGroupsArgs

A list of filter groups for the announcement subscription. A filter group combines one or more filters that the Announcements service applies to announcements for matching purposes.

freeform_tags Mapping[str, Any]

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

lifecycle_details str

A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.

ons_topic_id str

(Updatable) The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription. The caller of the operation needs the ONS_TOPIC_PUBLISH permission for the targeted Notifications service topic. For more information about Notifications permissions, see Details for Notifications.

state str

The current lifecycle state of the announcement subscription.

system_tags Mapping[str, Any]

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

time_created str

The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.

time_updated str

The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.

compartmentId String

(Updatable) The OCID of the compartment where you want to create the announcement subscription.

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

(Updatable) A description of the announcement subscription. Avoid entering confidential information.

displayName String

(Updatable) A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.

filterGroups Property Map

A list of filter groups for the announcement subscription. A filter group combines one or more filters that the Announcements service applies to announcements for matching purposes.

freeformTags Map<Any>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

lifecycleDetails String

A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.

onsTopicId String

(Updatable) The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription. The caller of the operation needs the ONS_TOPIC_PUBLISH permission for the targeted Notifications service topic. For more information about Notifications permissions, see Details for Notifications.

state String

The current lifecycle state of the announcement subscription.

systemTags Map<Any>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.

timeUpdated String

The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.

Supporting Types

AnnouncementSubscriptionFilterGroups

Filters List<AnnouncementSubscriptionFilterGroupsFilter>

A list of filters against which the Announcements service matches announcements. You cannot have more than one of any given filter type within a filter group.

Name string

The name of the group. The name must be unique and it cannot be changed. Avoid entering confidential information.

Filters []AnnouncementSubscriptionFilterGroupsFilter

A list of filters against which the Announcements service matches announcements. You cannot have more than one of any given filter type within a filter group.

Name string

The name of the group. The name must be unique and it cannot be changed. Avoid entering confidential information.

filters List<AnnouncementSubscriptionFilterGroupsFilter>

A list of filters against which the Announcements service matches announcements. You cannot have more than one of any given filter type within a filter group.

name String

The name of the group. The name must be unique and it cannot be changed. Avoid entering confidential information.

filters AnnouncementSubscriptionFilterGroupsFilter[]

A list of filters against which the Announcements service matches announcements. You cannot have more than one of any given filter type within a filter group.

name string

The name of the group. The name must be unique and it cannot be changed. Avoid entering confidential information.

filters AnnouncementSubscriptionFilterGroupsFilter]

A list of filters against which the Announcements service matches announcements. You cannot have more than one of any given filter type within a filter group.

name str

The name of the group. The name must be unique and it cannot be changed. Avoid entering confidential information.

filters List<Property Map>

A list of filters against which the Announcements service matches announcements. You cannot have more than one of any given filter type within a filter group.

name String

The name of the group. The name must be unique and it cannot be changed. Avoid entering confidential information.

AnnouncementSubscriptionFilterGroupsFilter

Type string

The type of filter.

Value string

The value of the filter.

Type string

The type of filter.

Value string

The value of the filter.

type String

The type of filter.

value String

The value of the filter.

type string

The type of filter.

value string

The value of the filter.

type str

The type of filter.

value str

The value of the filter.

type String

The type of filter.

value String

The value of the filter.

Import

AnnouncementSubscriptions can be imported using the id, e.g.

 $ pulumi import oci:AnnouncementsService/announcementSubscription:AnnouncementSubscription test_announcement_subscription "id"

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.