1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. AnnouncementsService
  5. AnnouncementSubscriptionsFilterGroup
Oracle Cloud Infrastructure v2.19.0 published on Thursday, Dec 12, 2024 by Pulumi

oci.AnnouncementsService.AnnouncementSubscriptionsFilterGroup

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.19.0 published on Thursday, Dec 12, 2024 by Pulumi

    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,
    });
    
    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)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      testAnnouncementSubscriptionsFilterGroup:
        type: oci:AnnouncementsService:AnnouncementSubscriptionsFilterGroup
        name: test_announcement_subscriptions_filter_group
        properties:
          announcementSubscriptionId: ${testAnnouncementSubscription.id}
          filters:
            - type: ${announcementSubscriptionsFilterGroupFiltersType}
              value: ${announcementSubscriptionsFilterGroupFiltersValue}
          name: ${announcementSubscriptionsFilterGroupName}
    

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

    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",
    });
    
    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"),
    })
    
    var announcementSubscriptionsFilterGroupResource = new AnnouncementSubscriptionsFilterGroup("announcementSubscriptionsFilterGroupResource", AnnouncementSubscriptionsFilterGroupArgs.builder()
        .announcementSubscriptionId("string")
        .filters(AnnouncementSubscriptionsFilterGroupFilterArgs.builder()
            .type("string")
            .value("string")
            .build())
        .name("string")
        .build());
    
    announcement_subscriptions_filter_group_resource = oci.announcements_service.AnnouncementSubscriptionsFilterGroup("announcementSubscriptionsFilterGroupResource",
        announcement_subscription_id="string",
        filters=[{
            "type": "string",
            "value": "string",
        }],
        name="string")
    
    const announcementSubscriptionsFilterGroupResource = new oci.announcementsservice.AnnouncementSubscriptionsFilterGroup("announcementSubscriptionsFilterGroupResource", {
        announcementSubscriptionId: "string",
        filters: [{
            type: "string",
            value: "string",
        }],
        name: "string",
    });
    
    type: oci:AnnouncementsService:AnnouncementSubscriptionsFilterGroup
    properties:
        announcementSubscriptionId: string
        filters:
            - type: string
              value: string
        name: string
    

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

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

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

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

    ** 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 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 string
    (Updatable) The value of the filter.
    Type 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 string
    (Updatable) The value of the filter.
    type 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 String
    (Updatable) The value of the filter.
    type 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 string
    (Updatable) The value of the filter.
    type 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 str
    (Updatable) The value of the filter.
    type 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 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"
    

    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 v2.19.0 published on Thursday, Dec 12, 2024 by Pulumi