Oracle Cloud Infrastructure

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

AnnouncementSubscriptionsFilterGroup

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

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

return await Deployment.RunAsync(() => 
{
    var testAnnouncementSubscriptionsFilterGroup = new Oci.AnnouncementsService.AnnouncementSubscriptionsFilterGroup("testAnnouncementSubscriptionsFilterGroup", new()
    {
        AnnouncementSubscriptionId = oci_announcements_service_announcement_subscription.Test_announcement_subscription.Id,
        Filters = new[]
        {
            new Oci.AnnouncementsService.Inputs.AnnouncementSubscriptionsFilterGroupFilterArgs
            {
                Type = @var.Announcement_subscriptions_filter_group_filters_type,
                Value = @var.Announcement_subscriptions_filter_group_filters_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.NewAnnouncementSubscriptionsFilterGroup(ctx, "testAnnouncementSubscriptionsFilterGroup", &AnnouncementsService.AnnouncementSubscriptionsFilterGroupArgs{
			AnnouncementSubscriptionId: pulumi.Any(oci_announcements_service_announcement_subscription.Test_announcement_subscription.Id),
			Filters: announcementsservice.AnnouncementSubscriptionsFilterGroupFilterArray{
				&announcementsservice.AnnouncementSubscriptionsFilterGroupFilterArgs{
					Type:  pulumi.Any(_var.Announcement_subscriptions_filter_group_filters_type),
					Value: pulumi.Any(_var.Announcement_subscriptions_filter_group_filters_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.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(oci_announcements_service_announcement_subscription.test_announcement_subscription().id())
            .filters(AnnouncementSubscriptionsFilterGroupFilterArgs.builder()
                .type(var_.announcement_subscriptions_filter_group_filters_type())
                .value(var_.announcement_subscriptions_filter_group_filters_value())
                .build())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_announcement_subscriptions_filter_group = oci.announcements_service.AnnouncementSubscriptionsFilterGroup("testAnnouncementSubscriptionsFilterGroup",
    announcement_subscription_id=oci_announcements_service_announcement_subscription["test_announcement_subscription"]["id"],
    filters=[oci.announcements_service.AnnouncementSubscriptionsFilterGroupFilterArgs(
        type=var["announcement_subscriptions_filter_group_filters_type"],
        value=var["announcement_subscriptions_filter_group_filters_value"],
    )])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAnnouncementSubscriptionsFilterGroup = new oci.announcementsservice.AnnouncementSubscriptionsFilterGroup("testAnnouncementSubscriptionsFilterGroup", {
    announcementSubscriptionId: oci_announcements_service_announcement_subscription.test_announcement_subscription.id,
    filters: [{
        type: _var.announcement_subscriptions_filter_group_filters_type,
        value: _var.announcement_subscriptions_filter_group_filters_value,
    }],
});
resources:
  testAnnouncementSubscriptionsFilterGroup:
    type: oci:AnnouncementsService:AnnouncementSubscriptionsFilterGroup
    properties:
      #Required
      announcementSubscriptionId: ${oci_announcements_service_announcement_subscription.test_announcement_subscription.id}
      filters:
        - type: ${var.announcement_subscriptions_filter_group_filters_type}
          value: ${var.announcement_subscriptions_filter_group_filters_value}

Create AnnouncementSubscriptionsFilterGroup Resource

new AnnouncementSubscriptionsFilterGroup(name: string, args: AnnouncementSubscriptionsFilterGroupArgs, opts?: CustomResourceOptions);
@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)
@overload
def AnnouncementSubscriptionsFilterGroup(resource_name: str,
                                         args: AnnouncementSubscriptionsFilterGroupArgs,
                                         opts: Optional[ResourceOptions] = 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.

name string
The unique name of the resource.
args AnnouncementSubscriptionsFilterGroupArgs
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 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 string
The unique name of the resource.
args AnnouncementSubscriptionsFilterGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AnnouncementSubscriptionsFilterGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AnnouncementSubscriptionsFilterGroupArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

The AnnouncementSubscriptionsFilterGroup resource accepts the following input properties:

AnnouncementSubscriptionId string

The OCID of the announcement subscription.

Filters List<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 string

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

AnnouncementSubscriptionId 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 string

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

announcementSubscriptionId String

The OCID of the announcement subscription.

filters List<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 String

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

announcementSubscriptionId 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 string

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

announcement_subscription_id str

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 str

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

announcementSubscriptionId 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 String

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

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)
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:
AnnouncementSubscriptionId string

The OCID of the announcement subscription.

Filters List<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 string

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

AnnouncementSubscriptionId 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 string

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

announcementSubscriptionId String

The OCID of the announcement subscription.

filters List<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 String

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

announcementSubscriptionId 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 string

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

announcement_subscription_id str

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 str

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

announcementSubscriptionId 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 String

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

Supporting Types

AnnouncementSubscriptionsFilterGroupFilter

Type string

(Updatable) The type of filter.

Value string

(Updatable) The value of the filter.

Type string

(Updatable) The type of filter.

Value string

(Updatable) The value of the filter.

type String

(Updatable) The type of filter.

value String

(Updatable) The value of the filter.

type string

(Updatable) The type of filter.

value string

(Updatable) The value of the filter.

type str

(Updatable) The type of filter.

value str

(Updatable) The value of the filter.

type String

(Updatable) The type of filter.

value 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"

Package Details

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

This Pulumi package is based on the oci Terraform Provider.