Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.MeteringComputation.getCleanEnergyUsage
Explore with Pulumi AI
This data source provides details about a specific Clean Energy Usage resource in Oracle Cloud Infrastructure Metering Computation service.
Returns the clean energy usage summary by region.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
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.GetCleanEnergyUsageArgs;
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 testCleanEnergyUsage = MeteringComputationFunctions.getCleanEnergyUsage(GetCleanEnergyUsageArgs.builder()
.region(cleanEnergyUsageRegion)
.ad(cleanEnergyUsageAd)
.build());
}
}
variables:
testCleanEnergyUsage:
fn::invoke:
Function: oci:MeteringComputation:getCleanEnergyUsage
Arguments:
region: ${cleanEnergyUsageRegion}
ad: ${cleanEnergyUsageAd}
Using getCleanEnergyUsage
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 getCleanEnergyUsage(args: GetCleanEnergyUsageArgs, opts?: InvokeOptions): Promise<GetCleanEnergyUsageResult>
function getCleanEnergyUsageOutput(args: GetCleanEnergyUsageOutputArgs, opts?: InvokeOptions): Output<GetCleanEnergyUsageResult>
def get_clean_energy_usage(region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCleanEnergyUsageResult
def get_clean_energy_usage_output(region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCleanEnergyUsageResult]
func GetCleanEnergyUsage(ctx *Context, args *GetCleanEnergyUsageArgs, opts ...InvokeOption) (*GetCleanEnergyUsageResult, error)
func GetCleanEnergyUsageOutput(ctx *Context, args *GetCleanEnergyUsageOutputArgs, opts ...InvokeOption) GetCleanEnergyUsageResultOutput
> Note: This function is named GetCleanEnergyUsage
in the Go SDK.
public static class GetCleanEnergyUsage
{
public static Task<GetCleanEnergyUsageResult> InvokeAsync(GetCleanEnergyUsageArgs args, InvokeOptions? opts = null)
public static Output<GetCleanEnergyUsageResult> Invoke(GetCleanEnergyUsageInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCleanEnergyUsageResult> getCleanEnergyUsage(GetCleanEnergyUsageArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:MeteringComputation/getCleanEnergyUsage:getCleanEnergyUsage
arguments:
# arguments dictionary
The following arguments are supported:
- Region string
- The region.
- Region string
- The region.
- region String
- The region.
- region string
- The region.
- region str
- The region.
- region String
- The region.
getCleanEnergyUsage Result
The following output properties are available:
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.