We recommend new projects start with resources from the AWS provider.
aws-native.oam.getLink
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Definition of AWS::Oam::Link Resource Type
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(arn: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetLinkResult
def get_link_output(arn: Optional[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)
public static Output<GetLinkResult> getLink(GetLinkArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:oam:getLink
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Arn string
- The ARN of the link. For example, arn:aws:oam:us-west-1:111111111111:link:abcd1234-a123-456a-a12b-a123b456c789
- Arn string
- The ARN of the link. For example, arn:aws:oam:us-west-1:111111111111:link:abcd1234-a123-456a-a12b-a123b456c789
- arn String
- The ARN of the link. For example, arn:aws:oam:us-west-1:111111111111:link:abcd1234-a123-456a-a12b-a123b456c789
- arn string
- The ARN of the link. For example, arn:aws:oam:us-west-1:111111111111:link:abcd1234-a123-456a-a12b-a123b456c789
- arn str
- The ARN of the link. For example, arn:aws:oam:us-west-1:111111111111:link:abcd1234-a123-456a-a12b-a123b456c789
- arn String
- The ARN of the link. For example, arn:aws:oam:us-west-1:111111111111:link:abcd1234-a123-456a-a12b-a123b456c789
getLink Result
The following output properties are available:
- Arn string
- The ARN of the link. For example, arn:aws:oam:us-west-1:111111111111:link:abcd1234-a123-456a-a12b-a123b456c789
- Label string
- The friendly human-readable name used to identify this source account when it is viewed from the monitoring account. For example, my-account1.
- LinkConfiguration Pulumi.Aws Native. Oam. Outputs. Link Configuration 
- Use this structure to optionally create filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account.
- ResourceTypes List<Pulumi.Aws Native. Oam. Link Resource Type> 
- An array of strings that define which types of data that the source account shares with the monitoring account. Valid values are AWS::CloudWatch::Metric | AWS::Logs::LogGroup | AWS::XRay::Trace | AWS::ApplicationInsights::Application | AWS::InternetMonitor::Monitor.
- Dictionary<string, string>
- Tags to apply to the link
- Arn string
- The ARN of the link. For example, arn:aws:oam:us-west-1:111111111111:link:abcd1234-a123-456a-a12b-a123b456c789
- Label string
- The friendly human-readable name used to identify this source account when it is viewed from the monitoring account. For example, my-account1.
- LinkConfiguration LinkConfiguration 
- Use this structure to optionally create filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account.
- ResourceTypes []LinkResource Type 
- An array of strings that define which types of data that the source account shares with the monitoring account. Valid values are AWS::CloudWatch::Metric | AWS::Logs::LogGroup | AWS::XRay::Trace | AWS::ApplicationInsights::Application | AWS::InternetMonitor::Monitor.
- map[string]string
- Tags to apply to the link
- arn String
- The ARN of the link. For example, arn:aws:oam:us-west-1:111111111111:link:abcd1234-a123-456a-a12b-a123b456c789
- label String
- The friendly human-readable name used to identify this source account when it is viewed from the monitoring account. For example, my-account1.
- linkConfiguration LinkConfiguration 
- Use this structure to optionally create filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account.
- resourceTypes List<LinkResource Type> 
- An array of strings that define which types of data that the source account shares with the monitoring account. Valid values are AWS::CloudWatch::Metric | AWS::Logs::LogGroup | AWS::XRay::Trace | AWS::ApplicationInsights::Application | AWS::InternetMonitor::Monitor.
- Map<String,String>
- Tags to apply to the link
- arn string
- The ARN of the link. For example, arn:aws:oam:us-west-1:111111111111:link:abcd1234-a123-456a-a12b-a123b456c789
- label string
- The friendly human-readable name used to identify this source account when it is viewed from the monitoring account. For example, my-account1.
- linkConfiguration LinkConfiguration 
- Use this structure to optionally create filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account.
- resourceTypes LinkResource Type[] 
- An array of strings that define which types of data that the source account shares with the monitoring account. Valid values are AWS::CloudWatch::Metric | AWS::Logs::LogGroup | AWS::XRay::Trace | AWS::ApplicationInsights::Application | AWS::InternetMonitor::Monitor.
- {[key: string]: string}
- Tags to apply to the link
- arn str
- The ARN of the link. For example, arn:aws:oam:us-west-1:111111111111:link:abcd1234-a123-456a-a12b-a123b456c789
- label str
- The friendly human-readable name used to identify this source account when it is viewed from the monitoring account. For example, my-account1.
- link_configuration LinkConfiguration 
- Use this structure to optionally create filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account.
- resource_types Sequence[LinkResource Type] 
- An array of strings that define which types of data that the source account shares with the monitoring account. Valid values are AWS::CloudWatch::Metric | AWS::Logs::LogGroup | AWS::XRay::Trace | AWS::ApplicationInsights::Application | AWS::InternetMonitor::Monitor.
- Mapping[str, str]
- Tags to apply to the link
- arn String
- The ARN of the link. For example, arn:aws:oam:us-west-1:111111111111:link:abcd1234-a123-456a-a12b-a123b456c789
- label String
- The friendly human-readable name used to identify this source account when it is viewed from the monitoring account. For example, my-account1.
- linkConfiguration Property Map
- Use this structure to optionally create filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account.
- resourceTypes List<"AWS::CloudWatch::Metric" | "AWS::Logs::Log Group" | "AWS::XRay::Trace" | "AWS::Application Insights::Application" | "AWS::Internet Monitor::Monitor" | "AWS::Application Signals::Service" | "AWS::Application Signals::Service Level Objective"> 
- An array of strings that define which types of data that the source account shares with the monitoring account. Valid values are AWS::CloudWatch::Metric | AWS::Logs::LogGroup | AWS::XRay::Trace | AWS::ApplicationInsights::Application | AWS::InternetMonitor::Monitor.
- Map<String>
- Tags to apply to the link
Supporting Types
LinkConfiguration 
- LogGroup Pulumi.Configuration Aws Native. Oam. Inputs. Link Filter 
- Use this structure to filter which log groups are to share log events from this source account to the monitoring account.
- MetricConfiguration Pulumi.Aws Native. Oam. Inputs. Link Filter 
- Use this structure to filter which metric namespaces are to be shared from the source account to the monitoring account.
- LogGroup LinkConfiguration Filter 
- Use this structure to filter which log groups are to share log events from this source account to the monitoring account.
- MetricConfiguration LinkFilter 
- Use this structure to filter which metric namespaces are to be shared from the source account to the monitoring account.
- logGroup LinkConfiguration Filter 
- Use this structure to filter which log groups are to share log events from this source account to the monitoring account.
- metricConfiguration LinkFilter 
- Use this structure to filter which metric namespaces are to be shared from the source account to the monitoring account.
- logGroup LinkConfiguration Filter 
- Use this structure to filter which log groups are to share log events from this source account to the monitoring account.
- metricConfiguration LinkFilter 
- Use this structure to filter which metric namespaces are to be shared from the source account to the monitoring account.
- log_group_ Linkconfiguration Filter 
- Use this structure to filter which log groups are to share log events from this source account to the monitoring account.
- metric_configuration LinkFilter 
- Use this structure to filter which metric namespaces are to be shared from the source account to the monitoring account.
- logGroup Property MapConfiguration 
- Use this structure to filter which log groups are to share log events from this source account to the monitoring account.
- metricConfiguration Property Map
- Use this structure to filter which metric namespaces are to be shared from the source account to the monitoring account.
LinkFilter 
- Filter string
- When used in - MetricConfigurationthis field specifies which metric namespaces are to be shared with the monitoring account- When used in - LogGroupConfigurationthis field specifies which log groups are to share their log events with the monitoring account. Use the term- LogGroupNameand one or more of the following operands.- Use single quotation marks (') around log group names and metric namespaces. - The matching of log group names and metric namespaces is case sensitive. Each filter has a limit of five conditional operands. Conditional operands are - ANDand- OR.- =and- !=
- AND
- OR
- LIKEand- NOT LIKE. These can be used only as prefix searches. Include a- %at the end of the string that you want to search for and include.
- INand- NOT IN, using parentheses- ( )
 - Examples: - Namespace NOT LIKE 'AWS/%'includes only namespaces that don't start with- AWS/, such as custom namespaces.
- Namespace IN ('AWS/EC2', 'AWS/ELB', 'AWS/S3')includes only the metrics in the EC2, Elastic Load Balancing , and Amazon S3 namespaces.
- Namespace = 'AWS/EC2' OR Namespace NOT LIKE 'AWS/%'includes only the EC2 namespace and your custom namespaces.
- LogGroupName IN ('This-Log-Group', 'Other-Log-Group')includes only the log groups with names- This-Log-Groupand- Other-Log-Group.
- LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2')includes all log groups except the log groups with names- Private-Log-Groupand- Private-Log-Group-2.
- LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%'includes all log groups that have names that start with- aws/lambda/or- AWSLogs.
 - If you are updating a link that uses filters, you can specify - *as the only value for the- filterparameter to delete the filter and share all log groups with the monitoring account.
- Filter string
- When used in - MetricConfigurationthis field specifies which metric namespaces are to be shared with the monitoring account- When used in - LogGroupConfigurationthis field specifies which log groups are to share their log events with the monitoring account. Use the term- LogGroupNameand one or more of the following operands.- Use single quotation marks (') around log group names and metric namespaces. - The matching of log group names and metric namespaces is case sensitive. Each filter has a limit of five conditional operands. Conditional operands are - ANDand- OR.- =and- !=
- AND
- OR
- LIKEand- NOT LIKE. These can be used only as prefix searches. Include a- %at the end of the string that you want to search for and include.
- INand- NOT IN, using parentheses- ( )
 - Examples: - Namespace NOT LIKE 'AWS/%'includes only namespaces that don't start with- AWS/, such as custom namespaces.
- Namespace IN ('AWS/EC2', 'AWS/ELB', 'AWS/S3')includes only the metrics in the EC2, Elastic Load Balancing , and Amazon S3 namespaces.
- Namespace = 'AWS/EC2' OR Namespace NOT LIKE 'AWS/%'includes only the EC2 namespace and your custom namespaces.
- LogGroupName IN ('This-Log-Group', 'Other-Log-Group')includes only the log groups with names- This-Log-Groupand- Other-Log-Group.
- LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2')includes all log groups except the log groups with names- Private-Log-Groupand- Private-Log-Group-2.
- LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%'includes all log groups that have names that start with- aws/lambda/or- AWSLogs.
 - If you are updating a link that uses filters, you can specify - *as the only value for the- filterparameter to delete the filter and share all log groups with the monitoring account.
- filter String
- When used in - MetricConfigurationthis field specifies which metric namespaces are to be shared with the monitoring account- When used in - LogGroupConfigurationthis field specifies which log groups are to share their log events with the monitoring account. Use the term- LogGroupNameand one or more of the following operands.- Use single quotation marks (') around log group names and metric namespaces. - The matching of log group names and metric namespaces is case sensitive. Each filter has a limit of five conditional operands. Conditional operands are - ANDand- OR.- =and- !=
- AND
- OR
- LIKEand- NOT LIKE. These can be used only as prefix searches. Include a- %at the end of the string that you want to search for and include.
- INand- NOT IN, using parentheses- ( )
 - Examples: - Namespace NOT LIKE 'AWS/%'includes only namespaces that don't start with- AWS/, such as custom namespaces.
- Namespace IN ('AWS/EC2', 'AWS/ELB', 'AWS/S3')includes only the metrics in the EC2, Elastic Load Balancing , and Amazon S3 namespaces.
- Namespace = 'AWS/EC2' OR Namespace NOT LIKE 'AWS/%'includes only the EC2 namespace and your custom namespaces.
- LogGroupName IN ('This-Log-Group', 'Other-Log-Group')includes only the log groups with names- This-Log-Groupand- Other-Log-Group.
- LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2')includes all log groups except the log groups with names- Private-Log-Groupand- Private-Log-Group-2.
- LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%'includes all log groups that have names that start with- aws/lambda/or- AWSLogs.
 - If you are updating a link that uses filters, you can specify - *as the only value for the- filterparameter to delete the filter and share all log groups with the monitoring account.
- filter string
- When used in - MetricConfigurationthis field specifies which metric namespaces are to be shared with the monitoring account- When used in - LogGroupConfigurationthis field specifies which log groups are to share their log events with the monitoring account. Use the term- LogGroupNameand one or more of the following operands.- Use single quotation marks (') around log group names and metric namespaces. - The matching of log group names and metric namespaces is case sensitive. Each filter has a limit of five conditional operands. Conditional operands are - ANDand- OR.- =and- !=
- AND
- OR
- LIKEand- NOT LIKE. These can be used only as prefix searches. Include a- %at the end of the string that you want to search for and include.
- INand- NOT IN, using parentheses- ( )
 - Examples: - Namespace NOT LIKE 'AWS/%'includes only namespaces that don't start with- AWS/, such as custom namespaces.
- Namespace IN ('AWS/EC2', 'AWS/ELB', 'AWS/S3')includes only the metrics in the EC2, Elastic Load Balancing , and Amazon S3 namespaces.
- Namespace = 'AWS/EC2' OR Namespace NOT LIKE 'AWS/%'includes only the EC2 namespace and your custom namespaces.
- LogGroupName IN ('This-Log-Group', 'Other-Log-Group')includes only the log groups with names- This-Log-Groupand- Other-Log-Group.
- LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2')includes all log groups except the log groups with names- Private-Log-Groupand- Private-Log-Group-2.
- LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%'includes all log groups that have names that start with- aws/lambda/or- AWSLogs.
 - If you are updating a link that uses filters, you can specify - *as the only value for the- filterparameter to delete the filter and share all log groups with the monitoring account.
- filter str
- When used in - MetricConfigurationthis field specifies which metric namespaces are to be shared with the monitoring account- When used in - LogGroupConfigurationthis field specifies which log groups are to share their log events with the monitoring account. Use the term- LogGroupNameand one or more of the following operands.- Use single quotation marks (') around log group names and metric namespaces. - The matching of log group names and metric namespaces is case sensitive. Each filter has a limit of five conditional operands. Conditional operands are - ANDand- OR.- =and- !=
- AND
- OR
- LIKEand- NOT LIKE. These can be used only as prefix searches. Include a- %at the end of the string that you want to search for and include.
- INand- NOT IN, using parentheses- ( )
 - Examples: - Namespace NOT LIKE 'AWS/%'includes only namespaces that don't start with- AWS/, such as custom namespaces.
- Namespace IN ('AWS/EC2', 'AWS/ELB', 'AWS/S3')includes only the metrics in the EC2, Elastic Load Balancing , and Amazon S3 namespaces.
- Namespace = 'AWS/EC2' OR Namespace NOT LIKE 'AWS/%'includes only the EC2 namespace and your custom namespaces.
- LogGroupName IN ('This-Log-Group', 'Other-Log-Group')includes only the log groups with names- This-Log-Groupand- Other-Log-Group.
- LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2')includes all log groups except the log groups with names- Private-Log-Groupand- Private-Log-Group-2.
- LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%'includes all log groups that have names that start with- aws/lambda/or- AWSLogs.
 - If you are updating a link that uses filters, you can specify - *as the only value for the- filterparameter to delete the filter and share all log groups with the monitoring account.
- filter String
- When used in - MetricConfigurationthis field specifies which metric namespaces are to be shared with the monitoring account- When used in - LogGroupConfigurationthis field specifies which log groups are to share their log events with the monitoring account. Use the term- LogGroupNameand one or more of the following operands.- Use single quotation marks (') around log group names and metric namespaces. - The matching of log group names and metric namespaces is case sensitive. Each filter has a limit of five conditional operands. Conditional operands are - ANDand- OR.- =and- !=
- AND
- OR
- LIKEand- NOT LIKE. These can be used only as prefix searches. Include a- %at the end of the string that you want to search for and include.
- INand- NOT IN, using parentheses- ( )
 - Examples: - Namespace NOT LIKE 'AWS/%'includes only namespaces that don't start with- AWS/, such as custom namespaces.
- Namespace IN ('AWS/EC2', 'AWS/ELB', 'AWS/S3')includes only the metrics in the EC2, Elastic Load Balancing , and Amazon S3 namespaces.
- Namespace = 'AWS/EC2' OR Namespace NOT LIKE 'AWS/%'includes only the EC2 namespace and your custom namespaces.
- LogGroupName IN ('This-Log-Group', 'Other-Log-Group')includes only the log groups with names- This-Log-Groupand- Other-Log-Group.
- LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2')includes all log groups except the log groups with names- Private-Log-Groupand- Private-Log-Group-2.
- LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%'includes all log groups that have names that start with- aws/lambda/or- AWSLogs.
 - If you are updating a link that uses filters, you can specify - *as the only value for the- filterparameter to delete the filter and share all log groups with the monitoring account.
LinkResourceType  
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.