azure-native.peering.Prefix
Explore with Pulumi AI
The peering service prefix class.
Uses Azure REST API version 2022-10-01. In version 2.x of the Azure Native provider, it used API version 2022-10-01.
Create Prefix Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Prefix(name: string, args: PrefixArgs, opts?: CustomResourceOptions);
@overload
def Prefix(resource_name: str,
args: PrefixArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Prefix(resource_name: str,
opts: Optional[ResourceOptions] = None,
peering_service_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
peering_service_prefix_key: Optional[str] = None,
prefix: Optional[str] = None,
prefix_name: Optional[str] = None)
func NewPrefix(ctx *Context, name string, args PrefixArgs, opts ...ResourceOption) (*Prefix, error)
public Prefix(string name, PrefixArgs args, CustomResourceOptions? opts = null)
public Prefix(String name, PrefixArgs args)
public Prefix(String name, PrefixArgs args, CustomResourceOptions options)
type: azure-native:peering:Prefix
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. PrefixArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. PrefixArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. PrefixArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. PrefixArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. PrefixArgs - 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 prefixResource = new AzureNative.Peering.Prefix("prefixResource", new()
{
PeeringServiceName = "string",
ResourceGroupName = "string",
PeeringServicePrefixKey = "string",
Prefix = "string",
PrefixName = "string",
});
example, err := peering.NewPrefix(ctx, "prefixResource", &peering.PrefixArgs{
PeeringServiceName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
PeeringServicePrefixKey: pulumi.String("string"),
Prefix: pulumi.String("string"),
PrefixName: pulumi.String("string"),
})
var prefixResource = new Prefix("prefixResource", PrefixArgs.builder()
.peeringServiceName("string")
.resourceGroupName("string")
.peeringServicePrefixKey("string")
.prefix("string")
.prefixName("string")
.build());
prefix_resource = azure_native.peering.Prefix("prefixResource",
peering_service_name="string",
resource_group_name="string",
peering_service_prefix_key="string",
prefix="string",
prefix_name="string")
const prefixResource = new azure_native.peering.Prefix("prefixResource", {
peeringServiceName: "string",
resourceGroupName: "string",
peeringServicePrefixKey: "string",
prefix: "string",
prefixName: "string",
});
type: azure-native:peering:Prefix
properties:
peeringServiceName: string
peeringServicePrefixKey: string
prefix: string
prefixName: string
resourceGroupName: string
Prefix 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 Prefix resource accepts the following input properties:
- Peering
Service Name This property is required. Changes to this property will trigger replacement.
- The name of the peering service.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- Peering
Service stringPrefix Key - The peering service prefix key
- Prefix string
- The prefix from which your traffic originates.
- Prefix
Name Changes to this property will trigger replacement.
- The name of the prefix.
- Peering
Service Name This property is required. Changes to this property will trigger replacement.
- The name of the peering service.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- Peering
Service stringPrefix Key - The peering service prefix key
- Prefix string
- The prefix from which your traffic originates.
- Prefix
Name Changes to this property will trigger replacement.
- The name of the prefix.
- peering
Service Name This property is required. Changes to this property will trigger replacement.
- The name of the peering service.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- peering
Service StringPrefix Key - The peering service prefix key
- prefix String
- The prefix from which your traffic originates.
- prefix
Name Changes to this property will trigger replacement.
- The name of the prefix.
- peering
Service Name This property is required. Changes to this property will trigger replacement.
- The name of the peering service.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- peering
Service stringPrefix Key - The peering service prefix key
- prefix string
- The prefix from which your traffic originates.
- prefix
Name Changes to this property will trigger replacement.
- The name of the prefix.
- peering_
service_ name This property is required. Changes to this property will trigger replacement.
- The name of the peering service.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- peering_
service_ strprefix_ key - The peering service prefix key
- prefix str
- The prefix from which your traffic originates.
- prefix_
name Changes to this property will trigger replacement.
- The name of the prefix.
- peering
Service Name This property is required. Changes to this property will trigger replacement.
- The name of the peering service.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- peering
Service StringPrefix Key - The peering service prefix key
- prefix String
- The prefix from which your traffic originates.
- prefix
Name Changes to this property will trigger replacement.
- The name of the prefix.
Outputs
All input properties are implicitly available as output properties. Additionally, the Prefix resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Error
Message string - The error message for validation state
- Events
List<Pulumi.
Azure Native. Peering. Outputs. Peering Service Prefix Event Response> - The list of events for peering service prefix
- Id string
- The provider-assigned unique ID for this managed resource.
- Learned
Type string - The prefix learned type
- Name string
- The name of the resource.
- Prefix
Validation stringState - The prefix validation state
- Provisioning
State string - The provisioning state of the resource.
- Type string
- The type of the resource.
- Azure
Api stringVersion - The Azure API version of the resource.
- Error
Message string - The error message for validation state
- Events
[]Peering
Service Prefix Event Response - The list of events for peering service prefix
- Id string
- The provider-assigned unique ID for this managed resource.
- Learned
Type string - The prefix learned type
- Name string
- The name of the resource.
- Prefix
Validation stringState - The prefix validation state
- Provisioning
State string - The provisioning state of the resource.
- Type string
- The type of the resource.
- azure
Api StringVersion - The Azure API version of the resource.
- error
Message String - The error message for validation state
- events
List<Peering
Service Prefix Event Response> - The list of events for peering service prefix
- id String
- The provider-assigned unique ID for this managed resource.
- learned
Type String - The prefix learned type
- name String
- The name of the resource.
- prefix
Validation StringState - The prefix validation state
- provisioning
State String - The provisioning state of the resource.
- type String
- The type of the resource.
- azure
Api stringVersion - The Azure API version of the resource.
- error
Message string - The error message for validation state
- events
Peering
Service Prefix Event Response[] - The list of events for peering service prefix
- id string
- The provider-assigned unique ID for this managed resource.
- learned
Type string - The prefix learned type
- name string
- The name of the resource.
- prefix
Validation stringState - The prefix validation state
- provisioning
State string - The provisioning state of the resource.
- type string
- The type of the resource.
- azure_
api_ strversion - The Azure API version of the resource.
- error_
message str - The error message for validation state
- events
Sequence[Peering
Service Prefix Event Response] - The list of events for peering service prefix
- id str
- The provider-assigned unique ID for this managed resource.
- learned_
type str - The prefix learned type
- name str
- The name of the resource.
- prefix_
validation_ strstate - The prefix validation state
- provisioning_
state str - The provisioning state of the resource.
- type str
- The type of the resource.
- azure
Api StringVersion - The Azure API version of the resource.
- error
Message String - The error message for validation state
- events List<Property Map>
- The list of events for peering service prefix
- id String
- The provider-assigned unique ID for this managed resource.
- learned
Type String - The prefix learned type
- name String
- The name of the resource.
- prefix
Validation StringState - The prefix validation state
- provisioning
State String - The provisioning state of the resource.
- type String
- The type of the resource.
Supporting Types
PeeringServicePrefixEventResponse, PeeringServicePrefixEventResponseArgs
- Event
Description This property is required. string - The description of the event associated with a prefix.
- Event
Level This property is required. string - The level of the event associated with a prefix.
- Event
Summary This property is required. string - The summary of the event associated with a prefix.
- Event
Timestamp This property is required. string - The timestamp of the event associated with a prefix.
- Event
Type This property is required. string - The type of the event associated with a prefix.
- Event
Description This property is required. string - The description of the event associated with a prefix.
- Event
Level This property is required. string - The level of the event associated with a prefix.
- Event
Summary This property is required. string - The summary of the event associated with a prefix.
- Event
Timestamp This property is required. string - The timestamp of the event associated with a prefix.
- Event
Type This property is required. string - The type of the event associated with a prefix.
- event
Description This property is required. String - The description of the event associated with a prefix.
- event
Level This property is required. String - The level of the event associated with a prefix.
- event
Summary This property is required. String - The summary of the event associated with a prefix.
- event
Timestamp This property is required. String - The timestamp of the event associated with a prefix.
- event
Type This property is required. String - The type of the event associated with a prefix.
- event
Description This property is required. string - The description of the event associated with a prefix.
- event
Level This property is required. string - The level of the event associated with a prefix.
- event
Summary This property is required. string - The summary of the event associated with a prefix.
- event
Timestamp This property is required. string - The timestamp of the event associated with a prefix.
- event
Type This property is required. string - The type of the event associated with a prefix.
- event_
description This property is required. str - The description of the event associated with a prefix.
- event_
level This property is required. str - The level of the event associated with a prefix.
- event_
summary This property is required. str - The summary of the event associated with a prefix.
- event_
timestamp This property is required. str - The timestamp of the event associated with a prefix.
- event_
type This property is required. str - The type of the event associated with a prefix.
- event
Description This property is required. String - The description of the event associated with a prefix.
- event
Level This property is required. String - The level of the event associated with a prefix.
- event
Summary This property is required. String - The summary of the event associated with a prefix.
- event
Timestamp This property is required. String - The timestamp of the event associated with a prefix.
- event
Type This property is required. String - The type of the event associated with a prefix.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:peering:Prefix peeringServicePrefixName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0