Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.MeteringComputation.getUsageStatementEmailRecipientsGroup
Explore with Pulumi AI
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:
- Compartment
Id string - The compartment ID in which to list resources.
- Email
Recipients stringGroup Id - The email recipient group OCID.
- Subscription
Id string - The UsageStatement Subscription unique OCID.
- Compartment
Id string - The compartment ID in which to list resources.
- Email
Recipients stringGroup Id - The email recipient group OCID.
- Subscription
Id string - The UsageStatement Subscription unique OCID.
- compartment
Id String - The compartment ID in which to list resources.
- email
Recipients StringGroup Id - The email recipient group OCID.
- subscription
Id String - The UsageStatement Subscription unique OCID.
- compartment
Id string - The compartment ID in which to list resources.
- email
Recipients stringGroup Id - The email recipient group OCID.
- subscription
Id string - The UsageStatement Subscription unique OCID.
- compartment_
id str - The compartment ID in which to list resources.
- email_
recipients_ strgroup_ id - The email recipient group OCID.
- subscription_
id str - The UsageStatement Subscription unique OCID.
- compartment
Id String - The compartment ID in which to list resources.
- email
Recipients StringGroup Id - The email recipient group OCID.
- subscription
Id String - The UsageStatement Subscription unique OCID.
getUsageStatementEmailRecipientsGroup Result
The following output properties are available:
- Compartment
Id string - The customer tenancy OCID.
- Email
Recipients stringGroup Id - Id string
- The usage statement email recipients group OCID.
- Recipients
Lists List<GetUsage Statement Email Recipients Group Recipients List> - The list of recipient will receive the usage statement email.
- State string
- The email recipient group lifecycle state.
- Subscription
Id string
- Compartment
Id string - The customer tenancy OCID.
- Email
Recipients stringGroup Id - Id string
- The usage statement email recipients group OCID.
- Recipients
Lists []GetUsage Statement Email Recipients Group Recipients List - The list of recipient will receive the usage statement email.
- State string
- The email recipient group lifecycle state.
- Subscription
Id string
- compartment
Id String - The customer tenancy OCID.
- email
Recipients StringGroup Id - id String
- The usage statement email recipients group OCID.
- recipients
Lists List<GetUsage Statement Email Recipients Group Recipients List> - The list of recipient will receive the usage statement email.
- state String
- The email recipient group lifecycle state.
- subscription
Id String
- compartment
Id string - The customer tenancy OCID.
- email
Recipients stringGroup Id - id string
- The usage statement email recipients group OCID.
- recipients
Lists GetUsage Statement Email Recipients Group Recipients List[] - The list of recipient will receive the usage statement email.
- state string
- The email recipient group lifecycle state.
- subscription
Id string
- compartment_
id str - The customer tenancy OCID.
- email_
recipients_ strgroup_ id - id str
- The usage statement email recipients group OCID.
- recipients_
lists Sequence[meteringcomputation.Get Usage Statement Email Recipients Group Recipients List] - The list of recipient will receive the usage statement email.
- state str
- The email recipient group lifecycle state.
- subscription_
id str
- compartment
Id String - The customer tenancy OCID.
- email
Recipients StringGroup Id - id String
- The usage statement email recipients group OCID.
- recipients
Lists List<Property Map> - The list of recipient will receive the usage statement email.
- state String
- The email recipient group lifecycle state.
- subscription
Id String
Supporting Types
GetUsageStatementEmailRecipientsGroupRecipientsList
- 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.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.