port.AggregationProperties
Explore with Pulumi AI
This resource allows you to manage aggregation properties of a blueprint.
See the Port documentation for more information about aggregation properties.
Supported Methods:
- count_entities - Count the entities of the target blueprint
- average_entities - Average the entities of the target blueprint by time periods
- average_by_property - Calculate the average by property value of the target entities
- aggregate_by_property - Calculate the aggregate by property value of the target entities, such as sum, min, max, median
Example Usage
Create a parent blueprint with a child blueprint and an aggregation property to count the parent kids:
import * as pulumi from "@pulumi/pulumi";
import * as port from "@pulumi/port";
const parentBlueprint = new port.index.Port_blueprint("parentBlueprint", {
title: "Parent Blueprint",
icon: "Terraform",
identifier: "parent",
description: "",
properties: {
numberProps: {
age: {
title: "Age",
},
},
},
});
const childBlueprint = new port.index.Port_blueprint("childBlueprint", {
title: "Child Blueprint",
icon: "Terraform",
identifier: "child",
description: "",
properties: {
numberProps: {
age: {
title: "Age",
},
},
},
relations: {
parent: {
title: "Parent",
target: parentBlueprint.identifier,
},
},
});
const parentAggregationProperties = new port.index.Port_aggregation_properties("parentAggregationProperties", {
blueprintIdentifier: parentBlueprint.identifier,
properties: {
count_kids: {
targetBlueprintIdentifier: childBlueprint.identifier,
title: "Count Kids",
icon: "Terraform",
description: "Count Kids",
method: {
countEntities: true,
},
},
},
});
import pulumi
import pulumi_port as port
parent_blueprint = port.index.Port_blueprint("parentBlueprint",
title=Parent Blueprint,
icon=Terraform,
identifier=parent,
description=,
properties={
numberProps: {
age: {
title: Age,
},
},
})
child_blueprint = port.index.Port_blueprint("childBlueprint",
title=Child Blueprint,
icon=Terraform,
identifier=child,
description=,
properties={
numberProps: {
age: {
title: Age,
},
},
},
relations={
parent: {
title: Parent,
target: parent_blueprint.identifier,
},
})
parent_aggregation_properties = port.index.Port_aggregation_properties("parentAggregationProperties",
blueprint_identifier=parent_blueprint.identifier,
properties={
count_kids: {
targetBlueprintIdentifier: child_blueprint.identifier,
title: Count Kids,
icon: Terraform,
description: Count Kids,
method: {
countEntities: True,
},
},
})
package main
import (
"github.com/port-labs/pulumi-port/sdk/v2/go/port"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
parentBlueprint, err := port.NewPort_blueprint(ctx, "parentBlueprint", &port.Port_blueprintArgs{
Title: "Parent Blueprint",
Icon: "Terraform",
Identifier: "parent",
Description: "",
Properties: map[string]interface{}{
"numberProps": map[string]interface{}{
"age": map[string]interface{}{
"title": "Age",
},
},
},
})
if err != nil {
return err
}
childBlueprint, err := port.NewPort_blueprint(ctx, "childBlueprint", &port.Port_blueprintArgs{
Title: "Child Blueprint",
Icon: "Terraform",
Identifier: "child",
Description: "",
Properties: map[string]interface{}{
"numberProps": map[string]interface{}{
"age": map[string]interface{}{
"title": "Age",
},
},
},
Relations: map[string]interface{}{
"parent": map[string]interface{}{
"title": "Parent",
"target": parentBlueprint.Identifier,
},
},
})
if err != nil {
return err
}
_, err = port.NewPort_aggregation_properties(ctx, "parentAggregationProperties", &port.Port_aggregation_propertiesArgs{
BlueprintIdentifier: parentBlueprint.Identifier,
Properties: map[string]interface{}{
"count_kids": map[string]interface{}{
"targetBlueprintIdentifier": childBlueprint.Identifier,
"title": "Count Kids",
"icon": "Terraform",
"description": "Count Kids",
"method": map[string]interface{}{
"countEntities": true,
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Port = Pulumi.Port;
return await Deployment.RunAsync(() =>
{
var parentBlueprint = new Port.Index.Port_blueprint("parentBlueprint", new()
{
Title = "Parent Blueprint",
Icon = "Terraform",
Identifier = "parent",
Description = "",
Properties =
{
{ "numberProps",
{
{ "age",
{
{ "title", "Age" },
} },
} },
},
});
var childBlueprint = new Port.Index.Port_blueprint("childBlueprint", new()
{
Title = "Child Blueprint",
Icon = "Terraform",
Identifier = "child",
Description = "",
Properties =
{
{ "numberProps",
{
{ "age",
{
{ "title", "Age" },
} },
} },
},
Relations =
{
{ "parent",
{
{ "title", "Parent" },
{ "target", parentBlueprint.Identifier },
} },
},
});
var parentAggregationProperties = new Port.Index.Port_aggregation_properties("parentAggregationProperties", new()
{
BlueprintIdentifier = parentBlueprint.Identifier,
Properties =
{
{ "count_kids",
{
{ "targetBlueprintIdentifier", childBlueprint.Identifier },
{ "title", "Count Kids" },
{ "icon", "Terraform" },
{ "description", "Count Kids" },
{ "method",
{
{ "countEntities", true },
} },
} },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.port.port_blueprint;
import com.pulumi.port.Port_blueprintArgs;
import com.pulumi.port.port_aggregation_properties;
import com.pulumi.port.Port_aggregation_propertiesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var parentBlueprint = new Port_blueprint("parentBlueprint", Port_blueprintArgs.builder()
.title("Parent Blueprint")
.icon("Terraform")
.identifier("parent")
.description("")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
var childBlueprint = new Port_blueprint("childBlueprint", Port_blueprintArgs.builder()
.title("Child Blueprint")
.icon("Terraform")
.identifier("child")
.description("")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.relations(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
var parentAggregationProperties = new Port_aggregation_properties("parentAggregationProperties", Port_aggregation_propertiesArgs.builder()
.blueprintIdentifier(parentBlueprint.identifier())
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
}
}
resources:
parentBlueprint:
type: port:port_blueprint
properties:
title: Parent Blueprint
icon: Terraform
identifier: parent
description:
properties:
numberProps:
age:
title: Age
childBlueprint:
type: port:port_blueprint
properties:
title: Child Blueprint
icon: Terraform
identifier: child
description:
properties:
numberProps:
age:
title: Age
relations:
parent:
title: Parent
target: ${parentBlueprint.identifier}
parentAggregationProperties:
type: port:port_aggregation_properties
properties:
blueprintIdentifier: ${parentBlueprint.identifier}
properties:
count_kids:
targetBlueprintIdentifier: ${childBlueprint.identifier}
title: Count Kids
icon: Terraform
description: Count Kids
method:
countEntities: true
Create a parent blueprint with a child blueprint and an aggregation property to calculate the average avg of the parent kids age:
import * as pulumi from "@pulumi/pulumi";
import * as port from "@pulumi/port";
const parentBlueprint = new port.index.Port_blueprint("parentBlueprint", {
title: "Parent Blueprint",
icon: "Terraform",
identifier: "parent",
description: "",
properties: {
numberProps: {
age: {
title: "Age",
},
},
},
});
const childBlueprint = new port.index.Port_blueprint("childBlueprint", {
title: "Child Blueprint",
icon: "Terraform",
identifier: "child",
description: "",
properties: {
numberProps: {
age: {
title: "Age",
},
},
},
relations: {
parent: {
title: "Parent",
target: parentBlueprint.identifier,
},
},
});
const parentAggregationProperties = new port.index.Port_aggregation_properties("parentAggregationProperties", {
blueprintIdentifier: parentBlueprint.identifier,
properties: {
averageKidsAge: {
targetBlueprintIdentifier: childBlueprint.identifier,
title: "Average Kids Age",
icon: "Terraform",
description: "Average Kids Age",
method: {
averageByProperty: {
averageOf: "total",
measureTimeBy: "$createdAt",
property: "age",
},
},
},
},
});
import pulumi
import pulumi_port as port
parent_blueprint = port.index.Port_blueprint("parentBlueprint",
title=Parent Blueprint,
icon=Terraform,
identifier=parent,
description=,
properties={
numberProps: {
age: {
title: Age,
},
},
})
child_blueprint = port.index.Port_blueprint("childBlueprint",
title=Child Blueprint,
icon=Terraform,
identifier=child,
description=,
properties={
numberProps: {
age: {
title: Age,
},
},
},
relations={
parent: {
title: Parent,
target: parent_blueprint.identifier,
},
})
parent_aggregation_properties = port.index.Port_aggregation_properties("parentAggregationProperties",
blueprint_identifier=parent_blueprint.identifier,
properties={
averageKidsAge: {
targetBlueprintIdentifier: child_blueprint.identifier,
title: Average Kids Age,
icon: Terraform,
description: Average Kids Age,
method: {
averageByProperty: {
averageOf: total,
measureTimeBy: $createdAt,
property: age,
},
},
},
})
package main
import (
"github.com/port-labs/pulumi-port/sdk/v2/go/port"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
parentBlueprint, err := port.NewPort_blueprint(ctx, "parentBlueprint", &port.Port_blueprintArgs{
Title: "Parent Blueprint",
Icon: "Terraform",
Identifier: "parent",
Description: "",
Properties: map[string]interface{}{
"numberProps": map[string]interface{}{
"age": map[string]interface{}{
"title": "Age",
},
},
},
})
if err != nil {
return err
}
childBlueprint, err := port.NewPort_blueprint(ctx, "childBlueprint", &port.Port_blueprintArgs{
Title: "Child Blueprint",
Icon: "Terraform",
Identifier: "child",
Description: "",
Properties: map[string]interface{}{
"numberProps": map[string]interface{}{
"age": map[string]interface{}{
"title": "Age",
},
},
},
Relations: map[string]interface{}{
"parent": map[string]interface{}{
"title": "Parent",
"target": parentBlueprint.Identifier,
},
},
})
if err != nil {
return err
}
_, err = port.NewPort_aggregation_properties(ctx, "parentAggregationProperties", &port.Port_aggregation_propertiesArgs{
BlueprintIdentifier: parentBlueprint.Identifier,
Properties: map[string]interface{}{
"averageKidsAge": map[string]interface{}{
"targetBlueprintIdentifier": childBlueprint.Identifier,
"title": "Average Kids Age",
"icon": "Terraform",
"description": "Average Kids Age",
"method": map[string]interface{}{
"averageByProperty": map[string]interface{}{
"averageOf": "total",
"measureTimeBy": "$createdAt",
"property": "age",
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Port = Pulumi.Port;
return await Deployment.RunAsync(() =>
{
var parentBlueprint = new Port.Index.Port_blueprint("parentBlueprint", new()
{
Title = "Parent Blueprint",
Icon = "Terraform",
Identifier = "parent",
Description = "",
Properties =
{
{ "numberProps",
{
{ "age",
{
{ "title", "Age" },
} },
} },
},
});
var childBlueprint = new Port.Index.Port_blueprint("childBlueprint", new()
{
Title = "Child Blueprint",
Icon = "Terraform",
Identifier = "child",
Description = "",
Properties =
{
{ "numberProps",
{
{ "age",
{
{ "title", "Age" },
} },
} },
},
Relations =
{
{ "parent",
{
{ "title", "Parent" },
{ "target", parentBlueprint.Identifier },
} },
},
});
var parentAggregationProperties = new Port.Index.Port_aggregation_properties("parentAggregationProperties", new()
{
BlueprintIdentifier = parentBlueprint.Identifier,
Properties =
{
{ "averageKidsAge",
{
{ "targetBlueprintIdentifier", childBlueprint.Identifier },
{ "title", "Average Kids Age" },
{ "icon", "Terraform" },
{ "description", "Average Kids Age" },
{ "method",
{
{ "averageByProperty",
{
{ "averageOf", "total" },
{ "measureTimeBy", "$createdAt" },
{ "property", "age" },
} },
} },
} },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.port.port_blueprint;
import com.pulumi.port.Port_blueprintArgs;
import com.pulumi.port.port_aggregation_properties;
import com.pulumi.port.Port_aggregation_propertiesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var parentBlueprint = new Port_blueprint("parentBlueprint", Port_blueprintArgs.builder()
.title("Parent Blueprint")
.icon("Terraform")
.identifier("parent")
.description("")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
var childBlueprint = new Port_blueprint("childBlueprint", Port_blueprintArgs.builder()
.title("Child Blueprint")
.icon("Terraform")
.identifier("child")
.description("")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.relations(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
var parentAggregationProperties = new Port_aggregation_properties("parentAggregationProperties", Port_aggregation_propertiesArgs.builder()
.blueprintIdentifier(parentBlueprint.identifier())
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
}
}
resources:
parentBlueprint:
type: port:port_blueprint
properties:
title: Parent Blueprint
icon: Terraform
identifier: parent
description:
properties:
numberProps:
age:
title: Age
childBlueprint:
type: port:port_blueprint
properties:
title: Child Blueprint
icon: Terraform
identifier: child
description:
properties:
numberProps:
age:
title: Age
relations:
parent:
title: Parent
target: ${parentBlueprint.identifier}
parentAggregationProperties:
type: port:port_aggregation_properties
properties:
blueprintIdentifier: ${parentBlueprint.identifier}
properties:
averageKidsAge:
targetBlueprintIdentifier: ${childBlueprint.identifier}
title: Average Kids Age
icon: Terraform
description: Average Kids Age
method:
averageByProperty:
averageOf: total
measureTimeBy: $createdAt
property: age
Create a repository blueprint and a pull request blueprint and an aggregation property to calculate the average of pull requests created per day:
import * as pulumi from "@pulumi/pulumi";
import * as port from "@pulumi/port";
const repositoryBlueprint = new port.index.Port_blueprint("repositoryBlueprint", {
title: "Repository Blueprint",
icon: "Terraform",
identifier: "repository",
description: "",
});
const pullRequestBlueprint = new port.index.Port_blueprint("pullRequestBlueprint", {
title: "Pull Request Blueprint",
icon: "Terraform",
identifier: "pull_request",
description: "",
properties: {
stringProps: {
status: {
title: "Status",
},
},
},
relations: {
repository: {
title: "Repository",
target: repositoryBlueprint.identifier,
},
},
});
const repositoryAggregationProperties = new port.index.Port_aggregation_properties("repositoryAggregationProperties", {
blueprintIdentifier: repositoryBlueprint.identifier,
properties: {
pull_requests_per_day: {
targetBlueprintIdentifier: pullRequestBlueprint.identifier,
title: "Pull Requests Per Day",
icon: "Terraform",
description: "Pull Requests Per Day",
method: {
averageEntities: {
averageOf: "day",
measureTimeBy: "$createdAt",
},
},
},
},
});
import pulumi
import pulumi_port as port
repository_blueprint = port.index.Port_blueprint("repositoryBlueprint",
title=Repository Blueprint,
icon=Terraform,
identifier=repository,
description=)
pull_request_blueprint = port.index.Port_blueprint("pullRequestBlueprint",
title=Pull Request Blueprint,
icon=Terraform,
identifier=pull_request,
description=,
properties={
stringProps: {
status: {
title: Status,
},
},
},
relations={
repository: {
title: Repository,
target: repository_blueprint.identifier,
},
})
repository_aggregation_properties = port.index.Port_aggregation_properties("repositoryAggregationProperties",
blueprint_identifier=repository_blueprint.identifier,
properties={
pull_requests_per_day: {
targetBlueprintIdentifier: pull_request_blueprint.identifier,
title: Pull Requests Per Day,
icon: Terraform,
description: Pull Requests Per Day,
method: {
averageEntities: {
averageOf: day,
measureTimeBy: $createdAt,
},
},
},
})
package main
import (
"github.com/port-labs/pulumi-port/sdk/v2/go/port"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
repositoryBlueprint, err := port.NewPort_blueprint(ctx, "repositoryBlueprint", &port.Port_blueprintArgs{
Title: "Repository Blueprint",
Icon: "Terraform",
Identifier: "repository",
Description: "",
})
if err != nil {
return err
}
pullRequestBlueprint, err := port.NewPort_blueprint(ctx, "pullRequestBlueprint", &port.Port_blueprintArgs{
Title: "Pull Request Blueprint",
Icon: "Terraform",
Identifier: "pull_request",
Description: "",
Properties: map[string]interface{}{
"stringProps": map[string]interface{}{
"status": map[string]interface{}{
"title": "Status",
},
},
},
Relations: map[string]interface{}{
"repository": map[string]interface{}{
"title": "Repository",
"target": repositoryBlueprint.Identifier,
},
},
})
if err != nil {
return err
}
_, err = port.NewPort_aggregation_properties(ctx, "repositoryAggregationProperties", &port.Port_aggregation_propertiesArgs{
BlueprintIdentifier: repositoryBlueprint.Identifier,
Properties: map[string]interface{}{
"pull_requests_per_day": map[string]interface{}{
"targetBlueprintIdentifier": pullRequestBlueprint.Identifier,
"title": "Pull Requests Per Day",
"icon": "Terraform",
"description": "Pull Requests Per Day",
"method": map[string]interface{}{
"averageEntities": map[string]interface{}{
"averageOf": "day",
"measureTimeBy": "$createdAt",
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Port = Pulumi.Port;
return await Deployment.RunAsync(() =>
{
var repositoryBlueprint = new Port.Index.Port_blueprint("repositoryBlueprint", new()
{
Title = "Repository Blueprint",
Icon = "Terraform",
Identifier = "repository",
Description = "",
});
var pullRequestBlueprint = new Port.Index.Port_blueprint("pullRequestBlueprint", new()
{
Title = "Pull Request Blueprint",
Icon = "Terraform",
Identifier = "pull_request",
Description = "",
Properties =
{
{ "stringProps",
{
{ "status",
{
{ "title", "Status" },
} },
} },
},
Relations =
{
{ "repository",
{
{ "title", "Repository" },
{ "target", repositoryBlueprint.Identifier },
} },
},
});
var repositoryAggregationProperties = new Port.Index.Port_aggregation_properties("repositoryAggregationProperties", new()
{
BlueprintIdentifier = repositoryBlueprint.Identifier,
Properties =
{
{ "pull_requests_per_day",
{
{ "targetBlueprintIdentifier", pullRequestBlueprint.Identifier },
{ "title", "Pull Requests Per Day" },
{ "icon", "Terraform" },
{ "description", "Pull Requests Per Day" },
{ "method",
{
{ "averageEntities",
{
{ "averageOf", "day" },
{ "measureTimeBy", "$createdAt" },
} },
} },
} },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.port.port_blueprint;
import com.pulumi.port.Port_blueprintArgs;
import com.pulumi.port.port_aggregation_properties;
import com.pulumi.port.Port_aggregation_propertiesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var repositoryBlueprint = new Port_blueprint("repositoryBlueprint", Port_blueprintArgs.builder()
.title("Repository Blueprint")
.icon("Terraform")
.identifier("repository")
.description("")
.build());
var pullRequestBlueprint = new Port_blueprint("pullRequestBlueprint", Port_blueprintArgs.builder()
.title("Pull Request Blueprint")
.icon("Terraform")
.identifier("pull_request")
.description("")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.relations(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
var repositoryAggregationProperties = new Port_aggregation_properties("repositoryAggregationProperties", Port_aggregation_propertiesArgs.builder()
.blueprintIdentifier(repositoryBlueprint.identifier())
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
}
}
resources:
repositoryBlueprint:
type: port:port_blueprint
properties:
title: Repository Blueprint
icon: Terraform
identifier: repository
description:
pullRequestBlueprint:
type: port:port_blueprint
properties:
title: Pull Request Blueprint
icon: Terraform
identifier: pull_request
description:
properties:
stringProps:
status:
title: Status
relations:
repository:
title: Repository
target: ${repositoryBlueprint.identifier}
repositoryAggregationProperties:
type: port:port_aggregation_properties
properties:
blueprintIdentifier: ${repositoryBlueprint.identifier}
properties:
pull_requests_per_day:
targetBlueprintIdentifier: ${pullRequestBlueprint.identifier}
title: Pull Requests Per Day
icon: Terraform
description: Pull Requests Per Day
method:
averageEntities:
averageOf: day
measureTimeBy: $createdAt
Create a repository blueprint and a pull request blueprint and an aggregation property to calculate the average of fix pull request per month:
To do that we will add a query to the aggregation property to filter only pull requests with fixed title:
import * as pulumi from "@pulumi/pulumi";
import * as port from "@pulumi/port";
const repositoryBlueprint = new port.index.Port_blueprint("repositoryBlueprint", {
title: "Repository Blueprint",
icon: "Terraform",
identifier: "repository",
description: "",
});
const pullRequestBlueprint = new port.index.Port_blueprint("pullRequestBlueprint", {
title: "Pull Request Blueprint",
icon: "Terraform",
identifier: "pull_request",
description: "",
properties: {
stringProps: {
status: {
title: "Status",
},
},
},
relations: {
repository: {
title: "Repository",
target: repositoryBlueprint.identifier,
},
},
});
const repositoryAggregationProperties = new port.index.Port_aggregation_properties("repositoryAggregationProperties", {
blueprintIdentifier: repositoryBlueprint.identifier,
properties: {
fix_pull_requests_count: {
targetBlueprintIdentifier: pullRequestBlueprint.identifier,
title: "Pull Requests Per Day",
icon: "Terraform",
description: "Pull Requests Per Day",
method: {
averageEntities: {
averageOf: "month",
measureTimeBy: "$createdAt",
},
},
query: JSON.stringify({
combinator: "and",
rules: [{
property: "$title",
operator: "ContainsAny",
value: [
"fix",
"fixed",
"fixing",
"Fix",
],
}],
}),
},
},
});
import pulumi
import json
import pulumi_port as port
repository_blueprint = port.index.Port_blueprint("repositoryBlueprint",
title=Repository Blueprint,
icon=Terraform,
identifier=repository,
description=)
pull_request_blueprint = port.index.Port_blueprint("pullRequestBlueprint",
title=Pull Request Blueprint,
icon=Terraform,
identifier=pull_request,
description=,
properties={
stringProps: {
status: {
title: Status,
},
},
},
relations={
repository: {
title: Repository,
target: repository_blueprint.identifier,
},
})
repository_aggregation_properties = port.index.Port_aggregation_properties("repositoryAggregationProperties",
blueprint_identifier=repository_blueprint.identifier,
properties={
fix_pull_requests_count: {
targetBlueprintIdentifier: pull_request_blueprint.identifier,
title: Pull Requests Per Day,
icon: Terraform,
description: Pull Requests Per Day,
method: {
averageEntities: {
averageOf: month,
measureTimeBy: $createdAt,
},
},
query: json.dumps({
combinator: and,
rules: [{
property: $title,
operator: ContainsAny,
value: [
fix,
fixed,
fixing,
Fix,
],
}],
}),
},
})
package main
import (
"encoding/json"
"github.com/port-labs/pulumi-port/sdk/v2/go/port"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
repositoryBlueprint, err := port.NewPort_blueprint(ctx, "repositoryBlueprint", &port.Port_blueprintArgs{
Title: "Repository Blueprint",
Icon: "Terraform",
Identifier: "repository",
Description: "",
})
if err != nil {
return err
}
pullRequestBlueprint, err := port.NewPort_blueprint(ctx, "pullRequestBlueprint", &port.Port_blueprintArgs{
Title: "Pull Request Blueprint",
Icon: "Terraform",
Identifier: "pull_request",
Description: "",
Properties: map[string]interface{}{
"stringProps": map[string]interface{}{
"status": map[string]interface{}{
"title": "Status",
},
},
},
Relations: map[string]interface{}{
"repository": map[string]interface{}{
"title": "Repository",
"target": repositoryBlueprint.Identifier,
},
},
})
if err != nil {
return err
}
_, err = port.NewPort_aggregation_properties(ctx, "repositoryAggregationProperties", &port.Port_aggregation_propertiesArgs{
BlueprintIdentifier: repositoryBlueprint.Identifier,
Properties: map[string]interface{}{
"fix_pull_requests_count": map[string]interface{}{
"targetBlueprintIdentifier": pullRequestBlueprint.Identifier,
"title": "Pull Requests Per Day",
"icon": "Terraform",
"description": "Pull Requests Per Day",
"method": map[string]interface{}{
"averageEntities": map[string]interface{}{
"averageOf": "month",
"measureTimeBy": "$createdAt",
},
},
"query": %!v(PANIC=Format method: fatal: An assertion has failed: unlowered function toJSON),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Port = Pulumi.Port;
return await Deployment.RunAsync(() =>
{
var repositoryBlueprint = new Port.Index.Port_blueprint("repositoryBlueprint", new()
{
Title = "Repository Blueprint",
Icon = "Terraform",
Identifier = "repository",
Description = "",
});
var pullRequestBlueprint = new Port.Index.Port_blueprint("pullRequestBlueprint", new()
{
Title = "Pull Request Blueprint",
Icon = "Terraform",
Identifier = "pull_request",
Description = "",
Properties =
{
{ "stringProps",
{
{ "status",
{
{ "title", "Status" },
} },
} },
},
Relations =
{
{ "repository",
{
{ "title", "Repository" },
{ "target", repositoryBlueprint.Identifier },
} },
},
});
var repositoryAggregationProperties = new Port.Index.Port_aggregation_properties("repositoryAggregationProperties", new()
{
BlueprintIdentifier = repositoryBlueprint.Identifier,
Properties =
{
{ "fix_pull_requests_count",
{
{ "targetBlueprintIdentifier", pullRequestBlueprint.Identifier },
{ "title", "Pull Requests Per Day" },
{ "icon", "Terraform" },
{ "description", "Pull Requests Per Day" },
{ "method",
{
{ "averageEntities",
{
{ "averageOf", "month" },
{ "measureTimeBy", "$createdAt" },
} },
} },
{ "query", JsonSerializer.Serialize(new Dictionary<string, object?>
{
["combinator"] = "and",
["rules"] = new[]
{
new Dictionary<string, object?>
{
["property"] = "$title",
["operator"] = "ContainsAny",
["value"] = new[]
{
"fix",
"fixed",
"fixing",
"Fix",
},
},
},
}) },
} },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.port.port_blueprint;
import com.pulumi.port.Port_blueprintArgs;
import com.pulumi.port.port_aggregation_properties;
import com.pulumi.port.Port_aggregation_propertiesArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var repositoryBlueprint = new Port_blueprint("repositoryBlueprint", Port_blueprintArgs.builder()
.title("Repository Blueprint")
.icon("Terraform")
.identifier("repository")
.description("")
.build());
var pullRequestBlueprint = new Port_blueprint("pullRequestBlueprint", Port_blueprintArgs.builder()
.title("Pull Request Blueprint")
.icon("Terraform")
.identifier("pull_request")
.description("")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.relations(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
var repositoryAggregationProperties = new Port_aggregation_properties("repositoryAggregationProperties", Port_aggregation_propertiesArgs.builder()
.blueprintIdentifier(repositoryBlueprint.identifier())
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
}
}
resources:
repositoryBlueprint:
type: port:port_blueprint
properties:
title: Repository Blueprint
icon: Terraform
identifier: repository
description:
pullRequestBlueprint:
type: port:port_blueprint
properties:
title: Pull Request Blueprint
icon: Terraform
identifier: pull_request
description:
properties:
stringProps:
status:
title: Status
relations:
repository:
title: Repository
target: ${repositoryBlueprint.identifier}
repositoryAggregationProperties:
type: port:port_aggregation_properties
properties:
blueprintIdentifier: ${repositoryBlueprint.identifier}
properties:
fix_pull_requests_count:
targetBlueprintIdentifier: ${pullRequestBlueprint.identifier}
title: Pull Requests Per Day
icon: Terraform
description: Pull Requests Per Day
method:
averageEntities:
averageOf: month
measureTimeBy: $createdAt
query:
fn::toJSON:
combinator: and
rules:
- property: $title
operator: ContainsAny
value:
- fix
- fixed
- fixing
- Fix
Create multiple aggregation properties in one resource:
import * as pulumi from "@pulumi/pulumi";
import * as port from "@pulumi/port";
const repositoryBlueprint = new port.index.Port_blueprint("repositoryBlueprint", {
title: "Repository Blueprint",
icon: "Terraform",
identifier: "repository",
description: "",
});
const pullRequestBlueprint = new port.index.Port_blueprint("pullRequestBlueprint", {
title: "Pull Request Blueprint",
icon: "Terraform",
identifier: "pull_request",
description: "",
properties: {
stringProps: {
status: {
title: "Status",
},
},
},
relations: {
repository: {
title: "Repository",
target: repositoryBlueprint.identifier,
},
},
});
const repositoryAggregationProperties = new port.index.Port_aggregation_properties("repositoryAggregationProperties", {
blueprintIdentifier: repositoryBlueprint.identifier,
properties: {
pull_requests_per_day: {
targetBlueprintIdentifier: pullRequestBlueprint.identifier,
title: "Pull Requests Per Day",
icon: "Terraform",
description: "Pull Requests Per Day",
method: {
averageEntities: {
averageOf: "day",
measureTimeBy: "$createdAt",
},
},
},
overall_pull_requests_count: {
targetBlueprintIdentifier: pullRequestBlueprint.identifier,
title: "Overall Pull Requests Count",
icon: "Terraform",
description: "Overall Pull Requests Count",
method: {
countEntities: true,
},
},
},
});
import pulumi
import pulumi_port as port
repository_blueprint = port.index.Port_blueprint("repositoryBlueprint",
title=Repository Blueprint,
icon=Terraform,
identifier=repository,
description=)
pull_request_blueprint = port.index.Port_blueprint("pullRequestBlueprint",
title=Pull Request Blueprint,
icon=Terraform,
identifier=pull_request,
description=,
properties={
stringProps: {
status: {
title: Status,
},
},
},
relations={
repository: {
title: Repository,
target: repository_blueprint.identifier,
},
})
repository_aggregation_properties = port.index.Port_aggregation_properties("repositoryAggregationProperties",
blueprint_identifier=repository_blueprint.identifier,
properties={
pull_requests_per_day: {
targetBlueprintIdentifier: pull_request_blueprint.identifier,
title: Pull Requests Per Day,
icon: Terraform,
description: Pull Requests Per Day,
method: {
averageEntities: {
averageOf: day,
measureTimeBy: $createdAt,
},
},
},
overall_pull_requests_count: {
targetBlueprintIdentifier: pull_request_blueprint.identifier,
title: Overall Pull Requests Count,
icon: Terraform,
description: Overall Pull Requests Count,
method: {
countEntities: True,
},
},
})
package main
import (
"github.com/port-labs/pulumi-port/sdk/v2/go/port"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
repositoryBlueprint, err := port.NewPort_blueprint(ctx, "repositoryBlueprint", &port.Port_blueprintArgs{
Title: "Repository Blueprint",
Icon: "Terraform",
Identifier: "repository",
Description: "",
})
if err != nil {
return err
}
pullRequestBlueprint, err := port.NewPort_blueprint(ctx, "pullRequestBlueprint", &port.Port_blueprintArgs{
Title: "Pull Request Blueprint",
Icon: "Terraform",
Identifier: "pull_request",
Description: "",
Properties: map[string]interface{}{
"stringProps": map[string]interface{}{
"status": map[string]interface{}{
"title": "Status",
},
},
},
Relations: map[string]interface{}{
"repository": map[string]interface{}{
"title": "Repository",
"target": repositoryBlueprint.Identifier,
},
},
})
if err != nil {
return err
}
_, err = port.NewPort_aggregation_properties(ctx, "repositoryAggregationProperties", &port.Port_aggregation_propertiesArgs{
BlueprintIdentifier: repositoryBlueprint.Identifier,
Properties: map[string]interface{}{
"pull_requests_per_day": map[string]interface{}{
"targetBlueprintIdentifier": pullRequestBlueprint.Identifier,
"title": "Pull Requests Per Day",
"icon": "Terraform",
"description": "Pull Requests Per Day",
"method": map[string]interface{}{
"averageEntities": map[string]interface{}{
"averageOf": "day",
"measureTimeBy": "$createdAt",
},
},
},
"overall_pull_requests_count": map[string]interface{}{
"targetBlueprintIdentifier": pullRequestBlueprint.Identifier,
"title": "Overall Pull Requests Count",
"icon": "Terraform",
"description": "Overall Pull Requests Count",
"method": map[string]interface{}{
"countEntities": true,
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Port = Pulumi.Port;
return await Deployment.RunAsync(() =>
{
var repositoryBlueprint = new Port.Index.Port_blueprint("repositoryBlueprint", new()
{
Title = "Repository Blueprint",
Icon = "Terraform",
Identifier = "repository",
Description = "",
});
var pullRequestBlueprint = new Port.Index.Port_blueprint("pullRequestBlueprint", new()
{
Title = "Pull Request Blueprint",
Icon = "Terraform",
Identifier = "pull_request",
Description = "",
Properties =
{
{ "stringProps",
{
{ "status",
{
{ "title", "Status" },
} },
} },
},
Relations =
{
{ "repository",
{
{ "title", "Repository" },
{ "target", repositoryBlueprint.Identifier },
} },
},
});
var repositoryAggregationProperties = new Port.Index.Port_aggregation_properties("repositoryAggregationProperties", new()
{
BlueprintIdentifier = repositoryBlueprint.Identifier,
Properties =
{
{ "pull_requests_per_day",
{
{ "targetBlueprintIdentifier", pullRequestBlueprint.Identifier },
{ "title", "Pull Requests Per Day" },
{ "icon", "Terraform" },
{ "description", "Pull Requests Per Day" },
{ "method",
{
{ "averageEntities",
{
{ "averageOf", "day" },
{ "measureTimeBy", "$createdAt" },
} },
} },
} },
{ "overall_pull_requests_count",
{
{ "targetBlueprintIdentifier", pullRequestBlueprint.Identifier },
{ "title", "Overall Pull Requests Count" },
{ "icon", "Terraform" },
{ "description", "Overall Pull Requests Count" },
{ "method",
{
{ "countEntities", true },
} },
} },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.port.port_blueprint;
import com.pulumi.port.Port_blueprintArgs;
import com.pulumi.port.port_aggregation_properties;
import com.pulumi.port.Port_aggregation_propertiesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var repositoryBlueprint = new Port_blueprint("repositoryBlueprint", Port_blueprintArgs.builder()
.title("Repository Blueprint")
.icon("Terraform")
.identifier("repository")
.description("")
.build());
var pullRequestBlueprint = new Port_blueprint("pullRequestBlueprint", Port_blueprintArgs.builder()
.title("Pull Request Blueprint")
.icon("Terraform")
.identifier("pull_request")
.description("")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.relations(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
var repositoryAggregationProperties = new Port_aggregation_properties("repositoryAggregationProperties", Port_aggregation_propertiesArgs.builder()
.blueprintIdentifier(repositoryBlueprint.identifier())
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
}
}
resources:
repositoryBlueprint:
type: port:port_blueprint
properties:
title: Repository Blueprint
icon: Terraform
identifier: repository
description:
pullRequestBlueprint:
type: port:port_blueprint
properties:
title: Pull Request Blueprint
icon: Terraform
identifier: pull_request
description:
properties:
stringProps:
status:
title: Status
relations:
repository:
title: Repository
target: ${repositoryBlueprint.identifier}
repositoryAggregationProperties:
type: port:port_aggregation_properties
properties:
blueprintIdentifier: ${repositoryBlueprint.identifier}
properties:
pull_requests_per_day:
targetBlueprintIdentifier: ${pullRequestBlueprint.identifier}
title: Pull Requests Per Day
icon: Terraform
description: Pull Requests Per Day
method:
averageEntities:
averageOf: day
measureTimeBy: $createdAt
overall_pull_requests_count:
targetBlueprintIdentifier: ${pullRequestBlueprint.identifier}
title: Overall Pull Requests Count
icon: Terraform
description: Overall Pull Requests Count
method:
countEntities: true
Create AggregationProperties Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AggregationProperties(name: string, args: AggregationPropertiesArgs, opts?: CustomResourceOptions);
@overload
def AggregationProperties(resource_name: str,
args: AggregationPropertiesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AggregationProperties(resource_name: str,
opts: Optional[ResourceOptions] = None,
blueprint_identifier: Optional[str] = None,
properties: Optional[Mapping[str, AggregationPropertiesPropertiesArgs]] = None)
func NewAggregationProperties(ctx *Context, name string, args AggregationPropertiesArgs, opts ...ResourceOption) (*AggregationProperties, error)
public AggregationProperties(string name, AggregationPropertiesArgs args, CustomResourceOptions? opts = null)
public AggregationProperties(String name, AggregationPropertiesArgs args)
public AggregationProperties(String name, AggregationPropertiesArgs args, CustomResourceOptions options)
type: port:AggregationProperties
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 AggregationPropertiesArgs
- 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 AggregationPropertiesArgs
- 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 AggregationPropertiesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AggregationPropertiesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AggregationPropertiesArgs
- 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 aggregationPropertiesResource = new Port.AggregationProperties("aggregationPropertiesResource", new()
{
BlueprintIdentifier = "string",
Properties =
{
{ "string", new Port.Inputs.AggregationPropertiesPropertiesArgs
{
Method = new Port.Inputs.AggregationPropertiesPropertiesMethodArgs
{
AggregateByProperty = new Port.Inputs.AggregationPropertiesPropertiesMethodAggregateByPropertyArgs
{
Func = "string",
Property = "string",
},
AverageByProperty = new Port.Inputs.AggregationPropertiesPropertiesMethodAverageByPropertyArgs
{
AverageOf = "string",
MeasureTimeBy = "string",
Property = "string",
},
AverageEntities = new Port.Inputs.AggregationPropertiesPropertiesMethodAverageEntitiesArgs
{
AverageOf = "string",
MeasureTimeBy = "string",
},
CountEntities = false,
},
TargetBlueprintIdentifier = "string",
Description = "string",
Icon = "string",
Query = "string",
Title = "string",
} },
},
});
example, err := port.NewAggregationProperties(ctx, "aggregationPropertiesResource", &port.AggregationPropertiesArgs{
BlueprintIdentifier: pulumi.String("string"),
Properties: port.AggregationPropertiesPropertiesMap{
"string": &port.AggregationPropertiesPropertiesArgs{
Method: &port.AggregationPropertiesPropertiesMethodArgs{
AggregateByProperty: &port.AggregationPropertiesPropertiesMethodAggregateByPropertyArgs{
Func: pulumi.String("string"),
Property: pulumi.String("string"),
},
AverageByProperty: &port.AggregationPropertiesPropertiesMethodAverageByPropertyArgs{
AverageOf: pulumi.String("string"),
MeasureTimeBy: pulumi.String("string"),
Property: pulumi.String("string"),
},
AverageEntities: &port.AggregationPropertiesPropertiesMethodAverageEntitiesArgs{
AverageOf: pulumi.String("string"),
MeasureTimeBy: pulumi.String("string"),
},
CountEntities: pulumi.Bool(false),
},
TargetBlueprintIdentifier: pulumi.String("string"),
Description: pulumi.String("string"),
Icon: pulumi.String("string"),
Query: pulumi.String("string"),
Title: pulumi.String("string"),
},
},
})
var aggregationPropertiesResource = new AggregationProperties("aggregationPropertiesResource", AggregationPropertiesArgs.builder()
.blueprintIdentifier("string")
.properties(Map.of("string", Map.ofEntries(
Map.entry("method", Map.ofEntries(
Map.entry("aggregateByProperty", Map.ofEntries(
Map.entry("func", "string"),
Map.entry("property", "string")
)),
Map.entry("averageByProperty", Map.ofEntries(
Map.entry("averageOf", "string"),
Map.entry("measureTimeBy", "string"),
Map.entry("property", "string")
)),
Map.entry("averageEntities", Map.ofEntries(
Map.entry("averageOf", "string"),
Map.entry("measureTimeBy", "string")
)),
Map.entry("countEntities", false)
)),
Map.entry("targetBlueprintIdentifier", "string"),
Map.entry("description", "string"),
Map.entry("icon", "string"),
Map.entry("query", "string"),
Map.entry("title", "string")
)))
.build());
aggregation_properties_resource = port.AggregationProperties("aggregationPropertiesResource",
blueprint_identifier="string",
properties={
"string": {
"method": {
"aggregate_by_property": {
"func": "string",
"property": "string",
},
"average_by_property": {
"average_of": "string",
"measure_time_by": "string",
"property": "string",
},
"average_entities": {
"average_of": "string",
"measure_time_by": "string",
},
"count_entities": False,
},
"target_blueprint_identifier": "string",
"description": "string",
"icon": "string",
"query": "string",
"title": "string",
},
})
const aggregationPropertiesResource = new port.AggregationProperties("aggregationPropertiesResource", {
blueprintIdentifier: "string",
properties: {
string: {
method: {
aggregateByProperty: {
func: "string",
property: "string",
},
averageByProperty: {
averageOf: "string",
measureTimeBy: "string",
property: "string",
},
averageEntities: {
averageOf: "string",
measureTimeBy: "string",
},
countEntities: false,
},
targetBlueprintIdentifier: "string",
description: "string",
icon: "string",
query: "string",
title: "string",
},
},
});
type: port:AggregationProperties
properties:
blueprintIdentifier: string
properties:
string:
description: string
icon: string
method:
aggregateByProperty:
func: string
property: string
averageByProperty:
averageOf: string
measureTimeBy: string
property: string
averageEntities:
averageOf: string
measureTimeBy: string
countEntities: false
query: string
targetBlueprintIdentifier: string
title: string
AggregationProperties 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 AggregationProperties resource accepts the following input properties:
- Blueprint
Identifier string - The identifier of the blueprint the aggregation property will be added to
- Properties
Dictionary<string, port_
labs. Port. Inputs. Aggregation Properties Properties Args> - The aggregation property of the blueprint
- Blueprint
Identifier string - The identifier of the blueprint the aggregation property will be added to
- Properties
map[string]Aggregation
Properties Properties Args - The aggregation property of the blueprint
- blueprint
Identifier String - The identifier of the blueprint the aggregation property will be added to
- properties
Map<String,Aggregation
Properties Properties Args> - The aggregation property of the blueprint
- blueprint
Identifier string - The identifier of the blueprint the aggregation property will be added to
- properties
{[key: string]: Aggregation
Properties Properties Args} - The aggregation property of the blueprint
- blueprint_
identifier str - The identifier of the blueprint the aggregation property will be added to
- properties
Mapping[str, Aggregation
Properties Properties Args] - The aggregation property of the blueprint
- blueprint
Identifier String - The identifier of the blueprint the aggregation property will be added to
- properties Map<Property Map>
- The aggregation property of the blueprint
Outputs
All input properties are implicitly available as output properties. Additionally, the AggregationProperties 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 AggregationProperties Resource
Get an existing AggregationProperties 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?: AggregationPropertiesState, opts?: CustomResourceOptions): AggregationProperties
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
blueprint_identifier: Optional[str] = None,
properties: Optional[Mapping[str, AggregationPropertiesPropertiesArgs]] = None) -> AggregationProperties
func GetAggregationProperties(ctx *Context, name string, id IDInput, state *AggregationPropertiesState, opts ...ResourceOption) (*AggregationProperties, error)
public static AggregationProperties Get(string name, Input<string> id, AggregationPropertiesState? state, CustomResourceOptions? opts = null)
public static AggregationProperties get(String name, Output<String> id, AggregationPropertiesState 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
Identifier string - The identifier of the blueprint the aggregation property will be added to
- Properties
Dictionary<string, port_
labs. Port. Inputs. Aggregation Properties Properties Args> - The aggregation property of the blueprint
- Blueprint
Identifier string - The identifier of the blueprint the aggregation property will be added to
- Properties
map[string]Aggregation
Properties Properties Args - The aggregation property of the blueprint
- blueprint
Identifier String - The identifier of the blueprint the aggregation property will be added to
- properties
Map<String,Aggregation
Properties Properties Args> - The aggregation property of the blueprint
- blueprint
Identifier string - The identifier of the blueprint the aggregation property will be added to
- properties
{[key: string]: Aggregation
Properties Properties Args} - The aggregation property of the blueprint
- blueprint_
identifier str - The identifier of the blueprint the aggregation property will be added to
- properties
Mapping[str, Aggregation
Properties Properties Args] - The aggregation property of the blueprint
- blueprint
Identifier String - The identifier of the blueprint the aggregation property will be added to
- properties Map<Property Map>
- The aggregation property of the blueprint
Supporting Types
AggregationPropertiesProperties, AggregationPropertiesPropertiesArgs
- Method
port_
labs. Port. Inputs. Aggregation Properties Properties Method - The aggregation method to perform on the target blueprint, one of countentities, averageentities, averagebyproperty, aggregatebyproperty
- Target
Blueprint stringIdentifier - The identifier of the blueprint to perform the aggregation on
- Description string
- The description of the aggregation property
- Icon string
- The icon of the aggregation property
- Query string
- Query to filter the target entities
- Title string
- The title of the aggregation property
- Method
Aggregation
Properties Properties Method - The aggregation method to perform on the target blueprint, one of countentities, averageentities, averagebyproperty, aggregatebyproperty
- Target
Blueprint stringIdentifier - The identifier of the blueprint to perform the aggregation on
- Description string
- The description of the aggregation property
- Icon string
- The icon of the aggregation property
- Query string
- Query to filter the target entities
- Title string
- The title of the aggregation property
- method
Aggregation
Properties Properties Method - The aggregation method to perform on the target blueprint, one of countentities, averageentities, averagebyproperty, aggregatebyproperty
- target
Blueprint StringIdentifier - The identifier of the blueprint to perform the aggregation on
- description String
- The description of the aggregation property
- icon String
- The icon of the aggregation property
- query String
- Query to filter the target entities
- title String
- The title of the aggregation property
- method
Aggregation
Properties Properties Method - The aggregation method to perform on the target blueprint, one of countentities, averageentities, averagebyproperty, aggregatebyproperty
- target
Blueprint stringIdentifier - The identifier of the blueprint to perform the aggregation on
- description string
- The description of the aggregation property
- icon string
- The icon of the aggregation property
- query string
- Query to filter the target entities
- title string
- The title of the aggregation property
- method
Aggregation
Properties Properties Method - The aggregation method to perform on the target blueprint, one of countentities, averageentities, averagebyproperty, aggregatebyproperty
- target_
blueprint_ stridentifier - The identifier of the blueprint to perform the aggregation on
- description str
- The description of the aggregation property
- icon str
- The icon of the aggregation property
- query str
- Query to filter the target entities
- title str
- The title of the aggregation property
- method Property Map
- The aggregation method to perform on the target blueprint, one of countentities, averageentities, averagebyproperty, aggregatebyproperty
- target
Blueprint StringIdentifier - The identifier of the blueprint to perform the aggregation on
- description String
- The description of the aggregation property
- icon String
- The icon of the aggregation property
- query String
- Query to filter the target entities
- title String
- The title of the aggregation property
AggregationPropertiesPropertiesMethod, AggregationPropertiesPropertiesMethodArgs
- Aggregate
By port_Property labs. Port. Inputs. Aggregation Properties Properties Method Aggregate By Property - Function to calculate the aggregate by property value of the target entities, such as sum, min, max, median
- Average
By port_Property labs. Port. Inputs. Aggregation Properties Properties Method Average By Property - Function to calculate the average by property value of the target entities
- Average
Entities port_labs. Port. Inputs. Aggregation Properties Properties Method Average Entities - Function to average the entities of the target entities
- Count
Entities bool - Function to count the entities of the target entities
- Aggregate
By AggregationProperty Properties Properties Method Aggregate By Property - Function to calculate the aggregate by property value of the target entities, such as sum, min, max, median
- Average
By AggregationProperty Properties Properties Method Average By Property - Function to calculate the average by property value of the target entities
- Average
Entities AggregationProperties Properties Method Average Entities - Function to average the entities of the target entities
- Count
Entities bool - Function to count the entities of the target entities
- aggregate
By AggregationProperty Properties Properties Method Aggregate By Property - Function to calculate the aggregate by property value of the target entities, such as sum, min, max, median
- average
By AggregationProperty Properties Properties Method Average By Property - Function to calculate the average by property value of the target entities
- average
Entities AggregationProperties Properties Method Average Entities - Function to average the entities of the target entities
- count
Entities Boolean - Function to count the entities of the target entities
- aggregate
By AggregationProperty Properties Properties Method Aggregate By Property - Function to calculate the aggregate by property value of the target entities, such as sum, min, max, median
- average
By AggregationProperty Properties Properties Method Average By Property - Function to calculate the average by property value of the target entities
- average
Entities AggregationProperties Properties Method Average Entities - Function to average the entities of the target entities
- count
Entities boolean - Function to count the entities of the target entities
- aggregate_
by_ Aggregationproperty Properties Properties Method Aggregate By Property - Function to calculate the aggregate by property value of the target entities, such as sum, min, max, median
- average_
by_ Aggregationproperty Properties Properties Method Average By Property - Function to calculate the average by property value of the target entities
- average_
entities AggregationProperties Properties Method Average Entities - Function to average the entities of the target entities
- count_
entities bool - Function to count the entities of the target entities
- aggregate
By Property MapProperty - Function to calculate the aggregate by property value of the target entities, such as sum, min, max, median
- average
By Property MapProperty - Function to calculate the average by property value of the target entities
- average
Entities Property Map - Function to average the entities of the target entities
- count
Entities Boolean - Function to count the entities of the target entities
AggregationPropertiesPropertiesMethodAggregateByProperty, AggregationPropertiesPropertiesMethodAggregateByPropertyArgs
AggregationPropertiesPropertiesMethodAverageByProperty, AggregationPropertiesPropertiesMethodAverageByPropertyArgs
- Average
Of string - The time periods to calculate the average by, e.g. hour, day, week, month
- Measure
Time stringBy - The property name on which to calculate the the time periods, e.g. $createdAt, $updated_at or any other date property
- Property string
- The property name on which to calculate the average by
- Average
Of string - The time periods to calculate the average by, e.g. hour, day, week, month
- Measure
Time stringBy - The property name on which to calculate the the time periods, e.g. $createdAt, $updated_at or any other date property
- Property string
- The property name on which to calculate the average by
- average
Of String - The time periods to calculate the average by, e.g. hour, day, week, month
- measure
Time StringBy - The property name on which to calculate the the time periods, e.g. $createdAt, $updated_at or any other date property
- property String
- The property name on which to calculate the average by
- average
Of string - The time periods to calculate the average by, e.g. hour, day, week, month
- measure
Time stringBy - The property name on which to calculate the the time periods, e.g. $createdAt, $updated_at or any other date property
- property string
- The property name on which to calculate the average by
- average_
of str - The time periods to calculate the average by, e.g. hour, day, week, month
- measure_
time_ strby - The property name on which to calculate the the time periods, e.g. $createdAt, $updated_at or any other date property
- property str
- The property name on which to calculate the average by
- average
Of String - The time periods to calculate the average by, e.g. hour, day, week, month
- measure
Time StringBy - The property name on which to calculate the the time periods, e.g. $createdAt, $updated_at or any other date property
- property String
- The property name on which to calculate the average by
AggregationPropertiesPropertiesMethodAverageEntities, AggregationPropertiesPropertiesMethodAverageEntitiesArgs
- Average
Of string - The time periods to calculate the average of, e.g. hour, day, week, month
- Measure
Time stringBy - The property name on which to calculate the the time periods, e.g. $createdAt, $updated_at or any other date property
- Average
Of string - The time periods to calculate the average of, e.g. hour, day, week, month
- Measure
Time stringBy - The property name on which to calculate the the time periods, e.g. $createdAt, $updated_at or any other date property
- average
Of String - The time periods to calculate the average of, e.g. hour, day, week, month
- measure
Time StringBy - The property name on which to calculate the the time periods, e.g. $createdAt, $updated_at or any other date property
- average
Of string - The time periods to calculate the average of, e.g. hour, day, week, month
- measure
Time stringBy - The property name on which to calculate the the time periods, e.g. $createdAt, $updated_at or any other date property
- average_
of str - The time periods to calculate the average of, e.g. hour, day, week, month
- measure_
time_ strby - The property name on which to calculate the the time periods, e.g. $createdAt, $updated_at or any other date property
- average
Of String - The time periods to calculate the average of, e.g. hour, day, week, month
- measure
Time StringBy - The property name on which to calculate the the time periods, e.g. $createdAt, $updated_at or any other date property
Package Details
- Repository
- port port-labs/pulumi-port
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
port-labs
Terraform Provider.