This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getRegisteredPrefix.go
46 lines (41 loc) · 1.67 KB
/
getRegisteredPrefix.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20201001
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupRegisteredPrefix(ctx *pulumi.Context, args *LookupRegisteredPrefixArgs, opts ...pulumi.InvokeOption) (*LookupRegisteredPrefixResult, error) {
var rv LookupRegisteredPrefixResult
err := ctx.Invoke("azure-nextgen:peering/v20201001:getRegisteredPrefix", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupRegisteredPrefixArgs struct {
// The name of the peering.
PeeringName string `pulumi:"peeringName"`
// The name of the registered prefix.
RegisteredPrefixName string `pulumi:"registeredPrefixName"`
// The name of the resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// The customer's prefix that is registered by the peering service provider.
type LookupRegisteredPrefixResult struct {
// The error message associated with the validation state, if any.
ErrorMessage string `pulumi:"errorMessage"`
// The ID of the resource.
Id string `pulumi:"id"`
// The name of the resource.
Name string `pulumi:"name"`
// The peering service prefix key that is to be shared with the customer.
PeeringServicePrefixKey string `pulumi:"peeringServicePrefixKey"`
// The customer's prefix from which traffic originates.
Prefix *string `pulumi:"prefix"`
// The prefix validation state.
PrefixValidationState string `pulumi:"prefixValidationState"`
// The provisioning state of the resource.
ProvisioningState string `pulumi:"provisioningState"`
// The type of the resource.
Type string `pulumi:"type"`
}