mso.SchemaTemplateContract
Explore with Pulumi AI
Create SchemaTemplateContract Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SchemaTemplateContract(name: string, args: SchemaTemplateContractArgs, opts?: CustomResourceOptions);
@overload
def SchemaTemplateContract(resource_name: str,
args: SchemaTemplateContractArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SchemaTemplateContract(resource_name: str,
opts: Optional[ResourceOptions] = None,
contract_name: Optional[str] = None,
template_name: Optional[str] = None,
schema_id: Optional[str] = None,
filter_type: Optional[str] = None,
filter_relationship: Optional[Sequence[SchemaTemplateContractFilterRelationshipArgs]] = None,
filter_relationships: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
priority: Optional[str] = None,
directives: Optional[Sequence[str]] = None,
schema_template_contract_id: Optional[str] = None,
scope: Optional[str] = None,
target_dscp: Optional[str] = None,
description: Optional[str] = None)
func NewSchemaTemplateContract(ctx *Context, name string, args SchemaTemplateContractArgs, opts ...ResourceOption) (*SchemaTemplateContract, error)
public SchemaTemplateContract(string name, SchemaTemplateContractArgs args, CustomResourceOptions? opts = null)
public SchemaTemplateContract(String name, SchemaTemplateContractArgs args)
public SchemaTemplateContract(String name, SchemaTemplateContractArgs args, CustomResourceOptions options)
type: mso:SchemaTemplateContract
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 SchemaTemplateContractArgs
- 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 SchemaTemplateContractArgs
- 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 SchemaTemplateContractArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SchemaTemplateContractArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SchemaTemplateContractArgs
- 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 schemaTemplateContractResource = new Mso.SchemaTemplateContract("schemaTemplateContractResource", new()
{
ContractName = "string",
TemplateName = "string",
SchemaId = "string",
FilterType = "string",
FilterRelationship = new[]
{
new Mso.Inputs.SchemaTemplateContractFilterRelationshipArgs
{
FilterName = "string",
FilterType = "string",
Action = "string",
Directives = new[]
{
"string",
},
FilterSchemaId = "string",
FilterTemplateName = "string",
Priority = "string",
},
},
DisplayName = "string",
Priority = "string",
SchemaTemplateContractId = "string",
Scope = "string",
TargetDscp = "string",
Description = "string",
});
example, err := mso.NewSchemaTemplateContract(ctx, "schemaTemplateContractResource", &mso.SchemaTemplateContractArgs{
ContractName: pulumi.String("string"),
TemplateName: pulumi.String("string"),
SchemaId: pulumi.String("string"),
FilterType: pulumi.String("string"),
FilterRelationship: .SchemaTemplateContractFilterRelationshipArray{
&.SchemaTemplateContractFilterRelationshipArgs{
FilterName: pulumi.String("string"),
FilterType: pulumi.String("string"),
Action: pulumi.String("string"),
Directives: pulumi.StringArray{
pulumi.String("string"),
},
FilterSchemaId: pulumi.String("string"),
FilterTemplateName: pulumi.String("string"),
Priority: pulumi.String("string"),
},
},
DisplayName: pulumi.String("string"),
Priority: pulumi.String("string"),
SchemaTemplateContractId: pulumi.String("string"),
Scope: pulumi.String("string"),
TargetDscp: pulumi.String("string"),
Description: pulumi.String("string"),
})
var schemaTemplateContractResource = new SchemaTemplateContract("schemaTemplateContractResource", SchemaTemplateContractArgs.builder()
.contractName("string")
.templateName("string")
.schemaId("string")
.filterType("string")
.filterRelationship(SchemaTemplateContractFilterRelationshipArgs.builder()
.filterName("string")
.filterType("string")
.action("string")
.directives("string")
.filterSchemaId("string")
.filterTemplateName("string")
.priority("string")
.build())
.displayName("string")
.priority("string")
.schemaTemplateContractId("string")
.scope("string")
.targetDscp("string")
.description("string")
.build());
schema_template_contract_resource = mso.SchemaTemplateContract("schemaTemplateContractResource",
contract_name="string",
template_name="string",
schema_id="string",
filter_type="string",
filter_relationship=[{
"filter_name": "string",
"filter_type": "string",
"action": "string",
"directives": ["string"],
"filter_schema_id": "string",
"filter_template_name": "string",
"priority": "string",
}],
display_name="string",
priority="string",
schema_template_contract_id="string",
scope="string",
target_dscp="string",
description="string")
const schemaTemplateContractResource = new mso.SchemaTemplateContract("schemaTemplateContractResource", {
contractName: "string",
templateName: "string",
schemaId: "string",
filterType: "string",
filterRelationship: [{
filterName: "string",
filterType: "string",
action: "string",
directives: ["string"],
filterSchemaId: "string",
filterTemplateName: "string",
priority: "string",
}],
displayName: "string",
priority: "string",
schemaTemplateContractId: "string",
scope: "string",
targetDscp: "string",
description: "string",
});
type: mso:SchemaTemplateContract
properties:
contractName: string
description: string
displayName: string
filterRelationship:
- action: string
directives:
- string
filterName: string
filterSchemaId: string
filterTemplateName: string
filterType: string
priority: string
filterType: string
priority: string
schemaId: string
schemaTemplateContractId: string
scope: string
targetDscp: string
templateName: string
SchemaTemplateContract 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 SchemaTemplateContract resource accepts the following input properties:
- Contract
Name string - Schema
Id string - Template
Name string - Description string
- Directives List<string>
- Display
Name string - Filter
Relationship List<SchemaTemplate Contract Filter Relationship> - Filter
Relationships Dictionary<string, string> - Filter
Type string - Priority string
- Schema
Template stringContract Id - Scope string
- Target
Dscp string
- Contract
Name string - Schema
Id string - Template
Name string - Description string
- Directives []string
- Display
Name string - Filter
Relationship []SchemaTemplate Contract Filter Relationship Args - Filter
Relationships map[string]string - Filter
Type string - Priority string
- Schema
Template stringContract Id - Scope string
- Target
Dscp string
- contract
Name String - schema
Id String - template
Name String - description String
- directives List<String>
- display
Name String - filter
Relationship List<SchemaTemplate Contract Filter Relationship> - filter
Relationships Map<String,String> - filter
Type String - priority String
- schema
Template StringContract Id - scope String
- target
Dscp String
- contract
Name string - schema
Id string - template
Name string - description string
- directives string[]
- display
Name string - filter
Relationship SchemaTemplate Contract Filter Relationship[] - filter
Relationships {[key: string]: string} - filter
Type string - priority string
- schema
Template stringContract Id - scope string
- target
Dscp string
- contract_
name str - schema_
id str - template_
name str - description str
- directives Sequence[str]
- display_
name str - filter_
relationship Sequence[SchemaTemplate Contract Filter Relationship Args] - filter_
relationships Mapping[str, str] - filter_
type str - priority str
- schema_
template_ strcontract_ id - scope str
- target_
dscp str
- contract
Name String - schema
Id String - template
Name String - description String
- directives List<String>
- display
Name String - filter
Relationship List<Property Map> - filter
Relationships Map<String> - filter
Type String - priority String
- schema
Template StringContract Id - scope String
- target
Dscp String
Outputs
All input properties are implicitly available as output properties. Additionally, the SchemaTemplateContract 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 SchemaTemplateContract Resource
Get an existing SchemaTemplateContract 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?: SchemaTemplateContractState, opts?: CustomResourceOptions): SchemaTemplateContract
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
contract_name: Optional[str] = None,
description: Optional[str] = None,
directives: Optional[Sequence[str]] = None,
display_name: Optional[str] = None,
filter_relationship: Optional[Sequence[SchemaTemplateContractFilterRelationshipArgs]] = None,
filter_relationships: Optional[Mapping[str, str]] = None,
filter_type: Optional[str] = None,
priority: Optional[str] = None,
schema_id: Optional[str] = None,
schema_template_contract_id: Optional[str] = None,
scope: Optional[str] = None,
target_dscp: Optional[str] = None,
template_name: Optional[str] = None) -> SchemaTemplateContract
func GetSchemaTemplateContract(ctx *Context, name string, id IDInput, state *SchemaTemplateContractState, opts ...ResourceOption) (*SchemaTemplateContract, error)
public static SchemaTemplateContract Get(string name, Input<string> id, SchemaTemplateContractState? state, CustomResourceOptions? opts = null)
public static SchemaTemplateContract get(String name, Output<String> id, SchemaTemplateContractState state, CustomResourceOptions options)
resources: _: type: mso:SchemaTemplateContract 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.
- Contract
Name string - Description string
- Directives List<string>
- Display
Name string - Filter
Relationship List<SchemaTemplate Contract Filter Relationship> - Filter
Relationships Dictionary<string, string> - Filter
Type string - Priority string
- Schema
Id string - Schema
Template stringContract Id - Scope string
- Target
Dscp string - Template
Name string
- Contract
Name string - Description string
- Directives []string
- Display
Name string - Filter
Relationship []SchemaTemplate Contract Filter Relationship Args - Filter
Relationships map[string]string - Filter
Type string - Priority string
- Schema
Id string - Schema
Template stringContract Id - Scope string
- Target
Dscp string - Template
Name string
- contract
Name String - description String
- directives List<String>
- display
Name String - filter
Relationship List<SchemaTemplate Contract Filter Relationship> - filter
Relationships Map<String,String> - filter
Type String - priority String
- schema
Id String - schema
Template StringContract Id - scope String
- target
Dscp String - template
Name String
- contract
Name string - description string
- directives string[]
- display
Name string - filter
Relationship SchemaTemplate Contract Filter Relationship[] - filter
Relationships {[key: string]: string} - filter
Type string - priority string
- schema
Id string - schema
Template stringContract Id - scope string
- target
Dscp string - template
Name string
- contract_
name str - description str
- directives Sequence[str]
- display_
name str - filter_
relationship Sequence[SchemaTemplate Contract Filter Relationship Args] - filter_
relationships Mapping[str, str] - filter_
type str - priority str
- schema_
id str - schema_
template_ strcontract_ id - scope str
- target_
dscp str - template_
name str
- contract
Name String - description String
- directives List<String>
- display
Name String - filter
Relationship List<Property Map> - filter
Relationships Map<String> - filter
Type String - priority String
- schema
Id String - schema
Template StringContract Id - scope String
- target
Dscp String - template
Name String
Supporting Types
SchemaTemplateContractFilterRelationship, SchemaTemplateContractFilterRelationshipArgs
- Filter
Name string - Filter
Type string - Action string
- Directives List<string>
- Filter
Schema stringId - Filter
Template stringName - Priority string
- Filter
Name string - Filter
Type string - Action string
- Directives []string
- Filter
Schema stringId - Filter
Template stringName - Priority string
- filter
Name String - filter
Type String - action String
- directives List<String>
- filter
Schema StringId - filter
Template StringName - priority String
- filter
Name string - filter
Type string - action string
- directives string[]
- filter
Schema stringId - filter
Template stringName - priority string
- filter_
name str - filter_
type str - action str
- directives Sequence[str]
- filter_
schema_ strid - filter_
template_ strname - priority str
- filter
Name String - filter
Type String - action String
- directives List<String>
- filter
Schema StringId - filter
Template StringName - priority String
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the
mso
Terraform Provider.