Impart Security v0.5.0 published on Wednesday, Jun 12, 2024 by Impart Security
impart.List
Explore with Pulumi AI
Impart Security v0.5.0 published on Wednesday, Jun 12, 2024 by Impart Security
Manage a list.
Create List Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new List(name: string, args: ListArgs, opts?: CustomResourceOptions);
@overload
def List(resource_name: str,
args: ListArgs,
opts: Optional[ResourceOptions] = None)
@overload
def List(resource_name: str,
opts: Optional[ResourceOptions] = None,
kind: Optional[str] = None,
name: Optional[str] = None,
items: Optional[Sequence[ListItemArgs]] = None,
subkind: Optional[str] = None)
func NewList(ctx *Context, name string, args ListArgs, opts ...ResourceOption) (*List, error)
public List(string name, ListArgs args, CustomResourceOptions? opts = null)
type: impart:List
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 ListArgs
- 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 ListArgs
- 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 ListArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ListArgs
- 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 listResource = new Impart.List("listResource", new()
{
Kind = "string",
Name = "string",
Items = new[]
{
new Impart.Inputs.ListItemArgs
{
Value = "string",
Expiration = "string",
},
},
Subkind = "string",
});
example, err := impart.NewList(ctx, "listResource", &impart.ListArgs{
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
Items: impart.ListItemArray{
&impart.ListItemArgs{
Value: pulumi.String("string"),
Expiration: pulumi.String("string"),
},
},
Subkind: pulumi.String("string"),
})
var listResource = new List("listResource", ListArgs.builder()
.kind("string")
.name("string")
.items(ListItemArgs.builder()
.value("string")
.expiration("string")
.build())
.subkind("string")
.build());
list_resource = impart.List("listResource",
kind="string",
name="string",
items=[impart.ListItemArgs(
value="string",
expiration="string",
)],
subkind="string")
const listResource = new impart.List("listResource", {
kind: "string",
name: "string",
items: [{
value: "string",
expiration: "string",
}],
subkind: "string",
});
type: impart:List
properties:
items:
- expiration: string
value: string
kind: string
name: string
subkind: string
List Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The List resource accepts the following input properties:
- Kind string
- The list kind.
- Name string
- The name for this list.
- Items
List<List
Item> - The list items.
- Subkind string
- The list subkind.
- Kind string
- The list kind.
- Name string
- The name for this list.
- Items
[]List
Item Args - The list items.
- Subkind string
- The list subkind.
- kind String
- The list kind.
- name String
- The name for this list.
- items
List<List
Item> - The list items.
- subkind String
- The list subkind.
- kind string
- The list kind.
- name string
- The name for this list.
- items
List
Item[] - The list items.
- subkind string
- The list subkind.
- kind str
- The list kind.
- name str
- The name for this list.
- items
Sequence[List
Item Args] - The list items.
- subkind str
- The list subkind.
- kind String
- The list kind.
- name String
- The name for this list.
- items List<Property Map>
- The list items.
- subkind String
- The list subkind.
Outputs
All input properties are implicitly available as output properties. Additionally, the List 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 List Resource
Get an existing List 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?: ListState, opts?: CustomResourceOptions): List
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
items: Optional[Sequence[ListItemArgs]] = None,
kind: Optional[str] = None,
name: Optional[str] = None,
subkind: Optional[str] = None) -> List
func GetList(ctx *Context, name string, id IDInput, state *ListState, opts ...ResourceOption) (*List, error)
public static List Get(string name, Input<string> id, ListState? state, CustomResourceOptions? opts = null)
public static List get(String name, Output<String> id, ListState 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.
- Items
List<List
Item> - The list items.
- Kind string
- The list kind.
- Name string
- The name for this list.
- Subkind string
- The list subkind.
- Items
[]List
Item Args - The list items.
- Kind string
- The list kind.
- Name string
- The name for this list.
- Subkind string
- The list subkind.
- items
List<List
Item> - The list items.
- kind String
- The list kind.
- name String
- The name for this list.
- subkind String
- The list subkind.
- items
List
Item[] - The list items.
- kind string
- The list kind.
- name string
- The name for this list.
- subkind string
- The list subkind.
- items
Sequence[List
Item Args] - The list items.
- kind str
- The list kind.
- name str
- The name for this list.
- subkind str
- The list subkind.
- items List<Property Map>
- The list items.
- kind String
- The list kind.
- name String
- The name for this list.
- subkind String
- The list subkind.
Supporting Types
ListItem, ListItemArgs
- Value string
- The list item value.
- Expiration string
- The list item expiration.
- Value string
- The list item value.
- Expiration string
- The list item expiration.
- value String
- The list item value.
- expiration String
- The list item expiration.
- value string
- The list item value.
- expiration string
- The list item expiration.
- value str
- The list item value.
- expiration str
- The list item expiration.
- value String
- The list item value.
- expiration String
- The list item expiration.
Package Details
- Repository
- impart impart-security/pulumi-impart
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
impart
Terraform Provider.
Impart Security v0.5.0 published on Wednesday, Jun 12, 2024 by Impart Security