1. Packages
  2. Chronosphere
  3. API Docs
  4. Bucket
Chronosphere v0.9.8 published on Thursday, Apr 3, 2025 by Chronosphere

chronosphere.Bucket

Explore with Pulumi AI

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.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. BucketArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. BucketArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. BucketArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
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());
Copy
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")
Copy
const bucketResource = new chronosphere.Bucket("bucketResource", {
    name: "string",
    description: "string",
    labels: {
        string: "string",
    },
    notificationPolicyData: "string",
    notificationPolicyId: "string",
    slug: "string",
    teamId: "string",
});
Copy
type: chronosphere:Bucket
properties:
    description: string
    labels:
        string: string
    name: string
    notificationPolicyData: string
    notificationPolicyId: string
    slug: string
    teamId: string
Copy

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 This property is required. string
Description string
Labels Dictionary<string, string>
NotificationPolicyData string
NotificationPolicyId string
Slug Changes to this property will trigger replacement. string
TeamId string
Name This property is required. string
Description string
Labels map[string]string
NotificationPolicyData string
NotificationPolicyId string
Slug Changes to this property will trigger replacement. string
TeamId string
name This property is required. String
description String
labels Map<String,String>
notificationPolicyData String
notificationPolicyId String
slug Changes to this property will trigger replacement. String
teamId String
name This property is required. string
description string
labels {[key: string]: string}
notificationPolicyData string
notificationPolicyId string
slug Changes to this property will trigger replacement. string
teamId string
name This property is required. str
description str
labels Mapping[str, str]
notification_policy_data str
notification_policy_id str
slug Changes to this property will trigger replacement. str
team_id str
name This property is required. String
description String
labels Map<String>
notificationPolicyData String
notificationPolicyId String
slug Changes to this property will trigger replacement. String
teamId String

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.
NotificationPolicySlug string
Id string
The provider-assigned unique ID for this managed resource.
NotificationPolicySlug string
id String
The provider-assigned unique ID for this managed resource.
notificationPolicySlug String
id string
The provider-assigned unique ID for this managed resource.
notificationPolicySlug string
id str
The provider-assigned unique ID for this managed resource.
notification_policy_slug str
id String
The provider-assigned unique ID for this managed resource.
notificationPolicySlug String

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) -> Bucket
func 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}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Description string
Labels Dictionary<string, string>
Name string
NotificationPolicyData string
NotificationPolicyId string
NotificationPolicySlug string
Slug Changes to this property will trigger replacement. string
TeamId string
Description string
Labels map[string]string
Name string
NotificationPolicyData string
NotificationPolicyId string
NotificationPolicySlug string
Slug Changes to this property will trigger replacement. string
TeamId string
description String
labels Map<String,String>
name String
notificationPolicyData String
notificationPolicyId String
notificationPolicySlug String
slug Changes to this property will trigger replacement. String
teamId String
description string
labels {[key: string]: string}
name string
notificationPolicyData string
notificationPolicyId string
notificationPolicySlug string
slug Changes to this property will trigger replacement. string
teamId string
description str
labels Mapping[str, str]
name str
notification_policy_data str
notification_policy_id str
notification_policy_slug str
slug Changes to this property will trigger replacement. str
team_id str
description String
labels Map<String>
name String
notificationPolicyData String
notificationPolicyId String
notificationPolicySlug String
slug Changes to this property will trigger replacement. String
teamId String

Package Details

Repository
chronosphere chronosphereio/pulumi-chronosphere
License
Apache-2.0
Notes
This Pulumi package is based on the chronosphere Terraform Provider.