influxdb.Bucket
Explore with Pulumi AI
Creates and manages a bucket.
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,
org_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
retention_period: Optional[int] = None,
type: 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: influxdb: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 InfluxDB.Bucket("bucketResource", new()
{
OrgId = "string",
Description = "string",
Name = "string",
RetentionPeriod = 0,
Type = "string",
});
example, err := influxdb.NewBucket(ctx, "bucketResource", &influxdb.BucketArgs{
OrgId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
RetentionPeriod: pulumi.Int(0),
Type: pulumi.String("string"),
})
var bucketResource = new Bucket("bucketResource", BucketArgs.builder()
.orgId("string")
.description("string")
.name("string")
.retentionPeriod(0)
.type("string")
.build());
bucket_resource = influxdb.Bucket("bucketResource",
org_id="string",
description="string",
name="string",
retention_period=0,
type="string")
const bucketResource = new influxdb.Bucket("bucketResource", {
orgId: "string",
description: "string",
name: "string",
retentionPeriod: 0,
type: "string",
});
type: influxdb:Bucket
properties:
description: string
name: string
orgId: string
retentionPeriod: 0
type: 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:
- Org
Id string - An organization ID.
- Description string
- A description of the bucket.
- Name string
- A Bucket name.
- Retention
Period int - The duration in seconds for how long data will be kept in the database. The default duration is
2592000
(30 days).0
represents infinite retention. - Type string
- The Bucket type. Valid values are
user
orsystem
.
- Org
Id string - An organization ID.
- Description string
- A description of the bucket.
- Name string
- A Bucket name.
- Retention
Period int - The duration in seconds for how long data will be kept in the database. The default duration is
2592000
(30 days).0
represents infinite retention. - Type string
- The Bucket type. Valid values are
user
orsystem
.
- org
Id String - An organization ID.
- description String
- A description of the bucket.
- name String
- A Bucket name.
- retention
Period Integer - The duration in seconds for how long data will be kept in the database. The default duration is
2592000
(30 days).0
represents infinite retention. - type String
- The Bucket type. Valid values are
user
orsystem
.
- org
Id string - An organization ID.
- description string
- A description of the bucket.
- name string
- A Bucket name.
- retention
Period number - The duration in seconds for how long data will be kept in the database. The default duration is
2592000
(30 days).0
represents infinite retention. - type string
- The Bucket type. Valid values are
user
orsystem
.
- org_
id str - An organization ID.
- description str
- A description of the bucket.
- name str
- A Bucket name.
- retention_
period int - The duration in seconds for how long data will be kept in the database. The default duration is
2592000
(30 days).0
represents infinite retention. - type str
- The Bucket type. Valid values are
user
orsystem
.
- org
Id String - An organization ID.
- description String
- A description of the bucket.
- name String
- A Bucket name.
- retention
Period Number - The duration in seconds for how long data will be kept in the database. The default duration is
2592000
(30 days).0
represents infinite retention. - type String
- The Bucket type. Valid values are
user
orsystem
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Bucket resource produces the following output properties:
- created_
at str - Bucket creation date.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - Last bucket update date.
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,
created_at: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
retention_period: Optional[int] = None,
type: Optional[str] = None,
updated_at: 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.
- Created
At string - Bucket creation date.
- Description string
- A description of the bucket.
- Name string
- A Bucket name.
- Org
Id string - An organization ID.
- Retention
Period int - The duration in seconds for how long data will be kept in the database. The default duration is
2592000
(30 days).0
represents infinite retention. - Type string
- The Bucket type. Valid values are
user
orsystem
. - Updated
At string - Last bucket update date.
- Created
At string - Bucket creation date.
- Description string
- A description of the bucket.
- Name string
- A Bucket name.
- Org
Id string - An organization ID.
- Retention
Period int - The duration in seconds for how long data will be kept in the database. The default duration is
2592000
(30 days).0
represents infinite retention. - Type string
- The Bucket type. Valid values are
user
orsystem
. - Updated
At string - Last bucket update date.
- created
At String - Bucket creation date.
- description String
- A description of the bucket.
- name String
- A Bucket name.
- org
Id String - An organization ID.
- retention
Period Integer - The duration in seconds for how long data will be kept in the database. The default duration is
2592000
(30 days).0
represents infinite retention. - type String
- The Bucket type. Valid values are
user
orsystem
. - updated
At String - Last bucket update date.
- created
At string - Bucket creation date.
- description string
- A description of the bucket.
- name string
- A Bucket name.
- org
Id string - An organization ID.
- retention
Period number - The duration in seconds for how long data will be kept in the database. The default duration is
2592000
(30 days).0
represents infinite retention. - type string
- The Bucket type. Valid values are
user
orsystem
. - updated
At string - Last bucket update date.
- created_
at str - Bucket creation date.
- description str
- A description of the bucket.
- name str
- A Bucket name.
- org_
id str - An organization ID.
- retention_
period int - The duration in seconds for how long data will be kept in the database. The default duration is
2592000
(30 days).0
represents infinite retention. - type str
- The Bucket type. Valid values are
user
orsystem
. - updated_
at str - Last bucket update date.
- created
At String - Bucket creation date.
- description String
- A description of the bucket.
- name String
- A Bucket name.
- org
Id String - An organization ID.
- retention
Period Number - The duration in seconds for how long data will be kept in the database. The default duration is
2592000
(30 days).0
represents infinite retention. - type String
- The Bucket type. Valid values are
user
orsystem
. - updated
At String - Last bucket update date.
Package Details
- Repository
- influxdb komminarlabs/pulumi-influxdb
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
influxdb
Terraform Provider.