New Relic

Pulumi Official
Package maintained by Pulumi
v4.19.0 published on Wednesday, Jul 20, 2022 by Pulumi

AwsGovcloudLinkAccount

Import

Linked AWSGovCloud accounts can be imported using the id, e.g. bash

 $ pulumi import newrelic:cloud/awsGovcloudLinkAccount:AwsGovcloudLinkAccount foo <id>

Example Usage

using Pulumi;
using NewRelic = Pulumi.NewRelic;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = new NewRelic.Cloud.AwsGovcloudLinkAccount("foo", new NewRelic.Cloud.AwsGovcloudLinkAccountArgs
        {
            AccessKeyId = "access-key-id of aws govcloud account",
            AccountId = "The New Relic account ID where you want to link the AWS GovCloud account",
            AwsAccountId = "aws govcloud account id",
            MetricCollectionMode = "PULL",
            SecretAccessKey = "secret access key of the aws govcloud account",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-newrelic/sdk/v4/go/newrelic/cloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloud.NewAwsGovcloudLinkAccount(ctx, "foo", &cloud.AwsGovcloudLinkAccountArgs{
			AccessKeyId:          pulumi.String("access-key-id of aws govcloud account"),
			AccountId:            pulumi.Int("The New Relic account ID where you want to link the AWS GovCloud account"),
			AwsAccountId:         pulumi.String("aws govcloud account id"),
			MetricCollectionMode: pulumi.String("PULL"),
			SecretAccessKey:      pulumi.String("secret access key of the aws govcloud account"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var foo = new AwsGovcloudLinkAccount("foo", AwsGovcloudLinkAccountArgs.builder()        
            .accessKeyId("access-key-id of aws govcloud account")
            .accountId("The New Relic account ID where you want to link the AWS GovCloud account")
            .awsAccountId("aws govcloud account id")
            .metricCollectionMode("PULL")
            .secretAccessKey("secret access key of the aws govcloud account")
            .build());

        }
}
import pulumi
import pulumi_newrelic as newrelic

foo = newrelic.cloud.AwsGovcloudLinkAccount("foo",
    access_key_id="access-key-id of aws govcloud account",
    account_id="The New Relic account ID where you want to link the AWS GovCloud account",
    aws_account_id="aws govcloud account id",
    metric_collection_mode="PULL",
    secret_access_key="secret access key of the aws govcloud account")
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const foo = new newrelic.cloud.AwsGovcloudLinkAccount("foo", {
    accessKeyId: "access-key-id of aws govcloud account",
    accountId: Number.parseFloat("The New Relic account ID where you want to link the AWS GovCloud account"),
    awsAccountId: "aws govcloud account id",
    metricCollectionMode: "PULL",
    secretAccessKey: "secret access key of the aws govcloud account",
});
resources:
  foo:
    type: newrelic:cloud:AwsGovcloudLinkAccount
    properties:
      accessKeyId: access-key-id of aws govcloud account
      accountId: The New Relic account ID where you want to link the AWS GovCloud account
      awsAccountId: aws govcloud account id
      metricCollectionMode: PULL
      secretAccessKey: secret access key of the aws govcloud account

Create a AwsGovcloudLinkAccount Resource

new AwsGovcloudLinkAccount(name: string, args: AwsGovcloudLinkAccountArgs, opts?: CustomResourceOptions);
@overload
def AwsGovcloudLinkAccount(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           access_key_id: Optional[str] = None,
                           account_id: Optional[int] = None,
                           aws_account_id: Optional[str] = None,
                           metric_collection_mode: Optional[str] = None,
                           name: Optional[str] = None,
                           secret_access_key: Optional[str] = None)
@overload
def AwsGovcloudLinkAccount(resource_name: str,
                           args: AwsGovcloudLinkAccountArgs,
                           opts: Optional[ResourceOptions] = None)
func NewAwsGovcloudLinkAccount(ctx *Context, name string, args AwsGovcloudLinkAccountArgs, opts ...ResourceOption) (*AwsGovcloudLinkAccount, error)
public AwsGovcloudLinkAccount(string name, AwsGovcloudLinkAccountArgs args, CustomResourceOptions? opts = null)
public AwsGovcloudLinkAccount(String name, AwsGovcloudLinkAccountArgs args)
public AwsGovcloudLinkAccount(String name, AwsGovcloudLinkAccountArgs args, CustomResourceOptions options)
type: newrelic:cloud:AwsGovcloudLinkAccount
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AwsGovcloudLinkAccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AwsGovcloudLinkAccountArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AwsGovcloudLinkAccountArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AwsGovcloudLinkAccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AwsGovcloudLinkAccountArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AwsGovcloudLinkAccount Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The AwsGovcloudLinkAccount resource accepts the following input properties:

AccessKeyId string

The access key of the AwsGovCloud.

AwsAccountId string

The AwsGovCloud account ID.

SecretAccessKey string

The secret key of the AwsGovCloud.

AccountId int

The New Relic account ID to operate on. This allows the user to override the account_id attribute set on the provider. Defaults to the environment variable NEW_RELIC_ACCOUNT_ID.

MetricCollectionMode string

How metrics will be collected. Use PUSH for a metric stream or PULL to integrate with individual services.

Name string
  • The linked account name
AccessKeyId string

The access key of the AwsGovCloud.

AwsAccountId string

The AwsGovCloud account ID.

SecretAccessKey string

The secret key of the AwsGovCloud.

AccountId int

The New Relic account ID to operate on. This allows the user to override the account_id attribute set on the provider. Defaults to the environment variable NEW_RELIC_ACCOUNT_ID.

MetricCollectionMode string

How metrics will be collected. Use PUSH for a metric stream or PULL to integrate with individual services.

Name string
  • The linked account name
accessKeyId String

The access key of the AwsGovCloud.

awsAccountId String

The AwsGovCloud account ID.

secretAccessKey String

The secret key of the AwsGovCloud.

accountId Integer

The New Relic account ID to operate on. This allows the user to override the account_id attribute set on the provider. Defaults to the environment variable NEW_RELIC_ACCOUNT_ID.

metricCollectionMode String

How metrics will be collected. Use PUSH for a metric stream or PULL to integrate with individual services.

name String
  • The linked account name
accessKeyId string

The access key of the AwsGovCloud.

awsAccountId string

The AwsGovCloud account ID.

secretAccessKey string

The secret key of the AwsGovCloud.

accountId number

The New Relic account ID to operate on. This allows the user to override the account_id attribute set on the provider. Defaults to the environment variable NEW_RELIC_ACCOUNT_ID.

metricCollectionMode string

How metrics will be collected. Use PUSH for a metric stream or PULL to integrate with individual services.

name string
  • The linked account name
access_key_id str

The access key of the AwsGovCloud.

aws_account_id str

The AwsGovCloud account ID.

secret_access_key str

The secret key of the AwsGovCloud.

account_id int

The New Relic account ID to operate on. This allows the user to override the account_id attribute set on the provider. Defaults to the environment variable NEW_RELIC_ACCOUNT_ID.

metric_collection_mode str

How metrics will be collected. Use PUSH for a metric stream or PULL to integrate with individual services.

name str
  • The linked account name
accessKeyId String

The access key of the AwsGovCloud.

awsAccountId String

The AwsGovCloud account ID.

secretAccessKey String

The secret key of the AwsGovCloud.

accountId Number

The New Relic account ID to operate on. This allows the user to override the account_id attribute set on the provider. Defaults to the environment variable NEW_RELIC_ACCOUNT_ID.

metricCollectionMode String

How metrics will be collected. Use PUSH for a metric stream or PULL to integrate with individual services.

name String
  • The linked account name

Outputs

All input properties are implicitly available as output properties. Additionally, the AwsGovcloudLinkAccount resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing AwsGovcloudLinkAccount Resource

Get an existing AwsGovcloudLinkAccount resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AwsGovcloudLinkAccountState, opts?: CustomResourceOptions): AwsGovcloudLinkAccount
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        access_key_id: Optional[str] = None,
        account_id: Optional[int] = None,
        aws_account_id: Optional[str] = None,
        metric_collection_mode: Optional[str] = None,
        name: Optional[str] = None,
        secret_access_key: Optional[str] = None) -> AwsGovcloudLinkAccount
func GetAwsGovcloudLinkAccount(ctx *Context, name string, id IDInput, state *AwsGovcloudLinkAccountState, opts ...ResourceOption) (*AwsGovcloudLinkAccount, error)
public static AwsGovcloudLinkAccount Get(string name, Input<string> id, AwsGovcloudLinkAccountState? state, CustomResourceOptions? opts = null)
public static AwsGovcloudLinkAccount get(String name, Output<String> id, AwsGovcloudLinkAccountState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccessKeyId string

The access key of the AwsGovCloud.

AccountId int

The New Relic account ID to operate on. This allows the user to override the account_id attribute set on the provider. Defaults to the environment variable NEW_RELIC_ACCOUNT_ID.

AwsAccountId string

The AwsGovCloud account ID.

MetricCollectionMode string

How metrics will be collected. Use PUSH for a metric stream or PULL to integrate with individual services.

Name string
  • The linked account name
SecretAccessKey string

The secret key of the AwsGovCloud.

AccessKeyId string

The access key of the AwsGovCloud.

AccountId int

The New Relic account ID to operate on. This allows the user to override the account_id attribute set on the provider. Defaults to the environment variable NEW_RELIC_ACCOUNT_ID.

AwsAccountId string

The AwsGovCloud account ID.

MetricCollectionMode string

How metrics will be collected. Use PUSH for a metric stream or PULL to integrate with individual services.

Name string
  • The linked account name
SecretAccessKey string

The secret key of the AwsGovCloud.

accessKeyId String

The access key of the AwsGovCloud.

accountId Integer

The New Relic account ID to operate on. This allows the user to override the account_id attribute set on the provider. Defaults to the environment variable NEW_RELIC_ACCOUNT_ID.

awsAccountId String

The AwsGovCloud account ID.

metricCollectionMode String

How metrics will be collected. Use PUSH for a metric stream or PULL to integrate with individual services.

name String
  • The linked account name
secretAccessKey String

The secret key of the AwsGovCloud.

accessKeyId string

The access key of the AwsGovCloud.

accountId number

The New Relic account ID to operate on. This allows the user to override the account_id attribute set on the provider. Defaults to the environment variable NEW_RELIC_ACCOUNT_ID.

awsAccountId string

The AwsGovCloud account ID.

metricCollectionMode string

How metrics will be collected. Use PUSH for a metric stream or PULL to integrate with individual services.

name string
  • The linked account name
secretAccessKey string

The secret key of the AwsGovCloud.

access_key_id str

The access key of the AwsGovCloud.

account_id int

The New Relic account ID to operate on. This allows the user to override the account_id attribute set on the provider. Defaults to the environment variable NEW_RELIC_ACCOUNT_ID.

aws_account_id str

The AwsGovCloud account ID.

metric_collection_mode str

How metrics will be collected. Use PUSH for a metric stream or PULL to integrate with individual services.

name str
  • The linked account name
secret_access_key str

The secret key of the AwsGovCloud.

accessKeyId String

The access key of the AwsGovCloud.

accountId Number

The New Relic account ID to operate on. This allows the user to override the account_id attribute set on the provider. Defaults to the environment variable NEW_RELIC_ACCOUNT_ID.

awsAccountId String

The AwsGovCloud account ID.

metricCollectionMode String

How metrics will be collected. Use PUSH for a metric stream or PULL to integrate with individual services.

name String
  • The linked account name
secretAccessKey String

The secret key of the AwsGovCloud.

Package Details

Repository
https://github.com/pulumi/pulumi-newrelic
License
Apache-2.0
Notes

This Pulumi package is based on the newrelic Terraform Provider.