We recommend new projects start with resources from the AWS provider.
aws-native.ce.getAnomalySubscription
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cost Anomaly Detection leverages advanced Machine Learning technologies to identify anomalous spend and root causes, so you can quickly take action. Create subscription to be notified
Using getAnomalySubscription
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 getAnomalySubscription(args: GetAnomalySubscriptionArgs, opts?: InvokeOptions): Promise<GetAnomalySubscriptionResult>
function getAnomalySubscriptionOutput(args: GetAnomalySubscriptionOutputArgs, opts?: InvokeOptions): Output<GetAnomalySubscriptionResult>
def get_anomaly_subscription(subscription_arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAnomalySubscriptionResult
def get_anomaly_subscription_output(subscription_arn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAnomalySubscriptionResult]
func LookupAnomalySubscription(ctx *Context, args *LookupAnomalySubscriptionArgs, opts ...InvokeOption) (*LookupAnomalySubscriptionResult, error)
func LookupAnomalySubscriptionOutput(ctx *Context, args *LookupAnomalySubscriptionOutputArgs, opts ...InvokeOption) LookupAnomalySubscriptionResultOutput
> Note: This function is named LookupAnomalySubscription
in the Go SDK.
public static class GetAnomalySubscription
{
public static Task<GetAnomalySubscriptionResult> InvokeAsync(GetAnomalySubscriptionArgs args, InvokeOptions? opts = null)
public static Output<GetAnomalySubscriptionResult> Invoke(GetAnomalySubscriptionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAnomalySubscriptionResult> getAnomalySubscription(GetAnomalySubscriptionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:ce:getAnomalySubscription
arguments:
# arguments dictionary
The following arguments are supported:
- Subscription
Arn string - The
AnomalySubscription
Amazon Resource Name (ARN).
- Subscription
Arn string - The
AnomalySubscription
Amazon Resource Name (ARN).
- subscription
Arn String - The
AnomalySubscription
Amazon Resource Name (ARN).
- subscription
Arn string - The
AnomalySubscription
Amazon Resource Name (ARN).
- subscription_
arn str - The
AnomalySubscription
Amazon Resource Name (ARN).
- subscription
Arn String - The
AnomalySubscription
Amazon Resource Name (ARN).
getAnomalySubscription Result
The following output properties are available:
- Account
Id string - The accountId
- Frequency
Pulumi.
Aws Native. Ce. Anomaly Subscription Frequency - The frequency at which anomaly reports are sent over email.
- Monitor
Arn List<string>List - A list of cost anomaly monitors.
- Subscribers
List<Pulumi.
Aws Native. Ce. Outputs. Anomaly Subscription Subscriber> - A list of subscriber
- Subscription
Arn string - The
AnomalySubscription
Amazon Resource Name (ARN). - Subscription
Name string - The name of the subscription.
- Threshold double
- The dollar value that triggers a notification if the threshold is exceeded.
- Threshold
Expression string - An Expression object in JSON String format used to specify the anomalies that you want to generate alerts for.
- Account
Id string - The accountId
- Frequency
Anomaly
Subscription Frequency - The frequency at which anomaly reports are sent over email.
- Monitor
Arn []stringList - A list of cost anomaly monitors.
- Subscribers
[]Anomaly
Subscription Subscriber - A list of subscriber
- Subscription
Arn string - The
AnomalySubscription
Amazon Resource Name (ARN). - Subscription
Name string - The name of the subscription.
- Threshold float64
- The dollar value that triggers a notification if the threshold is exceeded.
- Threshold
Expression string - An Expression object in JSON String format used to specify the anomalies that you want to generate alerts for.
- account
Id String - The accountId
- frequency
Anomaly
Subscription Frequency - The frequency at which anomaly reports are sent over email.
- monitor
Arn List<String>List - A list of cost anomaly monitors.
- subscribers
List<Anomaly
Subscription Subscriber> - A list of subscriber
- subscription
Arn String - The
AnomalySubscription
Amazon Resource Name (ARN). - subscription
Name String - The name of the subscription.
- threshold Double
- The dollar value that triggers a notification if the threshold is exceeded.
- threshold
Expression String - An Expression object in JSON String format used to specify the anomalies that you want to generate alerts for.
- account
Id string - The accountId
- frequency
Anomaly
Subscription Frequency - The frequency at which anomaly reports are sent over email.
- monitor
Arn string[]List - A list of cost anomaly monitors.
- subscribers
Anomaly
Subscription Subscriber[] - A list of subscriber
- subscription
Arn string - The
AnomalySubscription
Amazon Resource Name (ARN). - subscription
Name string - The name of the subscription.
- threshold number
- The dollar value that triggers a notification if the threshold is exceeded.
- threshold
Expression string - An Expression object in JSON String format used to specify the anomalies that you want to generate alerts for.
- account_
id str - The accountId
- frequency
Anomaly
Subscription Frequency - The frequency at which anomaly reports are sent over email.
- monitor_
arn_ Sequence[str]list - A list of cost anomaly monitors.
- subscribers
Sequence[Anomaly
Subscription Subscriber] - A list of subscriber
- subscription_
arn str - The
AnomalySubscription
Amazon Resource Name (ARN). - subscription_
name str - The name of the subscription.
- threshold float
- The dollar value that triggers a notification if the threshold is exceeded.
- threshold_
expression str - An Expression object in JSON String format used to specify the anomalies that you want to generate alerts for.
- account
Id String - The accountId
- frequency "DAILY" | "IMMEDIATE" | "WEEKLY"
- The frequency at which anomaly reports are sent over email.
- monitor
Arn List<String>List - A list of cost anomaly monitors.
- subscribers List<Property Map>
- A list of subscriber
- subscription
Arn String - The
AnomalySubscription
Amazon Resource Name (ARN). - subscription
Name String - The name of the subscription.
- threshold Number
- The dollar value that triggers a notification if the threshold is exceeded.
- threshold
Expression String - An Expression object in JSON String format used to specify the anomalies that you want to generate alerts for.
Supporting Types
AnomalySubscriptionFrequency
AnomalySubscriptionSubscriber
- Address string
- The email address or SNS Topic Amazon Resource Name (ARN), depending on the
Type
. - Type
Pulumi.
Aws Native. Ce. Anomaly Subscription Subscriber Type - The notification delivery channel.
- Status
Pulumi.
Aws Native. Ce. Anomaly Subscription Subscriber Status - Indicates if the subscriber accepts the notifications.
- Address string
- The email address or SNS Topic Amazon Resource Name (ARN), depending on the
Type
. - Type
Anomaly
Subscription Subscriber Type - The notification delivery channel.
- Status
Anomaly
Subscription Subscriber Status - Indicates if the subscriber accepts the notifications.
- address String
- The email address or SNS Topic Amazon Resource Name (ARN), depending on the
Type
. - type
Anomaly
Subscription Subscriber Type - The notification delivery channel.
- status
Anomaly
Subscription Subscriber Status - Indicates if the subscriber accepts the notifications.
- address string
- The email address or SNS Topic Amazon Resource Name (ARN), depending on the
Type
. - type
Anomaly
Subscription Subscriber Type - The notification delivery channel.
- status
Anomaly
Subscription Subscriber Status - Indicates if the subscriber accepts the notifications.
- address str
- The email address or SNS Topic Amazon Resource Name (ARN), depending on the
Type
. - type
Anomaly
Subscription Subscriber Type - The notification delivery channel.
- status
Anomaly
Subscription Subscriber Status - Indicates if the subscriber accepts the notifications.
- address String
- The email address or SNS Topic Amazon Resource Name (ARN), depending on the
Type
. - type "EMAIL" | "SNS"
- The notification delivery channel.
- status "CONFIRMED" | "DECLINED"
- Indicates if the subscriber accepts the notifications.
AnomalySubscriptionSubscriberStatus
AnomalySubscriptionSubscriberType
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.