ibm.SchematicsPolicy
Explore with Pulumi AI
Provides a resource for schematics_policy. This allows schematics_policy to be created, updated and deleted.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.SchematicsPolicy;
import com.pulumi.ibm.SchematicsPolicyArgs;
import com.pulumi.ibm.inputs.SchematicsPolicyParameterArgs;
import com.pulumi.ibm.inputs.SchematicsPolicyParameterAgentAssignmentPolicyParameterArgs;
import com.pulumi.ibm.inputs.SchematicsPolicyScopedResourceArgs;
import com.pulumi.ibm.inputs.SchematicsPolicyStateArgs;
import com.pulumi.ibm.inputs.SchematicsPolicyTargetArgs;
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 schematicsPolicyInstance = new SchematicsPolicy("schematicsPolicyInstance", SchematicsPolicyArgs.builder()
.description("Policy for job execution of secured workspaces on agent1")
.parameter(SchematicsPolicyParameterArgs.builder()
.agentAssignmentPolicyParameter(SchematicsPolicyParameterAgentAssignmentPolicyParameterArgs.builder()
.selectorIds("selector_ids")
.selectorKind("ids")
.selectorScope(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build())
.build())
.resourceGroup("Default")
.scopedResources(SchematicsPolicyScopedResourceArgs.builder()
.id("id")
.kind("workspace")
.build())
.state(SchematicsPolicyStateArgs.builder()
.setAt("2021-01-31T09:44:12Z")
.setBy("set_by")
.state("draft")
.build())
.target(SchematicsPolicyTargetArgs.builder()
.selectorIds("selector_ids")
.selectorKind("ids")
.selectorScopes(SchematicsPolicyTargetSelectorScopeArgs.builder()
.kind("workspace")
.locations("us-south")
.resourceGroups("resource_groups")
.tags("tags")
.build())
.build())
.build());
}
}
resources:
schematicsPolicyInstance:
type: ibm:SchematicsPolicy
properties:
description: Policy for job execution of secured workspaces on agent1
parameter:
agentAssignmentPolicyParameter:
selectorIds:
- selector_ids
selectorKind: ids
selectorScope:
- kind: workspace
locations:
- us-south
resourceGroups:
- resource_groups
tags:
- tags
resourceGroup: Default
scopedResources:
- id: id
kind: workspace
state:
setAt: 2021-01-31T09:44:12Z
setBy: set_by
state: draft
target:
selectorIds:
- selector_ids
selectorKind: ids
selectorScopes:
- kind: workspace
locations:
- us-south
resourceGroups:
- resource_groups
tags:
- tags
Create SchematicsPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SchematicsPolicy(name: string, args?: SchematicsPolicyArgs, opts?: CustomResourceOptions);
@overload
def SchematicsPolicy(resource_name: str,
args: Optional[SchematicsPolicyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def SchematicsPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
kind: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
parameter: Optional[SchematicsPolicyParameterArgs] = None,
resource_group: Optional[str] = None,
schematics_policy_id: Optional[str] = None,
scoped_resources: Optional[Sequence[SchematicsPolicyScopedResourceArgs]] = None,
state: Optional[SchematicsPolicyStateArgs] = None,
tags: Optional[Sequence[str]] = None,
target: Optional[SchematicsPolicyTargetArgs] = None)
func NewSchematicsPolicy(ctx *Context, name string, args *SchematicsPolicyArgs, opts ...ResourceOption) (*SchematicsPolicy, error)
public SchematicsPolicy(string name, SchematicsPolicyArgs? args = null, CustomResourceOptions? opts = null)
public SchematicsPolicy(String name, SchematicsPolicyArgs args)
public SchematicsPolicy(String name, SchematicsPolicyArgs args, CustomResourceOptions options)
type: ibm:SchematicsPolicy
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 SchematicsPolicyArgs
- 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 SchematicsPolicyArgs
- 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 SchematicsPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SchematicsPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SchematicsPolicyArgs
- 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 schematicsPolicyResource = new Ibm.SchematicsPolicy("schematicsPolicyResource", new()
{
Description = "string",
Kind = "string",
Location = "string",
Name = "string",
Parameter = new Ibm.Inputs.SchematicsPolicyParameterArgs
{
AgentAssignmentPolicyParameter = new Ibm.Inputs.SchematicsPolicyParameterAgentAssignmentPolicyParameterArgs
{
SelectorIds = new[]
{
"string",
},
SelectorKind = "string",
SelectorScopes = new[]
{
new Ibm.Inputs.SchematicsPolicyParameterAgentAssignmentPolicyParameterSelectorScopeArgs
{
Kind = "string",
Locations = new[]
{
"string",
},
ResourceGroups = new[]
{
"string",
},
Tags = new[]
{
"string",
},
},
},
},
},
ResourceGroup = "string",
SchematicsPolicyId = "string",
ScopedResources = new[]
{
new Ibm.Inputs.SchematicsPolicyScopedResourceArgs
{
Id = "string",
Kind = "string",
},
},
State = new Ibm.Inputs.SchematicsPolicyStateArgs
{
SetAt = "string",
SetBy = "string",
State = "string",
},
Tags = new[]
{
"string",
},
Target = new Ibm.Inputs.SchematicsPolicyTargetArgs
{
SelectorIds = new[]
{
"string",
},
SelectorKind = "string",
SelectorScopes = new[]
{
new Ibm.Inputs.SchematicsPolicyTargetSelectorScopeArgs
{
Kind = "string",
Locations = new[]
{
"string",
},
ResourceGroups = new[]
{
"string",
},
Tags = new[]
{
"string",
},
},
},
},
});
example, err := ibm.NewSchematicsPolicy(ctx, "schematicsPolicyResource", &ibm.SchematicsPolicyArgs{
Description: pulumi.String("string"),
Kind: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Parameter: &ibm.SchematicsPolicyParameterArgs{
AgentAssignmentPolicyParameter: &ibm.SchematicsPolicyParameterAgentAssignmentPolicyParameterArgs{
SelectorIds: pulumi.StringArray{
pulumi.String("string"),
},
SelectorKind: pulumi.String("string"),
SelectorScopes: ibm.SchematicsPolicyParameterAgentAssignmentPolicyParameterSelectorScopeArray{
&ibm.SchematicsPolicyParameterAgentAssignmentPolicyParameterSelectorScopeArgs{
Kind: pulumi.String("string"),
Locations: pulumi.StringArray{
pulumi.String("string"),
},
ResourceGroups: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
},
ResourceGroup: pulumi.String("string"),
SchematicsPolicyId: pulumi.String("string"),
ScopedResources: ibm.SchematicsPolicyScopedResourceArray{
&ibm.SchematicsPolicyScopedResourceArgs{
Id: pulumi.String("string"),
Kind: pulumi.String("string"),
},
},
State: &ibm.SchematicsPolicyStateTypeArgs{
SetAt: pulumi.String("string"),
SetBy: pulumi.String("string"),
State: pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Target: &ibm.SchematicsPolicyTargetArgs{
SelectorIds: pulumi.StringArray{
pulumi.String("string"),
},
SelectorKind: pulumi.String("string"),
SelectorScopes: ibm.SchematicsPolicyTargetSelectorScopeArray{
&ibm.SchematicsPolicyTargetSelectorScopeArgs{
Kind: pulumi.String("string"),
Locations: pulumi.StringArray{
pulumi.String("string"),
},
ResourceGroups: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
})
var schematicsPolicyResource = new SchematicsPolicy("schematicsPolicyResource", SchematicsPolicyArgs.builder()
.description("string")
.kind("string")
.location("string")
.name("string")
.parameter(SchematicsPolicyParameterArgs.builder()
.agentAssignmentPolicyParameter(SchematicsPolicyParameterAgentAssignmentPolicyParameterArgs.builder()
.selectorIds("string")
.selectorKind("string")
.selectorScopes(SchematicsPolicyParameterAgentAssignmentPolicyParameterSelectorScopeArgs.builder()
.kind("string")
.locations("string")
.resourceGroups("string")
.tags("string")
.build())
.build())
.build())
.resourceGroup("string")
.schematicsPolicyId("string")
.scopedResources(SchematicsPolicyScopedResourceArgs.builder()
.id("string")
.kind("string")
.build())
.state(SchematicsPolicyStateArgs.builder()
.setAt("string")
.setBy("string")
.state("string")
.build())
.tags("string")
.target(SchematicsPolicyTargetArgs.builder()
.selectorIds("string")
.selectorKind("string")
.selectorScopes(SchematicsPolicyTargetSelectorScopeArgs.builder()
.kind("string")
.locations("string")
.resourceGroups("string")
.tags("string")
.build())
.build())
.build());
schematics_policy_resource = ibm.SchematicsPolicy("schematicsPolicyResource",
description="string",
kind="string",
location="string",
name="string",
parameter={
"agent_assignment_policy_parameter": {
"selector_ids": ["string"],
"selector_kind": "string",
"selector_scopes": [{
"kind": "string",
"locations": ["string"],
"resource_groups": ["string"],
"tags": ["string"],
}],
},
},
resource_group="string",
schematics_policy_id="string",
scoped_resources=[{
"id": "string",
"kind": "string",
}],
state={
"set_at": "string",
"set_by": "string",
"state": "string",
},
tags=["string"],
target={
"selector_ids": ["string"],
"selector_kind": "string",
"selector_scopes": [{
"kind": "string",
"locations": ["string"],
"resource_groups": ["string"],
"tags": ["string"],
}],
})
const schematicsPolicyResource = new ibm.SchematicsPolicy("schematicsPolicyResource", {
description: "string",
kind: "string",
location: "string",
name: "string",
parameter: {
agentAssignmentPolicyParameter: {
selectorIds: ["string"],
selectorKind: "string",
selectorScopes: [{
kind: "string",
locations: ["string"],
resourceGroups: ["string"],
tags: ["string"],
}],
},
},
resourceGroup: "string",
schematicsPolicyId: "string",
scopedResources: [{
id: "string",
kind: "string",
}],
state: {
setAt: "string",
setBy: "string",
state: "string",
},
tags: ["string"],
target: {
selectorIds: ["string"],
selectorKind: "string",
selectorScopes: [{
kind: "string",
locations: ["string"],
resourceGroups: ["string"],
tags: ["string"],
}],
},
});
type: ibm:SchematicsPolicy
properties:
description: string
kind: string
location: string
name: string
parameter:
agentAssignmentPolicyParameter:
selectorIds:
- string
selectorKind: string
selectorScopes:
- kind: string
locations:
- string
resourceGroups:
- string
tags:
- string
resourceGroup: string
schematicsPolicyId: string
scopedResources:
- id: string
kind: string
state:
setAt: string
setBy: string
state: string
tags:
- string
target:
selectorIds:
- string
selectorKind: string
selectorScopes:
- kind: string
locations:
- string
resourceGroups:
- string
tags:
- string
SchematicsPolicy 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 SchematicsPolicy resource accepts the following input properties:
- Description string
- The description of Schematics customization policy.
- Kind string
- Policy kind or categories for managing and deriving policy decision *
agent_assignment_policy
Agent assignment policy for job execution.- Constraints: Allowable values are:
agent_assignment_policy
.
- Constraints: Allowable values are:
- Location string
- List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable values are:
- Name string
- Name of Schematics customization policy.
- Parameter
Schematics
Policy Parameter - The parameter to tune the Schematics policy. Nested scheme for parameter:
- Resource
Group string - The resource group name for the policy. By default, Policy will be created in
default
Resource Group. - Schematics
Policy stringId - The unique identifier of the schematics_policy.
- Scoped
Resources List<SchematicsPolicy Scoped Resource> - List of scoped Schematics resources targeted by the policy. Nested scheme for scoped_resources:
- State
Schematics
Policy State - User defined status of the Schematics object. Nested scheme for state:
- List<string>
- Tags for the Schematics customization policy.
- Target
Schematics
Policy Target - The objects for the Schematics policy. Nested scheme for target:
- Description string
- The description of Schematics customization policy.
- Kind string
- Policy kind or categories for managing and deriving policy decision *
agent_assignment_policy
Agent assignment policy for job execution.- Constraints: Allowable values are:
agent_assignment_policy
.
- Constraints: Allowable values are:
- Location string
- List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable values are:
- Name string
- Name of Schematics customization policy.
- Parameter
Schematics
Policy Parameter Args - The parameter to tune the Schematics policy. Nested scheme for parameter:
- Resource
Group string - The resource group name for the policy. By default, Policy will be created in
default
Resource Group. - Schematics
Policy stringId - The unique identifier of the schematics_policy.
- Scoped
Resources []SchematicsPolicy Scoped Resource Args - List of scoped Schematics resources targeted by the policy. Nested scheme for scoped_resources:
- State
Schematics
Policy State Type Args - User defined status of the Schematics object. Nested scheme for state:
- []string
- Tags for the Schematics customization policy.
- Target
Schematics
Policy Target Args - The objects for the Schematics policy. Nested scheme for target:
- description String
- The description of Schematics customization policy.
- kind String
- Policy kind or categories for managing and deriving policy decision *
agent_assignment_policy
Agent assignment policy for job execution.- Constraints: Allowable values are:
agent_assignment_policy
.
- Constraints: Allowable values are:
- location String
- List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable values are:
- name String
- Name of Schematics customization policy.
- parameter
Schematics
Policy Parameter - The parameter to tune the Schematics policy. Nested scheme for parameter:
- resource
Group String - The resource group name for the policy. By default, Policy will be created in
default
Resource Group. - schematics
Policy StringId - The unique identifier of the schematics_policy.
- scoped
Resources List<SchematicsPolicy Scoped Resource> - List of scoped Schematics resources targeted by the policy. Nested scheme for scoped_resources:
- state
Schematics
Policy State - User defined status of the Schematics object. Nested scheme for state:
- List<String>
- Tags for the Schematics customization policy.
- target
Schematics
Policy Target - The objects for the Schematics policy. Nested scheme for target:
- description string
- The description of Schematics customization policy.
- kind string
- Policy kind or categories for managing and deriving policy decision *
agent_assignment_policy
Agent assignment policy for job execution.- Constraints: Allowable values are:
agent_assignment_policy
.
- Constraints: Allowable values are:
- location string
- List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable values are:
- name string
- Name of Schematics customization policy.
- parameter
Schematics
Policy Parameter - The parameter to tune the Schematics policy. Nested scheme for parameter:
- resource
Group string - The resource group name for the policy. By default, Policy will be created in
default
Resource Group. - schematics
Policy stringId - The unique identifier of the schematics_policy.
- scoped
Resources SchematicsPolicy Scoped Resource[] - List of scoped Schematics resources targeted by the policy. Nested scheme for scoped_resources:
- state
Schematics
Policy State - User defined status of the Schematics object. Nested scheme for state:
- string[]
- Tags for the Schematics customization policy.
- target
Schematics
Policy Target - The objects for the Schematics policy. Nested scheme for target:
- description str
- The description of Schematics customization policy.
- kind str
- Policy kind or categories for managing and deriving policy decision *
agent_assignment_policy
Agent assignment policy for job execution.- Constraints: Allowable values are:
agent_assignment_policy
.
- Constraints: Allowable values are:
- location str
- List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable values are:
- name str
- Name of Schematics customization policy.
- parameter
Schematics
Policy Parameter Args - The parameter to tune the Schematics policy. Nested scheme for parameter:
- resource_
group str - The resource group name for the policy. By default, Policy will be created in
default
Resource Group. - schematics_
policy_ strid - The unique identifier of the schematics_policy.
- scoped_
resources Sequence[SchematicsPolicy Scoped Resource Args] - List of scoped Schematics resources targeted by the policy. Nested scheme for scoped_resources:
- state
Schematics
Policy State Args - User defined status of the Schematics object. Nested scheme for state:
- Sequence[str]
- Tags for the Schematics customization policy.
- target
Schematics
Policy Target Args - The objects for the Schematics policy. Nested scheme for target:
- description String
- The description of Schematics customization policy.
- kind String
- Policy kind or categories for managing and deriving policy decision *
agent_assignment_policy
Agent assignment policy for job execution.- Constraints: Allowable values are:
agent_assignment_policy
.
- Constraints: Allowable values are:
- location String
- List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable values are:
- name String
- Name of Schematics customization policy.
- parameter Property Map
- The parameter to tune the Schematics policy. Nested scheme for parameter:
- resource
Group String - The resource group name for the policy. By default, Policy will be created in
default
Resource Group. - schematics
Policy StringId - The unique identifier of the schematics_policy.
- scoped
Resources List<Property Map> - List of scoped Schematics resources targeted by the policy. Nested scheme for scoped_resources:
- state Property Map
- User defined status of the Schematics object. Nested scheme for state:
- List<String>
- Tags for the Schematics customization policy.
- target Property Map
- The objects for the Schematics policy. Nested scheme for target:
Outputs
All input properties are implicitly available as output properties. Additionally, the SchematicsPolicy resource produces the following output properties:
- account str
- (String) The Account id.
- created_
at str - (String) The policy creation time.
- created_
by str - (String) The user who created the policy.
- crn str
- (String) The policy CRN.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - (String) The policy updation time.
Look up Existing SchematicsPolicy Resource
Get an existing SchematicsPolicy 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?: SchematicsPolicyState, opts?: CustomResourceOptions): SchematicsPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account: Optional[str] = None,
created_at: Optional[str] = None,
created_by: Optional[str] = None,
crn: Optional[str] = None,
description: Optional[str] = None,
kind: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
parameter: Optional[SchematicsPolicyParameterArgs] = None,
resource_group: Optional[str] = None,
schematics_policy_id: Optional[str] = None,
scoped_resources: Optional[Sequence[SchematicsPolicyScopedResourceArgs]] = None,
state: Optional[SchematicsPolicyStateArgs] = None,
tags: Optional[Sequence[str]] = None,
target: Optional[SchematicsPolicyTargetArgs] = None,
updated_at: Optional[str] = None) -> SchematicsPolicy
func GetSchematicsPolicy(ctx *Context, name string, id IDInput, state *SchematicsPolicyState, opts ...ResourceOption) (*SchematicsPolicy, error)
public static SchematicsPolicy Get(string name, Input<string> id, SchematicsPolicyState? state, CustomResourceOptions? opts = null)
public static SchematicsPolicy get(String name, Output<String> id, SchematicsPolicyState state, CustomResourceOptions options)
resources: _: type: ibm:SchematicsPolicy get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account string
- (String) The Account id.
- Created
At string - (String) The policy creation time.
- Created
By string - (String) The user who created the policy.
- Crn string
- (String) The policy CRN.
- Description string
- The description of Schematics customization policy.
- Kind string
- Policy kind or categories for managing and deriving policy decision *
agent_assignment_policy
Agent assignment policy for job execution.- Constraints: Allowable values are:
agent_assignment_policy
.
- Constraints: Allowable values are:
- Location string
- List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable values are:
- Name string
- Name of Schematics customization policy.
- Parameter
Schematics
Policy Parameter - The parameter to tune the Schematics policy. Nested scheme for parameter:
- Resource
Group string - The resource group name for the policy. By default, Policy will be created in
default
Resource Group. - Schematics
Policy stringId - The unique identifier of the schematics_policy.
- Scoped
Resources List<SchematicsPolicy Scoped Resource> - List of scoped Schematics resources targeted by the policy. Nested scheme for scoped_resources:
- State
Schematics
Policy State - User defined status of the Schematics object. Nested scheme for state:
- List<string>
- Tags for the Schematics customization policy.
- Target
Schematics
Policy Target - The objects for the Schematics policy. Nested scheme for target:
- Updated
At string - (String) The policy updation time.
- Account string
- (String) The Account id.
- Created
At string - (String) The policy creation time.
- Created
By string - (String) The user who created the policy.
- Crn string
- (String) The policy CRN.
- Description string
- The description of Schematics customization policy.
- Kind string
- Policy kind or categories for managing and deriving policy decision *
agent_assignment_policy
Agent assignment policy for job execution.- Constraints: Allowable values are:
agent_assignment_policy
.
- Constraints: Allowable values are:
- Location string
- List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable values are:
- Name string
- Name of Schematics customization policy.
- Parameter
Schematics
Policy Parameter Args - The parameter to tune the Schematics policy. Nested scheme for parameter:
- Resource
Group string - The resource group name for the policy. By default, Policy will be created in
default
Resource Group. - Schematics
Policy stringId - The unique identifier of the schematics_policy.
- Scoped
Resources []SchematicsPolicy Scoped Resource Args - List of scoped Schematics resources targeted by the policy. Nested scheme for scoped_resources:
- State
Schematics
Policy State Type Args - User defined status of the Schematics object. Nested scheme for state:
- []string
- Tags for the Schematics customization policy.
- Target
Schematics
Policy Target Args - The objects for the Schematics policy. Nested scheme for target:
- Updated
At string - (String) The policy updation time.
- account String
- (String) The Account id.
- created
At String - (String) The policy creation time.
- created
By String - (String) The user who created the policy.
- crn String
- (String) The policy CRN.
- description String
- The description of Schematics customization policy.
- kind String
- Policy kind or categories for managing and deriving policy decision *
agent_assignment_policy
Agent assignment policy for job execution.- Constraints: Allowable values are:
agent_assignment_policy
.
- Constraints: Allowable values are:
- location String
- List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable values are:
- name String
- Name of Schematics customization policy.
- parameter
Schematics
Policy Parameter - The parameter to tune the Schematics policy. Nested scheme for parameter:
- resource
Group String - The resource group name for the policy. By default, Policy will be created in
default
Resource Group. - schematics
Policy StringId - The unique identifier of the schematics_policy.
- scoped
Resources List<SchematicsPolicy Scoped Resource> - List of scoped Schematics resources targeted by the policy. Nested scheme for scoped_resources:
- state
Schematics
Policy State - User defined status of the Schematics object. Nested scheme for state:
- List<String>
- Tags for the Schematics customization policy.
- target
Schematics
Policy Target - The objects for the Schematics policy. Nested scheme for target:
- updated
At String - (String) The policy updation time.
- account string
- (String) The Account id.
- created
At string - (String) The policy creation time.
- created
By string - (String) The user who created the policy.
- crn string
- (String) The policy CRN.
- description string
- The description of Schematics customization policy.
- kind string
- Policy kind or categories for managing and deriving policy decision *
agent_assignment_policy
Agent assignment policy for job execution.- Constraints: Allowable values are:
agent_assignment_policy
.
- Constraints: Allowable values are:
- location string
- List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable values are:
- name string
- Name of Schematics customization policy.
- parameter
Schematics
Policy Parameter - The parameter to tune the Schematics policy. Nested scheme for parameter:
- resource
Group string - The resource group name for the policy. By default, Policy will be created in
default
Resource Group. - schematics
Policy stringId - The unique identifier of the schematics_policy.
- scoped
Resources SchematicsPolicy Scoped Resource[] - List of scoped Schematics resources targeted by the policy. Nested scheme for scoped_resources:
- state
Schematics
Policy State - User defined status of the Schematics object. Nested scheme for state:
- string[]
- Tags for the Schematics customization policy.
- target
Schematics
Policy Target - The objects for the Schematics policy. Nested scheme for target:
- updated
At string - (String) The policy updation time.
- account str
- (String) The Account id.
- created_
at str - (String) The policy creation time.
- created_
by str - (String) The user who created the policy.
- crn str
- (String) The policy CRN.
- description str
- The description of Schematics customization policy.
- kind str
- Policy kind or categories for managing and deriving policy decision *
agent_assignment_policy
Agent assignment policy for job execution.- Constraints: Allowable values are:
agent_assignment_policy
.
- Constraints: Allowable values are:
- location str
- List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable values are:
- name str
- Name of Schematics customization policy.
- parameter
Schematics
Policy Parameter Args - The parameter to tune the Schematics policy. Nested scheme for parameter:
- resource_
group str - The resource group name for the policy. By default, Policy will be created in
default
Resource Group. - schematics_
policy_ strid - The unique identifier of the schematics_policy.
- scoped_
resources Sequence[SchematicsPolicy Scoped Resource Args] - List of scoped Schematics resources targeted by the policy. Nested scheme for scoped_resources:
- state
Schematics
Policy State Args - User defined status of the Schematics object. Nested scheme for state:
- Sequence[str]
- Tags for the Schematics customization policy.
- target
Schematics
Policy Target Args - The objects for the Schematics policy. Nested scheme for target:
- updated_
at str - (String) The policy updation time.
- account String
- (String) The Account id.
- created
At String - (String) The policy creation time.
- created
By String - (String) The user who created the policy.
- crn String
- (String) The policy CRN.
- description String
- The description of Schematics customization policy.
- kind String
- Policy kind or categories for managing and deriving policy decision *
agent_assignment_policy
Agent assignment policy for job execution.- Constraints: Allowable values are:
agent_assignment_policy
.
- Constraints: Allowable values are:
- location String
- List of locations supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable values are:
- name String
- Name of Schematics customization policy.
- parameter Property Map
- The parameter to tune the Schematics policy. Nested scheme for parameter:
- resource
Group String - The resource group name for the policy. By default, Policy will be created in
default
Resource Group. - schematics
Policy StringId - The unique identifier of the schematics_policy.
- scoped
Resources List<Property Map> - List of scoped Schematics resources targeted by the policy. Nested scheme for scoped_resources:
- state Property Map
- User defined status of the Schematics object. Nested scheme for state:
- List<String>
- Tags for the Schematics customization policy.
- target Property Map
- The objects for the Schematics policy. Nested scheme for target:
- updated
At String - (String) The policy updation time.
Supporting Types
SchematicsPolicyParameter, SchematicsPolicyParameterArgs
- Agent
Assignment SchematicsPolicy Parameter Policy Parameter Agent Assignment Policy Parameter - Parameters for the
agent_assignment_policy
. Nested scheme for agent_assignment_policy_parameter:
- Agent
Assignment SchematicsPolicy Parameter Policy Parameter Agent Assignment Policy Parameter - Parameters for the
agent_assignment_policy
. Nested scheme for agent_assignment_policy_parameter:
- agent
Assignment SchematicsPolicy Parameter Policy Parameter Agent Assignment Policy Parameter - Parameters for the
agent_assignment_policy
. Nested scheme for agent_assignment_policy_parameter:
- agent
Assignment SchematicsPolicy Parameter Policy Parameter Agent Assignment Policy Parameter - Parameters for the
agent_assignment_policy
. Nested scheme for agent_assignment_policy_parameter:
- agent_
assignment_ Schematicspolicy_ parameter Policy Parameter Agent Assignment Policy Parameter - Parameters for the
agent_assignment_policy
. Nested scheme for agent_assignment_policy_parameter:
- agent
Assignment Property MapPolicy Parameter - Parameters for the
agent_assignment_policy
. Nested scheme for agent_assignment_policy_parameter:
SchematicsPolicyParameterAgentAssignmentPolicyParameter, SchematicsPolicyParameterAgentAssignmentPolicyParameterArgs
- Selector
Ids List<string> - The static selectors of schematics object ids (workspace, action or blueprint) for the Schematics policy.
- Selector
Kind string - Types of schematics object selector.
- Constraints: Allowable values are:
ids
,scoped
.
- Constraints: Allowable values are:
- Selector
Scopes List<SchematicsPolicy Parameter Agent Assignment Policy Parameter Selector Scope> - The selectors to dynamically list of schematics object ids (workspace, action or blueprint) for the Schematics policy. Nested scheme for selector_scope:
- Selector
Ids []string - The static selectors of schematics object ids (workspace, action or blueprint) for the Schematics policy.
- Selector
Kind string - Types of schematics object selector.
- Constraints: Allowable values are:
ids
,scoped
.
- Constraints: Allowable values are:
- Selector
Scopes []SchematicsPolicy Parameter Agent Assignment Policy Parameter Selector Scope - The selectors to dynamically list of schematics object ids (workspace, action or blueprint) for the Schematics policy. Nested scheme for selector_scope:
- selector
Ids List<String> - The static selectors of schematics object ids (workspace, action or blueprint) for the Schematics policy.
- selector
Kind String - Types of schematics object selector.
- Constraints: Allowable values are:
ids
,scoped
.
- Constraints: Allowable values are:
- selector
Scopes List<SchematicsPolicy Parameter Agent Assignment Policy Parameter Selector Scope> - The selectors to dynamically list of schematics object ids (workspace, action or blueprint) for the Schematics policy. Nested scheme for selector_scope:
- selector
Ids string[] - The static selectors of schematics object ids (workspace, action or blueprint) for the Schematics policy.
- selector
Kind string - Types of schematics object selector.
- Constraints: Allowable values are:
ids
,scoped
.
- Constraints: Allowable values are:
- selector
Scopes SchematicsPolicy Parameter Agent Assignment Policy Parameter Selector Scope[] - The selectors to dynamically list of schematics object ids (workspace, action or blueprint) for the Schematics policy. Nested scheme for selector_scope:
- selector_
ids Sequence[str] - The static selectors of schematics object ids (workspace, action or blueprint) for the Schematics policy.
- selector_
kind str - Types of schematics object selector.
- Constraints: Allowable values are:
ids
,scoped
.
- Constraints: Allowable values are:
- selector_
scopes Sequence[SchematicsPolicy Parameter Agent Assignment Policy Parameter Selector Scope] - The selectors to dynamically list of schematics object ids (workspace, action or blueprint) for the Schematics policy. Nested scheme for selector_scope:
- selector
Ids List<String> - The static selectors of schematics object ids (workspace, action or blueprint) for the Schematics policy.
- selector
Kind String - Types of schematics object selector.
- Constraints: Allowable values are:
ids
,scoped
.
- Constraints: Allowable values are:
- selector
Scopes List<Property Map> - The selectors to dynamically list of schematics object ids (workspace, action or blueprint) for the Schematics policy. Nested scheme for selector_scope:
SchematicsPolicyParameterAgentAssignmentPolicyParameterSelectorScope, SchematicsPolicyParameterAgentAssignmentPolicyParameterSelectorScopeArgs
- Kind string
- Name of the Schematics automation resource.
- Constraints: Allowable values are:
workspace
,action
,system
,environment
,blueprint
.
- Constraints: Allowable values are:
- Locations List<string>
- The location based selector.
- Constraints: Allowable list items are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable list items are:
- Resource
Groups List<string> - The resource group based selector.
- List<string>
- The tag based selector.
- Kind string
- Name of the Schematics automation resource.
- Constraints: Allowable values are:
workspace
,action
,system
,environment
,blueprint
.
- Constraints: Allowable values are:
- Locations []string
- The location based selector.
- Constraints: Allowable list items are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable list items are:
- Resource
Groups []string - The resource group based selector.
- []string
- The tag based selector.
- kind String
- Name of the Schematics automation resource.
- Constraints: Allowable values are:
workspace
,action
,system
,environment
,blueprint
.
- Constraints: Allowable values are:
- locations List<String>
- The location based selector.
- Constraints: Allowable list items are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable list items are:
- resource
Groups List<String> - The resource group based selector.
- List<String>
- The tag based selector.
- kind string
- Name of the Schematics automation resource.
- Constraints: Allowable values are:
workspace
,action
,system
,environment
,blueprint
.
- Constraints: Allowable values are:
- locations string[]
- The location based selector.
- Constraints: Allowable list items are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable list items are:
- resource
Groups string[] - The resource group based selector.
- string[]
- The tag based selector.
- kind str
- Name of the Schematics automation resource.
- Constraints: Allowable values are:
workspace
,action
,system
,environment
,blueprint
.
- Constraints: Allowable values are:
- locations Sequence[str]
- The location based selector.
- Constraints: Allowable list items are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable list items are:
- resource_
groups Sequence[str] - The resource group based selector.
- Sequence[str]
- The tag based selector.
- kind String
- Name of the Schematics automation resource.
- Constraints: Allowable values are:
workspace
,action
,system
,environment
,blueprint
.
- Constraints: Allowable values are:
- locations List<String>
- The location based selector.
- Constraints: Allowable list items are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable list items are:
- resource
Groups List<String> - The resource group based selector.
- List<String>
- The tag based selector.
SchematicsPolicyScopedResource, SchematicsPolicyScopedResourceArgs
SchematicsPolicyState, SchematicsPolicyStateArgs
- Set
At string - When the User who set the state of the Object.
- Set
By string - Name of the User who set the state of the Object.
- State string
- User-defined states *
draft
Object can be modified; can be used by Jobs run by the author, during execution *live
Object can be modified; can be used by Jobs during execution *locked
Object cannot be modified; can be used by Jobs during execution *disable
Object can be modified. cannot be used by Jobs during execution.- Constraints: Allowable values are:
draft
,live
,locked
,disable
.
- Constraints: Allowable values are:
- Set
At string - When the User who set the state of the Object.
- Set
By string - Name of the User who set the state of the Object.
- State string
- User-defined states *
draft
Object can be modified; can be used by Jobs run by the author, during execution *live
Object can be modified; can be used by Jobs during execution *locked
Object cannot be modified; can be used by Jobs during execution *disable
Object can be modified. cannot be used by Jobs during execution.- Constraints: Allowable values are:
draft
,live
,locked
,disable
.
- Constraints: Allowable values are:
- set
At String - When the User who set the state of the Object.
- set
By String - Name of the User who set the state of the Object.
- state String
- User-defined states *
draft
Object can be modified; can be used by Jobs run by the author, during execution *live
Object can be modified; can be used by Jobs during execution *locked
Object cannot be modified; can be used by Jobs during execution *disable
Object can be modified. cannot be used by Jobs during execution.- Constraints: Allowable values are:
draft
,live
,locked
,disable
.
- Constraints: Allowable values are:
- set
At string - When the User who set the state of the Object.
- set
By string - Name of the User who set the state of the Object.
- state string
- User-defined states *
draft
Object can be modified; can be used by Jobs run by the author, during execution *live
Object can be modified; can be used by Jobs during execution *locked
Object cannot be modified; can be used by Jobs during execution *disable
Object can be modified. cannot be used by Jobs during execution.- Constraints: Allowable values are:
draft
,live
,locked
,disable
.
- Constraints: Allowable values are:
- set_
at str - When the User who set the state of the Object.
- set_
by str - Name of the User who set the state of the Object.
- state str
- User-defined states *
draft
Object can be modified; can be used by Jobs run by the author, during execution *live
Object can be modified; can be used by Jobs during execution *locked
Object cannot be modified; can be used by Jobs during execution *disable
Object can be modified. cannot be used by Jobs during execution.- Constraints: Allowable values are:
draft
,live
,locked
,disable
.
- Constraints: Allowable values are:
- set
At String - When the User who set the state of the Object.
- set
By String - Name of the User who set the state of the Object.
- state String
- User-defined states *
draft
Object can be modified; can be used by Jobs run by the author, during execution *live
Object can be modified; can be used by Jobs during execution *locked
Object cannot be modified; can be used by Jobs during execution *disable
Object can be modified. cannot be used by Jobs during execution.- Constraints: Allowable values are:
draft
,live
,locked
,disable
.
- Constraints: Allowable values are:
SchematicsPolicyTarget, SchematicsPolicyTargetArgs
- Selector
Ids List<string> - Static selectors of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy.
- Selector
Kind string - Types of schematics object selector.
- Constraints: Allowable values are:
ids
,scoped
.
- Constraints: Allowable values are:
- Selector
Scopes List<SchematicsPolicy Target Selector Scope> - Selectors to dynamically list of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy. Nested scheme for selector_scope:
- Selector
Ids []string - Static selectors of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy.
- Selector
Kind string - Types of schematics object selector.
- Constraints: Allowable values are:
ids
,scoped
.
- Constraints: Allowable values are:
- Selector
Scopes []SchematicsPolicy Target Selector Scope - Selectors to dynamically list of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy. Nested scheme for selector_scope:
- selector
Ids List<String> - Static selectors of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy.
- selector
Kind String - Types of schematics object selector.
- Constraints: Allowable values are:
ids
,scoped
.
- Constraints: Allowable values are:
- selector
Scopes List<SchematicsPolicy Target Selector Scope> - Selectors to dynamically list of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy. Nested scheme for selector_scope:
- selector
Ids string[] - Static selectors of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy.
- selector
Kind string - Types of schematics object selector.
- Constraints: Allowable values are:
ids
,scoped
.
- Constraints: Allowable values are:
- selector
Scopes SchematicsPolicy Target Selector Scope[] - Selectors to dynamically list of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy. Nested scheme for selector_scope:
- selector_
ids Sequence[str] - Static selectors of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy.
- selector_
kind str - Types of schematics object selector.
- Constraints: Allowable values are:
ids
,scoped
.
- Constraints: Allowable values are:
- selector_
scopes Sequence[SchematicsPolicy Target Selector Scope] - Selectors to dynamically list of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy. Nested scheme for selector_scope:
- selector
Ids List<String> - Static selectors of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy.
- selector
Kind String - Types of schematics object selector.
- Constraints: Allowable values are:
ids
,scoped
.
- Constraints: Allowable values are:
- selector
Scopes List<Property Map> - Selectors to dynamically list of schematics object ids (agent, workspace, action or blueprint) for the Schematics policy. Nested scheme for selector_scope:
SchematicsPolicyTargetSelectorScope, SchematicsPolicyTargetSelectorScopeArgs
- Kind string
- Name of the Schematics automation resource.
- Constraints: Allowable values are:
workspace
,action
,system
,environment
,blueprint
.
- Constraints: Allowable values are:
- Locations List<string>
- The location based selector.
- Constraints: Allowable list items are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable list items are:
- Resource
Groups List<string> - The resource group based selector.
- List<string>
- The tag based selector.
- Kind string
- Name of the Schematics automation resource.
- Constraints: Allowable values are:
workspace
,action
,system
,environment
,blueprint
.
- Constraints: Allowable values are:
- Locations []string
- The location based selector.
- Constraints: Allowable list items are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable list items are:
- Resource
Groups []string - The resource group based selector.
- []string
- The tag based selector.
- kind String
- Name of the Schematics automation resource.
- Constraints: Allowable values are:
workspace
,action
,system
,environment
,blueprint
.
- Constraints: Allowable values are:
- locations List<String>
- The location based selector.
- Constraints: Allowable list items are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable list items are:
- resource
Groups List<String> - The resource group based selector.
- List<String>
- The tag based selector.
- kind string
- Name of the Schematics automation resource.
- Constraints: Allowable values are:
workspace
,action
,system
,environment
,blueprint
.
- Constraints: Allowable values are:
- locations string[]
- The location based selector.
- Constraints: Allowable list items are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable list items are:
- resource
Groups string[] - The resource group based selector.
- string[]
- The tag based selector.
- kind str
- Name of the Schematics automation resource.
- Constraints: Allowable values are:
workspace
,action
,system
,environment
,blueprint
.
- Constraints: Allowable values are:
- locations Sequence[str]
- The location based selector.
- Constraints: Allowable list items are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable list items are:
- resource_
groups Sequence[str] - The resource group based selector.
- Sequence[str]
- The tag based selector.
- kind String
- Name of the Schematics automation resource.
- Constraints: Allowable values are:
workspace
,action
,system
,environment
,blueprint
.
- Constraints: Allowable values are:
- locations List<String>
- The location based selector.
- Constraints: Allowable list items are:
us-south
,us-east
,eu-gb
,eu-de
.
- Constraints: Allowable list items are:
- resource
Groups List<String> - The resource group based selector.
- List<String>
- The tag based selector.
Import
You can import the ibm_schematics_policy
resource by using id
. The system generated policy Id.
Syntax
$ pulumi import ibm:index/schematicsPolicy:SchematicsPolicy schematics_policy <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.