aws.amp.WorkspaceConfiguration
Explore with Pulumi AI
Manages an AWS Managed Service for Prometheus Workspace Configuration.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.amp.Workspace("example", {});
const exampleWorkspaceConfiguration = new aws.amp.WorkspaceConfiguration("example", {
workspaceId: example.id,
retentionPeriodInDays: 60,
limitsPerLabelSets: [
{
labelSet: {
env: "dev",
},
limits: {
maxSeries: 100000,
},
},
{
labelSet: {
env: "prod",
},
limits: {
maxSeries: 400000,
},
},
],
});
import pulumi
import pulumi_aws as aws
example = aws.amp.Workspace("example")
example_workspace_configuration = aws.amp.WorkspaceConfiguration("example",
workspace_id=example.id,
retention_period_in_days=60,
limits_per_label_sets=[
{
"label_set": {
"env": "dev",
},
"limits": {
"max_series": 100000,
},
},
{
"label_set": {
"env": "prod",
},
"limits": {
"max_series": 400000,
},
},
])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/amp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := amp.NewWorkspace(ctx, "example", nil)
if err != nil {
return err
}
_, err = amp.NewWorkspaceConfiguration(ctx, "example", &.WorkspaceConfigurationArgs{
WorkspaceId: example.ID(),
RetentionPeriodInDays: pulumi.Int(60),
LimitsPerLabelSets: amp.WorkspaceConfigurationLimitsPerLabelSetArray{
&.WorkspaceConfigurationLimitsPerLabelSetArgs{
LabelSet: pulumi.StringMap{
"env": pulumi.String("dev"),
},
Limits: &.WorkspaceConfigurationLimitsPerLabelSetLimitsArgs{
MaxSeries: pulumi.Int(100000),
},
},
&.WorkspaceConfigurationLimitsPerLabelSetArgs{
LabelSet: pulumi.StringMap{
"env": pulumi.String("prod"),
},
Limits: &.WorkspaceConfigurationLimitsPerLabelSetLimitsArgs{
MaxSeries: pulumi.Int(400000),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Amp.Workspace("example");
var exampleWorkspaceConfiguration = new Aws.Amp.WorkspaceConfiguration("example", new()
{
WorkspaceId = example.Id,
RetentionPeriodInDays = 60,
LimitsPerLabelSets = new[]
{
new Aws.Amp.Inputs.WorkspaceConfigurationLimitsPerLabelSetArgs
{
LabelSet =
{
{ "env", "dev" },
},
Limits = new Aws.Amp.Inputs.WorkspaceConfigurationLimitsPerLabelSetLimitsArgs
{
MaxSeries = 100000,
},
},
new Aws.Amp.Inputs.WorkspaceConfigurationLimitsPerLabelSetArgs
{
LabelSet =
{
{ "env", "prod" },
},
Limits = new Aws.Amp.Inputs.WorkspaceConfigurationLimitsPerLabelSetLimitsArgs
{
MaxSeries = 400000,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.amp.Workspace;
import com.pulumi.aws.amp.WorkspaceConfiguration;
import com.pulumi.aws.amp.WorkspaceConfigurationArgs;
import com.pulumi.aws.amp.inputs.WorkspaceConfigurationLimitsPerLabelSetArgs;
import com.pulumi.aws.amp.inputs.WorkspaceConfigurationLimitsPerLabelSetLimitsArgs;
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 example = new Workspace("example");
var exampleWorkspaceConfiguration = new WorkspaceConfiguration("exampleWorkspaceConfiguration", WorkspaceConfigurationArgs.builder()
.workspaceId(example.id())
.retentionPeriodInDays(60)
.limitsPerLabelSets(
WorkspaceConfigurationLimitsPerLabelSetArgs.builder()
.labelSet(Map.of("env", "dev"))
.limits(WorkspaceConfigurationLimitsPerLabelSetLimitsArgs.builder()
.maxSeries(100000)
.build())
.build(),
WorkspaceConfigurationLimitsPerLabelSetArgs.builder()
.labelSet(Map.of("env", "prod"))
.limits(WorkspaceConfigurationLimitsPerLabelSetLimitsArgs.builder()
.maxSeries(400000)
.build())
.build())
.build());
}
}
resources:
example:
type: aws:amp:Workspace
exampleWorkspaceConfiguration:
type: aws:amp:WorkspaceConfiguration
name: example
properties:
workspaceId: ${example.id}
retentionPeriodInDays: 60
limitsPerLabelSets:
- labelSet:
env: dev
limits:
maxSeries: 100000
- labelSet:
env: prod
limits:
maxSeries: 400000
Setting up default bucket
The default bucket limit is the maximum number of active time series that can be ingested in the workspace, counting only time series that don’t match a defined label set.
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.amp.Workspace("example", {});
const exampleWorkspaceConfiguration = new aws.amp.WorkspaceConfiguration("example", {
workspaceId: example.id,
limitsPerLabelSets: [{
labelSet: {},
limits: {
maxSeries: 50000,
},
}],
});
import pulumi
import pulumi_aws as aws
example = aws.amp.Workspace("example")
example_workspace_configuration = aws.amp.WorkspaceConfiguration("example",
workspace_id=example.id,
limits_per_label_sets=[{
"label_set": {},
"limits": {
"max_series": 50000,
},
}])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/amp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := amp.NewWorkspace(ctx, "example", nil)
if err != nil {
return err
}
_, err = amp.NewWorkspaceConfiguration(ctx, "example", &.WorkspaceConfigurationArgs{
WorkspaceId: example.ID(),
LimitsPerLabelSets: amp.WorkspaceConfigurationLimitsPerLabelSetArray{
&.WorkspaceConfigurationLimitsPerLabelSetArgs{
LabelSet: pulumi.StringMap{},
Limits: &.WorkspaceConfigurationLimitsPerLabelSetLimitsArgs{
MaxSeries: pulumi.Int(50000),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Amp.Workspace("example");
var exampleWorkspaceConfiguration = new Aws.Amp.WorkspaceConfiguration("example", new()
{
WorkspaceId = example.Id,
LimitsPerLabelSets = new[]
{
new Aws.Amp.Inputs.WorkspaceConfigurationLimitsPerLabelSetArgs
{
LabelSet = null,
Limits = new Aws.Amp.Inputs.WorkspaceConfigurationLimitsPerLabelSetLimitsArgs
{
MaxSeries = 50000,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.amp.Workspace;
import com.pulumi.aws.amp.WorkspaceConfiguration;
import com.pulumi.aws.amp.WorkspaceConfigurationArgs;
import com.pulumi.aws.amp.inputs.WorkspaceConfigurationLimitsPerLabelSetArgs;
import com.pulumi.aws.amp.inputs.WorkspaceConfigurationLimitsPerLabelSetLimitsArgs;
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 example = new Workspace("example");
var exampleWorkspaceConfiguration = new WorkspaceConfiguration("exampleWorkspaceConfiguration", WorkspaceConfigurationArgs.builder()
.workspaceId(example.id())
.limitsPerLabelSets(WorkspaceConfigurationLimitsPerLabelSetArgs.builder()
.labelSet(Map.ofEntries(
))
.limits(WorkspaceConfigurationLimitsPerLabelSetLimitsArgs.builder()
.maxSeries(50000)
.build())
.build())
.build());
}
}
resources:
example:
type: aws:amp:Workspace
exampleWorkspaceConfiguration:
type: aws:amp:WorkspaceConfiguration
name: example
properties:
workspaceId: ${example.id}
limitsPerLabelSets:
- labelSet: {}
limits:
maxSeries: 50000
Create WorkspaceConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WorkspaceConfiguration(name: string, args: WorkspaceConfigurationArgs, opts?: CustomResourceOptions);
@overload
def WorkspaceConfiguration(resource_name: str,
args: WorkspaceConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WorkspaceConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
workspace_id: Optional[str] = None,
limits_per_label_sets: Optional[Sequence[WorkspaceConfigurationLimitsPerLabelSetArgs]] = None,
retention_period_in_days: Optional[int] = None,
timeouts: Optional[WorkspaceConfigurationTimeoutsArgs] = None)
func NewWorkspaceConfiguration(ctx *Context, name string, args WorkspaceConfigurationArgs, opts ...ResourceOption) (*WorkspaceConfiguration, error)
public WorkspaceConfiguration(string name, WorkspaceConfigurationArgs args, CustomResourceOptions? opts = null)
public WorkspaceConfiguration(String name, WorkspaceConfigurationArgs args)
public WorkspaceConfiguration(String name, WorkspaceConfigurationArgs args, CustomResourceOptions options)
type: aws:amp:WorkspaceConfiguration
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 WorkspaceConfigurationArgs
- 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 WorkspaceConfigurationArgs
- 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 WorkspaceConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkspaceConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkspaceConfigurationArgs
- 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 workspaceConfigurationResource = new Aws.Amp.WorkspaceConfiguration("workspaceConfigurationResource", new()
{
WorkspaceId = "string",
LimitsPerLabelSets = new[]
{
new Aws.Amp.Inputs.WorkspaceConfigurationLimitsPerLabelSetArgs
{
LabelSet =
{
{ "string", "string" },
},
Limits = new Aws.Amp.Inputs.WorkspaceConfigurationLimitsPerLabelSetLimitsArgs
{
MaxSeries = 0,
},
},
},
RetentionPeriodInDays = 0,
Timeouts = new Aws.Amp.Inputs.WorkspaceConfigurationTimeoutsArgs
{
Create = "string",
Update = "string",
},
});
example, err := amp.NewWorkspaceConfiguration(ctx, "workspaceConfigurationResource", &.WorkspaceConfigurationArgs{
WorkspaceId: pulumi.String("string"),
LimitsPerLabelSets: amp.WorkspaceConfigurationLimitsPerLabelSetArray{
&.WorkspaceConfigurationLimitsPerLabelSetArgs{
LabelSet: pulumi.StringMap{
"string": pulumi.String("string"),
},
Limits: &.WorkspaceConfigurationLimitsPerLabelSetLimitsArgs{
MaxSeries: pulumi.Int(0),
},
},
},
RetentionPeriodInDays: pulumi.Int(0),
Timeouts: &.WorkspaceConfigurationTimeoutsArgs{
Create: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var workspaceConfigurationResource = new WorkspaceConfiguration("workspaceConfigurationResource", WorkspaceConfigurationArgs.builder()
.workspaceId("string")
.limitsPerLabelSets(WorkspaceConfigurationLimitsPerLabelSetArgs.builder()
.labelSet(Map.of("string", "string"))
.limits(WorkspaceConfigurationLimitsPerLabelSetLimitsArgs.builder()
.maxSeries(0)
.build())
.build())
.retentionPeriodInDays(0)
.timeouts(WorkspaceConfigurationTimeoutsArgs.builder()
.create("string")
.update("string")
.build())
.build());
workspace_configuration_resource = aws.amp.WorkspaceConfiguration("workspaceConfigurationResource",
workspace_id="string",
limits_per_label_sets=[{
"label_set": {
"string": "string",
},
"limits": {
"max_series": 0,
},
}],
retention_period_in_days=0,
timeouts={
"create": "string",
"update": "string",
})
const workspaceConfigurationResource = new aws.amp.WorkspaceConfiguration("workspaceConfigurationResource", {
workspaceId: "string",
limitsPerLabelSets: [{
labelSet: {
string: "string",
},
limits: {
maxSeries: 0,
},
}],
retentionPeriodInDays: 0,
timeouts: {
create: "string",
update: "string",
},
});
type: aws:amp:WorkspaceConfiguration
properties:
limitsPerLabelSets:
- labelSet:
string: string
limits:
maxSeries: 0
retentionPeriodInDays: 0
timeouts:
create: string
update: string
workspaceId: string
WorkspaceConfiguration 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 WorkspaceConfiguration resource accepts the following input properties:
- Workspace
Id string ID of the workspace to configure.
The following arguments are optional:
- Limits
Per List<WorkspaceLabel Sets Configuration Limits Per Label Set> - Configuration block for setting limits on metrics with specific label sets. Detailed below.
- Retention
Period intIn Days - Number of days to retain metric data in the workspace.
- Timeouts
Workspace
Configuration Timeouts
- Workspace
Id string ID of the workspace to configure.
The following arguments are optional:
- Limits
Per []WorkspaceLabel Sets Configuration Limits Per Label Set Args - Configuration block for setting limits on metrics with specific label sets. Detailed below.
- Retention
Period intIn Days - Number of days to retain metric data in the workspace.
- Timeouts
Workspace
Configuration Timeouts Args
- workspace
Id String ID of the workspace to configure.
The following arguments are optional:
- limits
Per List<WorkspaceLabel Sets Configuration Limits Per Label Set> - Configuration block for setting limits on metrics with specific label sets. Detailed below.
- retention
Period IntegerIn Days - Number of days to retain metric data in the workspace.
- timeouts
Workspace
Configuration Timeouts
- workspace
Id string ID of the workspace to configure.
The following arguments are optional:
- limits
Per WorkspaceLabel Sets Configuration Limits Per Label Set[] - Configuration block for setting limits on metrics with specific label sets. Detailed below.
- retention
Period numberIn Days - Number of days to retain metric data in the workspace.
- timeouts
Workspace
Configuration Timeouts
- workspace_
id str ID of the workspace to configure.
The following arguments are optional:
- limits_
per_ Sequence[Workspacelabel_ sets Configuration Limits Per Label Set Args] - Configuration block for setting limits on metrics with specific label sets. Detailed below.
- retention_
period_ intin_ days - Number of days to retain metric data in the workspace.
- timeouts
Workspace
Configuration Timeouts Args
- workspace
Id String ID of the workspace to configure.
The following arguments are optional:
- limits
Per List<Property Map>Label Sets - Configuration block for setting limits on metrics with specific label sets. Detailed below.
- retention
Period NumberIn Days - Number of days to retain metric data in the workspace.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkspaceConfiguration 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 WorkspaceConfiguration Resource
Get an existing WorkspaceConfiguration 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?: WorkspaceConfigurationState, opts?: CustomResourceOptions): WorkspaceConfiguration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
limits_per_label_sets: Optional[Sequence[WorkspaceConfigurationLimitsPerLabelSetArgs]] = None,
retention_period_in_days: Optional[int] = None,
timeouts: Optional[WorkspaceConfigurationTimeoutsArgs] = None,
workspace_id: Optional[str] = None) -> WorkspaceConfiguration
func GetWorkspaceConfiguration(ctx *Context, name string, id IDInput, state *WorkspaceConfigurationState, opts ...ResourceOption) (*WorkspaceConfiguration, error)
public static WorkspaceConfiguration Get(string name, Input<string> id, WorkspaceConfigurationState? state, CustomResourceOptions? opts = null)
public static WorkspaceConfiguration get(String name, Output<String> id, WorkspaceConfigurationState state, CustomResourceOptions options)
resources: _: type: aws:amp:WorkspaceConfiguration 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.
- Limits
Per List<WorkspaceLabel Sets Configuration Limits Per Label Set> - Configuration block for setting limits on metrics with specific label sets. Detailed below.
- Retention
Period intIn Days - Number of days to retain metric data in the workspace.
- Timeouts
Workspace
Configuration Timeouts - Workspace
Id string ID of the workspace to configure.
The following arguments are optional:
- Limits
Per []WorkspaceLabel Sets Configuration Limits Per Label Set Args - Configuration block for setting limits on metrics with specific label sets. Detailed below.
- Retention
Period intIn Days - Number of days to retain metric data in the workspace.
- Timeouts
Workspace
Configuration Timeouts Args - Workspace
Id string ID of the workspace to configure.
The following arguments are optional:
- limits
Per List<WorkspaceLabel Sets Configuration Limits Per Label Set> - Configuration block for setting limits on metrics with specific label sets. Detailed below.
- retention
Period IntegerIn Days - Number of days to retain metric data in the workspace.
- timeouts
Workspace
Configuration Timeouts - workspace
Id String ID of the workspace to configure.
The following arguments are optional:
- limits
Per WorkspaceLabel Sets Configuration Limits Per Label Set[] - Configuration block for setting limits on metrics with specific label sets. Detailed below.
- retention
Period numberIn Days - Number of days to retain metric data in the workspace.
- timeouts
Workspace
Configuration Timeouts - workspace
Id string ID of the workspace to configure.
The following arguments are optional:
- limits_
per_ Sequence[Workspacelabel_ sets Configuration Limits Per Label Set Args] - Configuration block for setting limits on metrics with specific label sets. Detailed below.
- retention_
period_ intin_ days - Number of days to retain metric data in the workspace.
- timeouts
Workspace
Configuration Timeouts Args - workspace_
id str ID of the workspace to configure.
The following arguments are optional:
- limits
Per List<Property Map>Label Sets - Configuration block for setting limits on metrics with specific label sets. Detailed below.
- retention
Period NumberIn Days - Number of days to retain metric data in the workspace.
- timeouts Property Map
- workspace
Id String ID of the workspace to configure.
The following arguments are optional:
Supporting Types
WorkspaceConfigurationLimitsPerLabelSet, WorkspaceConfigurationLimitsPerLabelSetArgs
- Label
Set Dictionary<string, string> - Map of label key-value pairs that identify the metrics to which the limits apply. An empty map represents the default bucket for metrics that don't match any other label set.
- Limits
Workspace
Configuration Limits Per Label Set Limits - Configuration block for the limits to apply to the specified label set. Detailed below.
- Label
Set map[string]string - Map of label key-value pairs that identify the metrics to which the limits apply. An empty map represents the default bucket for metrics that don't match any other label set.
- Limits
Workspace
Configuration Limits Per Label Set Limits - Configuration block for the limits to apply to the specified label set. Detailed below.
- label
Set Map<String,String> - Map of label key-value pairs that identify the metrics to which the limits apply. An empty map represents the default bucket for metrics that don't match any other label set.
- limits
Workspace
Configuration Limits Per Label Set Limits - Configuration block for the limits to apply to the specified label set. Detailed below.
- label
Set {[key: string]: string} - Map of label key-value pairs that identify the metrics to which the limits apply. An empty map represents the default bucket for metrics that don't match any other label set.
- limits
Workspace
Configuration Limits Per Label Set Limits - Configuration block for the limits to apply to the specified label set. Detailed below.
- label_
set Mapping[str, str] - Map of label key-value pairs that identify the metrics to which the limits apply. An empty map represents the default bucket for metrics that don't match any other label set.
- limits
Workspace
Configuration Limits Per Label Set Limits - Configuration block for the limits to apply to the specified label set. Detailed below.
- label
Set Map<String> - Map of label key-value pairs that identify the metrics to which the limits apply. An empty map represents the default bucket for metrics that don't match any other label set.
- limits Property Map
- Configuration block for the limits to apply to the specified label set. Detailed below.
WorkspaceConfigurationLimitsPerLabelSetLimits, WorkspaceConfigurationLimitsPerLabelSetLimitsArgs
- Max
Series int - Maximum number of active time series that can be ingested for metrics matching the label set.
- Max
Series int - Maximum number of active time series that can be ingested for metrics matching the label set.
- max
Series Integer - Maximum number of active time series that can be ingested for metrics matching the label set.
- max
Series number - Maximum number of active time series that can be ingested for metrics matching the label set.
- max_
series int - Maximum number of active time series that can be ingested for metrics matching the label set.
- max
Series Number - Maximum number of active time series that can be ingested for metrics matching the label set.
WorkspaceConfigurationTimeouts, WorkspaceConfigurationTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
Using pulumi import
, import AMP (Managed Prometheus) Workspace Configuration using the workspace_id
. For example
$ pulumi import aws:amp/workspaceConfiguration:WorkspaceConfiguration example ws-12345678-abcd-1234-abcd-123456789012
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.