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 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"),
})
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
- Description string
- Labels Dictionary<string, string>
- Notification
Policy stringData - Notification
Policy stringId - Slug string
- Team
Id string
- Name string
- Description string
- Labels map[string]string
- Notification
Policy stringData - Notification
Policy stringId - Slug string
- Team
Id string
- name String
- description String
- labels Map<String,String>
- notification
Policy StringData - notification
Policy StringId - slug String
- team
Id String
- name string
- description string
- labels {[key: string]: string}
- notification
Policy stringData - notification
Policy stringId - slug string
- team
Id string
- name str
- description str
- labels Mapping[str, str]
- notification_
policy_ strdata - notification_
policy_ strid - slug str
- team_
id str
- name String
- description String
- labels Map<String>
- notification
Policy StringData - notification
Policy StringId - slug String
- team
Id 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.
- Notification
Policy stringSlug
- Id string
- The provider-assigned unique ID for this managed resource.
- Notification
Policy stringSlug
- id String
- The provider-assigned unique ID for this managed resource.
- notification
Policy StringSlug
- id string
- The provider-assigned unique ID for this managed resource.
- notification
Policy stringSlug
- id str
- The provider-assigned unique ID for this managed resource.
- notification_
policy_ strslug
- id String
- The provider-assigned unique ID for this managed resource.
- notification
Policy StringSlug
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)
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.
- Description string
- Labels Dictionary<string, string>
- Name string
- Notification
Policy stringData - Notification
Policy stringId - Notification
Policy stringSlug - Slug string
- Team
Id string
- Description string
- Labels map[string]string
- Name string
- Notification
Policy stringData - Notification
Policy stringId - Notification
Policy stringSlug - Slug string
- Team
Id string
- description String
- labels Map<String,String>
- name String
- notification
Policy StringData - notification
Policy StringId - notification
Policy StringSlug - slug String
- team
Id String
- description string
- labels {[key: string]: string}
- name string
- notification
Policy stringData - notification
Policy stringId - notification
Policy stringSlug - slug string
- team
Id string
- description str
- labels Mapping[str, str]
- name str
- notification_
policy_ strdata - notification_
policy_ strid - notification_
policy_ strslug - slug str
- team_
id str
- description String
- labels Map<String>
- name String
- notification
Policy StringData - notification
Policy StringId - notification
Policy StringSlug - slug String
- team
Id String
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphere
Terraform Provider.