AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi
aws.oam.getLink
Explore with Pulumi AI
Data source for managing an AWS CloudWatch Observability Access Manager Link.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.oam.getLink({
linkIdentifier: "arn:aws:oam:us-west-1:111111111111:link/abcd1234-a123-456a-a12b-a123b456c789",
});
import pulumi
import pulumi_aws as aws
example = aws.oam.get_link(link_identifier="arn:aws:oam:us-west-1:111111111111:link/abcd1234-a123-456a-a12b-a123b456c789")
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.LookupLink(ctx, &oam.LookupLinkArgs{
LinkIdentifier: "arn:aws:oam:us-west-1:111111111111:link/abcd1234-a123-456a-a12b-a123b456c789",
}, 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.GetLink.Invoke(new()
{
LinkIdentifier = "arn:aws:oam:us-west-1:111111111111:link/abcd1234-a123-456a-a12b-a123b456c789",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.oam.OamFunctions;
import com.pulumi.aws.oam.inputs.GetLinkArgs;
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.getLink(GetLinkArgs.builder()
.linkIdentifier("arn:aws:oam:us-west-1:111111111111:link/abcd1234-a123-456a-a12b-a123b456c789")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:oam:getLink
Arguments:
linkIdentifier: arn:aws:oam:us-west-1:111111111111:link/abcd1234-a123-456a-a12b-a123b456c789
Using getLink
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 getLink(args: GetLinkArgs, opts?: InvokeOptions): Promise<GetLinkResult>
function getLinkOutput(args: GetLinkOutputArgs, opts?: InvokeOptions): Output<GetLinkResult>
def get_link(link_identifier: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetLinkResult
def get_link_output(link_identifier: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLinkResult]
func LookupLink(ctx *Context, args *LookupLinkArgs, opts ...InvokeOption) (*LookupLinkResult, error)
func LookupLinkOutput(ctx *Context, args *LookupLinkOutputArgs, opts ...InvokeOption) LookupLinkResultOutput
> Note: This function is named LookupLink
in the Go SDK.
public static class GetLink
{
public static Task<GetLinkResult> InvokeAsync(GetLinkArgs args, InvokeOptions? opts = null)
public static Output<GetLinkResult> Invoke(GetLinkInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLinkResult> getLink(GetLinkArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:oam/getLink:getLink
arguments:
# arguments dictionary
The following arguments are supported:
- Link
Identifier string - ARN of the link.
- Dictionary<string, string>
- Link
Identifier string - ARN of the link.
- map[string]string
- link
Identifier String - ARN of the link.
- Map<String,String>
- link
Identifier string - ARN of the link.
- {[key: string]: string}
- link_
identifier str - ARN of the link.
- Mapping[str, str]
- link
Identifier String - ARN of the link.
- Map<String>
getLink Result
The following output properties are available:
- Arn string
- ARN of the link.
- Id string
- The provider-assigned unique ID for this managed resource.
- Label string
- Label that is assigned to this link.
- Label
Template string - Human-readable name used to identify this source account when you are viewing data from it in the monitoring account.
- Link
Configurations List<GetLink Link Configuration> - Configuration for creating filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account. See
link_configuration
Block for details. - Link
Id string - ID string that AWS generated as part of the link ARN.
- Link
Identifier string - Resource
Types List<string> - Types of data that the source account shares with the monitoring account.
- Sink
Arn string - ARN of the sink that is used for this link.
- Dictionary<string, string>
- Arn string
- ARN of the link.
- Id string
- The provider-assigned unique ID for this managed resource.
- Label string
- Label that is assigned to this link.
- Label
Template string - Human-readable name used to identify this source account when you are viewing data from it in the monitoring account.
- Link
Configurations []GetLink Link Configuration - Configuration for creating filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account. See
link_configuration
Block for details. - Link
Id string - ID string that AWS generated as part of the link ARN.
- Link
Identifier string - Resource
Types []string - Types of data that the source account shares with the monitoring account.
- Sink
Arn string - ARN of the sink that is used for this link.
- map[string]string
- arn String
- ARN of the link.
- id String
- The provider-assigned unique ID for this managed resource.
- label String
- Label that is assigned to this link.
- label
Template String - Human-readable name used to identify this source account when you are viewing data from it in the monitoring account.
- link
Configurations List<GetLink Link Configuration> - Configuration for creating filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account. See
link_configuration
Block for details. - link
Id String - ID string that AWS generated as part of the link ARN.
- link
Identifier String - resource
Types List<String> - Types of data that the source account shares with the monitoring account.
- sink
Arn String - ARN of the sink that is used for this link.
- Map<String,String>
- arn string
- ARN of the link.
- id string
- The provider-assigned unique ID for this managed resource.
- label string
- Label that is assigned to this link.
- label
Template string - Human-readable name used to identify this source account when you are viewing data from it in the monitoring account.
- link
Configurations GetLink Link Configuration[] - Configuration for creating filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account. See
link_configuration
Block for details. - link
Id string - ID string that AWS generated as part of the link ARN.
- link
Identifier string - resource
Types string[] - Types of data that the source account shares with the monitoring account.
- sink
Arn string - ARN of the sink that is used for this link.
- {[key: string]: string}
- arn str
- ARN of the link.
- id str
- The provider-assigned unique ID for this managed resource.
- label str
- Label that is assigned to this link.
- label_
template str - Human-readable name used to identify this source account when you are viewing data from it in the monitoring account.
- link_
configurations Sequence[GetLink Link Configuration] - Configuration for creating filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account. See
link_configuration
Block for details. - link_
id str - ID string that AWS generated as part of the link ARN.
- link_
identifier str - resource_
types Sequence[str] - Types of data that the source account shares with the monitoring account.
- sink_
arn str - ARN of the sink that is used for this link.
- Mapping[str, str]
- arn String
- ARN of the link.
- id String
- The provider-assigned unique ID for this managed resource.
- label String
- Label that is assigned to this link.
- label
Template String - Human-readable name used to identify this source account when you are viewing data from it in the monitoring account.
- link
Configurations List<Property Map> - Configuration for creating filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account. See
link_configuration
Block for details. - link
Id String - ID string that AWS generated as part of the link ARN.
- link
Identifier String - resource
Types List<String> - Types of data that the source account shares with the monitoring account.
- sink
Arn String - ARN of the sink that is used for this link.
- Map<String>
Supporting Types
GetLinkLinkConfiguration
- Log
Group List<GetConfigurations Link Link Configuration Log Group Configuration> - Configuration for filtering which log groups are to send log events from the source account to the monitoring account. See
log_group_configuration
Block for details. - Metric
Configurations List<GetLink Link Configuration Metric Configuration> - Configuration for filtering which metric namespaces are to be shared from the source account to the monitoring account. See
metric_configuration
Block for details.
- Log
Group []GetConfigurations Link Link Configuration Log Group Configuration - Configuration for filtering which log groups are to send log events from the source account to the monitoring account. See
log_group_configuration
Block for details. - Metric
Configurations []GetLink Link Configuration Metric Configuration - Configuration for filtering which metric namespaces are to be shared from the source account to the monitoring account. See
metric_configuration
Block for details.
- log
Group List<GetConfigurations Link Link Configuration Log Group Configuration> - Configuration for filtering which log groups are to send log events from the source account to the monitoring account. See
log_group_configuration
Block for details. - metric
Configurations List<GetLink Link Configuration Metric Configuration> - Configuration for filtering which metric namespaces are to be shared from the source account to the monitoring account. See
metric_configuration
Block for details.
- log
Group GetConfigurations Link Link Configuration Log Group Configuration[] - Configuration for filtering which log groups are to send log events from the source account to the monitoring account. See
log_group_configuration
Block for details. - metric
Configurations GetLink Link Configuration Metric Configuration[] - Configuration for filtering which metric namespaces are to be shared from the source account to the monitoring account. See
metric_configuration
Block for details.
- log_
group_ Sequence[Getconfigurations Link Link Configuration Log Group Configuration] - Configuration for filtering which log groups are to send log events from the source account to the monitoring account. See
log_group_configuration
Block for details. - metric_
configurations Sequence[GetLink Link Configuration Metric Configuration] - Configuration for filtering which metric namespaces are to be shared from the source account to the monitoring account. See
metric_configuration
Block for details.
- log
Group List<Property Map>Configurations - Configuration for filtering which log groups are to send log events from the source account to the monitoring account. See
log_group_configuration
Block for details. - metric
Configurations List<Property Map> - Configuration for filtering which metric namespaces are to be shared from the source account to the monitoring account. See
metric_configuration
Block for details.
GetLinkLinkConfigurationLogGroupConfiguration
- Filter string
- Filter string that specifies which metrics are to be shared with the monitoring account. See MetricConfiguration for details.
- Filter string
- Filter string that specifies which metrics are to be shared with the monitoring account. See MetricConfiguration for details.
- filter String
- Filter string that specifies which metrics are to be shared with the monitoring account. See MetricConfiguration for details.
- filter string
- Filter string that specifies which metrics are to be shared with the monitoring account. See MetricConfiguration for details.
- filter str
- Filter string that specifies which metrics are to be shared with the monitoring account. See MetricConfiguration for details.
- filter String
- Filter string that specifies which metrics are to be shared with the monitoring account. See MetricConfiguration for details.
GetLinkLinkConfigurationMetricConfiguration
- Filter string
- Filter string that specifies which metrics are to be shared with the monitoring account. See MetricConfiguration for details.
- Filter string
- Filter string that specifies which metrics are to be shared with the monitoring account. See MetricConfiguration for details.
- filter String
- Filter string that specifies which metrics are to be shared with the monitoring account. See MetricConfiguration for details.
- filter string
- Filter string that specifies which metrics are to be shared with the monitoring account. See MetricConfiguration for details.
- filter str
- Filter string that specifies which metrics are to be shared with the monitoring account. See MetricConfiguration for details.
- filter String
- Filter string that specifies which metrics are to be shared with the monitoring account. See MetricConfiguration for details.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.