port.Scorecard
Explore with Pulumi AI
This resource allows you to manage a scorecard.
See the Port documentation for more information about scorecards.
Create Scorecard Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Scorecard(name: string, args: ScorecardArgs, opts?: CustomResourceOptions);
@overload
def Scorecard(resource_name: str,
args: ScorecardArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Scorecard(resource_name: str,
opts: Optional[ResourceOptions] = None,
blueprint: Optional[str] = None,
identifier: Optional[str] = None,
rules: Optional[Sequence[ScorecardRuleArgs]] = None,
title: Optional[str] = None,
levels: Optional[Sequence[ScorecardLevelArgs]] = None)
func NewScorecard(ctx *Context, name string, args ScorecardArgs, opts ...ResourceOption) (*Scorecard, error)
public Scorecard(string name, ScorecardArgs args, CustomResourceOptions? opts = null)
public Scorecard(String name, ScorecardArgs args)
public Scorecard(String name, ScorecardArgs args, CustomResourceOptions options)
type: port:Scorecard
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 ScorecardArgs
- 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 ScorecardArgs
- 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 ScorecardArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScorecardArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScorecardArgs
- 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 scorecardResource = new Port.Scorecard("scorecardResource", new()
{
Blueprint = "string",
Identifier = "string",
Rules = new[]
{
new Port.Inputs.ScorecardRuleArgs
{
Identifier = "string",
Level = "string",
Query = new Port.Inputs.ScorecardRuleQueryArgs
{
Combinator = "string",
Conditions = new[]
{
"string",
},
},
Title = "string",
},
},
Title = "string",
Levels = new[]
{
new Port.Inputs.ScorecardLevelArgs
{
Color = "string",
Title = "string",
},
},
});
example, err := port.NewScorecard(ctx, "scorecardResource", &port.ScorecardArgs{
Blueprint: pulumi.String("string"),
Identifier: pulumi.String("string"),
Rules: port.ScorecardRuleArray{
&port.ScorecardRuleArgs{
Identifier: pulumi.String("string"),
Level: pulumi.String("string"),
Query: &port.ScorecardRuleQueryArgs{
Combinator: pulumi.String("string"),
Conditions: pulumi.StringArray{
pulumi.String("string"),
},
},
Title: pulumi.String("string"),
},
},
Title: pulumi.String("string"),
Levels: port.ScorecardLevelArray{
&port.ScorecardLevelArgs{
Color: pulumi.String("string"),
Title: pulumi.String("string"),
},
},
})
var scorecardResource = new Scorecard("scorecardResource", ScorecardArgs.builder()
.blueprint("string")
.identifier("string")
.rules(ScorecardRuleArgs.builder()
.identifier("string")
.level("string")
.query(ScorecardRuleQueryArgs.builder()
.combinator("string")
.conditions("string")
.build())
.title("string")
.build())
.title("string")
.levels(ScorecardLevelArgs.builder()
.color("string")
.title("string")
.build())
.build());
scorecard_resource = port.Scorecard("scorecardResource",
blueprint="string",
identifier="string",
rules=[port.ScorecardRuleArgs(
identifier="string",
level="string",
query=port.ScorecardRuleQueryArgs(
combinator="string",
conditions=["string"],
),
title="string",
)],
title="string",
levels=[port.ScorecardLevelArgs(
color="string",
title="string",
)])
const scorecardResource = new port.Scorecard("scorecardResource", {
blueprint: "string",
identifier: "string",
rules: [{
identifier: "string",
level: "string",
query: {
combinator: "string",
conditions: ["string"],
},
title: "string",
}],
title: "string",
levels: [{
color: "string",
title: "string",
}],
});
type: port:Scorecard
properties:
blueprint: string
identifier: string
levels:
- color: string
title: string
rules:
- identifier: string
level: string
query:
combinator: string
conditions:
- string
title: string
title: string
Scorecard 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 Scorecard resource accepts the following input properties:
- Blueprint string
- The blueprint of the scorecard
- Identifier string
- The identifier of the scorecard
- Rules
List<port_
labs. Port. Inputs. Scorecard Rule> - The rules of the scorecard
- Title string
- The title of the scorecard
- Levels
List<port_
labs. Port. Inputs. Scorecard Level> - The levels of the scorecard. This overrides the default levels (Basic, Bronze, Silver, Gold) if provided
- Blueprint string
- The blueprint of the scorecard
- Identifier string
- The identifier of the scorecard
- Rules
[]Scorecard
Rule Args - The rules of the scorecard
- Title string
- The title of the scorecard
- Levels
[]Scorecard
Level Args - The levels of the scorecard. This overrides the default levels (Basic, Bronze, Silver, Gold) if provided
- blueprint String
- The blueprint of the scorecard
- identifier String
- The identifier of the scorecard
- rules
List<Scorecard
Rule> - The rules of the scorecard
- title String
- The title of the scorecard
- levels
List<Scorecard
Level> - The levels of the scorecard. This overrides the default levels (Basic, Bronze, Silver, Gold) if provided
- blueprint string
- The blueprint of the scorecard
- identifier string
- The identifier of the scorecard
- rules
Scorecard
Rule[] - The rules of the scorecard
- title string
- The title of the scorecard
- levels
Scorecard
Level[] - The levels of the scorecard. This overrides the default levels (Basic, Bronze, Silver, Gold) if provided
- blueprint str
- The blueprint of the scorecard
- identifier str
- The identifier of the scorecard
- rules
Sequence[Scorecard
Rule Args] - The rules of the scorecard
- title str
- The title of the scorecard
- levels
Sequence[Scorecard
Level Args] - The levels of the scorecard. This overrides the default levels (Basic, Bronze, Silver, Gold) if provided
- blueprint String
- The blueprint of the scorecard
- identifier String
- The identifier of the scorecard
- rules List<Property Map>
- The rules of the scorecard
- title String
- The title of the scorecard
- levels List<Property Map>
- The levels of the scorecard. This overrides the default levels (Basic, Bronze, Silver, Gold) if provided
Outputs
All input properties are implicitly available as output properties. Additionally, the Scorecard resource produces the following output properties:
- created_
at str - The creation date of the scorecard
- created_
by str - The creator of the scorecard
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - The last update date of the scorecard
- updated_
by str - The last updater of the scorecard
Look up Existing Scorecard Resource
Get an existing Scorecard 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?: ScorecardState, opts?: CustomResourceOptions): Scorecard
@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,
identifier: Optional[str] = None,
levels: Optional[Sequence[ScorecardLevelArgs]] = None,
rules: Optional[Sequence[ScorecardRuleArgs]] = None,
title: Optional[str] = None,
updated_at: Optional[str] = None,
updated_by: Optional[str] = None) -> Scorecard
func GetScorecard(ctx *Context, name string, id IDInput, state *ScorecardState, opts ...ResourceOption) (*Scorecard, error)
public static Scorecard Get(string name, Input<string> id, ScorecardState? state, CustomResourceOptions? opts = null)
public static Scorecard get(String name, Output<String> id, ScorecardState 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 of the scorecard
- Created
At string - The creation date of the scorecard
- Created
By string - The creator of the scorecard
- Identifier string
- The identifier of the scorecard
- Levels
List<port_
labs. Port. Inputs. Scorecard Level> - The levels of the scorecard. This overrides the default levels (Basic, Bronze, Silver, Gold) if provided
- Rules
List<port_
labs. Port. Inputs. Scorecard Rule> - The rules of the scorecard
- Title string
- The title of the scorecard
- Updated
At string - The last update date of the scorecard
- Updated
By string - The last updater of the scorecard
- Blueprint string
- The blueprint of the scorecard
- Created
At string - The creation date of the scorecard
- Created
By string - The creator of the scorecard
- Identifier string
- The identifier of the scorecard
- Levels
[]Scorecard
Level Args - The levels of the scorecard. This overrides the default levels (Basic, Bronze, Silver, Gold) if provided
- Rules
[]Scorecard
Rule Args - The rules of the scorecard
- Title string
- The title of the scorecard
- Updated
At string - The last update date of the scorecard
- Updated
By string - The last updater of the scorecard
- blueprint String
- The blueprint of the scorecard
- created
At String - The creation date of the scorecard
- created
By String - The creator of the scorecard
- identifier String
- The identifier of the scorecard
- levels
List<Scorecard
Level> - The levels of the scorecard. This overrides the default levels (Basic, Bronze, Silver, Gold) if provided
- rules
List<Scorecard
Rule> - The rules of the scorecard
- title String
- The title of the scorecard
- updated
At String - The last update date of the scorecard
- updated
By String - The last updater of the scorecard
- blueprint string
- The blueprint of the scorecard
- created
At string - The creation date of the scorecard
- created
By string - The creator of the scorecard
- identifier string
- The identifier of the scorecard
- levels
Scorecard
Level[] - The levels of the scorecard. This overrides the default levels (Basic, Bronze, Silver, Gold) if provided
- rules
Scorecard
Rule[] - The rules of the scorecard
- title string
- The title of the scorecard
- updated
At string - The last update date of the scorecard
- updated
By string - The last updater of the scorecard
- blueprint str
- The blueprint of the scorecard
- created_
at str - The creation date of the scorecard
- created_
by str - The creator of the scorecard
- identifier str
- The identifier of the scorecard
- levels
Sequence[Scorecard
Level Args] - The levels of the scorecard. This overrides the default levels (Basic, Bronze, Silver, Gold) if provided
- rules
Sequence[Scorecard
Rule Args] - The rules of the scorecard
- title str
- The title of the scorecard
- updated_
at str - The last update date of the scorecard
- updated_
by str - The last updater of the scorecard
- blueprint String
- The blueprint of the scorecard
- created
At String - The creation date of the scorecard
- created
By String - The creator of the scorecard
- identifier String
- The identifier of the scorecard
- levels List<Property Map>
- The levels of the scorecard. This overrides the default levels (Basic, Bronze, Silver, Gold) if provided
- rules List<Property Map>
- The rules of the scorecard
- title String
- The title of the scorecard
- updated
At String - The last update date of the scorecard
- updated
By String - The last updater of the scorecard
Supporting Types
ScorecardLevel, ScorecardLevelArgs
ScorecardRule, ScorecardRuleArgs
- Identifier string
- The identifier of the rule
- Level string
- The level of the rule
- Query
port_
labs. Port. Inputs. Scorecard Rule Query - The query of the rule
- Title string
- The title of the rule
- Identifier string
- The identifier of the rule
- Level string
- The level of the rule
- Query
Scorecard
Rule Query - The query of the rule
- Title string
- The title of the rule
- identifier String
- The identifier of the rule
- level String
- The level of the rule
- query
Scorecard
Rule Query - The query of the rule
- title String
- The title of the rule
- identifier string
- The identifier of the rule
- level string
- The level of the rule
- query
Scorecard
Rule Query - The query of the rule
- title string
- The title of the rule
- identifier str
- The identifier of the rule
- level str
- The level of the rule
- query
Scorecard
Rule Query - The query of the rule
- title str
- The title of the rule
- identifier String
- The identifier of the rule
- level String
- The level of the rule
- query Property Map
- The query of the rule
- title String
- The title of the rule
ScorecardRuleQuery, ScorecardRuleQueryArgs
- Combinator string
- The combinator of the query
- Conditions List<string>
- The conditions of the query. Each condition object should be encoded to a string
- Combinator string
- The combinator of the query
- Conditions []string
- The conditions of the query. Each condition object should be encoded to a string
- combinator String
- The combinator of the query
- conditions List<String>
- The conditions of the query. Each condition object should be encoded to a string
- combinator string
- The combinator of the query
- conditions string[]
- The conditions of the query. Each condition object should be encoded to a string
- combinator str
- The combinator of the query
- conditions Sequence[str]
- The conditions of the query. Each condition object should be encoded to a string
- combinator String
- The combinator of the query
- conditions List<String>
- The conditions of the query. Each condition object should be encoded to a string
Package Details
- Repository
- port port-labs/pulumi-port
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
port-labs
Terraform Provider.