cloudamqp.IntegrationMetric
Explore with Pulumi AI
This resource allows you to create and manage, forwarding metrics to third party integrations for a CloudAMQP instance. Once configured, the metrics produced will be forward to corresponding integration.
Only available for dedicated subscription plans.
Example Usage
Cloudwatch v1 and v2 metric integration
Access key
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const cloudwatch = new cloudamqp.IntegrationMetric("cloudwatch", {
instanceId: instance.id,
name: "cloudwatch",
accessKeyId: awsAccessKeyId,
secretAccessKey: varAwsSecretAcccessKey,
region: awsRegion,
});
const cloudwatchV2 = new cloudamqp.IntegrationMetric("cloudwatch_v2", {
instanceId: instance.id,
name: "cloudwatch_v2",
accessKeyId: awsAccessKeyId,
secretAccessKey: varAwsSecretAcccessKey,
region: awsRegion,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
cloudwatch = cloudamqp.IntegrationMetric("cloudwatch",
instance_id=instance["id"],
name="cloudwatch",
access_key_id=aws_access_key_id,
secret_access_key=var_aws_secret_acccess_key,
region=aws_region)
cloudwatch_v2 = cloudamqp.IntegrationMetric("cloudwatch_v2",
instance_id=instance["id"],
name="cloudwatch_v2",
access_key_id=aws_access_key_id,
secret_access_key=var_aws_secret_acccess_key,
region=aws_region)
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewIntegrationMetric(ctx, "cloudwatch", &cloudamqp.IntegrationMetricArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("cloudwatch"),
AccessKeyId: pulumi.Any(awsAccessKeyId),
SecretAccessKey: pulumi.Any(varAwsSecretAcccessKey),
Region: pulumi.Any(awsRegion),
})
if err != nil {
return err
}
_, err = cloudamqp.NewIntegrationMetric(ctx, "cloudwatch_v2", &cloudamqp.IntegrationMetricArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("cloudwatch_v2"),
AccessKeyId: pulumi.Any(awsAccessKeyId),
SecretAccessKey: pulumi.Any(varAwsSecretAcccessKey),
Region: pulumi.Any(awsRegion),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var cloudwatch = new CloudAmqp.IntegrationMetric("cloudwatch", new()
{
InstanceId = instance.Id,
Name = "cloudwatch",
AccessKeyId = awsAccessKeyId,
SecretAccessKey = varAwsSecretAcccessKey,
Region = awsRegion,
});
var cloudwatchV2 = new CloudAmqp.IntegrationMetric("cloudwatch_v2", new()
{
InstanceId = instance.Id,
Name = "cloudwatch_v2",
AccessKeyId = awsAccessKeyId,
SecretAccessKey = varAwsSecretAcccessKey,
Region = awsRegion,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.IntegrationMetric;
import com.pulumi.cloudamqp.IntegrationMetricArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var cloudwatch = new IntegrationMetric("cloudwatch", IntegrationMetricArgs.builder()
.instanceId(instance.id())
.name("cloudwatch")
.accessKeyId(awsAccessKeyId)
.secretAccessKey(varAwsSecretAcccessKey)
.region(awsRegion)
.build());
var cloudwatchV2 = new IntegrationMetric("cloudwatchV2", IntegrationMetricArgs.builder()
.instanceId(instance.id())
.name("cloudwatch_v2")
.accessKeyId(awsAccessKeyId)
.secretAccessKey(varAwsSecretAcccessKey)
.region(awsRegion)
.build());
}
}
resources:
cloudwatch:
type: cloudamqp:IntegrationMetric
properties:
instanceId: ${instance.id}
name: cloudwatch
accessKeyId: ${awsAccessKeyId}
secretAccessKey: ${varAwsSecretAcccessKey}
region: ${awsRegion}
cloudwatchV2:
type: cloudamqp:IntegrationMetric
name: cloudwatch_v2
properties:
instanceId: ${instance.id}
name: cloudwatch_v2
accessKeyId: ${awsAccessKeyId}
secretAccessKey: ${varAwsSecretAcccessKey}
region: ${awsRegion}
Assume role
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const cloudwatch = new cloudamqp.IntegrationMetric("cloudwatch", {
instanceId: instance.id,
name: "cloudwatch",
iamRole: awsIamRole,
iamExternalId: externalId,
region: awsRegion,
});
const cloudwatchV2 = new cloudamqp.IntegrationMetric("cloudwatch_v2", {
instanceId: instance.id,
name: "cloudwatch_v2",
iamRole: awsIamRole,
iamExternalId: externalId,
region: awsRegion,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
cloudwatch = cloudamqp.IntegrationMetric("cloudwatch",
instance_id=instance["id"],
name="cloudwatch",
iam_role=aws_iam_role,
iam_external_id=external_id,
region=aws_region)
cloudwatch_v2 = cloudamqp.IntegrationMetric("cloudwatch_v2",
instance_id=instance["id"],
name="cloudwatch_v2",
iam_role=aws_iam_role,
iam_external_id=external_id,
region=aws_region)
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewIntegrationMetric(ctx, "cloudwatch", &cloudamqp.IntegrationMetricArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("cloudwatch"),
IamRole: pulumi.Any(awsIamRole),
IamExternalId: pulumi.Any(externalId),
Region: pulumi.Any(awsRegion),
})
if err != nil {
return err
}
_, err = cloudamqp.NewIntegrationMetric(ctx, "cloudwatch_v2", &cloudamqp.IntegrationMetricArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("cloudwatch_v2"),
IamRole: pulumi.Any(awsIamRole),
IamExternalId: pulumi.Any(externalId),
Region: pulumi.Any(awsRegion),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var cloudwatch = new CloudAmqp.IntegrationMetric("cloudwatch", new()
{
InstanceId = instance.Id,
Name = "cloudwatch",
IamRole = awsIamRole,
IamExternalId = externalId,
Region = awsRegion,
});
var cloudwatchV2 = new CloudAmqp.IntegrationMetric("cloudwatch_v2", new()
{
InstanceId = instance.Id,
Name = "cloudwatch_v2",
IamRole = awsIamRole,
IamExternalId = externalId,
Region = awsRegion,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.IntegrationMetric;
import com.pulumi.cloudamqp.IntegrationMetricArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var cloudwatch = new IntegrationMetric("cloudwatch", IntegrationMetricArgs.builder()
.instanceId(instance.id())
.name("cloudwatch")
.iamRole(awsIamRole)
.iamExternalId(externalId)
.region(awsRegion)
.build());
var cloudwatchV2 = new IntegrationMetric("cloudwatchV2", IntegrationMetricArgs.builder()
.instanceId(instance.id())
.name("cloudwatch_v2")
.iamRole(awsIamRole)
.iamExternalId(externalId)
.region(awsRegion)
.build());
}
}
resources:
cloudwatch:
type: cloudamqp:IntegrationMetric
properties:
instanceId: ${instance.id}
name: cloudwatch
iamRole: ${awsIamRole}
iamExternalId: ${externalId}
region: ${awsRegion}
cloudwatchV2:
type: cloudamqp:IntegrationMetric
name: cloudwatch_v2
properties:
instanceId: ${instance.id}
name: cloudwatch_v2
iamRole: ${awsIamRole}
iamExternalId: ${externalId}
region: ${awsRegion}
- AWS IAM role: arn:aws:iam::ACCOUNT-ID:role/ROLE-NAME
- External id: Create own external identifier that match the role created. E.g. “cloudamqp-abc123”.
Datadog v1 and v2 metric integration
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const datadog = new cloudamqp.IntegrationMetric("datadog", {
instanceId: instance.id,
name: "datadog",
apiKey: datadogApiKey,
region: datadogRegion,
tags: "env=prod,region=us1,version=v1.0",
});
const datadogV2 = new cloudamqp.IntegrationMetric("datadog_v2", {
instanceId: instance.id,
name: "datadog_v2",
apiKey: datadogApiKey,
region: datadogRegion,
tags: "env=prod,region=us1,version=v1.0",
});
import pulumi
import pulumi_cloudamqp as cloudamqp
datadog = cloudamqp.IntegrationMetric("datadog",
instance_id=instance["id"],
name="datadog",
api_key=datadog_api_key,
region=datadog_region,
tags="env=prod,region=us1,version=v1.0")
datadog_v2 = cloudamqp.IntegrationMetric("datadog_v2",
instance_id=instance["id"],
name="datadog_v2",
api_key=datadog_api_key,
region=datadog_region,
tags="env=prod,region=us1,version=v1.0")
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewIntegrationMetric(ctx, "datadog", &cloudamqp.IntegrationMetricArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("datadog"),
ApiKey: pulumi.Any(datadogApiKey),
Region: pulumi.Any(datadogRegion),
Tags: pulumi.String("env=prod,region=us1,version=v1.0"),
})
if err != nil {
return err
}
_, err = cloudamqp.NewIntegrationMetric(ctx, "datadog_v2", &cloudamqp.IntegrationMetricArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("datadog_v2"),
ApiKey: pulumi.Any(datadogApiKey),
Region: pulumi.Any(datadogRegion),
Tags: pulumi.String("env=prod,region=us1,version=v1.0"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var datadog = new CloudAmqp.IntegrationMetric("datadog", new()
{
InstanceId = instance.Id,
Name = "datadog",
ApiKey = datadogApiKey,
Region = datadogRegion,
Tags = "env=prod,region=us1,version=v1.0",
});
var datadogV2 = new CloudAmqp.IntegrationMetric("datadog_v2", new()
{
InstanceId = instance.Id,
Name = "datadog_v2",
ApiKey = datadogApiKey,
Region = datadogRegion,
Tags = "env=prod,region=us1,version=v1.0",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.IntegrationMetric;
import com.pulumi.cloudamqp.IntegrationMetricArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var datadog = new IntegrationMetric("datadog", IntegrationMetricArgs.builder()
.instanceId(instance.id())
.name("datadog")
.apiKey(datadogApiKey)
.region(datadogRegion)
.tags("env=prod,region=us1,version=v1.0")
.build());
var datadogV2 = new IntegrationMetric("datadogV2", IntegrationMetricArgs.builder()
.instanceId(instance.id())
.name("datadog_v2")
.apiKey(datadogApiKey)
.region(datadogRegion)
.tags("env=prod,region=us1,version=v1.0")
.build());
}
}
resources:
datadog:
type: cloudamqp:IntegrationMetric
properties:
instanceId: ${instance.id}
name: datadog
apiKey: ${datadogApiKey}
region: ${datadogRegion}
tags: env=prod,region=us1,version=v1.0
datadogV2:
type: cloudamqp:IntegrationMetric
name: datadog_v2
properties:
instanceId: ${instance.id}
name: datadog_v2
apiKey: ${datadogApiKey}
region: ${datadogRegion}
tags: env=prod,region=us1,version=v1.0
Librato metric integration
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const librato = new cloudamqp.IntegrationMetric("librato", {
instanceId: instance.id,
name: "librato",
email: libratoEmail,
apiKey: libratoApiKey,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
librato = cloudamqp.IntegrationMetric("librato",
instance_id=instance["id"],
name="librato",
email=librato_email,
api_key=librato_api_key)
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewIntegrationMetric(ctx, "librato", &cloudamqp.IntegrationMetricArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("librato"),
Email: pulumi.Any(libratoEmail),
ApiKey: pulumi.Any(libratoApiKey),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var librato = new CloudAmqp.IntegrationMetric("librato", new()
{
InstanceId = instance.Id,
Name = "librato",
Email = libratoEmail,
ApiKey = libratoApiKey,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.IntegrationMetric;
import com.pulumi.cloudamqp.IntegrationMetricArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var librato = new IntegrationMetric("librato", IntegrationMetricArgs.builder()
.instanceId(instance.id())
.name("librato")
.email(libratoEmail)
.apiKey(libratoApiKey)
.build());
}
}
resources:
librato:
type: cloudamqp:IntegrationMetric
properties:
instanceId: ${instance.id}
name: librato
email: ${libratoEmail}
apiKey: ${libratoApiKey}
New relic v2 metric integration
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const newrelic = new cloudamqp.IntegrationMetric("newrelic", {
instanceId: instance.id,
name: "newrelic_v2",
apiKey: newrelicApiKey,
region: newrelicRegion,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
newrelic = cloudamqp.IntegrationMetric("newrelic",
instance_id=instance["id"],
name="newrelic_v2",
api_key=newrelic_api_key,
region=newrelic_region)
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewIntegrationMetric(ctx, "newrelic", &cloudamqp.IntegrationMetricArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("newrelic_v2"),
ApiKey: pulumi.Any(newrelicApiKey),
Region: pulumi.Any(newrelicRegion),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var newrelic = new CloudAmqp.IntegrationMetric("newrelic", new()
{
InstanceId = instance.Id,
Name = "newrelic_v2",
ApiKey = newrelicApiKey,
Region = newrelicRegion,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.IntegrationMetric;
import com.pulumi.cloudamqp.IntegrationMetricArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var newrelic = new IntegrationMetric("newrelic", IntegrationMetricArgs.builder()
.instanceId(instance.id())
.name("newrelic_v2")
.apiKey(newrelicApiKey)
.region(newrelicRegion)
.build());
}
}
resources:
newrelic:
type: cloudamqp:IntegrationMetric
properties:
instanceId: ${instance.id}
name: newrelic_v2
apiKey: ${newrelicApiKey}
region: ${newrelicRegion}
Stackdriver metric integration (v1.20.2 or earlier versions)
Use variable file populated with project_id, private_key and client_email
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const stackdriver = new cloudamqp.IntegrationMetric("stackdriver", {
instanceId: instance.id,
name: "stackdriver",
projectId: stackdriverProjectId,
privateKey: stackdriverPrivateKey,
clientEmail: stackriverEmail,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
stackdriver = cloudamqp.IntegrationMetric("stackdriver",
instance_id=instance["id"],
name="stackdriver",
project_id=stackdriver_project_id,
private_key=stackdriver_private_key,
client_email=stackriver_email)
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewIntegrationMetric(ctx, "stackdriver", &cloudamqp.IntegrationMetricArgs{
InstanceId: pulumi.Any(instance.Id),
Name: pulumi.String("stackdriver"),
ProjectId: pulumi.Any(stackdriverProjectId),
PrivateKey: pulumi.Any(stackdriverPrivateKey),
ClientEmail: pulumi.Any(stackriverEmail),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var stackdriver = new CloudAmqp.IntegrationMetric("stackdriver", new()
{
InstanceId = instance.Id,
Name = "stackdriver",
ProjectId = stackdriverProjectId,
PrivateKey = stackdriverPrivateKey,
ClientEmail = stackriverEmail,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.IntegrationMetric;
import com.pulumi.cloudamqp.IntegrationMetricArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var stackdriver = new IntegrationMetric("stackdriver", IntegrationMetricArgs.builder()
.instanceId(instance.id())
.name("stackdriver")
.projectId(stackdriverProjectId)
.privateKey(stackdriverPrivateKey)
.clientEmail(stackriverEmail)
.build());
}
}
resources:
stackdriver:
type: cloudamqp:IntegrationMetric
properties:
instanceId: ${instance.id}
name: stackdriver
projectId: ${stackdriverProjectId}
privateKey: ${stackdriverPrivateKey}
clientEmail: ${stackriverEmail}
or by using google_service_account_key resource from Google provider
Create IntegrationMetric Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IntegrationMetric(name: string, args: IntegrationMetricArgs, opts?: CustomResourceOptions);
@overload
def IntegrationMetric(resource_name: str,
args: IntegrationMetricArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IntegrationMetric(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[int] = None,
private_key: Optional[str] = None,
vhost_whitelist: Optional[str] = None,
name: Optional[str] = None,
email: Optional[str] = None,
iam_external_id: Optional[str] = None,
iam_role: Optional[str] = None,
api_key: Optional[str] = None,
license_key: Optional[str] = None,
credentials: Optional[str] = None,
client_email: Optional[str] = None,
project_id: Optional[str] = None,
private_key_id: Optional[str] = None,
queue_allowlist: Optional[str] = None,
queue_whitelist: Optional[str] = None,
region: Optional[str] = None,
secret_access_key: Optional[str] = None,
tags: Optional[str] = None,
vhost_allowlist: Optional[str] = None,
access_key_id: Optional[str] = None)
func NewIntegrationMetric(ctx *Context, name string, args IntegrationMetricArgs, opts ...ResourceOption) (*IntegrationMetric, error)
public IntegrationMetric(string name, IntegrationMetricArgs args, CustomResourceOptions? opts = null)
public IntegrationMetric(String name, IntegrationMetricArgs args)
public IntegrationMetric(String name, IntegrationMetricArgs args, CustomResourceOptions options)
type: cloudamqp:IntegrationMetric
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 IntegrationMetricArgs
- 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 IntegrationMetricArgs
- 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 IntegrationMetricArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IntegrationMetricArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IntegrationMetricArgs
- 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 integrationMetricResource = new CloudAmqp.IntegrationMetric("integrationMetricResource", new()
{
InstanceId = 0,
PrivateKey = "string",
Name = "string",
Email = "string",
IamExternalId = "string",
IamRole = "string",
ApiKey = "string",
LicenseKey = "string",
Credentials = "string",
ClientEmail = "string",
ProjectId = "string",
PrivateKeyId = "string",
QueueAllowlist = "string",
Region = "string",
SecretAccessKey = "string",
Tags = "string",
VhostAllowlist = "string",
AccessKeyId = "string",
});
example, err := cloudamqp.NewIntegrationMetric(ctx, "integrationMetricResource", &cloudamqp.IntegrationMetricArgs{
InstanceId: pulumi.Int(0),
PrivateKey: pulumi.String("string"),
Name: pulumi.String("string"),
Email: pulumi.String("string"),
IamExternalId: pulumi.String("string"),
IamRole: pulumi.String("string"),
ApiKey: pulumi.String("string"),
LicenseKey: pulumi.String("string"),
Credentials: pulumi.String("string"),
ClientEmail: pulumi.String("string"),
ProjectId: pulumi.String("string"),
PrivateKeyId: pulumi.String("string"),
QueueAllowlist: pulumi.String("string"),
Region: pulumi.String("string"),
SecretAccessKey: pulumi.String("string"),
Tags: pulumi.String("string"),
VhostAllowlist: pulumi.String("string"),
AccessKeyId: pulumi.String("string"),
})
var integrationMetricResource = new IntegrationMetric("integrationMetricResource", IntegrationMetricArgs.builder()
.instanceId(0)
.privateKey("string")
.name("string")
.email("string")
.iamExternalId("string")
.iamRole("string")
.apiKey("string")
.licenseKey("string")
.credentials("string")
.clientEmail("string")
.projectId("string")
.privateKeyId("string")
.queueAllowlist("string")
.region("string")
.secretAccessKey("string")
.tags("string")
.vhostAllowlist("string")
.accessKeyId("string")
.build());
integration_metric_resource = cloudamqp.IntegrationMetric("integrationMetricResource",
instance_id=0,
private_key="string",
name="string",
email="string",
iam_external_id="string",
iam_role="string",
api_key="string",
license_key="string",
credentials="string",
client_email="string",
project_id="string",
private_key_id="string",
queue_allowlist="string",
region="string",
secret_access_key="string",
tags="string",
vhost_allowlist="string",
access_key_id="string")
const integrationMetricResource = new cloudamqp.IntegrationMetric("integrationMetricResource", {
instanceId: 0,
privateKey: "string",
name: "string",
email: "string",
iamExternalId: "string",
iamRole: "string",
apiKey: "string",
licenseKey: "string",
credentials: "string",
clientEmail: "string",
projectId: "string",
privateKeyId: "string",
queueAllowlist: "string",
region: "string",
secretAccessKey: "string",
tags: "string",
vhostAllowlist: "string",
accessKeyId: "string",
});
type: cloudamqp:IntegrationMetric
properties:
accessKeyId: string
apiKey: string
clientEmail: string
credentials: string
email: string
iamExternalId: string
iamRole: string
instanceId: 0
licenseKey: string
name: string
privateKey: string
privateKeyId: string
projectId: string
queueAllowlist: string
region: string
secretAccessKey: string
tags: string
vhostAllowlist: string
IntegrationMetric 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 IntegrationMetric resource accepts the following input properties:
- Instance
Id int - Instance identifier
- Access
Key stringId - AWS access key identifier. (Cloudwatch)
- Api
Key string - The API key for the integration service. (Librato)
- Client
Email string - The client email. (Stackdriver)
- Credentials string
- Base64Encoded credentials. (Stackdriver)
- Email string
- The email address registred for the integration service. (Librato)
- Iam
External stringId - External identifier that match the role you created. (Cloudwatch)
- Iam
Role string - The ARN of the role to be assumed when publishing metrics. (Cloudwatch)
- License
Key string - The license key registred for the integration service. (New Relic)
- Name string
- The name of metrics integration
- Private
Key string - The private key. (Stackdriver)
- Private
Key stringId - Private key identifier. (Stackdriver)
- Project
Id string - Project ID. (Stackdriver)
- Queue
Allowlist string - (optional) allowlist using regular expression
- Queue
Whitelist string - Deprecated
- Region string
- AWS region for Cloudwatch and [US/EU] for Data dog/New relic. (Cloudwatch, Data Dog, New Relic)
- Secret
Access stringKey - AWS secret key. (Cloudwatch)
- string
- (optional) tags. E.g. env=prod,region=europe
- Vhost
Allowlist string - (optional) allowlist using regular expression
- Vhost
Whitelist string - Deprecated
- Instance
Id int - Instance identifier
- Access
Key stringId - AWS access key identifier. (Cloudwatch)
- Api
Key string - The API key for the integration service. (Librato)
- Client
Email string - The client email. (Stackdriver)
- Credentials string
- Base64Encoded credentials. (Stackdriver)
- Email string
- The email address registred for the integration service. (Librato)
- Iam
External stringId - External identifier that match the role you created. (Cloudwatch)
- Iam
Role string - The ARN of the role to be assumed when publishing metrics. (Cloudwatch)
- License
Key string - The license key registred for the integration service. (New Relic)
- Name string
- The name of metrics integration
- Private
Key string - The private key. (Stackdriver)
- Private
Key stringId - Private key identifier. (Stackdriver)
- Project
Id string - Project ID. (Stackdriver)
- Queue
Allowlist string - (optional) allowlist using regular expression
- Queue
Whitelist string - Deprecated
- Region string
- AWS region for Cloudwatch and [US/EU] for Data dog/New relic. (Cloudwatch, Data Dog, New Relic)
- Secret
Access stringKey - AWS secret key. (Cloudwatch)
- string
- (optional) tags. E.g. env=prod,region=europe
- Vhost
Allowlist string - (optional) allowlist using regular expression
- Vhost
Whitelist string - Deprecated
- instance
Id Integer - Instance identifier
- access
Key StringId - AWS access key identifier. (Cloudwatch)
- api
Key String - The API key for the integration service. (Librato)
- client
Email String - The client email. (Stackdriver)
- credentials String
- Base64Encoded credentials. (Stackdriver)
- email String
- The email address registred for the integration service. (Librato)
- iam
External StringId - External identifier that match the role you created. (Cloudwatch)
- iam
Role String - The ARN of the role to be assumed when publishing metrics. (Cloudwatch)
- license
Key String - The license key registred for the integration service. (New Relic)
- name String
- The name of metrics integration
- private
Key String - The private key. (Stackdriver)
- private
Key StringId - Private key identifier. (Stackdriver)
- project
Id String - Project ID. (Stackdriver)
- queue
Allowlist String - (optional) allowlist using regular expression
- queue
Whitelist String - Deprecated
- region String
- AWS region for Cloudwatch and [US/EU] for Data dog/New relic. (Cloudwatch, Data Dog, New Relic)
- secret
Access StringKey - AWS secret key. (Cloudwatch)
- String
- (optional) tags. E.g. env=prod,region=europe
- vhost
Allowlist String - (optional) allowlist using regular expression
- vhost
Whitelist String - Deprecated
- instance
Id number - Instance identifier
- access
Key stringId - AWS access key identifier. (Cloudwatch)
- api
Key string - The API key for the integration service. (Librato)
- client
Email string - The client email. (Stackdriver)
- credentials string
- Base64Encoded credentials. (Stackdriver)
- email string
- The email address registred for the integration service. (Librato)
- iam
External stringId - External identifier that match the role you created. (Cloudwatch)
- iam
Role string - The ARN of the role to be assumed when publishing metrics. (Cloudwatch)
- license
Key string - The license key registred for the integration service. (New Relic)
- name string
- The name of metrics integration
- private
Key string - The private key. (Stackdriver)
- private
Key stringId - Private key identifier. (Stackdriver)
- project
Id string - Project ID. (Stackdriver)
- queue
Allowlist string - (optional) allowlist using regular expression
- queue
Whitelist string - Deprecated
- region string
- AWS region for Cloudwatch and [US/EU] for Data dog/New relic. (Cloudwatch, Data Dog, New Relic)
- secret
Access stringKey - AWS secret key. (Cloudwatch)
- string
- (optional) tags. E.g. env=prod,region=europe
- vhost
Allowlist string - (optional) allowlist using regular expression
- vhost
Whitelist string - Deprecated
- instance_
id int - Instance identifier
- access_
key_ strid - AWS access key identifier. (Cloudwatch)
- api_
key str - The API key for the integration service. (Librato)
- client_
email str - The client email. (Stackdriver)
- credentials str
- Base64Encoded credentials. (Stackdriver)
- email str
- The email address registred for the integration service. (Librato)
- iam_
external_ strid - External identifier that match the role you created. (Cloudwatch)
- iam_
role str - The ARN of the role to be assumed when publishing metrics. (Cloudwatch)
- license_
key str - The license key registred for the integration service. (New Relic)
- name str
- The name of metrics integration
- private_
key str - The private key. (Stackdriver)
- private_
key_ strid - Private key identifier. (Stackdriver)
- project_
id str - Project ID. (Stackdriver)
- queue_
allowlist str - (optional) allowlist using regular expression
- queue_
whitelist str - Deprecated
- region str
- AWS region for Cloudwatch and [US/EU] for Data dog/New relic. (Cloudwatch, Data Dog, New Relic)
- secret_
access_ strkey - AWS secret key. (Cloudwatch)
- str
- (optional) tags. E.g. env=prod,region=europe
- vhost_
allowlist str - (optional) allowlist using regular expression
- vhost_
whitelist str - Deprecated
- instance
Id Number - Instance identifier
- access
Key StringId - AWS access key identifier. (Cloudwatch)
- api
Key String - The API key for the integration service. (Librato)
- client
Email String - The client email. (Stackdriver)
- credentials String
- Base64Encoded credentials. (Stackdriver)
- email String
- The email address registred for the integration service. (Librato)
- iam
External StringId - External identifier that match the role you created. (Cloudwatch)
- iam
Role String - The ARN of the role to be assumed when publishing metrics. (Cloudwatch)
- license
Key String - The license key registred for the integration service. (New Relic)
- name String
- The name of metrics integration
- private
Key String - The private key. (Stackdriver)
- private
Key StringId - Private key identifier. (Stackdriver)
- project
Id String - Project ID. (Stackdriver)
- queue
Allowlist String - (optional) allowlist using regular expression
- queue
Whitelist String - Deprecated
- region String
- AWS region for Cloudwatch and [US/EU] for Data dog/New relic. (Cloudwatch, Data Dog, New Relic)
- secret
Access StringKey - AWS secret key. (Cloudwatch)
- String
- (optional) tags. E.g. env=prod,region=europe
- vhost
Allowlist String - (optional) allowlist using regular expression
- vhost
Whitelist String - Deprecated
Outputs
All input properties are implicitly available as output properties. Additionally, the IntegrationMetric 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 IntegrationMetric Resource
Get an existing IntegrationMetric 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?: IntegrationMetricState, opts?: CustomResourceOptions): IntegrationMetric
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_key_id: Optional[str] = None,
api_key: Optional[str] = None,
client_email: Optional[str] = None,
credentials: Optional[str] = None,
email: Optional[str] = None,
iam_external_id: Optional[str] = None,
iam_role: Optional[str] = None,
instance_id: Optional[int] = None,
license_key: Optional[str] = None,
name: Optional[str] = None,
private_key: Optional[str] = None,
private_key_id: Optional[str] = None,
project_id: Optional[str] = None,
queue_allowlist: Optional[str] = None,
queue_whitelist: Optional[str] = None,
region: Optional[str] = None,
secret_access_key: Optional[str] = None,
tags: Optional[str] = None,
vhost_allowlist: Optional[str] = None,
vhost_whitelist: Optional[str] = None) -> IntegrationMetric
func GetIntegrationMetric(ctx *Context, name string, id IDInput, state *IntegrationMetricState, opts ...ResourceOption) (*IntegrationMetric, error)
public static IntegrationMetric Get(string name, Input<string> id, IntegrationMetricState? state, CustomResourceOptions? opts = null)
public static IntegrationMetric get(String name, Output<String> id, IntegrationMetricState 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.
- Access
Key stringId - AWS access key identifier. (Cloudwatch)
- Api
Key string - The API key for the integration service. (Librato)
- Client
Email string - The client email. (Stackdriver)
- Credentials string
- Base64Encoded credentials. (Stackdriver)
- Email string
- The email address registred for the integration service. (Librato)
- Iam
External stringId - External identifier that match the role you created. (Cloudwatch)
- Iam
Role string - The ARN of the role to be assumed when publishing metrics. (Cloudwatch)
- Instance
Id int - Instance identifier
- License
Key string - The license key registred for the integration service. (New Relic)
- Name string
- The name of metrics integration
- Private
Key string - The private key. (Stackdriver)
- Private
Key stringId - Private key identifier. (Stackdriver)
- Project
Id string - Project ID. (Stackdriver)
- Queue
Allowlist string - (optional) allowlist using regular expression
- Queue
Whitelist string - Deprecated
- Region string
- AWS region for Cloudwatch and [US/EU] for Data dog/New relic. (Cloudwatch, Data Dog, New Relic)
- Secret
Access stringKey - AWS secret key. (Cloudwatch)
- string
- (optional) tags. E.g. env=prod,region=europe
- Vhost
Allowlist string - (optional) allowlist using regular expression
- Vhost
Whitelist string - Deprecated
- Access
Key stringId - AWS access key identifier. (Cloudwatch)
- Api
Key string - The API key for the integration service. (Librato)
- Client
Email string - The client email. (Stackdriver)
- Credentials string
- Base64Encoded credentials. (Stackdriver)
- Email string
- The email address registred for the integration service. (Librato)
- Iam
External stringId - External identifier that match the role you created. (Cloudwatch)
- Iam
Role string - The ARN of the role to be assumed when publishing metrics. (Cloudwatch)
- Instance
Id int - Instance identifier
- License
Key string - The license key registred for the integration service. (New Relic)
- Name string
- The name of metrics integration
- Private
Key string - The private key. (Stackdriver)
- Private
Key stringId - Private key identifier. (Stackdriver)
- Project
Id string - Project ID. (Stackdriver)
- Queue
Allowlist string - (optional) allowlist using regular expression
- Queue
Whitelist string - Deprecated
- Region string
- AWS region for Cloudwatch and [US/EU] for Data dog/New relic. (Cloudwatch, Data Dog, New Relic)
- Secret
Access stringKey - AWS secret key. (Cloudwatch)
- string
- (optional) tags. E.g. env=prod,region=europe
- Vhost
Allowlist string - (optional) allowlist using regular expression
- Vhost
Whitelist string - Deprecated
- access
Key StringId - AWS access key identifier. (Cloudwatch)
- api
Key String - The API key for the integration service. (Librato)
- client
Email String - The client email. (Stackdriver)
- credentials String
- Base64Encoded credentials. (Stackdriver)
- email String
- The email address registred for the integration service. (Librato)
- iam
External StringId - External identifier that match the role you created. (Cloudwatch)
- iam
Role String - The ARN of the role to be assumed when publishing metrics. (Cloudwatch)
- instance
Id Integer - Instance identifier
- license
Key String - The license key registred for the integration service. (New Relic)
- name String
- The name of metrics integration
- private
Key String - The private key. (Stackdriver)
- private
Key StringId - Private key identifier. (Stackdriver)
- project
Id String - Project ID. (Stackdriver)
- queue
Allowlist String - (optional) allowlist using regular expression
- queue
Whitelist String - Deprecated
- region String
- AWS region for Cloudwatch and [US/EU] for Data dog/New relic. (Cloudwatch, Data Dog, New Relic)
- secret
Access StringKey - AWS secret key. (Cloudwatch)
- String
- (optional) tags. E.g. env=prod,region=europe
- vhost
Allowlist String - (optional) allowlist using regular expression
- vhost
Whitelist String - Deprecated
- access
Key stringId - AWS access key identifier. (Cloudwatch)
- api
Key string - The API key for the integration service. (Librato)
- client
Email string - The client email. (Stackdriver)
- credentials string
- Base64Encoded credentials. (Stackdriver)
- email string
- The email address registred for the integration service. (Librato)
- iam
External stringId - External identifier that match the role you created. (Cloudwatch)
- iam
Role string - The ARN of the role to be assumed when publishing metrics. (Cloudwatch)
- instance
Id number - Instance identifier
- license
Key string - The license key registred for the integration service. (New Relic)
- name string
- The name of metrics integration
- private
Key string - The private key. (Stackdriver)
- private
Key stringId - Private key identifier. (Stackdriver)
- project
Id string - Project ID. (Stackdriver)
- queue
Allowlist string - (optional) allowlist using regular expression
- queue
Whitelist string - Deprecated
- region string
- AWS region for Cloudwatch and [US/EU] for Data dog/New relic. (Cloudwatch, Data Dog, New Relic)
- secret
Access stringKey - AWS secret key. (Cloudwatch)
- string
- (optional) tags. E.g. env=prod,region=europe
- vhost
Allowlist string - (optional) allowlist using regular expression
- vhost
Whitelist string - Deprecated
- access_
key_ strid - AWS access key identifier. (Cloudwatch)
- api_
key str - The API key for the integration service. (Librato)
- client_
email str - The client email. (Stackdriver)
- credentials str
- Base64Encoded credentials. (Stackdriver)
- email str
- The email address registred for the integration service. (Librato)
- iam_
external_ strid - External identifier that match the role you created. (Cloudwatch)
- iam_
role str - The ARN of the role to be assumed when publishing metrics. (Cloudwatch)
- instance_
id int - Instance identifier
- license_
key str - The license key registred for the integration service. (New Relic)
- name str
- The name of metrics integration
- private_
key str - The private key. (Stackdriver)
- private_
key_ strid - Private key identifier. (Stackdriver)
- project_
id str - Project ID. (Stackdriver)
- queue_
allowlist str - (optional) allowlist using regular expression
- queue_
whitelist str - Deprecated
- region str
- AWS region for Cloudwatch and [US/EU] for Data dog/New relic. (Cloudwatch, Data Dog, New Relic)
- secret_
access_ strkey - AWS secret key. (Cloudwatch)
- str
- (optional) tags. E.g. env=prod,region=europe
- vhost_
allowlist str - (optional) allowlist using regular expression
- vhost_
whitelist str - Deprecated
- access
Key StringId - AWS access key identifier. (Cloudwatch)
- api
Key String - The API key for the integration service. (Librato)
- client
Email String - The client email. (Stackdriver)
- credentials String
- Base64Encoded credentials. (Stackdriver)
- email String
- The email address registred for the integration service. (Librato)
- iam
External StringId - External identifier that match the role you created. (Cloudwatch)
- iam
Role String - The ARN of the role to be assumed when publishing metrics. (Cloudwatch)
- instance
Id Number - Instance identifier
- license
Key String - The license key registred for the integration service. (New Relic)
- name String
- The name of metrics integration
- private
Key String - The private key. (Stackdriver)
- private
Key StringId - Private key identifier. (Stackdriver)
- project
Id String - Project ID. (Stackdriver)
- queue
Allowlist String - (optional) allowlist using regular expression
- queue
Whitelist String - Deprecated
- region String
- AWS region for Cloudwatch and [US/EU] for Data dog/New relic. (Cloudwatch, Data Dog, New Relic)
- secret
Access StringKey - AWS secret key. (Cloudwatch)
- String
- (optional) tags. E.g. env=prod,region=europe
- vhost
Allowlist String - (optional) allowlist using regular expression
- vhost
Whitelist String - Deprecated
Import
cloudamqp_integration_metric
can be imported using the resource identifier together with CloudAMQP instance identifier. The name and identifier are CSV separated, see example below.
$ pulumi import cloudamqp:index/integrationMetric:IntegrationMetric <resource_name> <resource_id>,<instance_id>`
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- CloudAMQP pulumi/pulumi-cloudamqp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudamqp
Terraform Provider.