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)
public static Output<GetAnomalySubscriptionResult> getAnomalySubscription(GetAnomalySubscriptionArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:ce:getAnomalySubscription
  arguments:
    # arguments dictionaryThe following arguments are supported:
- SubscriptionArn string
- The AnomalySubscriptionAmazon Resource Name (ARN).
- SubscriptionArn string
- The AnomalySubscriptionAmazon Resource Name (ARN).
- subscriptionArn String
- The AnomalySubscriptionAmazon Resource Name (ARN).
- subscriptionArn string
- The AnomalySubscriptionAmazon Resource Name (ARN).
- subscription_arn str
- The AnomalySubscriptionAmazon Resource Name (ARN).
- subscriptionArn String
- The AnomalySubscriptionAmazon Resource Name (ARN).
getAnomalySubscription Result
The following output properties are available:
- AccountId string
- The accountId
- Frequency
Pulumi.Aws Native. Ce. Anomaly Subscription Frequency 
- The frequency at which anomaly reports are sent over email.
- MonitorArn List<string>List 
- A list of cost anomaly monitors.
- Subscribers
List<Pulumi.Aws Native. Ce. Outputs. Anomaly Subscription Subscriber> 
- A list of subscriber
- SubscriptionArn string
- The AnomalySubscriptionAmazon Resource Name (ARN).
- SubscriptionName string
- The name of the subscription.
- Threshold double
- The dollar value that triggers a notification if the threshold is exceeded.
- ThresholdExpression string
- An Expression object in JSON String format used to specify the anomalies that you want to generate alerts for.
- AccountId string
- The accountId
- Frequency
AnomalySubscription Frequency 
- The frequency at which anomaly reports are sent over email.
- MonitorArn []stringList 
- A list of cost anomaly monitors.
- Subscribers
[]AnomalySubscription Subscriber 
- A list of subscriber
- SubscriptionArn string
- The AnomalySubscriptionAmazon Resource Name (ARN).
- SubscriptionName string
- The name of the subscription.
- Threshold float64
- The dollar value that triggers a notification if the threshold is exceeded.
- ThresholdExpression string
- An Expression object in JSON String format used to specify the anomalies that you want to generate alerts for.
- accountId String
- The accountId
- frequency
AnomalySubscription Frequency 
- The frequency at which anomaly reports are sent over email.
- monitorArn List<String>List 
- A list of cost anomaly monitors.
- subscribers
List<AnomalySubscription Subscriber> 
- A list of subscriber
- subscriptionArn String
- The AnomalySubscriptionAmazon Resource Name (ARN).
- subscriptionName String
- The name of the subscription.
- threshold Double
- The dollar value that triggers a notification if the threshold is exceeded.
- thresholdExpression String
- An Expression object in JSON String format used to specify the anomalies that you want to generate alerts for.
- accountId string
- The accountId
- frequency
AnomalySubscription Frequency 
- The frequency at which anomaly reports are sent over email.
- monitorArn string[]List 
- A list of cost anomaly monitors.
- subscribers
AnomalySubscription Subscriber[] 
- A list of subscriber
- subscriptionArn string
- The AnomalySubscriptionAmazon Resource Name (ARN).
- subscriptionName string
- The name of the subscription.
- threshold number
- The dollar value that triggers a notification if the threshold is exceeded.
- thresholdExpression 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
AnomalySubscription Frequency 
- The frequency at which anomaly reports are sent over email.
- monitor_arn_ Sequence[str]list 
- A list of cost anomaly monitors.
- subscribers
Sequence[AnomalySubscription Subscriber] 
- A list of subscriber
- subscription_arn str
- The AnomalySubscriptionAmazon 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.
- accountId String
- The accountId
- frequency "DAILY" | "IMMEDIATE" | "WEEKLY"
- The frequency at which anomaly reports are sent over email.
- monitorArn List<String>List 
- A list of cost anomaly monitors.
- subscribers List<Property Map>
- A list of subscriber
- subscriptionArn String
- The AnomalySubscriptionAmazon Resource Name (ARN).
- subscriptionName String
- The name of the subscription.
- threshold Number
- The dollar value that triggers a notification if the threshold is exceeded.
- thresholdExpression 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
AnomalySubscription Subscriber Type 
- The notification delivery channel.
- Status
AnomalySubscription 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
AnomalySubscription Subscriber Type 
- The notification delivery channel.
- status
AnomalySubscription 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
AnomalySubscription Subscriber Type 
- The notification delivery channel.
- status
AnomalySubscription 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
AnomalySubscription Subscriber Type 
- The notification delivery channel.
- status
AnomalySubscription 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.