1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. MeteringComputation
  5. getUsageStatementEmailRecipientsGroup
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.MeteringComputation.getUsageStatementEmailRecipientsGroup

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides details about a specific Usage Statement Email Recipients Group resource in Oracle Cloud Infrastructure Metering Computation service.

    Return the saved usage statement email recipient group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testUsageStatementEmailRecipientsGroup = oci.MeteringComputation.getUsageStatementEmailRecipientsGroup({
        compartmentId: compartmentId,
        emailRecipientsGroupId: testGroup.id,
        subscriptionId: testSubscription.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_usage_statement_email_recipients_group = oci.MeteringComputation.get_usage_statement_email_recipients_group(compartment_id=compartment_id,
        email_recipients_group_id=test_group["id"],
        subscription_id=test_subscription["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/MeteringComputation"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := MeteringComputation.GetUsageStatementEmailRecipientsGroup(ctx, &meteringcomputation.GetUsageStatementEmailRecipientsGroupArgs{
    			CompartmentId:          compartmentId,
    			EmailRecipientsGroupId: testGroup.Id,
    			SubscriptionId:         testSubscription.Id,
    		}, 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 testUsageStatementEmailRecipientsGroup = Oci.MeteringComputation.GetUsageStatementEmailRecipientsGroup.Invoke(new()
        {
            CompartmentId = compartmentId,
            EmailRecipientsGroupId = testGroup.Id,
            SubscriptionId = testSubscription.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.MeteringComputation.MeteringComputationFunctions;
    import com.pulumi.oci.MeteringComputation.inputs.GetUsageStatementEmailRecipientsGroupArgs;
    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 testUsageStatementEmailRecipientsGroup = MeteringComputationFunctions.getUsageStatementEmailRecipientsGroup(GetUsageStatementEmailRecipientsGroupArgs.builder()
                .compartmentId(compartmentId)
                .emailRecipientsGroupId(testGroup.id())
                .subscriptionId(testSubscription.id())
                .build());
    
        }
    }
    
    variables:
      testUsageStatementEmailRecipientsGroup:
        fn::invoke:
          Function: oci:MeteringComputation:getUsageStatementEmailRecipientsGroup
          Arguments:
            compartmentId: ${compartmentId}
            emailRecipientsGroupId: ${testGroup.id}
            subscriptionId: ${testSubscription.id}
    

    Using getUsageStatementEmailRecipientsGroup

    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 getUsageStatementEmailRecipientsGroup(args: GetUsageStatementEmailRecipientsGroupArgs, opts?: InvokeOptions): Promise<GetUsageStatementEmailRecipientsGroupResult>
    function getUsageStatementEmailRecipientsGroupOutput(args: GetUsageStatementEmailRecipientsGroupOutputArgs, opts?: InvokeOptions): Output<GetUsageStatementEmailRecipientsGroupResult>
    def get_usage_statement_email_recipients_group(compartment_id: Optional[str] = None,
                                                   email_recipients_group_id: Optional[str] = None,
                                                   subscription_id: Optional[str] = None,
                                                   opts: Optional[InvokeOptions] = None) -> GetUsageStatementEmailRecipientsGroupResult
    def get_usage_statement_email_recipients_group_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                                   email_recipients_group_id: Optional[pulumi.Input[str]] = None,
                                                   subscription_id: Optional[pulumi.Input[str]] = None,
                                                   opts: Optional[InvokeOptions] = None) -> Output[GetUsageStatementEmailRecipientsGroupResult]
    func GetUsageStatementEmailRecipientsGroup(ctx *Context, args *GetUsageStatementEmailRecipientsGroupArgs, opts ...InvokeOption) (*GetUsageStatementEmailRecipientsGroupResult, error)
    func GetUsageStatementEmailRecipientsGroupOutput(ctx *Context, args *GetUsageStatementEmailRecipientsGroupOutputArgs, opts ...InvokeOption) GetUsageStatementEmailRecipientsGroupResultOutput

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

    public static class GetUsageStatementEmailRecipientsGroup 
    {
        public static Task<GetUsageStatementEmailRecipientsGroupResult> InvokeAsync(GetUsageStatementEmailRecipientsGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetUsageStatementEmailRecipientsGroupResult> Invoke(GetUsageStatementEmailRecipientsGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUsageStatementEmailRecipientsGroupResult> getUsageStatementEmailRecipientsGroup(GetUsageStatementEmailRecipientsGroupArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:MeteringComputation/getUsageStatementEmailRecipientsGroup:getUsageStatementEmailRecipientsGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The compartment ID in which to list resources.
    EmailRecipientsGroupId string
    The email recipient group OCID.
    SubscriptionId string
    The UsageStatement Subscription unique OCID.
    CompartmentId string
    The compartment ID in which to list resources.
    EmailRecipientsGroupId string
    The email recipient group OCID.
    SubscriptionId string
    The UsageStatement Subscription unique OCID.
    compartmentId String
    The compartment ID in which to list resources.
    emailRecipientsGroupId String
    The email recipient group OCID.
    subscriptionId String
    The UsageStatement Subscription unique OCID.
    compartmentId string
    The compartment ID in which to list resources.
    emailRecipientsGroupId string
    The email recipient group OCID.
    subscriptionId string
    The UsageStatement Subscription unique OCID.
    compartment_id str
    The compartment ID in which to list resources.
    email_recipients_group_id str
    The email recipient group OCID.
    subscription_id str
    The UsageStatement Subscription unique OCID.
    compartmentId String
    The compartment ID in which to list resources.
    emailRecipientsGroupId String
    The email recipient group OCID.
    subscriptionId String
    The UsageStatement Subscription unique OCID.

    getUsageStatementEmailRecipientsGroup Result

    The following output properties are available:

    CompartmentId string
    The customer tenancy OCID.
    EmailRecipientsGroupId string
    Id string
    The usage statement email recipients group OCID.
    RecipientsLists List<GetUsageStatementEmailRecipientsGroupRecipientsList>
    The list of recipient will receive the usage statement email.
    State string
    The email recipient group lifecycle state.
    SubscriptionId string
    CompartmentId string
    The customer tenancy OCID.
    EmailRecipientsGroupId string
    Id string
    The usage statement email recipients group OCID.
    RecipientsLists []GetUsageStatementEmailRecipientsGroupRecipientsList
    The list of recipient will receive the usage statement email.
    State string
    The email recipient group lifecycle state.
    SubscriptionId string
    compartmentId String
    The customer tenancy OCID.
    emailRecipientsGroupId String
    id String
    The usage statement email recipients group OCID.
    recipientsLists List<GetUsageStatementEmailRecipientsGroupRecipientsList>
    The list of recipient will receive the usage statement email.
    state String
    The email recipient group lifecycle state.
    subscriptionId String
    compartmentId string
    The customer tenancy OCID.
    emailRecipientsGroupId string
    id string
    The usage statement email recipients group OCID.
    recipientsLists GetUsageStatementEmailRecipientsGroupRecipientsList[]
    The list of recipient will receive the usage statement email.
    state string
    The email recipient group lifecycle state.
    subscriptionId string
    compartment_id str
    The customer tenancy OCID.
    email_recipients_group_id str
    id str
    The usage statement email recipients group OCID.
    recipients_lists Sequence[meteringcomputation.GetUsageStatementEmailRecipientsGroupRecipientsList]
    The list of recipient will receive the usage statement email.
    state str
    The email recipient group lifecycle state.
    subscription_id str
    compartmentId String
    The customer tenancy OCID.
    emailRecipientsGroupId String
    id String
    The usage statement email recipients group OCID.
    recipientsLists List<Property Map>
    The list of recipient will receive the usage statement email.
    state String
    The email recipient group lifecycle state.
    subscriptionId String

    Supporting Types

    GetUsageStatementEmailRecipientsGroupRecipientsList

    EmailId string
    the email of the recipient.
    FirstName string
    the first name of the recipient.
    LastName string
    the last name of the recipient.
    State string
    The email recipient group lifecycle state.
    EmailId string
    the email of the recipient.
    FirstName string
    the first name of the recipient.
    LastName string
    the last name of the recipient.
    State string
    The email recipient group lifecycle state.
    emailId String
    the email of the recipient.
    firstName String
    the first name of the recipient.
    lastName String
    the last name of the recipient.
    state String
    The email recipient group lifecycle state.
    emailId string
    the email of the recipient.
    firstName string
    the first name of the recipient.
    lastName string
    the last name of the recipient.
    state string
    The email recipient group lifecycle state.
    email_id str
    the email of the recipient.
    first_name str
    the first name of the recipient.
    last_name str
    the last name of the recipient.
    state str
    The email recipient group lifecycle state.
    emailId String
    the email of the recipient.
    firstName String
    the first name of the recipient.
    lastName String
    the last name of the recipient.
    state String
    The email recipient group lifecycle state.

    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.11.0 published on Thursday, Sep 19, 2024 by Pulumi