incident.CatalogEntry
Explore with Pulumi AI
Example Usage
Create CatalogEntry Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CatalogEntry(name: string, args: CatalogEntryArgs, opts?: CustomResourceOptions);
@overload
def CatalogEntry(resource_name: str,
args: CatalogEntryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CatalogEntry(resource_name: str,
opts: Optional[ResourceOptions] = None,
attribute_values: Optional[Sequence[CatalogEntryAttributeValueArgs]] = None,
catalog_type_id: Optional[str] = None,
aliases: Optional[Sequence[str]] = None,
external_id: Optional[str] = None,
managed_attributes: Optional[Sequence[str]] = None,
name: Optional[str] = None,
rank: Optional[float] = None)
func NewCatalogEntry(ctx *Context, name string, args CatalogEntryArgs, opts ...ResourceOption) (*CatalogEntry, error)
public CatalogEntry(string name, CatalogEntryArgs args, CustomResourceOptions? opts = null)
public CatalogEntry(String name, CatalogEntryArgs args)
public CatalogEntry(String name, CatalogEntryArgs args, CustomResourceOptions options)
type: incident:CatalogEntry
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 CatalogEntryArgs
- 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 CatalogEntryArgs
- 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 CatalogEntryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CatalogEntryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CatalogEntryArgs
- 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 catalogEntryResource = new Incident.CatalogEntry("catalogEntryResource", new()
{
AttributeValues = new[]
{
new Incident.Inputs.CatalogEntryAttributeValueArgs
{
Attribute = "string",
ArrayValues = new[]
{
"string",
},
Value = "string",
},
},
CatalogTypeId = "string",
Aliases = new[]
{
"string",
},
ExternalId = "string",
ManagedAttributes = new[]
{
"string",
},
Name = "string",
Rank = 0,
});
example, err := incident.NewCatalogEntry(ctx, "catalogEntryResource", &incident.CatalogEntryArgs{
AttributeValues: incident.CatalogEntryAttributeValueArray{
&incident.CatalogEntryAttributeValueArgs{
Attribute: pulumi.String("string"),
ArrayValues: pulumi.StringArray{
pulumi.String("string"),
},
Value: pulumi.String("string"),
},
},
CatalogTypeId: pulumi.String("string"),
Aliases: pulumi.StringArray{
pulumi.String("string"),
},
ExternalId: pulumi.String("string"),
ManagedAttributes: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
Rank: pulumi.Float64(0),
})
var catalogEntryResource = new CatalogEntry("catalogEntryResource", CatalogEntryArgs.builder()
.attributeValues(CatalogEntryAttributeValueArgs.builder()
.attribute("string")
.arrayValues("string")
.value("string")
.build())
.catalogTypeId("string")
.aliases("string")
.externalId("string")
.managedAttributes("string")
.name("string")
.rank(0)
.build());
catalog_entry_resource = incident.CatalogEntry("catalogEntryResource",
attribute_values=[{
"attribute": "string",
"array_values": ["string"],
"value": "string",
}],
catalog_type_id="string",
aliases=["string"],
external_id="string",
managed_attributes=["string"],
name="string",
rank=0)
const catalogEntryResource = new incident.CatalogEntry("catalogEntryResource", {
attributeValues: [{
attribute: "string",
arrayValues: ["string"],
value: "string",
}],
catalogTypeId: "string",
aliases: ["string"],
externalId: "string",
managedAttributes: ["string"],
name: "string",
rank: 0,
});
type: incident:CatalogEntry
properties:
aliases:
- string
attributeValues:
- arrayValues:
- string
attribute: string
value: string
catalogTypeId: string
externalId: string
managedAttributes:
- string
name: string
rank: 0
CatalogEntry 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 CatalogEntry resource accepts the following input properties:
- Attribute
Values List<CatalogEntry Attribute Value> - Catalog
Type stringId - ID of this catalog type
- Aliases List<string>
- Optional aliases that can be used to reference this entry
- External
Id string - An optional alternative ID for this entry, which is ensured to be unique for the type
- Managed
Attributes List<string> - The set of attributes that are managed by this resource. By default, all attributes are managed by this resource.
- Name string
- Name is the human readable name of this entry
- Rank double
- When catalog type is ranked, this is used to help order things
- Attribute
Values []CatalogEntry Attribute Value Args - Catalog
Type stringId - ID of this catalog type
- Aliases []string
- Optional aliases that can be used to reference this entry
- External
Id string - An optional alternative ID for this entry, which is ensured to be unique for the type
- Managed
Attributes []string - The set of attributes that are managed by this resource. By default, all attributes are managed by this resource.
- Name string
- Name is the human readable name of this entry
- Rank float64
- When catalog type is ranked, this is used to help order things
- attribute
Values List<CatalogEntry Attribute Value> - catalog
Type StringId - ID of this catalog type
- aliases List<String>
- Optional aliases that can be used to reference this entry
- external
Id String - An optional alternative ID for this entry, which is ensured to be unique for the type
- managed
Attributes List<String> - The set of attributes that are managed by this resource. By default, all attributes are managed by this resource.
- name String
- Name is the human readable name of this entry
- rank Double
- When catalog type is ranked, this is used to help order things
- attribute
Values CatalogEntry Attribute Value[] - catalog
Type stringId - ID of this catalog type
- aliases string[]
- Optional aliases that can be used to reference this entry
- external
Id string - An optional alternative ID for this entry, which is ensured to be unique for the type
- managed
Attributes string[] - The set of attributes that are managed by this resource. By default, all attributes are managed by this resource.
- name string
- Name is the human readable name of this entry
- rank number
- When catalog type is ranked, this is used to help order things
- attribute_
values Sequence[CatalogEntry Attribute Value Args] - catalog_
type_ strid - ID of this catalog type
- aliases Sequence[str]
- Optional aliases that can be used to reference this entry
- external_
id str - An optional alternative ID for this entry, which is ensured to be unique for the type
- managed_
attributes Sequence[str] - The set of attributes that are managed by this resource. By default, all attributes are managed by this resource.
- name str
- Name is the human readable name of this entry
- rank float
- When catalog type is ranked, this is used to help order things
- attribute
Values List<Property Map> - catalog
Type StringId - ID of this catalog type
- aliases List<String>
- Optional aliases that can be used to reference this entry
- external
Id String - An optional alternative ID for this entry, which is ensured to be unique for the type
- managed
Attributes List<String> - The set of attributes that are managed by this resource. By default, all attributes are managed by this resource.
- name String
- Name is the human readable name of this entry
- rank Number
- When catalog type is ranked, this is used to help order things
Outputs
All input properties are implicitly available as output properties. Additionally, the CatalogEntry 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 CatalogEntry Resource
Get an existing CatalogEntry 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?: CatalogEntryState, opts?: CustomResourceOptions): CatalogEntry
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aliases: Optional[Sequence[str]] = None,
attribute_values: Optional[Sequence[CatalogEntryAttributeValueArgs]] = None,
catalog_type_id: Optional[str] = None,
external_id: Optional[str] = None,
managed_attributes: Optional[Sequence[str]] = None,
name: Optional[str] = None,
rank: Optional[float] = None) -> CatalogEntry
func GetCatalogEntry(ctx *Context, name string, id IDInput, state *CatalogEntryState, opts ...ResourceOption) (*CatalogEntry, error)
public static CatalogEntry Get(string name, Input<string> id, CatalogEntryState? state, CustomResourceOptions? opts = null)
public static CatalogEntry get(String name, Output<String> id, CatalogEntryState state, CustomResourceOptions options)
resources: _: type: incident:CatalogEntry get: 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.
- Aliases List<string>
- Optional aliases that can be used to reference this entry
- Attribute
Values List<CatalogEntry Attribute Value> - Catalog
Type stringId - ID of this catalog type
- External
Id string - An optional alternative ID for this entry, which is ensured to be unique for the type
- Managed
Attributes List<string> - The set of attributes that are managed by this resource. By default, all attributes are managed by this resource.
- Name string
- Name is the human readable name of this entry
- Rank double
- When catalog type is ranked, this is used to help order things
- Aliases []string
- Optional aliases that can be used to reference this entry
- Attribute
Values []CatalogEntry Attribute Value Args - Catalog
Type stringId - ID of this catalog type
- External
Id string - An optional alternative ID for this entry, which is ensured to be unique for the type
- Managed
Attributes []string - The set of attributes that are managed by this resource. By default, all attributes are managed by this resource.
- Name string
- Name is the human readable name of this entry
- Rank float64
- When catalog type is ranked, this is used to help order things
- aliases List<String>
- Optional aliases that can be used to reference this entry
- attribute
Values List<CatalogEntry Attribute Value> - catalog
Type StringId - ID of this catalog type
- external
Id String - An optional alternative ID for this entry, which is ensured to be unique for the type
- managed
Attributes List<String> - The set of attributes that are managed by this resource. By default, all attributes are managed by this resource.
- name String
- Name is the human readable name of this entry
- rank Double
- When catalog type is ranked, this is used to help order things
- aliases string[]
- Optional aliases that can be used to reference this entry
- attribute
Values CatalogEntry Attribute Value[] - catalog
Type stringId - ID of this catalog type
- external
Id string - An optional alternative ID for this entry, which is ensured to be unique for the type
- managed
Attributes string[] - The set of attributes that are managed by this resource. By default, all attributes are managed by this resource.
- name string
- Name is the human readable name of this entry
- rank number
- When catalog type is ranked, this is used to help order things
- aliases Sequence[str]
- Optional aliases that can be used to reference this entry
- attribute_
values Sequence[CatalogEntry Attribute Value Args] - catalog_
type_ strid - ID of this catalog type
- external_
id str - An optional alternative ID for this entry, which is ensured to be unique for the type
- managed_
attributes Sequence[str] - The set of attributes that are managed by this resource. By default, all attributes are managed by this resource.
- name str
- Name is the human readable name of this entry
- rank float
- When catalog type is ranked, this is used to help order things
- aliases List<String>
- Optional aliases that can be used to reference this entry
- attribute
Values List<Property Map> - catalog
Type StringId - ID of this catalog type
- external
Id String - An optional alternative ID for this entry, which is ensured to be unique for the type
- managed
Attributes List<String> - The set of attributes that are managed by this resource. By default, all attributes are managed by this resource.
- name String
- Name is the human readable name of this entry
- rank Number
- When catalog type is ranked, this is used to help order things
Supporting Types
CatalogEntryAttributeValue, CatalogEntryAttributeValueArgs
- Attribute string
- The ID of this attribute, usually loaded from the incidentcatalogtype_attribute resource.
- Array
Values List<string> - The value of this element of the array, in a format suitable for this attribute type.
- Value string
- The value of this attribute, in a format suitable for this attribute type.
- Attribute string
- The ID of this attribute, usually loaded from the incidentcatalogtype_attribute resource.
- Array
Values []string - The value of this element of the array, in a format suitable for this attribute type.
- Value string
- The value of this attribute, in a format suitable for this attribute type.
- attribute String
- The ID of this attribute, usually loaded from the incidentcatalogtype_attribute resource.
- array
Values List<String> - The value of this element of the array, in a format suitable for this attribute type.
- value String
- The value of this attribute, in a format suitable for this attribute type.
- attribute string
- The ID of this attribute, usually loaded from the incidentcatalogtype_attribute resource.
- array
Values string[] - The value of this element of the array, in a format suitable for this attribute type.
- value string
- The value of this attribute, in a format suitable for this attribute type.
- attribute str
- The ID of this attribute, usually loaded from the incidentcatalogtype_attribute resource.
- array_
values Sequence[str] - The value of this element of the array, in a format suitable for this attribute type.
- value str
- The value of this attribute, in a format suitable for this attribute type.
- attribute String
- The ID of this attribute, usually loaded from the incidentcatalogtype_attribute resource.
- array
Values List<String> - The value of this element of the array, in a format suitable for this attribute type.
- value String
- The value of this attribute, in a format suitable for this attribute type.
Import
#!/bin/bash
Import a catalog entry using its ID
Replace the ID with a real ID from your incident.io organization
$ pulumi import incident:index/catalogEntry:CatalogEntry example 01ABC123DEF456GHI789JKL
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- incident incident-io/terraform-provider-incident
- License
- Notes
- This Pulumi package is based on the
incident
Terraform Provider.