Create AwsEuSovereignLinkAccount Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AwsEuSovereignLinkAccount(name: string, args: AwsEuSovereignLinkAccountArgs, opts?: CustomResourceOptions);@overload
def AwsEuSovereignLinkAccount(resource_name: str,
args: AwsEuSovereignLinkAccountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AwsEuSovereignLinkAccount(resource_name: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
account_id: Optional[str] = None,
metric_collection_mode: Optional[str] = None,
name: Optional[str] = None)func NewAwsEuSovereignLinkAccount(ctx *Context, name string, args AwsEuSovereignLinkAccountArgs, opts ...ResourceOption) (*AwsEuSovereignLinkAccount, error)public AwsEuSovereignLinkAccount(string name, AwsEuSovereignLinkAccountArgs args, CustomResourceOptions? opts = null)
public AwsEuSovereignLinkAccount(String name, AwsEuSovereignLinkAccountArgs args)
public AwsEuSovereignLinkAccount(String name, AwsEuSovereignLinkAccountArgs args, CustomResourceOptions options)
type: newrelic:cloud:AwsEuSovereignLinkAccount
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AwsEuSovereignLinkAccountArgs
- 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 AwsEuSovereignLinkAccountArgs
- 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 AwsEuSovereignLinkAccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AwsEuSovereignLinkAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AwsEuSovereignLinkAccountArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var awsEuSovereignLinkAccountResource = new NewRelic.Cloud.AwsEuSovereignLinkAccount("awsEuSovereignLinkAccountResource", new()
{
Arn = "string",
AccountId = "string",
MetricCollectionMode = "string",
Name = "string",
});
example, err := cloud.NewAwsEuSovereignLinkAccount(ctx, "awsEuSovereignLinkAccountResource", &cloud.AwsEuSovereignLinkAccountArgs{
Arn: pulumi.String("string"),
AccountId: pulumi.String("string"),
MetricCollectionMode: pulumi.String("string"),
Name: pulumi.String("string"),
})
var awsEuSovereignLinkAccountResource = new AwsEuSovereignLinkAccount("awsEuSovereignLinkAccountResource", AwsEuSovereignLinkAccountArgs.builder()
.arn("string")
.accountId("string")
.metricCollectionMode("string")
.name("string")
.build());
aws_eu_sovereign_link_account_resource = newrelic.cloud.AwsEuSovereignLinkAccount("awsEuSovereignLinkAccountResource",
arn="string",
account_id="string",
metric_collection_mode="string",
name="string")
const awsEuSovereignLinkAccountResource = new newrelic.cloud.AwsEuSovereignLinkAccount("awsEuSovereignLinkAccountResource", {
arn: "string",
accountId: "string",
metricCollectionMode: "string",
name: "string",
});
type: newrelic:cloud:AwsEuSovereignLinkAccount
properties:
accountId: string
arn: string
metricCollectionMode: string
name: string
AwsEuSovereignLinkAccount Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AwsEuSovereignLinkAccount resource accepts the following input properties:
- Arn string
- The ARN of the IAM role.
- Account
Id string - The ID of the account in New Relic.
- Metric
Collection stringMode - How metrics are collected. PULL or PUSH.
- Name string
- The name of the AWS EU Sovereign account in New Relic.
- Arn string
- The ARN of the IAM role.
- Account
Id string - The ID of the account in New Relic.
- Metric
Collection stringMode - How metrics are collected. PULL or PUSH.
- Name string
- The name of the AWS EU Sovereign account in New Relic.
- arn String
- The ARN of the IAM role.
- account
Id String - The ID of the account in New Relic.
- metric
Collection StringMode - How metrics are collected. PULL or PUSH.
- name String
- The name of the AWS EU Sovereign account in New Relic.
- arn string
- The ARN of the IAM role.
- account
Id string - The ID of the account in New Relic.
- metric
Collection stringMode - How metrics are collected. PULL or PUSH.
- name string
- The name of the AWS EU Sovereign account in New Relic.
- arn str
- The ARN of the IAM role.
- account_
id str - The ID of the account in New Relic.
- metric_
collection_ strmode - How metrics are collected. PULL or PUSH.
- name str
- The name of the AWS EU Sovereign account in New Relic.
- arn String
- The ARN of the IAM role.
- account
Id String - The ID of the account in New Relic.
- metric
Collection StringMode - How metrics are collected. PULL or PUSH.
- name String
- The name of the AWS EU Sovereign account in New Relic.
Outputs
All input properties are implicitly available as output properties. Additionally, the AwsEuSovereignLinkAccount 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 Existing AwsEuSovereignLinkAccount Resource
Get an existing AwsEuSovereignLinkAccount 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?: AwsEuSovereignLinkAccountState, opts?: CustomResourceOptions): AwsEuSovereignLinkAccount@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
arn: Optional[str] = None,
metric_collection_mode: Optional[str] = None,
name: Optional[str] = None) -> AwsEuSovereignLinkAccountfunc GetAwsEuSovereignLinkAccount(ctx *Context, name string, id IDInput, state *AwsEuSovereignLinkAccountState, opts ...ResourceOption) (*AwsEuSovereignLinkAccount, error)public static AwsEuSovereignLinkAccount Get(string name, Input<string> id, AwsEuSovereignLinkAccountState? state, CustomResourceOptions? opts = null)public static AwsEuSovereignLinkAccount get(String name, Output<String> id, AwsEuSovereignLinkAccountState state, CustomResourceOptions options)resources: _: type: newrelic:cloud:AwsEuSovereignLinkAccount get: id: ${id}- 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.
- Account
Id string - The ID of the account in New Relic.
- Arn string
- The ARN of the IAM role.
- Metric
Collection stringMode - How metrics are collected. PULL or PUSH.
- Name string
- The name of the AWS EU Sovereign account in New Relic.
- Account
Id string - The ID of the account in New Relic.
- Arn string
- The ARN of the IAM role.
- Metric
Collection stringMode - How metrics are collected. PULL or PUSH.
- Name string
- The name of the AWS EU Sovereign account in New Relic.
- account
Id String - The ID of the account in New Relic.
- arn String
- The ARN of the IAM role.
- metric
Collection StringMode - How metrics are collected. PULL or PUSH.
- name String
- The name of the AWS EU Sovereign account in New Relic.
- account
Id string - The ID of the account in New Relic.
- arn string
- The ARN of the IAM role.
- metric
Collection stringMode - How metrics are collected. PULL or PUSH.
- name string
- The name of the AWS EU Sovereign account in New Relic.
- account_
id str - The ID of the account in New Relic.
- arn str
- The ARN of the IAM role.
- metric_
collection_ strmode - How metrics are collected. PULL or PUSH.
- name str
- The name of the AWS EU Sovereign account in New Relic.
- account
Id String - The ID of the account in New Relic.
- arn String
- The ARN of the IAM role.
- metric
Collection StringMode - How metrics are collected. PULL or PUSH.
- name String
- The name of the AWS EU Sovereign account in New Relic.
Package Details
- Repository
- New Relic pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
newrelicTerraform Provider.
