AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.oam.getSinks
Explore with Pulumi AI
Data source for managing an AWS CloudWatch Observability Access Manager Sinks.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.oam.getSinks({});
import pulumi
import pulumi_aws as aws
example = aws.oam.get_sinks()
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/oam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := oam.GetSinks(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Oam.GetSinks.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.oam.OamFunctions;
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 example = OamFunctions.getSinks();
}
}
variables:
example:
fn::invoke:
Function: aws:oam:getSinks
Arguments: {}
Using getSinks
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 getSinks(opts?: InvokeOptions): Promise<GetSinksResult>
function getSinksOutput(opts?: InvokeOptions): Output<GetSinksResult>
def get_sinks(opts: Optional[InvokeOptions] = None) -> GetSinksResult
def get_sinks_output(opts: Optional[InvokeOptions] = None) -> Output[GetSinksResult]
func GetSinks(ctx *Context, opts ...InvokeOption) (*GetSinksResult, error)
func GetSinksOutput(ctx *Context, opts ...InvokeOption) GetSinksResultOutput
> Note: This function is named GetSinks
in the Go SDK.
public static class GetSinks
{
public static Task<GetSinksResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetSinksResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetSinksResult> getSinks(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:oam/getSinks:getSinks
arguments:
# arguments dictionary
getSinks Result
The following output properties are available:
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.