1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Jms
  5. getAnnouncements
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

oci.Jms.getAnnouncements

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

    This data source provides the list of Announcements in Oracle Cloud Infrastructure Jms service.

    Return a list of AnnouncementSummary items

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testAnnouncements = Oci.Jms.GetAnnouncements.Invoke(new()
        {
            SummaryContains = @var.Announcement_summary_contains,
            TimeEnd = @var.Announcement_time_end,
            TimeStart = @var.Announcement_time_start,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Jms"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Jms.GetAnnouncements(ctx, &jms.GetAnnouncementsArgs{
    			SummaryContains: pulumi.StringRef(_var.Announcement_summary_contains),
    			TimeEnd:         pulumi.StringRef(_var.Announcement_time_end),
    			TimeStart:       pulumi.StringRef(_var.Announcement_time_start),
    		}, nil)
    		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.Jms.JmsFunctions;
    import com.pulumi.oci.Jms.inputs.GetAnnouncementsArgs;
    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) {
            final var testAnnouncements = JmsFunctions.getAnnouncements(GetAnnouncementsArgs.builder()
                .summaryContains(var_.announcement_summary_contains())
                .timeEnd(var_.announcement_time_end())
                .timeStart(var_.announcement_time_start())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_announcements = oci.Jms.get_announcements(summary_contains=var["announcement_summary_contains"],
        time_end=var["announcement_time_end"],
        time_start=var["announcement_time_start"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAnnouncements = oci.Jms.getAnnouncements({
        summaryContains: _var.announcement_summary_contains,
        timeEnd: _var.announcement_time_end,
        timeStart: _var.announcement_time_start,
    });
    
    variables:
      testAnnouncements:
        fn::invoke:
          Function: oci:Jms:getAnnouncements
          Arguments:
            summaryContains: ${var.announcement_summary_contains}
            timeEnd: ${var.announcement_time_end}
            timeStart: ${var.announcement_time_start}
    

    Using getAnnouncements

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getAnnouncements(args: GetAnnouncementsArgs, opts?: InvokeOptions): Promise<GetAnnouncementsResult>
    function getAnnouncementsOutput(args: GetAnnouncementsOutputArgs, opts?: InvokeOptions): Output<GetAnnouncementsResult>
    def get_announcements(filters: Optional[Sequence[_jms.GetAnnouncementsFilter]] = None,
                          summary_contains: Optional[str] = None,
                          time_end: Optional[str] = None,
                          time_start: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetAnnouncementsResult
    def get_announcements_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_jms.GetAnnouncementsFilterArgs]]]] = None,
                          summary_contains: Optional[pulumi.Input[str]] = None,
                          time_end: Optional[pulumi.Input[str]] = None,
                          time_start: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetAnnouncementsResult]
    func GetAnnouncements(ctx *Context, args *GetAnnouncementsArgs, opts ...InvokeOption) (*GetAnnouncementsResult, error)
    func GetAnnouncementsOutput(ctx *Context, args *GetAnnouncementsOutputArgs, opts ...InvokeOption) GetAnnouncementsResultOutput

    > Note: This function is named GetAnnouncements in the Go SDK.

    public static class GetAnnouncements 
    {
        public static Task<GetAnnouncementsResult> InvokeAsync(GetAnnouncementsArgs args, InvokeOptions? opts = null)
        public static Output<GetAnnouncementsResult> Invoke(GetAnnouncementsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAnnouncementsResult> getAnnouncements(GetAnnouncementsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Jms/getAnnouncements:getAnnouncements
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<GetAnnouncementsFilter>
    SummaryContains string
    Filter the list with summary contains the given value.
    TimeEnd string
    The end of the time period during which resources are searched (formatted according to RFC3339).
    TimeStart string
    The start of the time period during which resources are searched (formatted according to RFC3339).
    Filters []GetAnnouncementsFilter
    SummaryContains string
    Filter the list with summary contains the given value.
    TimeEnd string
    The end of the time period during which resources are searched (formatted according to RFC3339).
    TimeStart string
    The start of the time period during which resources are searched (formatted according to RFC3339).
    filters List<GetAnnouncementsFilter>
    summaryContains String
    Filter the list with summary contains the given value.
    timeEnd String
    The end of the time period during which resources are searched (formatted according to RFC3339).
    timeStart String
    The start of the time period during which resources are searched (formatted according to RFC3339).
    filters GetAnnouncementsFilter[]
    summaryContains string
    Filter the list with summary contains the given value.
    timeEnd string
    The end of the time period during which resources are searched (formatted according to RFC3339).
    timeStart string
    The start of the time period during which resources are searched (formatted according to RFC3339).
    filters GetAnnouncementsFilter]
    summary_contains str
    Filter the list with summary contains the given value.
    time_end str
    The end of the time period during which resources are searched (formatted according to RFC3339).
    time_start str
    The start of the time period during which resources are searched (formatted according to RFC3339).
    filters List<Property Map>
    summaryContains String
    Filter the list with summary contains the given value.
    timeEnd String
    The end of the time period during which resources are searched (formatted according to RFC3339).
    timeStart String
    The start of the time period during which resources are searched (formatted according to RFC3339).

    getAnnouncements Result

    The following output properties are available:

    AnnouncementCollections List<GetAnnouncementsAnnouncementCollection>
    The list of announcement_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetAnnouncementsFilter>
    SummaryContains string
    TimeEnd string
    TimeStart string
    AnnouncementCollections []GetAnnouncementsAnnouncementCollection
    The list of announcement_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetAnnouncementsFilter
    SummaryContains string
    TimeEnd string
    TimeStart string
    announcementCollections List<GetAnnouncementsAnnouncementCollection>
    The list of announcement_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetAnnouncementsFilter>
    summaryContains String
    timeEnd String
    timeStart String
    announcementCollections GetAnnouncementsAnnouncementCollection[]
    The list of announcement_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetAnnouncementsFilter[]
    summaryContains string
    timeEnd string
    timeStart string
    announcement_collections GetAnnouncementsAnnouncementCollection]
    The list of announcement_collection.
    id str
    The provider-assigned unique ID for this managed resource.
    filters GetAnnouncementsFilter]
    summary_contains str
    time_end str
    time_start str
    announcementCollections List<Property Map>
    The list of announcement_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>
    summaryContains String
    timeEnd String
    timeStart String

    Supporting Types

    GetAnnouncementsAnnouncementCollection

    Items []GetAnnouncementsAnnouncementCollectionItem
    List of AnnouncementSummary items
    items GetAnnouncementsAnnouncementCollectionItem[]
    List of AnnouncementSummary items
    items GetAnnouncementsAnnouncementCollectionItem]
    List of AnnouncementSummary items
    items List<Property Map>
    List of AnnouncementSummary items

    GetAnnouncementsAnnouncementCollectionItem

    Key int
    Unique id of the announcement
    Summary string
    Summary text of the announcement
    TimeReleased string
    Date time on which the announcement was released
    Url string
    URL to the announcement web page
    Key int
    Unique id of the announcement
    Summary string
    Summary text of the announcement
    TimeReleased string
    Date time on which the announcement was released
    Url string
    URL to the announcement web page
    key Integer
    Unique id of the announcement
    summary String
    Summary text of the announcement
    timeReleased String
    Date time on which the announcement was released
    url String
    URL to the announcement web page
    key number
    Unique id of the announcement
    summary string
    Summary text of the announcement
    timeReleased string
    Date time on which the announcement was released
    url string
    URL to the announcement web page
    key int
    Unique id of the announcement
    summary str
    Summary text of the announcement
    time_released str
    Date time on which the announcement was released
    url str
    URL to the announcement web page
    key Number
    Unique id of the announcement
    summary String
    Summary text of the announcement
    timeReleased String
    Date time on which the announcement was released
    url String
    URL to the announcement web page

    GetAnnouncementsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    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.24.0 published on Thursday, Feb 22, 2024 by Pulumi