Create SchemaTemplateContractServiceChaining Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SchemaTemplateContractServiceChaining(name: string, args: SchemaTemplateContractServiceChainingArgs, opts?: CustomResourceOptions);@overload
def SchemaTemplateContractServiceChaining(resource_name: str,
args: SchemaTemplateContractServiceChainingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SchemaTemplateContractServiceChaining(resource_name: str,
opts: Optional[ResourceOptions] = None,
contract_name: Optional[str] = None,
schema_id: Optional[str] = None,
service_nodes: Optional[Sequence[SchemaTemplateContractServiceChainingServiceNodeArgs]] = None,
template_name: Optional[str] = None,
node_filter: Optional[str] = None,
schema_template_contract_service_chaining_id: Optional[str] = None)func NewSchemaTemplateContractServiceChaining(ctx *Context, name string, args SchemaTemplateContractServiceChainingArgs, opts ...ResourceOption) (*SchemaTemplateContractServiceChaining, error)public SchemaTemplateContractServiceChaining(string name, SchemaTemplateContractServiceChainingArgs args, CustomResourceOptions? opts = null)
public SchemaTemplateContractServiceChaining(String name, SchemaTemplateContractServiceChainingArgs args)
public SchemaTemplateContractServiceChaining(String name, SchemaTemplateContractServiceChainingArgs args, CustomResourceOptions options)
type: mso:SchemaTemplateContractServiceChaining
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 SchemaTemplateContractServiceChainingArgs
- 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 SchemaTemplateContractServiceChainingArgs
- 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 SchemaTemplateContractServiceChainingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SchemaTemplateContractServiceChainingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SchemaTemplateContractServiceChainingArgs
- 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 schemaTemplateContractServiceChainingResource = new Mso.SchemaTemplateContractServiceChaining("schemaTemplateContractServiceChainingResource", new()
{
ContractName = "string",
SchemaId = "string",
ServiceNodes = new[]
{
new Mso.Inputs.SchemaTemplateContractServiceChainingServiceNodeArgs
{
ConsumerConnector = new Mso.Inputs.SchemaTemplateContractServiceChainingServiceNodeConsumerConnectorArgs
{
InterfaceName = "string",
IsRedirect = false,
},
DeviceRef = "string",
DeviceType = "string",
Name = "string",
ProviderConnector = new Mso.Inputs.SchemaTemplateContractServiceChainingServiceNodeProviderConnectorArgs
{
InterfaceName = "string",
IsRedirect = false,
},
Index = 0,
Uuid = "string",
},
},
TemplateName = "string",
NodeFilter = "string",
SchemaTemplateContractServiceChainingId = "string",
});
example, err := mso.NewSchemaTemplateContractServiceChaining(ctx, "schemaTemplateContractServiceChainingResource", &mso.SchemaTemplateContractServiceChainingArgs{
ContractName: pulumi.String("string"),
SchemaId: pulumi.String("string"),
ServiceNodes: mso.SchemaTemplateContractServiceChainingServiceNodeArray{
&mso.SchemaTemplateContractServiceChainingServiceNodeArgs{
ConsumerConnector: &mso.SchemaTemplateContractServiceChainingServiceNodeConsumerConnectorArgs{
InterfaceName: pulumi.String("string"),
IsRedirect: pulumi.Bool(false),
},
DeviceRef: pulumi.String("string"),
DeviceType: pulumi.String("string"),
Name: pulumi.String("string"),
ProviderConnector: &mso.SchemaTemplateContractServiceChainingServiceNodeProviderConnectorArgs{
InterfaceName: pulumi.String("string"),
IsRedirect: pulumi.Bool(false),
},
Index: pulumi.Float64(0),
Uuid: pulumi.String("string"),
},
},
TemplateName: pulumi.String("string"),
NodeFilter: pulumi.String("string"),
SchemaTemplateContractServiceChainingId: pulumi.String("string"),
})
var schemaTemplateContractServiceChainingResource = new SchemaTemplateContractServiceChaining("schemaTemplateContractServiceChainingResource", SchemaTemplateContractServiceChainingArgs.builder()
.contractName("string")
.schemaId("string")
.serviceNodes(SchemaTemplateContractServiceChainingServiceNodeArgs.builder()
.consumerConnector(SchemaTemplateContractServiceChainingServiceNodeConsumerConnectorArgs.builder()
.interfaceName("string")
.isRedirect(false)
.build())
.deviceRef("string")
.deviceType("string")
.name("string")
.providerConnector(SchemaTemplateContractServiceChainingServiceNodeProviderConnectorArgs.builder()
.interfaceName("string")
.isRedirect(false)
.build())
.index(0.0)
.uuid("string")
.build())
.templateName("string")
.nodeFilter("string")
.schemaTemplateContractServiceChainingId("string")
.build());
schema_template_contract_service_chaining_resource = mso.SchemaTemplateContractServiceChaining("schemaTemplateContractServiceChainingResource",
contract_name="string",
schema_id="string",
service_nodes=[{
"consumer_connector": {
"interface_name": "string",
"is_redirect": False,
},
"device_ref": "string",
"device_type": "string",
"name": "string",
"provider_connector": {
"interface_name": "string",
"is_redirect": False,
},
"index": 0,
"uuid": "string",
}],
template_name="string",
node_filter="string",
schema_template_contract_service_chaining_id="string")
const schemaTemplateContractServiceChainingResource = new mso.SchemaTemplateContractServiceChaining("schemaTemplateContractServiceChainingResource", {
contractName: "string",
schemaId: "string",
serviceNodes: [{
consumerConnector: {
interfaceName: "string",
isRedirect: false,
},
deviceRef: "string",
deviceType: "string",
name: "string",
providerConnector: {
interfaceName: "string",
isRedirect: false,
},
index: 0,
uuid: "string",
}],
templateName: "string",
nodeFilter: "string",
schemaTemplateContractServiceChainingId: "string",
});
type: mso:SchemaTemplateContractServiceChaining
properties:
contractName: string
nodeFilter: string
schemaId: string
schemaTemplateContractServiceChainingId: string
serviceNodes:
- consumerConnector:
interfaceName: string
isRedirect: false
deviceRef: string
deviceType: string
index: 0
name: string
providerConnector:
interfaceName: string
isRedirect: false
uuid: string
templateName: string
SchemaTemplateContractServiceChaining 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 SchemaTemplateContractServiceChaining resource accepts the following input properties:
- Contract
Name string - Schema
Id string - Service
Nodes List<SchemaTemplate Contract Service Chaining Service Node> - List of service nodes in the service chaining graph.
- Template
Name string - Node
Filter string - Schema
Template stringContract Service Chaining Id
- Contract
Name string - Schema
Id string - Service
Nodes []SchemaTemplate Contract Service Chaining Service Node Args - List of service nodes in the service chaining graph.
- Template
Name string - Node
Filter string - Schema
Template stringContract Service Chaining Id
- contract
Name String - schema
Id String - service
Nodes List<SchemaTemplate Contract Service Chaining Service Node> - List of service nodes in the service chaining graph.
- template
Name String - node
Filter String - schema
Template StringContract Service Chaining Id
- contract
Name string - schema
Id string - service
Nodes SchemaTemplate Contract Service Chaining Service Node[] - List of service nodes in the service chaining graph.
- template
Name string - node
Filter string - schema
Template stringContract Service Chaining Id
- contract_
name str - schema_
id str - service_
nodes Sequence[SchemaTemplate Contract Service Chaining Service Node Args] - List of service nodes in the service chaining graph.
- template_
name str - node_
filter str - schema_
template_ strcontract_ service_ chaining_ id
- contract
Name String - schema
Id String - service
Nodes List<Property Map> - List of service nodes in the service chaining graph.
- template
Name String - node
Filter String - schema
Template StringContract Service Chaining Id
Outputs
All input properties are implicitly available as output properties. Additionally, the SchemaTemplateContractServiceChaining resource produces the following output properties:
Look up Existing SchemaTemplateContractServiceChaining Resource
Get an existing SchemaTemplateContractServiceChaining 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?: SchemaTemplateContractServiceChainingState, opts?: CustomResourceOptions): SchemaTemplateContractServiceChaining@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
contract_name: Optional[str] = None,
name: Optional[str] = None,
node_filter: Optional[str] = None,
schema_id: Optional[str] = None,
schema_template_contract_service_chaining_id: Optional[str] = None,
service_nodes: Optional[Sequence[SchemaTemplateContractServiceChainingServiceNodeArgs]] = None,
template_name: Optional[str] = None) -> SchemaTemplateContractServiceChainingfunc GetSchemaTemplateContractServiceChaining(ctx *Context, name string, id IDInput, state *SchemaTemplateContractServiceChainingState, opts ...ResourceOption) (*SchemaTemplateContractServiceChaining, error)public static SchemaTemplateContractServiceChaining Get(string name, Input<string> id, SchemaTemplateContractServiceChainingState? state, CustomResourceOptions? opts = null)public static SchemaTemplateContractServiceChaining get(String name, Output<String> id, SchemaTemplateContractServiceChainingState state, CustomResourceOptions options)resources: _: type: mso:SchemaTemplateContractServiceChaining 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 - Name string
- Node
Filter string - Schema
Id string - Schema
Template stringContract Service Chaining Id - Service
Nodes List<SchemaTemplate Contract Service Chaining Service Node> - List of service nodes in the service chaining graph.
- Template
Name string
- Contract
Name string - Name string
- Node
Filter string - Schema
Id string - Schema
Template stringContract Service Chaining Id - Service
Nodes []SchemaTemplate Contract Service Chaining Service Node Args - List of service nodes in the service chaining graph.
- Template
Name string
- contract
Name String - name String
- node
Filter String - schema
Id String - schema
Template StringContract Service Chaining Id - service
Nodes List<SchemaTemplate Contract Service Chaining Service Node> - List of service nodes in the service chaining graph.
- template
Name String
- contract
Name string - name string
- node
Filter string - schema
Id string - schema
Template stringContract Service Chaining Id - service
Nodes SchemaTemplate Contract Service Chaining Service Node[] - List of service nodes in the service chaining graph.
- template
Name string
- contract_
name str - name str
- node_
filter str - schema_
id str - schema_
template_ strcontract_ service_ chaining_ id - service_
nodes Sequence[SchemaTemplate Contract Service Chaining Service Node Args] - List of service nodes in the service chaining graph.
- template_
name str
- contract
Name String - name String
- node
Filter String - schema
Id String - schema
Template StringContract Service Chaining Id - service
Nodes List<Property Map> - List of service nodes in the service chaining graph.
- template
Name String
Supporting Types
SchemaTemplateContractServiceChainingServiceNode, SchemaTemplateContractServiceChainingServiceNodeArgs
- consumer
Connector Property Map - device
Ref String - device
Type String - name String
- provider
Connector Property Map - index Number
- uuid String
SchemaTemplateContractServiceChainingServiceNodeConsumerConnector, SchemaTemplateContractServiceChainingServiceNodeConsumerConnectorArgs
- Interface
Name string - Is
Redirect bool
- Interface
Name string - Is
Redirect bool
- interface
Name String - is
Redirect Boolean
- interface
Name string - is
Redirect boolean
- interface_
name str - is_
redirect bool
- interface
Name String - is
Redirect Boolean
SchemaTemplateContractServiceChainingServiceNodeProviderConnector, SchemaTemplateContractServiceChainingServiceNodeProviderConnectorArgs
- Interface
Name string - Is
Redirect bool
- Interface
Name string - Is
Redirect bool
- interface
Name String - is
Redirect Boolean
- interface
Name string - is
Redirect boolean
- interface_
name str - is_
redirect bool
- interface
Name String - is
Redirect Boolean
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the
msoTerraform Provider.
