port.Entity
Explore with Pulumi AI
Entity resource
Create Entity Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Entity(name: string, args: EntityArgs, opts?: CustomResourceOptions);
@overload
def Entity(resource_name: str,
args: EntityArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Entity(resource_name: str,
opts: Optional[ResourceOptions] = None,
blueprint: Optional[str] = None,
icon: Optional[str] = None,
identifier: Optional[str] = None,
properties: Optional[EntityPropertiesArgs] = None,
relations: Optional[EntityRelationsArgs] = None,
run_id: Optional[str] = None,
teams: Optional[Sequence[str]] = None,
title: Optional[str] = None)
func NewEntity(ctx *Context, name string, args EntityArgs, opts ...ResourceOption) (*Entity, error)
public Entity(string name, EntityArgs args, CustomResourceOptions? opts = null)
public Entity(String name, EntityArgs args)
public Entity(String name, EntityArgs args, CustomResourceOptions options)
type: port:Entity
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 EntityArgs
- 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 EntityArgs
- 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 EntityArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EntityArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EntityArgs
- 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 entityResource = new Port.Entity("entityResource", new()
{
Blueprint = "string",
Icon = "string",
Identifier = "string",
Properties = new Port.Inputs.EntityPropertiesArgs
{
ArrayProps = new Port.Inputs.EntityPropertiesArrayPropsArgs
{
BooleanItems =
{
{ "string", new[]
{
false,
} },
},
NumberItems =
{
{ "string", new[]
{
0,
} },
},
ObjectItems =
{
{ "string", new[]
{
"string",
} },
},
StringItems =
{
{ "string", new[]
{
"string",
} },
},
},
BooleanProps =
{
{ "string", false },
},
NumberProps =
{
{ "string", 0 },
},
ObjectProps =
{
{ "string", "string" },
},
StringProps =
{
{ "string", "string" },
},
},
Relations = new Port.Inputs.EntityRelationsArgs
{
ManyRelations =
{
{ "string", new[]
{
"string",
} },
},
SingleRelations =
{
{ "string", "string" },
},
},
RunId = "string",
Teams = new[]
{
"string",
},
Title = "string",
});
example, err := port.NewEntity(ctx, "entityResource", &port.EntityArgs{
Blueprint: pulumi.String("string"),
Icon: pulumi.String("string"),
Identifier: pulumi.String("string"),
Properties: &port.EntityPropertiesArgs{
ArrayProps: &port.EntityPropertiesArrayPropsArgs{
BooleanItems: pulumi.BoolArrayMap{
"string": pulumi.BoolArray{
pulumi.Bool(false),
},
},
NumberItems: pulumi.Float64ArrayMap{
"string": pulumi.Float64Array{
pulumi.Float64(0),
},
},
ObjectItems: pulumi.StringArrayMap{
"string": pulumi.StringArray{
pulumi.String("string"),
},
},
StringItems: pulumi.StringArrayMap{
"string": pulumi.StringArray{
pulumi.String("string"),
},
},
},
BooleanProps: pulumi.BoolMap{
"string": pulumi.Bool(false),
},
NumberProps: pulumi.Float64Map{
"string": pulumi.Float64(0),
},
ObjectProps: pulumi.StringMap{
"string": pulumi.String("string"),
},
StringProps: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
Relations: &port.EntityRelationsArgs{
ManyRelations: pulumi.StringArrayMap{
"string": pulumi.StringArray{
pulumi.String("string"),
},
},
SingleRelations: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
RunId: pulumi.String("string"),
Teams: pulumi.StringArray{
pulumi.String("string"),
},
Title: pulumi.String("string"),
})
var entityResource = new Entity("entityResource", EntityArgs.builder()
.blueprint("string")
.icon("string")
.identifier("string")
.properties(EntityPropertiesArgs.builder()
.arrayProps(EntityPropertiesArrayPropsArgs.builder()
.booleanItems(Map.of("string", false))
.numberItems(Map.of("string", 0))
.objectItems(Map.of("string", "string"))
.stringItems(Map.of("string", "string"))
.build())
.booleanProps(Map.of("string", false))
.numberProps(Map.of("string", 0))
.objectProps(Map.of("string", "string"))
.stringProps(Map.of("string", "string"))
.build())
.relations(EntityRelationsArgs.builder()
.manyRelations(Map.of("string", "string"))
.singleRelations(Map.of("string", "string"))
.build())
.runId("string")
.teams("string")
.title("string")
.build());
entity_resource = port.Entity("entityResource",
blueprint="string",
icon="string",
identifier="string",
properties={
"array_props": {
"boolean_items": {
"string": [False],
},
"number_items": {
"string": [0],
},
"object_items": {
"string": ["string"],
},
"string_items": {
"string": ["string"],
},
},
"boolean_props": {
"string": False,
},
"number_props": {
"string": 0,
},
"object_props": {
"string": "string",
},
"string_props": {
"string": "string",
},
},
relations={
"many_relations": {
"string": ["string"],
},
"single_relations": {
"string": "string",
},
},
run_id="string",
teams=["string"],
title="string")
const entityResource = new port.Entity("entityResource", {
blueprint: "string",
icon: "string",
identifier: "string",
properties: {
arrayProps: {
booleanItems: {
string: [false],
},
numberItems: {
string: [0],
},
objectItems: {
string: ["string"],
},
stringItems: {
string: ["string"],
},
},
booleanProps: {
string: false,
},
numberProps: {
string: 0,
},
objectProps: {
string: "string",
},
stringProps: {
string: "string",
},
},
relations: {
manyRelations: {
string: ["string"],
},
singleRelations: {
string: "string",
},
},
runId: "string",
teams: ["string"],
title: "string",
});
type: port:Entity
properties:
blueprint: string
icon: string
identifier: string
properties:
arrayProps:
booleanItems:
string:
- false
numberItems:
string:
- 0
objectItems:
string:
- string
stringItems:
string:
- string
booleanProps:
string: false
numberProps:
string: 0
objectProps:
string: string
stringProps:
string: string
relations:
manyRelations:
string:
- string
singleRelations:
string: string
runId: string
teams:
- string
title: string
Entity 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 Entity resource accepts the following input properties:
- Blueprint string
- The blueprint identifier the entity relates to
- Icon string
- The icon of the entity
- Identifier string
- The identifier of the entity
- Properties
port_
labs. Port. Inputs. Entity Properties - The properties of the entity
- Relations
port_
labs. Port. Inputs. Entity Relations - The relations of the entity
- Run
Id string - The runID of the action run that created the entity
- Teams List<string>
- The teams the entity belongs to
- Title string
- The title of the entity
- Blueprint string
- The blueprint identifier the entity relates to
- Icon string
- The icon of the entity
- Identifier string
- The identifier of the entity
- Properties
Entity
Properties Args - The properties of the entity
- Relations
Entity
Relations Args - The relations of the entity
- Run
Id string - The runID of the action run that created the entity
- Teams []string
- The teams the entity belongs to
- Title string
- The title of the entity
- blueprint String
- The blueprint identifier the entity relates to
- icon String
- The icon of the entity
- identifier String
- The identifier of the entity
- properties
Entity
Properties - The properties of the entity
- relations
Entity
Relations - The relations of the entity
- run
Id String - The runID of the action run that created the entity
- teams List<String>
- The teams the entity belongs to
- title String
- The title of the entity
- blueprint string
- The blueprint identifier the entity relates to
- icon string
- The icon of the entity
- identifier string
- The identifier of the entity
- properties
Entity
Properties - The properties of the entity
- relations
Entity
Relations - The relations of the entity
- run
Id string - The runID of the action run that created the entity
- teams string[]
- The teams the entity belongs to
- title string
- The title of the entity
- blueprint str
- The blueprint identifier the entity relates to
- icon str
- The icon of the entity
- identifier str
- The identifier of the entity
- properties
Entity
Properties Args - The properties of the entity
- relations
Entity
Relations Args - The relations of the entity
- run_
id str - The runID of the action run that created the entity
- teams Sequence[str]
- The teams the entity belongs to
- title str
- The title of the entity
- blueprint String
- The blueprint identifier the entity relates to
- icon String
- The icon of the entity
- identifier String
- The identifier of the entity
- properties Property Map
- The properties of the entity
- relations Property Map
- The relations of the entity
- run
Id String - The runID of the action run that created the entity
- teams List<String>
- The teams the entity belongs to
- title String
- The title of the entity
Outputs
All input properties are implicitly available as output properties. Additionally, the Entity resource produces the following output properties:
- created_
at str - The creation date of the entity
- created_
by str - The creator of the entity
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - The last update date of the entity
- updated_
by str - The last updater of the entity
Look up Existing Entity Resource
Get an existing Entity 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?: EntityState, opts?: CustomResourceOptions): Entity
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
blueprint: Optional[str] = None,
created_at: Optional[str] = None,
created_by: Optional[str] = None,
icon: Optional[str] = None,
identifier: Optional[str] = None,
properties: Optional[EntityPropertiesArgs] = None,
relations: Optional[EntityRelationsArgs] = None,
run_id: Optional[str] = None,
teams: Optional[Sequence[str]] = None,
title: Optional[str] = None,
updated_at: Optional[str] = None,
updated_by: Optional[str] = None) -> Entity
func GetEntity(ctx *Context, name string, id IDInput, state *EntityState, opts ...ResourceOption) (*Entity, error)
public static Entity Get(string name, Input<string> id, EntityState? state, CustomResourceOptions? opts = null)
public static Entity get(String name, Output<String> id, EntityState 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.
- Blueprint string
- The blueprint identifier the entity relates to
- Created
At string - The creation date of the entity
- Created
By string - The creator of the entity
- Icon string
- The icon of the entity
- Identifier string
- The identifier of the entity
- Properties
port_
labs. Port. Inputs. Entity Properties - The properties of the entity
- Relations
port_
labs. Port. Inputs. Entity Relations - The relations of the entity
- Run
Id string - The runID of the action run that created the entity
- Teams List<string>
- The teams the entity belongs to
- Title string
- The title of the entity
- Updated
At string - The last update date of the entity
- Updated
By string - The last updater of the entity
- Blueprint string
- The blueprint identifier the entity relates to
- Created
At string - The creation date of the entity
- Created
By string - The creator of the entity
- Icon string
- The icon of the entity
- Identifier string
- The identifier of the entity
- Properties
Entity
Properties Args - The properties of the entity
- Relations
Entity
Relations Args - The relations of the entity
- Run
Id string - The runID of the action run that created the entity
- Teams []string
- The teams the entity belongs to
- Title string
- The title of the entity
- Updated
At string - The last update date of the entity
- Updated
By string - The last updater of the entity
- blueprint String
- The blueprint identifier the entity relates to
- created
At String - The creation date of the entity
- created
By String - The creator of the entity
- icon String
- The icon of the entity
- identifier String
- The identifier of the entity
- properties
Entity
Properties - The properties of the entity
- relations
Entity
Relations - The relations of the entity
- run
Id String - The runID of the action run that created the entity
- teams List<String>
- The teams the entity belongs to
- title String
- The title of the entity
- updated
At String - The last update date of the entity
- updated
By String - The last updater of the entity
- blueprint string
- The blueprint identifier the entity relates to
- created
At string - The creation date of the entity
- created
By string - The creator of the entity
- icon string
- The icon of the entity
- identifier string
- The identifier of the entity
- properties
Entity
Properties - The properties of the entity
- relations
Entity
Relations - The relations of the entity
- run
Id string - The runID of the action run that created the entity
- teams string[]
- The teams the entity belongs to
- title string
- The title of the entity
- updated
At string - The last update date of the entity
- updated
By string - The last updater of the entity
- blueprint str
- The blueprint identifier the entity relates to
- created_
at str - The creation date of the entity
- created_
by str - The creator of the entity
- icon str
- The icon of the entity
- identifier str
- The identifier of the entity
- properties
Entity
Properties Args - The properties of the entity
- relations
Entity
Relations Args - The relations of the entity
- run_
id str - The runID of the action run that created the entity
- teams Sequence[str]
- The teams the entity belongs to
- title str
- The title of the entity
- updated_
at str - The last update date of the entity
- updated_
by str - The last updater of the entity
- blueprint String
- The blueprint identifier the entity relates to
- created
At String - The creation date of the entity
- created
By String - The creator of the entity
- icon String
- The icon of the entity
- identifier String
- The identifier of the entity
- properties Property Map
- The properties of the entity
- relations Property Map
- The relations of the entity
- run
Id String - The runID of the action run that created the entity
- teams List<String>
- The teams the entity belongs to
- title String
- The title of the entity
- updated
At String - The last update date of the entity
- updated
By String - The last updater of the entity
Supporting Types
EntityProperties, EntityPropertiesArgs
- Array
Props port_labs. Port. Inputs. Entity Properties Array Props - The array properties of the entity
- Boolean
Props Dictionary<string, bool> - The bool properties of the entity
- Number
Props Dictionary<string, double> - The number properties of the entity
- Object
Props Dictionary<string, string> - The object properties of the entity
- String
Props Dictionary<string, string> - The string properties of the entity
- Array
Props EntityProperties Array Props - The array properties of the entity
- Boolean
Props map[string]bool - The bool properties of the entity
- Number
Props map[string]float64 - The number properties of the entity
- Object
Props map[string]string - The object properties of the entity
- String
Props map[string]string - The string properties of the entity
- array
Props EntityProperties Array Props - The array properties of the entity
- boolean
Props Map<String,Boolean> - The bool properties of the entity
- number
Props Map<String,Double> - The number properties of the entity
- object
Props Map<String,String> - The object properties of the entity
- string
Props Map<String,String> - The string properties of the entity
- array
Props EntityProperties Array Props - The array properties of the entity
- boolean
Props {[key: string]: boolean} - The bool properties of the entity
- number
Props {[key: string]: number} - The number properties of the entity
- object
Props {[key: string]: string} - The object properties of the entity
- string
Props {[key: string]: string} - The string properties of the entity
- array_
props EntityProperties Array Props - The array properties of the entity
- boolean_
props Mapping[str, bool] - The bool properties of the entity
- number_
props Mapping[str, float] - The number properties of the entity
- object_
props Mapping[str, str] - The object properties of the entity
- string_
props Mapping[str, str] - The string properties of the entity
- array
Props Property Map - The array properties of the entity
- boolean
Props Map<Boolean> - The bool properties of the entity
- number
Props Map<Number> - The number properties of the entity
- object
Props Map<String> - The object properties of the entity
- string
Props Map<String> - The string properties of the entity
EntityPropertiesArrayProps, EntityPropertiesArrayPropsArgs
- Boolean
Items Dictionary<string, ImmutableArray<bool>> - Number
Items Dictionary<string, ImmutableArray<double>> - Object
Items Dictionary<string, ImmutableArray<string>> - String
Items Dictionary<string, ImmutableArray<string>>
- Boolean
Items map[string][]bool - Number
Items map[string][]float64 - Object
Items map[string][]string - String
Items map[string][]string
- boolean
Items Map<String,List<Boolean>> - number
Items Map<String,List<Double>> - object
Items Map<String,List<String>> - string
Items Map<String,List<String>>
- boolean
Items {[key: string]: boolean[]} - number
Items {[key: string]: number[]} - object
Items {[key: string]: string[]} - string
Items {[key: string]: string[]}
- boolean_
items Mapping[str, Sequence[bool]] - number_
items Mapping[str, Sequence[float]] - object_
items Mapping[str, Sequence[str]] - string_
items Mapping[str, Sequence[str]]
- boolean
Items Map<List<Boolean>> - number
Items Map<List<Number>> - object
Items Map<List<String>> - string
Items Map<List<String>>
EntityRelations, EntityRelationsArgs
- Many
Relations Dictionary<string, ImmutableArray<string>> - The many relation of the entity
- Single
Relations Dictionary<string, string> - The single relation of the entity
- Many
Relations map[string][]string - The many relation of the entity
- Single
Relations map[string]string - The single relation of the entity
- many
Relations Map<String,List<String>> - The many relation of the entity
- single
Relations Map<String,String> - The single relation of the entity
- many
Relations {[key: string]: string[]} - The many relation of the entity
- single
Relations {[key: string]: string} - The single relation of the entity
- many_
relations Mapping[str, Sequence[str]] - The many relation of the entity
- single_
relations Mapping[str, str] - The single relation of the entity
- many
Relations Map<List<String>> - The many relation of the entity
- single
Relations Map<String> - The single relation of the entity
Package Details
- Repository
- port port-labs/pulumi-port
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
port-labs
Terraform Provider.