AWS Native is in preview. AWS Classic is fully supported.
aws-native.oam.getLink
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:oam:getLink
arguments:
# arguments dictionary
The 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
. - Link
Configuration 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.
- Resource
Types 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
. - 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 []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
. - 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 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
. - 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 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
. - link
Configuration 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.
- resource
Types List<"AWS::CloudWatch::Metric" | "AWS::Logs::Log Group" | "AWS::XRay::Trace" | "AWS::Application Insights::Application" | "AWS::Internet Monitor::Monitor"> - 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
- Log
Group 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.
- Metric
Configuration 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.
- 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.
- 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.
- 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.
- 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.
- log
Group Property MapConfiguration - Use this structure to filter which log groups are to share log events from this source account to the monitoring account.
- metric
Configuration 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
MetricConfiguration
this field specifies which metric namespaces are to be shared with the monitoring accountWhen used in
LogGroupConfiguration
this field specifies which log groups are to share their log events with the monitoring account. Use the termLogGroupName
and 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
AND
andOR
.=
and!=
AND
OR
LIKE
andNOT 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.IN
andNOT IN
, using parentheses( )
Examples:
Namespace NOT LIKE 'AWS/%'
includes only namespaces that don't start withAWS/
, 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 namesThis-Log-Group
andOther-Log-Group
.LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2')
includes all log groups except the log groups with namesPrivate-Log-Group
andPrivate-Log-Group-2
.LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%'
includes all log groups that have names that start withaws/lambda/
orAWSLogs
.
If you are updating a link that uses filters, you can specify
*
as the only value for thefilter
parameter to delete the filter and share all log groups with the monitoring account.
- Filter string
When used in
MetricConfiguration
this field specifies which metric namespaces are to be shared with the monitoring accountWhen used in
LogGroupConfiguration
this field specifies which log groups are to share their log events with the monitoring account. Use the termLogGroupName
and 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
AND
andOR
.=
and!=
AND
OR
LIKE
andNOT 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.IN
andNOT IN
, using parentheses( )
Examples:
Namespace NOT LIKE 'AWS/%'
includes only namespaces that don't start withAWS/
, 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 namesThis-Log-Group
andOther-Log-Group
.LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2')
includes all log groups except the log groups with namesPrivate-Log-Group
andPrivate-Log-Group-2
.LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%'
includes all log groups that have names that start withaws/lambda/
orAWSLogs
.
If you are updating a link that uses filters, you can specify
*
as the only value for thefilter
parameter to delete the filter and share all log groups with the monitoring account.
- filter String
When used in
MetricConfiguration
this field specifies which metric namespaces are to be shared with the monitoring accountWhen used in
LogGroupConfiguration
this field specifies which log groups are to share their log events with the monitoring account. Use the termLogGroupName
and 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
AND
andOR
.=
and!=
AND
OR
LIKE
andNOT 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.IN
andNOT IN
, using parentheses( )
Examples:
Namespace NOT LIKE 'AWS/%'
includes only namespaces that don't start withAWS/
, 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 namesThis-Log-Group
andOther-Log-Group
.LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2')
includes all log groups except the log groups with namesPrivate-Log-Group
andPrivate-Log-Group-2
.LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%'
includes all log groups that have names that start withaws/lambda/
orAWSLogs
.
If you are updating a link that uses filters, you can specify
*
as the only value for thefilter
parameter to delete the filter and share all log groups with the monitoring account.
- filter string
When used in
MetricConfiguration
this field specifies which metric namespaces are to be shared with the monitoring accountWhen used in
LogGroupConfiguration
this field specifies which log groups are to share their log events with the monitoring account. Use the termLogGroupName
and 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
AND
andOR
.=
and!=
AND
OR
LIKE
andNOT 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.IN
andNOT IN
, using parentheses( )
Examples:
Namespace NOT LIKE 'AWS/%'
includes only namespaces that don't start withAWS/
, 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 namesThis-Log-Group
andOther-Log-Group
.LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2')
includes all log groups except the log groups with namesPrivate-Log-Group
andPrivate-Log-Group-2
.LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%'
includes all log groups that have names that start withaws/lambda/
orAWSLogs
.
If you are updating a link that uses filters, you can specify
*
as the only value for thefilter
parameter to delete the filter and share all log groups with the monitoring account.
- filter str
When used in
MetricConfiguration
this field specifies which metric namespaces are to be shared with the monitoring accountWhen used in
LogGroupConfiguration
this field specifies which log groups are to share their log events with the monitoring account. Use the termLogGroupName
and 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
AND
andOR
.=
and!=
AND
OR
LIKE
andNOT 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.IN
andNOT IN
, using parentheses( )
Examples:
Namespace NOT LIKE 'AWS/%'
includes only namespaces that don't start withAWS/
, 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 namesThis-Log-Group
andOther-Log-Group
.LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2')
includes all log groups except the log groups with namesPrivate-Log-Group
andPrivate-Log-Group-2
.LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%'
includes all log groups that have names that start withaws/lambda/
orAWSLogs
.
If you are updating a link that uses filters, you can specify
*
as the only value for thefilter
parameter to delete the filter and share all log groups with the monitoring account.
- filter String
When used in
MetricConfiguration
this field specifies which metric namespaces are to be shared with the monitoring accountWhen used in
LogGroupConfiguration
this field specifies which log groups are to share their log events with the monitoring account. Use the termLogGroupName
and 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
AND
andOR
.=
and!=
AND
OR
LIKE
andNOT 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.IN
andNOT IN
, using parentheses( )
Examples:
Namespace NOT LIKE 'AWS/%'
includes only namespaces that don't start withAWS/
, 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 namesThis-Log-Group
andOther-Log-Group
.LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2')
includes all log groups except the log groups with namesPrivate-Log-Group
andPrivate-Log-Group-2
.LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%'
includes all log groups that have names that start withaws/lambda/
orAWSLogs
.
If you are updating a link that uses filters, you can specify
*
as the only value for thefilter
parameter 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
AWS Native is in preview. AWS Classic is fully supported.