import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Use this resource to create and manage an AWS Connection entity in New Relic. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const foo = new newrelic.AwsConnection("foo", { * name: "test-aws-connection", * description: "AWS Connection wrapping the role", * region: "us-east-1", * enabled: true, * scopeType: "ORGANIZATION", * scopeId: "YOUR_ORG_ID_HERE", * credential: { * assumeRole: { * roleArn: "arn:aws:iam::123456789012:role/newrelic-fed-logs-ingest", * externalId: "external id", * }, * }, * }); * ``` * * ## Import * * AWS Connections can be imported using the entity GUID: * * ```sh * $ pulumi import newrelic:index/awsConnection:AwsConnection foo * ``` */ export declare class AwsConnection extends pulumi.CustomResource { /** * Get an existing AwsConnection 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?: AwsConnectionState, opts?: pulumi.CustomResourceOptions): AwsConnection; /** * Returns true if the given object is an instance of AwsConnection. 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 AwsConnection; /** * New Relic account ID where the connection will be created. Used when `scopeType = ACCOUNT`. */ readonly accountId: pulumi.Output; /** * Credentials block describing how New Relic should authenticate into the AWS account. See Nested credential block below. */ readonly credential: pulumi.Output; /** * A description of the AWS Connection. */ readonly description: pulumi.Output; /** * Flag to indicate whether the connection is enabled. Defaults to `true`. */ readonly enabled: pulumi.Output; /** * Consumer-managed identifier — useful for caller-side idempotent tracking. Distinct from `credential.assume_role.external_id` (the IAM cross-account External ID). */ readonly externalId: pulumi.Output; /** * The name of the AWS connection. */ readonly name: pulumi.Output; /** * AWS region for this connection (e.g. `us-east-1`). */ readonly region: pulumi.Output; /** * Scope ID matching `scopeType` — a New Relic account ID for `ACCOUNT` scope, or an organization ID for `ORGANIZATION` scope. */ readonly scopeId: pulumi.Output; /** * Scope type for the connection. Valid values: `ACCOUNT`, `ORGANIZATION`. */ readonly scopeType: pulumi.Output; /** * Optional list of connection settings. Each entry takes: */ readonly settings: pulumi.Output; /** * Tags applied to the AWS Connection entity. Each entry takes: */ readonly tags: pulumi.Output; /** * Create a AwsConnection 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: AwsConnectionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AwsConnection resources. */ export interface AwsConnectionState { /** * New Relic account ID where the connection will be created. Used when `scopeType = ACCOUNT`. */ accountId?: pulumi.Input; /** * Credentials block describing how New Relic should authenticate into the AWS account. See Nested credential block below. */ credential?: pulumi.Input; /** * A description of the AWS Connection. */ description?: pulumi.Input; /** * Flag to indicate whether the connection is enabled. Defaults to `true`. */ enabled?: pulumi.Input; /** * Consumer-managed identifier — useful for caller-side idempotent tracking. Distinct from `credential.assume_role.external_id` (the IAM cross-account External ID). */ externalId?: pulumi.Input; /** * The name of the AWS connection. */ name?: pulumi.Input; /** * AWS region for this connection (e.g. `us-east-1`). */ region?: pulumi.Input; /** * Scope ID matching `scopeType` — a New Relic account ID for `ACCOUNT` scope, or an organization ID for `ORGANIZATION` scope. */ scopeId?: pulumi.Input; /** * Scope type for the connection. Valid values: `ACCOUNT`, `ORGANIZATION`. */ scopeType?: pulumi.Input; /** * Optional list of connection settings. Each entry takes: */ settings?: pulumi.Input[] | undefined>; /** * Tags applied to the AWS Connection entity. Each entry takes: */ tags?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a AwsConnection resource. */ export interface AwsConnectionArgs { /** * New Relic account ID where the connection will be created. Used when `scopeType = ACCOUNT`. */ accountId?: pulumi.Input; /** * Credentials block describing how New Relic should authenticate into the AWS account. See Nested credential block below. */ credential: pulumi.Input; /** * A description of the AWS Connection. */ description?: pulumi.Input; /** * Flag to indicate whether the connection is enabled. Defaults to `true`. */ enabled?: pulumi.Input; /** * Consumer-managed identifier — useful for caller-side idempotent tracking. Distinct from `credential.assume_role.external_id` (the IAM cross-account External ID). */ externalId?: pulumi.Input; /** * The name of the AWS connection. */ name?: pulumi.Input; /** * AWS region for this connection (e.g. `us-east-1`). */ region?: pulumi.Input; /** * Scope ID matching `scopeType` — a New Relic account ID for `ACCOUNT` scope, or an organization ID for `ORGANIZATION` scope. */ scopeId?: pulumi.Input; /** * Scope type for the connection. Valid values: `ACCOUNT`, `ORGANIZATION`. */ scopeType?: pulumi.Input; /** * Optional list of connection settings. Each entry takes: */ settings?: pulumi.Input[] | undefined>; /** * Tags applied to the AWS Connection entity. Each entry takes: */ tags?: pulumi.Input[] | undefined>; } //# sourceMappingURL=awsConnection.d.ts.map