1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. AnnouncementsService
  5. AnnouncementSubscription
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.AnnouncementsService.AnnouncementSubscription

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    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

    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",
        },
        preferredLanguage: _var.announcement_subscription_preferred_language,
        preferredTimeZone: _var.announcement_subscription_preferred_time_zone,
    });
    
    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",
        },
        preferred_language=var["announcement_subscription_preferred_language"],
        preferred_time_zone=var["announcement_subscription_preferred_time_zone"])
    
    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.Map{
    				"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.Map{
    				"bar-key": pulumi.Any("value"),
    			},
    			PreferredLanguage: pulumi.Any(_var.Announcement_subscription_preferred_language),
    			PreferredTimeZone: pulumi.Any(_var.Announcement_subscription_preferred_time_zone),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    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" },
            },
            PreferredLanguage = @var.Announcement_subscription_preferred_language,
            PreferredTimeZone = @var.Announcement_subscription_preferred_time_zone,
        });
    
    });
    
    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"))
                .preferredLanguage(var_.announcement_subscription_preferred_language())
                .preferredTimeZone(var_.announcement_subscription_preferred_time_zone())
                .build());
    
        }
    }
    
    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
          preferredLanguage: ${var.announcement_subscription_preferred_language}
          preferredTimeZone: ${var.announcement_subscription_preferred_time_zone}
    

    Create AnnouncementSubscription Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AnnouncementSubscription(name: string, args: AnnouncementSubscriptionArgs, opts?: CustomResourceOptions);
    @overload
    def AnnouncementSubscription(resource_name: str,
                                 args: AnnouncementSubscriptionArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def AnnouncementSubscription(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 compartment_id: Optional[str] = None,
                                 display_name: Optional[str] = None,
                                 ons_topic_id: Optional[str] = None,
                                 defined_tags: Optional[Mapping[str, Any]] = None,
                                 description: Optional[str] = None,
                                 filter_groups: Optional[_announcementsservice.AnnouncementSubscriptionFilterGroupsArgs] = None,
                                 freeform_tags: Optional[Mapping[str, Any]] = None,
                                 preferred_language: Optional[str] = None,
                                 preferred_time_zone: Optional[str] = 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.
    
    

    Parameters

    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.

    Example

    The following reference example uses placeholder values for all input properties.

    var announcementSubscriptionResource = new Oci.AnnouncementsService.AnnouncementSubscription("announcementSubscriptionResource", new()
    {
        CompartmentId = "string",
        DisplayName = "string",
        OnsTopicId = "string",
        DefinedTags = 
        {
            { "string", "any" },
        },
        Description = "string",
        FilterGroups = new Oci.AnnouncementsService.Inputs.AnnouncementSubscriptionFilterGroupsArgs
        {
            Filters = new[]
            {
                new Oci.AnnouncementsService.Inputs.AnnouncementSubscriptionFilterGroupsFilterArgs
                {
                    Type = "string",
                    Value = "string",
                },
            },
            Name = "string",
        },
        FreeformTags = 
        {
            { "string", "any" },
        },
        PreferredLanguage = "string",
        PreferredTimeZone = "string",
    });
    
    example, err := AnnouncementsService.NewAnnouncementSubscription(ctx, "announcementSubscriptionResource", &AnnouncementsService.AnnouncementSubscriptionArgs{
    	CompartmentId: pulumi.String("string"),
    	DisplayName:   pulumi.String("string"),
    	OnsTopicId:    pulumi.String("string"),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	Description: pulumi.String("string"),
    	FilterGroups: &announcementsservice.AnnouncementSubscriptionFilterGroupsArgs{
    		Filters: announcementsservice.AnnouncementSubscriptionFilterGroupsFilterArray{
    			&announcementsservice.AnnouncementSubscriptionFilterGroupsFilterArgs{
    				Type:  pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    		Name: pulumi.String("string"),
    	},
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	PreferredLanguage: pulumi.String("string"),
    	PreferredTimeZone: pulumi.String("string"),
    })
    
    var announcementSubscriptionResource = new AnnouncementSubscription("announcementSubscriptionResource", AnnouncementSubscriptionArgs.builder()        
        .compartmentId("string")
        .displayName("string")
        .onsTopicId("string")
        .definedTags(Map.of("string", "any"))
        .description("string")
        .filterGroups(AnnouncementSubscriptionFilterGroupsArgs.builder()
            .filters(AnnouncementSubscriptionFilterGroupsFilterArgs.builder()
                .type("string")
                .value("string")
                .build())
            .name("string")
            .build())
        .freeformTags(Map.of("string", "any"))
        .preferredLanguage("string")
        .preferredTimeZone("string")
        .build());
    
    announcement_subscription_resource = oci.announcements_service.AnnouncementSubscription("announcementSubscriptionResource",
        compartment_id="string",
        display_name="string",
        ons_topic_id="string",
        defined_tags={
            "string": "any",
        },
        description="string",
        filter_groups=oci.announcements_service.AnnouncementSubscriptionFilterGroupsArgs(
            filters=[oci.announcements_service.AnnouncementSubscriptionFilterGroupsFilterArgs(
                type="string",
                value="string",
            )],
            name="string",
        ),
        freeform_tags={
            "string": "any",
        },
        preferred_language="string",
        preferred_time_zone="string")
    
    const announcementSubscriptionResource = new oci.announcementsservice.AnnouncementSubscription("announcementSubscriptionResource", {
        compartmentId: "string",
        displayName: "string",
        onsTopicId: "string",
        definedTags: {
            string: "any",
        },
        description: "string",
        filterGroups: {
            filters: [{
                type: "string",
                value: "string",
            }],
            name: "string",
        },
        freeformTags: {
            string: "any",
        },
        preferredLanguage: "string",
        preferredTimeZone: "string",
    });
    
    type: oci:AnnouncementsService:AnnouncementSubscription
    properties:
        compartmentId: string
        definedTags:
            string: any
        description: string
        displayName: string
        filterGroups:
            filters:
                - type: string
                  value: string
            name: string
        freeformTags:
            string: any
        onsTopicId: string
        preferredLanguage: string
        preferredTimeZone: string
    

    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 AnnouncementSubscriptionFilterGroups
    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"}
    PreferredLanguage string
    (Updatable) (For announcement subscriptions with Oracle Fusion Applications configured as the service only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the language tag format (x-obmcs-human-language). For example fr-FR.
    PreferredTimeZone string

    (Updatable) The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles.

    ** 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

    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"}
    PreferredLanguage string
    (Updatable) (For announcement subscriptions with Oracle Fusion Applications configured as the service only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the language tag format (x-obmcs-human-language). For example fr-FR.
    PreferredTimeZone string

    (Updatable) The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles.

    ** 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

    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 AnnouncementSubscriptionFilterGroups
    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"}
    preferredLanguage String
    (Updatable) (For announcement subscriptions with Oracle Fusion Applications configured as the service only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the language tag format (x-obmcs-human-language). For example fr-FR.
    preferredTimeZone String

    (Updatable) The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles.

    ** 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

    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 AnnouncementSubscriptionFilterGroups
    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"}
    preferredLanguage string
    (Updatable) (For announcement subscriptions with Oracle Fusion Applications configured as the service only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the language tag format (x-obmcs-human-language). For example fr-FR.
    preferredTimeZone string

    (Updatable) The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles.

    ** 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

    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 announcementsservice.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"}
    preferred_language str
    (Updatable) (For announcement subscriptions with Oracle Fusion Applications configured as the service only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the language tag format (x-obmcs-human-language). For example fr-FR.
    preferred_time_zone str

    (Updatable) The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles.

    ** 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

    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"}
    preferredLanguage String
    (Updatable) (For announcement subscriptions with Oracle Fusion Applications configured as the service only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the language tag format (x-obmcs-human-language). For example fr-FR.
    preferredTimeZone String

    (Updatable) The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles.

    ** 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

    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,
            preferred_language: Optional[str] = None,
            preferred_time_zone: 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 AnnouncementSubscriptionFilterGroups
    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.
    PreferredLanguage string
    (Updatable) (For announcement subscriptions with Oracle Fusion Applications configured as the service only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the language tag format (x-obmcs-human-language). For example fr-FR.
    PreferredTimeZone string

    (Updatable) The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles.

    ** 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

    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.
    PreferredLanguage string
    (Updatable) (For announcement subscriptions with Oracle Fusion Applications configured as the service only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the language tag format (x-obmcs-human-language). For example fr-FR.
    PreferredTimeZone string

    (Updatable) The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles.

    ** 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

    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 AnnouncementSubscriptionFilterGroups
    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.
    preferredLanguage String
    (Updatable) (For announcement subscriptions with Oracle Fusion Applications configured as the service only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the language tag format (x-obmcs-human-language). For example fr-FR.
    preferredTimeZone String

    (Updatable) The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles.

    ** 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

    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 AnnouncementSubscriptionFilterGroups
    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.
    preferredLanguage string
    (Updatable) (For announcement subscriptions with Oracle Fusion Applications configured as the service only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the language tag format (x-obmcs-human-language). For example fr-FR.
    preferredTimeZone string

    (Updatable) The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles.

    ** 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

    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 announcementsservice.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.
    preferred_language str
    (Updatable) (For announcement subscriptions with Oracle Fusion Applications configured as the service only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the language tag format (x-obmcs-human-language). For example fr-FR.
    preferred_time_zone str

    (Updatable) The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles.

    ** 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

    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.
    preferredLanguage String
    (Updatable) (For announcement subscriptions with Oracle Fusion Applications configured as the service only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the language tag format (x-obmcs-human-language). For example fr-FR.
    preferredTimeZone String

    (Updatable) The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles.

    ** 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

    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, AnnouncementSubscriptionFilterGroupsArgs

    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 Sequence[announcementsservice.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, AnnouncementSubscriptionFilterGroupsFilterArgs

    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"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi