Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Jms.getAnnouncements
Explore with Pulumi AI
This data source provides the list of Announcements in Oracle Cloud Infrastructure Jms service.
Return a list of AnnouncementSummary items
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAnnouncements = oci.Jms.getAnnouncements({
summaryContains: announcementSummaryContains,
timeEnd: announcementTimeEnd,
timeStart: announcementTimeStart,
});
import pulumi
import pulumi_oci as oci
test_announcements = oci.Jms.get_announcements(summary_contains=announcement_summary_contains,
time_end=announcement_time_end,
time_start=announcement_time_start)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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(announcementSummaryContains),
TimeEnd: pulumi.StringRef(announcementTimeEnd),
TimeStart: pulumi.StringRef(announcementTimeStart),
}, nil)
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 testAnnouncements = Oci.Jms.GetAnnouncements.Invoke(new()
{
SummaryContains = announcementSummaryContains,
TimeEnd = announcementTimeEnd,
TimeStart = announcementTimeStart,
});
});
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(announcementSummaryContains)
.timeEnd(announcementTimeEnd)
.timeStart(announcementTimeStart)
.build());
}
}
variables:
testAnnouncements:
fn::invoke:
Function: oci:Jms:getAnnouncements
Arguments:
summaryContains: ${announcementSummaryContains}
timeEnd: ${announcementTimeEnd}
timeStart: ${announcementTimeStart}
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<Get
Announcements Filter> - Summary
Contains string - Filter the list with summary contains the given value.
- Time
End string - The end of the time period during which resources are searched (formatted according to RFC3339).
- Time
Start string - The start of the time period during which resources are searched (formatted according to RFC3339).
- Filters
[]Get
Announcements Filter - Summary
Contains string - Filter the list with summary contains the given value.
- Time
End string - The end of the time period during which resources are searched (formatted according to RFC3339).
- Time
Start string - The start of the time period during which resources are searched (formatted according to RFC3339).
- filters
List<Get
Announcements Filter> - summary
Contains String - Filter the list with summary contains the given value.
- time
End String - The end of the time period during which resources are searched (formatted according to RFC3339).
- time
Start String - The start of the time period during which resources are searched (formatted according to RFC3339).
- filters
Get
Announcements Filter[] - summary
Contains string - Filter the list with summary contains the given value.
- time
End string - The end of the time period during which resources are searched (formatted according to RFC3339).
- time
Start string - The start of the time period during which resources are searched (formatted according to RFC3339).
- filters
Sequence[jms.
Get Announcements Filter] - 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>
- summary
Contains String - Filter the list with summary contains the given value.
- time
End String - The end of the time period during which resources are searched (formatted according to RFC3339).
- time
Start String - The start of the time period during which resources are searched (formatted according to RFC3339).
getAnnouncements Result
The following output properties are available:
- Announcement
Collections List<GetAnnouncements Announcement Collection> - The list of announcement_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Announcements Filter> - Summary
Contains string - Time
End string - Time
Start string
- Announcement
Collections []GetAnnouncements Announcement Collection - The list of announcement_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Announcements Filter - Summary
Contains string - Time
End string - Time
Start string
- announcement
Collections List<GetAnnouncements Announcement Collection> - The list of announcement_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Announcements Filter> - summary
Contains String - time
End String - time
Start String
- announcement
Collections GetAnnouncements Announcement Collection[] - The list of announcement_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Announcements Filter[] - summary
Contains string - time
End string - time
Start string
- announcement_
collections Sequence[jms.Get Announcements Announcement Collection] - The list of announcement_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[jms.
Get Announcements Filter] - summary_
contains str - time_
end str - time_
start str
- announcement
Collections List<Property Map> - The list of announcement_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- summary
Contains String - time
End String - time
Start String
Supporting Types
GetAnnouncementsAnnouncementCollection
- Items
List<Get
Announcements Announcement Collection Item> - List of AnnouncementSummary items
- Items
[]Get
Announcements Announcement Collection Item - List of AnnouncementSummary items
- items
List<Get
Announcements Announcement Collection Item> - List of AnnouncementSummary items
- items
Get
Announcements Announcement Collection Item[] - List of AnnouncementSummary items
- items
Sequence[jms.
Get Announcements Announcement Collection Item] - 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
- Time
Released 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
- Time
Released 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
- time
Released 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
- time
Released 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
- time
Released String - Date time on which the announcement was released
- url String
- URL to the announcement web page
GetAnnouncementsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.