import * as pulumi from "@pulumi/pulumi"; /** * Use this resource to link an AWS EU Sovereign account to New Relic. * * ## Prerequisite * * Setup is required in AWS EU Sovereign for this resource to work properly. To link an AWS EU Sovereign account to New Relic, you need an AWS EU Sovereign Cloud account. * * Using a metric stream to New Relic is the only supported method for AWS EU Sovereign Cloud to get metrics into New Relic for the majority of AWS services. Follow the [steps outlined here](https://docs-preview.newrelic.com/docs/aws-eu-sovereign-cloud-integration) to set up a metric stream. * * To pull data from AWS EU Sovereign for services not supported by CloudWatch Metric Streams (Billing, CloudTrail and X-Ray), complete the [steps outlined here](https://docs-preview.newrelic.com/docs/aws-eu-sovereign-cloud-integration). * * ## Example Usage * * You can also use the full example, including the AWS set up, found in our guides. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const foo = new newrelic.cloud.AwsEuSovereignLinkAccount("foo", { * accountId: "1234567", * name: "My New Relic - AWS EU Sovereign Linked Account", * metricCollectionMode: "PUSH", * arn: "arn:aws-eusc:iam::123456789012:role/NewRelicInfrastructure-Integrations", * }); * ``` * * ## Import * * Linked AWS EU Sovereign accounts can be imported using the `id`, e.g. * * ```sh * $ pulumi import newrelic:cloud/awsEuSovereignLinkAccount:AwsEuSovereignLinkAccount foo * ``` */ export declare class AwsEuSovereignLinkAccount extends pulumi.CustomResource { /** * Get an existing AwsEuSovereignLinkAccount resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AwsEuSovereignLinkAccountState, opts?: pulumi.CustomResourceOptions): AwsEuSovereignLinkAccount; /** * Returns true if the given object is an instance of AwsEuSovereignLinkAccount. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AwsEuSovereignLinkAccount; /** * The New Relic account ID to operate on. This allows the user to override the `accountId` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`, if not specified in the configuration. */ readonly accountId: pulumi.Output; /** * The Amazon Resource Name (ARN) of the IAM role. */ readonly arn: pulumi.Output; /** * How metrics will be collected. Use `PUSH` for metric stream, `PULL` for API polling of the 3 services not supported by metric streams (Billing, CloudTrail and X-Ray), or `BOTH` for both methods. Defaults to `PUSH`, if not specified in the configuration. */ readonly metricCollectionMode: pulumi.Output; /** * The name/identifier of the AWS EU Sovereign - New Relic 'linked' account. * * > **WARNING:** Updating any of the aforementioned attributes (except `name`) of a `newrelic.cloud.AwsEuSovereignLinkAccount` resource that has been applied would **force a replacement** of the resource (destruction of the resource, followed by the creation of a new resource). Please carefully review the output of `pulumi preview`, which would clearly indicate a replacement of this resource, before performing a `pulumi up`. * * > **NOTE:** This resource requires the New Relic provider to be configured with `region = "EU"` or the `NEW_RELIC_REGION=EU` environment variable. */ readonly name: pulumi.Output; /** * Create a AwsEuSovereignLinkAccount resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AwsEuSovereignLinkAccountArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AwsEuSovereignLinkAccount resources. */ export interface AwsEuSovereignLinkAccountState { /** * The New Relic account ID to operate on. This allows the user to override the `accountId` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`, if not specified in the configuration. */ accountId?: pulumi.Input; /** * The Amazon Resource Name (ARN) of the IAM role. */ arn?: pulumi.Input; /** * How metrics will be collected. Use `PUSH` for metric stream, `PULL` for API polling of the 3 services not supported by metric streams (Billing, CloudTrail and X-Ray), or `BOTH` for both methods. Defaults to `PUSH`, if not specified in the configuration. */ metricCollectionMode?: pulumi.Input; /** * The name/identifier of the AWS EU Sovereign - New Relic 'linked' account. * * > **WARNING:** Updating any of the aforementioned attributes (except `name`) of a `newrelic.cloud.AwsEuSovereignLinkAccount` resource that has been applied would **force a replacement** of the resource (destruction of the resource, followed by the creation of a new resource). Please carefully review the output of `pulumi preview`, which would clearly indicate a replacement of this resource, before performing a `pulumi up`. * * > **NOTE:** This resource requires the New Relic provider to be configured with `region = "EU"` or the `NEW_RELIC_REGION=EU` environment variable. */ name?: pulumi.Input; } /** * The set of arguments for constructing a AwsEuSovereignLinkAccount resource. */ export interface AwsEuSovereignLinkAccountArgs { /** * The New Relic account ID to operate on. This allows the user to override the `accountId` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`, if not specified in the configuration. */ accountId?: pulumi.Input; /** * The Amazon Resource Name (ARN) of the IAM role. */ arn: pulumi.Input; /** * How metrics will be collected. Use `PUSH` for metric stream, `PULL` for API polling of the 3 services not supported by metric streams (Billing, CloudTrail and X-Ray), or `BOTH` for both methods. Defaults to `PUSH`, if not specified in the configuration. */ metricCollectionMode?: pulumi.Input; /** * The name/identifier of the AWS EU Sovereign - New Relic 'linked' account. * * > **WARNING:** Updating any of the aforementioned attributes (except `name`) of a `newrelic.cloud.AwsEuSovereignLinkAccount` resource that has been applied would **force a replacement** of the resource (destruction of the resource, followed by the creation of a new resource). Please carefully review the output of `pulumi preview`, which would clearly indicate a replacement of this resource, before performing a `pulumi up`. * * > **NOTE:** This resource requires the New Relic provider to be configured with `region = "EU"` or the `NEW_RELIC_REGION=EU` environment variable. */ name?: pulumi.Input; } //# sourceMappingURL=awsEuSovereignLinkAccount.d.ts.map