1. Packages
  2. Mso Provider
  3. API Docs
  4. SchemaTemplateContract
mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet

mso.SchemaTemplateContract

Explore with Pulumi AI

mso logo
mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet

    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:

    ContractName string
    SchemaId string
    TemplateName string
    Description string
    Directives List<string>

    Deprecated: Deprecated

    DisplayName string
    FilterRelationship List<SchemaTemplateContractFilterRelationship>
    FilterRelationships Dictionary<string, string>

    Deprecated: Deprecated

    FilterType string
    Priority string
    SchemaTemplateContractId string
    Scope string
    TargetDscp string
    ContractName string
    SchemaId string
    TemplateName string
    Description string
    Directives []string

    Deprecated: Deprecated

    DisplayName string
    FilterRelationship []SchemaTemplateContractFilterRelationshipArgs
    FilterRelationships map[string]string

    Deprecated: Deprecated

    FilterType string
    Priority string
    SchemaTemplateContractId string
    Scope string
    TargetDscp string
    contractName String
    schemaId String
    templateName String
    description String
    directives List<String>

    Deprecated: Deprecated

    displayName String
    filterRelationship List<SchemaTemplateContractFilterRelationship>
    filterRelationships Map<String,String>

    Deprecated: Deprecated

    filterType String
    priority String
    schemaTemplateContractId String
    scope String
    targetDscp String
    contractName string
    schemaId string
    templateName string
    description string
    directives string[]

    Deprecated: Deprecated

    displayName string
    filterRelationship SchemaTemplateContractFilterRelationship[]
    filterRelationships {[key: string]: string}

    Deprecated: Deprecated

    filterType string
    priority string
    schemaTemplateContractId string
    scope string
    targetDscp string
    contractName String
    schemaId String
    templateName String
    description String
    directives List<String>

    Deprecated: Deprecated

    displayName String
    filterRelationship List<Property Map>
    filterRelationships Map<String>

    Deprecated: Deprecated

    filterType String
    priority String
    schemaTemplateContractId String
    scope String
    targetDscp 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.
    The following state arguments are supported:
    ContractName string
    Description string
    Directives List<string>

    Deprecated: Deprecated

    DisplayName string
    FilterRelationship List<SchemaTemplateContractFilterRelationship>
    FilterRelationships Dictionary<string, string>

    Deprecated: Deprecated

    FilterType string
    Priority string
    SchemaId string
    SchemaTemplateContractId string
    Scope string
    TargetDscp string
    TemplateName string
    ContractName string
    Description string
    Directives []string

    Deprecated: Deprecated

    DisplayName string
    FilterRelationship []SchemaTemplateContractFilterRelationshipArgs
    FilterRelationships map[string]string

    Deprecated: Deprecated

    FilterType string
    Priority string
    SchemaId string
    SchemaTemplateContractId string
    Scope string
    TargetDscp string
    TemplateName string
    contractName String
    description String
    directives List<String>

    Deprecated: Deprecated

    displayName String
    filterRelationship List<SchemaTemplateContractFilterRelationship>
    filterRelationships Map<String,String>

    Deprecated: Deprecated

    filterType String
    priority String
    schemaId String
    schemaTemplateContractId String
    scope String
    targetDscp String
    templateName String
    contractName string
    description string
    directives string[]

    Deprecated: Deprecated

    displayName string
    filterRelationship SchemaTemplateContractFilterRelationship[]
    filterRelationships {[key: string]: string}

    Deprecated: Deprecated

    filterType string
    priority string
    schemaId string
    schemaTemplateContractId string
    scope string
    targetDscp string
    templateName string
    contractName String
    description String
    directives List<String>

    Deprecated: Deprecated

    displayName String
    filterRelationship List<Property Map>
    filterRelationships Map<String>

    Deprecated: Deprecated

    filterType String
    priority String
    schemaId String
    schemaTemplateContractId String
    scope String
    targetDscp String
    templateName String

    Supporting Types

    SchemaTemplateContractFilterRelationship, SchemaTemplateContractFilterRelationshipArgs

    FilterName string
    FilterType string
    Action string
    Directives List<string>
    FilterSchemaId string
    FilterTemplateName string
    Priority string
    FilterName string
    FilterType string
    Action string
    Directives []string
    FilterSchemaId string
    FilterTemplateName string
    Priority string
    filterName String
    filterType String
    action String
    directives List<String>
    filterSchemaId String
    filterTemplateName String
    priority String
    filterName string
    filterType string
    action string
    directives string[]
    filterSchemaId string
    filterTemplateName string
    priority string
    filterName String
    filterType String
    action String
    directives List<String>
    filterSchemaId String
    filterTemplateName String
    priority String

    Package Details

    Repository
    mso ciscodevnet/terraform-provider-mso
    License
    Notes
    This Pulumi package is based on the mso Terraform Provider.
    mso logo
    mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet