published on Friday, Jun 5, 2026 by Chronosphere
published on Friday, Jun 5, 2026 by Chronosphere
A legacy container for monitors, dashboards, and other resources, predating collections. Buckets can also own an inline notification policy via notification_policy_data. New configurations should generally use chronosphere.Collection.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pulumi = Chronosphere.Pulumi;
return await Deployment.RunAsync(() =>
{
var bucket = new Pulumi.Bucket("bucket", new()
{
Name = "Bucket",
Description = "bucket created by terraform examples",
Labels =
{
{ "foo", "bar" },
},
});
});
package main
import (
"github.com/chronosphereio/pulumi-chronosphere/sdk/go/chronosphere"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := chronosphere.NewBucket(ctx, "bucket", &chronosphere.BucketArgs{
Name: pulumi.String("Bucket"),
Description: pulumi.String("bucket created by terraform examples"),
Labels: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.chronosphere.Bucket;
import com.pulumi.chronosphere.BucketArgs;
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 bucket = new Bucket("bucket", BucketArgs.builder()
.name("Bucket")
.description("bucket created by terraform examples")
.labels(Map.of("foo", "bar"))
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as chronosphere from "@pulumi-chronosphere/pulumi-chronosphere";
const bucket = new chronosphere.Bucket("bucket", {
name: "Bucket",
description: "bucket created by terraform examples",
labels: {
foo: "bar",
},
});
import pulumi
import pulumi_chronosphere as chronosphere
bucket = chronosphere.Bucket("bucket",
name="Bucket",
description="bucket created by terraform examples",
labels={
"foo": "bar",
})
resources:
bucket:
type: chronosphere:Bucket
properties:
name: Bucket
description: bucket created by terraform examples
labels:
foo: bar
Create Bucket Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Bucket(name: string, args: BucketArgs, opts?: CustomResourceOptions);@overload
def Bucket(resource_name: str,
args: BucketArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Bucket(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
notification_policy_data: Optional[str] = None,
notification_policy_id: Optional[str] = None,
slug: Optional[str] = None,
team_id: Optional[str] = None)func NewBucket(ctx *Context, name string, args BucketArgs, opts ...ResourceOption) (*Bucket, error)public Bucket(string name, BucketArgs args, CustomResourceOptions? opts = null)
public Bucket(String name, BucketArgs args)
public Bucket(String name, BucketArgs args, CustomResourceOptions options)
type: chronosphere:Bucket
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "chronosphere_bucket" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args BucketArgs
- 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 BucketArgs
- 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 BucketArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BucketArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BucketArgs
- 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 bucketResource = new Pulumi.Bucket("bucketResource", new()
{
Name = "string",
Description = "string",
Labels =
{
{ "string", "string" },
},
NotificationPolicyData = "string",
NotificationPolicyId = "string",
Slug = "string",
TeamId = "string",
});
example, err := chronosphere.NewBucket(ctx, "bucketResource", &chronosphere.BucketArgs{
Name: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
NotificationPolicyData: pulumi.String("string"),
NotificationPolicyId: pulumi.String("string"),
Slug: pulumi.String("string"),
TeamId: pulumi.String("string"),
})
resource "chronosphere_bucket" "bucketResource" {
name = "string"
description = "string"
labels = {
"string" = "string"
}
notification_policy_data = "string"
notification_policy_id = "string"
slug = "string"
team_id = "string"
}
var bucketResource = new Bucket("bucketResource", BucketArgs.builder()
.name("string")
.description("string")
.labels(Map.of("string", "string"))
.notificationPolicyData("string")
.notificationPolicyId("string")
.slug("string")
.teamId("string")
.build());
bucket_resource = chronosphere.Bucket("bucketResource",
name="string",
description="string",
labels={
"string": "string",
},
notification_policy_data="string",
notification_policy_id="string",
slug="string",
team_id="string")
const bucketResource = new chronosphere.Bucket("bucketResource", {
name: "string",
description: "string",
labels: {
string: "string",
},
notificationPolicyData: "string",
notificationPolicyId: "string",
slug: "string",
teamId: "string",
});
type: chronosphere:Bucket
properties:
description: string
labels:
string: string
name: string
notificationPolicyData: string
notificationPolicyId: string
slug: string
teamId: string
Bucket 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 Bucket resource accepts the following input properties:
- Name string
- Display name of the bucket. Can be changed after creation.
- Description string
- Free-form description of the bucket.
- Labels Dictionary<string, string>
- Key/value labels attached to the bucket for organization and filtering.
- Notification
Policy stringData - Inline notification policy serialized as JSON. Conflicts with
notification_policy_id. For reusability, reference a named policy instead. - Notification
Policy stringId - ID of the default notification policy applied to monitors in this bucket that do not explicitly reference one. Conflicts with
notification_policy_data. - Slug string
- Stable identifier for the bucket. Generated from
nameif omitted. Immutable after creation. - Team
Id string - ID of the team that owns this bucket.
- Name string
- Display name of the bucket. Can be changed after creation.
- Description string
- Free-form description of the bucket.
- Labels map[string]string
- Key/value labels attached to the bucket for organization and filtering.
- Notification
Policy stringData - Inline notification policy serialized as JSON. Conflicts with
notification_policy_id. For reusability, reference a named policy instead. - Notification
Policy stringId - ID of the default notification policy applied to monitors in this bucket that do not explicitly reference one. Conflicts with
notification_policy_data. - Slug string
- Stable identifier for the bucket. Generated from
nameif omitted. Immutable after creation. - Team
Id string - ID of the team that owns this bucket.
- name string
- Display name of the bucket. Can be changed after creation.
- description string
- Free-form description of the bucket.
- labels map(string)
- Key/value labels attached to the bucket for organization and filtering.
- notification_
policy_ stringdata - Inline notification policy serialized as JSON. Conflicts with
notification_policy_id. For reusability, reference a named policy instead. - notification_
policy_ stringid - ID of the default notification policy applied to monitors in this bucket that do not explicitly reference one. Conflicts with
notification_policy_data. - slug string
- Stable identifier for the bucket. Generated from
nameif omitted. Immutable after creation. - team_
id string - ID of the team that owns this bucket.
- name String
- Display name of the bucket. Can be changed after creation.
- description String
- Free-form description of the bucket.
- labels Map<String,String>
- Key/value labels attached to the bucket for organization and filtering.
- notification
Policy StringData - Inline notification policy serialized as JSON. Conflicts with
notification_policy_id. For reusability, reference a named policy instead. - notification
Policy StringId - ID of the default notification policy applied to monitors in this bucket that do not explicitly reference one. Conflicts with
notification_policy_data. - slug String
- Stable identifier for the bucket. Generated from
nameif omitted. Immutable after creation. - team
Id String - ID of the team that owns this bucket.
- name string
- Display name of the bucket. Can be changed after creation.
- description string
- Free-form description of the bucket.
- labels {[key: string]: string}
- Key/value labels attached to the bucket for organization and filtering.
- notification
Policy stringData - Inline notification policy serialized as JSON. Conflicts with
notification_policy_id. For reusability, reference a named policy instead. - notification
Policy stringId - ID of the default notification policy applied to monitors in this bucket that do not explicitly reference one. Conflicts with
notification_policy_data. - slug string
- Stable identifier for the bucket. Generated from
nameif omitted. Immutable after creation. - team
Id string - ID of the team that owns this bucket.
- name str
- Display name of the bucket. Can be changed after creation.
- description str
- Free-form description of the bucket.
- labels Mapping[str, str]
- Key/value labels attached to the bucket for organization and filtering.
- notification_
policy_ strdata - Inline notification policy serialized as JSON. Conflicts with
notification_policy_id. For reusability, reference a named policy instead. - notification_
policy_ strid - ID of the default notification policy applied to monitors in this bucket that do not explicitly reference one. Conflicts with
notification_policy_data. - slug str
- Stable identifier for the bucket. Generated from
nameif omitted. Immutable after creation. - team_
id str - ID of the team that owns this bucket.
- name String
- Display name of the bucket. Can be changed after creation.
- description String
- Free-form description of the bucket.
- labels Map<String>
- Key/value labels attached to the bucket for organization and filtering.
- notification
Policy StringData - Inline notification policy serialized as JSON. Conflicts with
notification_policy_id. For reusability, reference a named policy instead. - notification
Policy StringId - ID of the default notification policy applied to monitors in this bucket that do not explicitly reference one. Conflicts with
notification_policy_data. - slug String
- Stable identifier for the bucket. Generated from
nameif omitted. Immutable after creation. - team
Id String - ID of the team that owns this bucket.
Outputs
All input properties are implicitly available as output properties. Additionally, the Bucket resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Notification
Policy stringSlug - Internal field tracking the slug of an inline notification policy defined via
notification_policy_data. Usenotification_policy_idto reference a named policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Notification
Policy stringSlug - Internal field tracking the slug of an inline notification policy defined via
notification_policy_data. Usenotification_policy_idto reference a named policy.
- id string
- The provider-assigned unique ID for this managed resource.
- notification_
policy_ stringslug - Internal field tracking the slug of an inline notification policy defined via
notification_policy_data. Usenotification_policy_idto reference a named policy.
- id String
- The provider-assigned unique ID for this managed resource.
- notification
Policy StringSlug - Internal field tracking the slug of an inline notification policy defined via
notification_policy_data. Usenotification_policy_idto reference a named policy.
- id string
- The provider-assigned unique ID for this managed resource.
- notification
Policy stringSlug - Internal field tracking the slug of an inline notification policy defined via
notification_policy_data. Usenotification_policy_idto reference a named policy.
- id str
- The provider-assigned unique ID for this managed resource.
- notification_
policy_ strslug - Internal field tracking the slug of an inline notification policy defined via
notification_policy_data. Usenotification_policy_idto reference a named policy.
- id String
- The provider-assigned unique ID for this managed resource.
- notification
Policy StringSlug - Internal field tracking the slug of an inline notification policy defined via
notification_policy_data. Usenotification_policy_idto reference a named policy.
Look up Existing Bucket Resource
Get an existing Bucket 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?: BucketState, opts?: CustomResourceOptions): Bucket@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
notification_policy_data: Optional[str] = None,
notification_policy_id: Optional[str] = None,
notification_policy_slug: Optional[str] = None,
slug: Optional[str] = None,
team_id: Optional[str] = None) -> Bucketfunc GetBucket(ctx *Context, name string, id IDInput, state *BucketState, opts ...ResourceOption) (*Bucket, error)public static Bucket Get(string name, Input<string> id, BucketState? state, CustomResourceOptions? opts = null)public static Bucket get(String name, Output<String> id, BucketState state, CustomResourceOptions options)resources: _: type: chronosphere:Bucket get: id: ${id}import {
to = chronosphere_bucket.example
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.
- Description string
- Free-form description of the bucket.
- Labels Dictionary<string, string>
- Key/value labels attached to the bucket for organization and filtering.
- Name string
- Display name of the bucket. Can be changed after creation.
- Notification
Policy stringData - Inline notification policy serialized as JSON. Conflicts with
notification_policy_id. For reusability, reference a named policy instead. - Notification
Policy stringId - ID of the default notification policy applied to monitors in this bucket that do not explicitly reference one. Conflicts with
notification_policy_data. - Notification
Policy stringSlug - Internal field tracking the slug of an inline notification policy defined via
notification_policy_data. Usenotification_policy_idto reference a named policy. - Slug string
- Stable identifier for the bucket. Generated from
nameif omitted. Immutable after creation. - Team
Id string - ID of the team that owns this bucket.
- Description string
- Free-form description of the bucket.
- Labels map[string]string
- Key/value labels attached to the bucket for organization and filtering.
- Name string
- Display name of the bucket. Can be changed after creation.
- Notification
Policy stringData - Inline notification policy serialized as JSON. Conflicts with
notification_policy_id. For reusability, reference a named policy instead. - Notification
Policy stringId - ID of the default notification policy applied to monitors in this bucket that do not explicitly reference one. Conflicts with
notification_policy_data. - Notification
Policy stringSlug - Internal field tracking the slug of an inline notification policy defined via
notification_policy_data. Usenotification_policy_idto reference a named policy. - Slug string
- Stable identifier for the bucket. Generated from
nameif omitted. Immutable after creation. - Team
Id string - ID of the team that owns this bucket.
- description string
- Free-form description of the bucket.
- labels map(string)
- Key/value labels attached to the bucket for organization and filtering.
- name string
- Display name of the bucket. Can be changed after creation.
- notification_
policy_ stringdata - Inline notification policy serialized as JSON. Conflicts with
notification_policy_id. For reusability, reference a named policy instead. - notification_
policy_ stringid - ID of the default notification policy applied to monitors in this bucket that do not explicitly reference one. Conflicts with
notification_policy_data. - notification_
policy_ stringslug - Internal field tracking the slug of an inline notification policy defined via
notification_policy_data. Usenotification_policy_idto reference a named policy. - slug string
- Stable identifier for the bucket. Generated from
nameif omitted. Immutable after creation. - team_
id string - ID of the team that owns this bucket.
- description String
- Free-form description of the bucket.
- labels Map<String,String>
- Key/value labels attached to the bucket for organization and filtering.
- name String
- Display name of the bucket. Can be changed after creation.
- notification
Policy StringData - Inline notification policy serialized as JSON. Conflicts with
notification_policy_id. For reusability, reference a named policy instead. - notification
Policy StringId - ID of the default notification policy applied to monitors in this bucket that do not explicitly reference one. Conflicts with
notification_policy_data. - notification
Policy StringSlug - Internal field tracking the slug of an inline notification policy defined via
notification_policy_data. Usenotification_policy_idto reference a named policy. - slug String
- Stable identifier for the bucket. Generated from
nameif omitted. Immutable after creation. - team
Id String - ID of the team that owns this bucket.
- description string
- Free-form description of the bucket.
- labels {[key: string]: string}
- Key/value labels attached to the bucket for organization and filtering.
- name string
- Display name of the bucket. Can be changed after creation.
- notification
Policy stringData - Inline notification policy serialized as JSON. Conflicts with
notification_policy_id. For reusability, reference a named policy instead. - notification
Policy stringId - ID of the default notification policy applied to monitors in this bucket that do not explicitly reference one. Conflicts with
notification_policy_data. - notification
Policy stringSlug - Internal field tracking the slug of an inline notification policy defined via
notification_policy_data. Usenotification_policy_idto reference a named policy. - slug string
- Stable identifier for the bucket. Generated from
nameif omitted. Immutable after creation. - team
Id string - ID of the team that owns this bucket.
- description str
- Free-form description of the bucket.
- labels Mapping[str, str]
- Key/value labels attached to the bucket for organization and filtering.
- name str
- Display name of the bucket. Can be changed after creation.
- notification_
policy_ strdata - Inline notification policy serialized as JSON. Conflicts with
notification_policy_id. For reusability, reference a named policy instead. - notification_
policy_ strid - ID of the default notification policy applied to monitors in this bucket that do not explicitly reference one. Conflicts with
notification_policy_data. - notification_
policy_ strslug - Internal field tracking the slug of an inline notification policy defined via
notification_policy_data. Usenotification_policy_idto reference a named policy. - slug str
- Stable identifier for the bucket. Generated from
nameif omitted. Immutable after creation. - team_
id str - ID of the team that owns this bucket.
- description String
- Free-form description of the bucket.
- labels Map<String>
- Key/value labels attached to the bucket for organization and filtering.
- name String
- Display name of the bucket. Can be changed after creation.
- notification
Policy StringData - Inline notification policy serialized as JSON. Conflicts with
notification_policy_id. For reusability, reference a named policy instead. - notification
Policy StringId - ID of the default notification policy applied to monitors in this bucket that do not explicitly reference one. Conflicts with
notification_policy_data. - notification
Policy StringSlug - Internal field tracking the slug of an inline notification policy defined via
notification_policy_data. Usenotification_policy_idto reference a named policy. - slug String
- Stable identifier for the bucket. Generated from
nameif omitted. Immutable after creation. - team
Id String - ID of the team that owns this bucket.
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphereTerraform Provider.
published on Friday, Jun 5, 2026 by Chronosphere