1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. AnnouncementsService
  5. AnnouncementSubscriptionsFilterGroup
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.AnnouncementsService.AnnouncementSubscriptionsFilterGroup

Explore with Pulumi AI

This resource provides the Announcement Subscriptions Filter Group resource in Oracle Cloud Infrastructure Announcements Service service.

Creates a new filter group in the specified 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 testAnnouncementSubscriptionsFilterGroup = new oci.announcementsservice.AnnouncementSubscriptionsFilterGroup("test_announcement_subscriptions_filter_group", {
    announcementSubscriptionId: testAnnouncementSubscription.id,
    filters: [{
        type: announcementSubscriptionsFilterGroupFiltersType,
        value: announcementSubscriptionsFilterGroupFiltersValue,
    }],
    name: announcementSubscriptionsFilterGroupName,
});
Copy
import pulumi
import pulumi_oci as oci

test_announcement_subscriptions_filter_group = oci.announcements_service.AnnouncementSubscriptionsFilterGroup("test_announcement_subscriptions_filter_group",
    announcement_subscription_id=test_announcement_subscription["id"],
    filters=[{
        "type": announcement_subscriptions_filter_group_filters_type,
        "value": announcement_subscriptions_filter_group_filters_value,
    }],
    name=announcement_subscriptions_filter_group_name)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := announcementsservice.NewAnnouncementSubscriptionsFilterGroup(ctx, "test_announcement_subscriptions_filter_group", &announcementsservice.AnnouncementSubscriptionsFilterGroupArgs{
			AnnouncementSubscriptionId: pulumi.Any(testAnnouncementSubscription.Id),
			Filters: announcementsservice.AnnouncementSubscriptionsFilterGroupFilterArray{
				&announcementsservice.AnnouncementSubscriptionsFilterGroupFilterArgs{
					Type:  pulumi.Any(announcementSubscriptionsFilterGroupFiltersType),
					Value: pulumi.Any(announcementSubscriptionsFilterGroupFiltersValue),
				},
			},
			Name: pulumi.Any(announcementSubscriptionsFilterGroupName),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testAnnouncementSubscriptionsFilterGroup = new Oci.AnnouncementsService.AnnouncementSubscriptionsFilterGroup("test_announcement_subscriptions_filter_group", new()
    {
        AnnouncementSubscriptionId = testAnnouncementSubscription.Id,
        Filters = new[]
        {
            new Oci.AnnouncementsService.Inputs.AnnouncementSubscriptionsFilterGroupFilterArgs
            {
                Type = announcementSubscriptionsFilterGroupFiltersType,
                Value = announcementSubscriptionsFilterGroupFiltersValue,
            },
        },
        Name = announcementSubscriptionsFilterGroupName,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.AnnouncementsService.AnnouncementSubscriptionsFilterGroup;
import com.pulumi.oci.AnnouncementsService.AnnouncementSubscriptionsFilterGroupArgs;
import com.pulumi.oci.AnnouncementsService.inputs.AnnouncementSubscriptionsFilterGroupFilterArgs;
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 testAnnouncementSubscriptionsFilterGroup = new AnnouncementSubscriptionsFilterGroup("testAnnouncementSubscriptionsFilterGroup", AnnouncementSubscriptionsFilterGroupArgs.builder()
            .announcementSubscriptionId(testAnnouncementSubscription.id())
            .filters(AnnouncementSubscriptionsFilterGroupFilterArgs.builder()
                .type(announcementSubscriptionsFilterGroupFiltersType)
                .value(announcementSubscriptionsFilterGroupFiltersValue)
                .build())
            .name(announcementSubscriptionsFilterGroupName)
            .build());

    }
}
Copy
resources:
  testAnnouncementSubscriptionsFilterGroup:
    type: oci:AnnouncementsService:AnnouncementSubscriptionsFilterGroup
    name: test_announcement_subscriptions_filter_group
    properties:
      announcementSubscriptionId: ${testAnnouncementSubscription.id}
      filters:
        - type: ${announcementSubscriptionsFilterGroupFiltersType}
          value: ${announcementSubscriptionsFilterGroupFiltersValue}
      name: ${announcementSubscriptionsFilterGroupName}
Copy

Create AnnouncementSubscriptionsFilterGroup Resource

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

Constructor syntax

new AnnouncementSubscriptionsFilterGroup(name: string, args: AnnouncementSubscriptionsFilterGroupArgs, opts?: CustomResourceOptions);
@overload
def AnnouncementSubscriptionsFilterGroup(resource_name: str,
                                         args: AnnouncementSubscriptionsFilterGroupArgs,
                                         opts: Optional[ResourceOptions] = None)

@overload
def AnnouncementSubscriptionsFilterGroup(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         announcement_subscription_id: Optional[str] = None,
                                         filters: Optional[Sequence[_announcementsservice.AnnouncementSubscriptionsFilterGroupFilterArgs]] = None,
                                         name: Optional[str] = None)
func NewAnnouncementSubscriptionsFilterGroup(ctx *Context, name string, args AnnouncementSubscriptionsFilterGroupArgs, opts ...ResourceOption) (*AnnouncementSubscriptionsFilterGroup, error)
public AnnouncementSubscriptionsFilterGroup(string name, AnnouncementSubscriptionsFilterGroupArgs args, CustomResourceOptions? opts = null)
public AnnouncementSubscriptionsFilterGroup(String name, AnnouncementSubscriptionsFilterGroupArgs args)
public AnnouncementSubscriptionsFilterGroup(String name, AnnouncementSubscriptionsFilterGroupArgs args, CustomResourceOptions options)
type: oci:AnnouncementsService:AnnouncementSubscriptionsFilterGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

Constructor example

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

var announcementSubscriptionsFilterGroupResource = new Oci.AnnouncementsService.AnnouncementSubscriptionsFilterGroup("announcementSubscriptionsFilterGroupResource", new()
{
    AnnouncementSubscriptionId = "string",
    Filters = new[]
    {
        new Oci.AnnouncementsService.Inputs.AnnouncementSubscriptionsFilterGroupFilterArgs
        {
            Type = "string",
            Value = "string",
        },
    },
    Name = "string",
});
Copy
example, err := AnnouncementsService.NewAnnouncementSubscriptionsFilterGroup(ctx, "announcementSubscriptionsFilterGroupResource", &AnnouncementsService.AnnouncementSubscriptionsFilterGroupArgs{
	AnnouncementSubscriptionId: pulumi.String("string"),
	Filters: announcementsservice.AnnouncementSubscriptionsFilterGroupFilterArray{
		&announcementsservice.AnnouncementSubscriptionsFilterGroupFilterArgs{
			Type:  pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
	Name: pulumi.String("string"),
})
Copy
var announcementSubscriptionsFilterGroupResource = new AnnouncementSubscriptionsFilterGroup("announcementSubscriptionsFilterGroupResource", AnnouncementSubscriptionsFilterGroupArgs.builder()
    .announcementSubscriptionId("string")
    .filters(AnnouncementSubscriptionsFilterGroupFilterArgs.builder()
        .type("string")
        .value("string")
        .build())
    .name("string")
    .build());
Copy
announcement_subscriptions_filter_group_resource = oci.announcements_service.AnnouncementSubscriptionsFilterGroup("announcementSubscriptionsFilterGroupResource",
    announcement_subscription_id="string",
    filters=[{
        "type": "string",
        "value": "string",
    }],
    name="string")
Copy
const announcementSubscriptionsFilterGroupResource = new oci.announcementsservice.AnnouncementSubscriptionsFilterGroup("announcementSubscriptionsFilterGroupResource", {
    announcementSubscriptionId: "string",
    filters: [{
        type: "string",
        value: "string",
    }],
    name: "string",
});
Copy
type: oci:AnnouncementsService:AnnouncementSubscriptionsFilterGroup
properties:
    announcementSubscriptionId: string
    filters:
        - type: string
          value: string
    name: string
Copy

AnnouncementSubscriptionsFilterGroup Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AnnouncementSubscriptionsFilterGroup resource accepts the following input properties:

AnnouncementSubscriptionId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the announcement subscription.
Filters This property is required. List<AnnouncementSubscriptionsFilterGroupFilter>
(Updatable) A list of filters against which the Announcements service will match announcements. You cannot have more than one of any given filter type within a filter group.
Name Changes to this property will trigger replacement. string

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

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

AnnouncementSubscriptionId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the announcement subscription.
Filters This property is required. []AnnouncementSubscriptionsFilterGroupFilterArgs
(Updatable) A list of filters against which the Announcements service will match announcements. You cannot have more than one of any given filter type within a filter group.
Name Changes to this property will trigger replacement. string

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

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

announcementSubscriptionId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the announcement subscription.
filters This property is required. List<AnnouncementSubscriptionsFilterGroupFilter>
(Updatable) A list of filters against which the Announcements service will match announcements. You cannot have more than one of any given filter type within a filter group.
name Changes to this property will trigger replacement. String

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

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

announcementSubscriptionId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the announcement subscription.
filters This property is required. AnnouncementSubscriptionsFilterGroupFilter[]
(Updatable) A list of filters against which the Announcements service will match announcements. You cannot have more than one of any given filter type within a filter group.
name Changes to this property will trigger replacement. string

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

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

announcement_subscription_id
This property is required.
Changes to this property will trigger replacement.
str
The OCID of the announcement subscription.
filters This property is required. Sequence[announcementsservice.AnnouncementSubscriptionsFilterGroupFilterArgs]
(Updatable) A list of filters against which the Announcements service will match announcements. You cannot have more than one of any given filter type within a filter group.
name Changes to this property will trigger replacement. str

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

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

announcementSubscriptionId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the announcement subscription.
filters This property is required. List<Property Map>
(Updatable) A list of filters against which the Announcements service will match announcements. You cannot have more than one of any given filter type within a filter group.
name Changes to this property will trigger replacement. String

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

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

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing AnnouncementSubscriptionsFilterGroup Resource

Get an existing AnnouncementSubscriptionsFilterGroup 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?: AnnouncementSubscriptionsFilterGroupState, opts?: CustomResourceOptions): AnnouncementSubscriptionsFilterGroup
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        announcement_subscription_id: Optional[str] = None,
        filters: Optional[Sequence[_announcementsservice.AnnouncementSubscriptionsFilterGroupFilterArgs]] = None,
        name: Optional[str] = None) -> AnnouncementSubscriptionsFilterGroup
func GetAnnouncementSubscriptionsFilterGroup(ctx *Context, name string, id IDInput, state *AnnouncementSubscriptionsFilterGroupState, opts ...ResourceOption) (*AnnouncementSubscriptionsFilterGroup, error)
public static AnnouncementSubscriptionsFilterGroup Get(string name, Input<string> id, AnnouncementSubscriptionsFilterGroupState? state, CustomResourceOptions? opts = null)
public static AnnouncementSubscriptionsFilterGroup get(String name, Output<String> id, AnnouncementSubscriptionsFilterGroupState state, CustomResourceOptions options)
resources:  _:    type: oci:AnnouncementsService:AnnouncementSubscriptionsFilterGroup    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AnnouncementSubscriptionId Changes to this property will trigger replacement. string
The OCID of the announcement subscription.
Filters List<AnnouncementSubscriptionsFilterGroupFilter>
(Updatable) A list of filters against which the Announcements service will match announcements. You cannot have more than one of any given filter type within a filter group.
Name Changes to this property will trigger replacement. string

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

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

AnnouncementSubscriptionId Changes to this property will trigger replacement. string
The OCID of the announcement subscription.
Filters []AnnouncementSubscriptionsFilterGroupFilterArgs
(Updatable) A list of filters against which the Announcements service will match announcements. You cannot have more than one of any given filter type within a filter group.
Name Changes to this property will trigger replacement. string

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

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

announcementSubscriptionId Changes to this property will trigger replacement. String
The OCID of the announcement subscription.
filters List<AnnouncementSubscriptionsFilterGroupFilter>
(Updatable) A list of filters against which the Announcements service will match announcements. You cannot have more than one of any given filter type within a filter group.
name Changes to this property will trigger replacement. String

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

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

announcementSubscriptionId Changes to this property will trigger replacement. string
The OCID of the announcement subscription.
filters AnnouncementSubscriptionsFilterGroupFilter[]
(Updatable) A list of filters against which the Announcements service will match announcements. You cannot have more than one of any given filter type within a filter group.
name Changes to this property will trigger replacement. string

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

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

announcement_subscription_id Changes to this property will trigger replacement. str
The OCID of the announcement subscription.
filters Sequence[announcementsservice.AnnouncementSubscriptionsFilterGroupFilterArgs]
(Updatable) A list of filters against which the Announcements service will match announcements. You cannot have more than one of any given filter type within a filter group.
name Changes to this property will trigger replacement. str

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

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

announcementSubscriptionId Changes to this property will trigger replacement. String
The OCID of the announcement subscription.
filters List<Property Map>
(Updatable) A list of filters against which the Announcements service will match announcements. You cannot have more than one of any given filter type within a filter group.
name Changes to this property will trigger replacement. String

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

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

Supporting Types

AnnouncementSubscriptionsFilterGroupFilter
, AnnouncementSubscriptionsFilterGroupFilterArgs

Type This property is required. string
(Updatable) The type of filter. You cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. For filter types that support multiple values, specify the values individually.
Value This property is required. string
(Updatable) The value of the filter.
Type This property is required. string
(Updatable) The type of filter. You cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. For filter types that support multiple values, specify the values individually.
Value This property is required. string
(Updatable) The value of the filter.
type This property is required. String
(Updatable) The type of filter. You cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. For filter types that support multiple values, specify the values individually.
value This property is required. String
(Updatable) The value of the filter.
type This property is required. string
(Updatable) The type of filter. You cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. For filter types that support multiple values, specify the values individually.
value This property is required. string
(Updatable) The value of the filter.
type This property is required. str
(Updatable) The type of filter. You cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. For filter types that support multiple values, specify the values individually.
value This property is required. str
(Updatable) The value of the filter.
type This property is required. String
(Updatable) The type of filter. You cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. For filter types that support multiple values, specify the values individually.
value This property is required. String
(Updatable) The value of the filter.

Import

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

$ pulumi import oci:AnnouncementsService/announcementSubscriptionsFilterGroup:AnnouncementSubscriptionsFilterGroup test_announcement_subscriptions_filter_group "id"
Copy

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.