chronosphere.Collection
Explore with Pulumi AI
Create Collection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Collection(name: string, args: CollectionArgs, opts?: CustomResourceOptions);
@overload
def Collection(resource_name: str,
args: CollectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Collection(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
description: Optional[str] = None,
notification_policy_id: Optional[str] = None,
slug: Optional[str] = None,
team_id: Optional[str] = None)
func NewCollection(ctx *Context, name string, args CollectionArgs, opts ...ResourceOption) (*Collection, error)
public Collection(string name, CollectionArgs args, CustomResourceOptions? opts = null)
public Collection(String name, CollectionArgs args)
public Collection(String name, CollectionArgs args, CustomResourceOptions options)
type: chronosphere:Collection
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 CollectionArgs
- 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 CollectionArgs
- 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 CollectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CollectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CollectionArgs
- 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 collectionResource = new Pulumi.Collection("collectionResource", new()
{
Name = "string",
Description = "string",
NotificationPolicyId = "string",
Slug = "string",
TeamId = "string",
});
example, err := chronosphere.NewCollection(ctx, "collectionResource", &chronosphere.CollectionArgs{
Name: pulumi.String("string"),
Description: pulumi.String("string"),
NotificationPolicyId: pulumi.String("string"),
Slug: pulumi.String("string"),
TeamId: pulumi.String("string"),
})
var collectionResource = new Collection("collectionResource", CollectionArgs.builder()
.name("string")
.description("string")
.notificationPolicyId("string")
.slug("string")
.teamId("string")
.build());
collection_resource = chronosphere.Collection("collectionResource",
name="string",
description="string",
notification_policy_id="string",
slug="string",
team_id="string")
const collectionResource = new chronosphere.Collection("collectionResource", {
name: "string",
description: "string",
notificationPolicyId: "string",
slug: "string",
teamId: "string",
});
type: chronosphere:Collection
properties:
description: string
name: string
notificationPolicyId: string
slug: string
teamId: string
Collection 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 Collection resource accepts the following input properties:
- Name string
- Description string
- Notification
Policy stringId - Slug string
- Team
Id string
- Name string
- Description string
- Notification
Policy stringId - Slug string
- Team
Id string
- name String
- description String
- notification
Policy StringId - slug String
- team
Id String
- name string
- description string
- notification
Policy stringId - slug string
- team
Id string
- name str
- description str
- notification_
policy_ strid - slug str
- team_
id str
- name String
- description String
- notification
Policy StringId - slug String
- team
Id String
Outputs
All input properties are implicitly available as output properties. Additionally, the Collection 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 Collection Resource
Get an existing Collection 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?: CollectionState, opts?: CustomResourceOptions): Collection
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
notification_policy_id: Optional[str] = None,
slug: Optional[str] = None,
team_id: Optional[str] = None) -> Collection
func GetCollection(ctx *Context, name string, id IDInput, state *CollectionState, opts ...ResourceOption) (*Collection, error)
public static Collection Get(string name, Input<string> id, CollectionState? state, CustomResourceOptions? opts = null)
public static Collection get(String name, Output<String> id, CollectionState 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
- Name string
- Notification
Policy stringId - Slug string
- Team
Id string
- Description string
- Name string
- Notification
Policy stringId - Slug string
- Team
Id string
- description String
- name String
- notification
Policy StringId - slug String
- team
Id String
- description string
- name string
- notification
Policy stringId - slug string
- team
Id string
- description str
- name str
- notification_
policy_ strid - slug str
- team_
id str
- description String
- name String
- notification
Policy StringId - 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.