This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getDisasterRecoveryConfig.go
46 lines (41 loc) · 1.85 KB
/
getDisasterRecoveryConfig.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 latest
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupDisasterRecoveryConfig(ctx *pulumi.Context, args *LookupDisasterRecoveryConfigArgs, opts ...pulumi.InvokeOption) (*LookupDisasterRecoveryConfigResult, error) {
var rv LookupDisasterRecoveryConfigResult
err := ctx.Invoke("azure-nextgen:eventhub/latest:getDisasterRecoveryConfig", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupDisasterRecoveryConfigArgs struct {
// The Disaster Recovery configuration name
Alias string `pulumi:"alias"`
// The Namespace name
NamespaceName string `pulumi:"namespaceName"`
// Name of the resource group within the azure subscription.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// Single item in List or Get Alias(Disaster Recovery configuration) operation
type LookupDisasterRecoveryConfigResult struct {
// Alternate name specified when alias and namespace names are same.
AlternateName *string `pulumi:"alternateName"`
// Resource ID.
Id string `pulumi:"id"`
// Resource name.
Name string `pulumi:"name"`
// ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing
PartnerNamespace *string `pulumi:"partnerNamespace"`
// Number of entities pending to be replicated.
PendingReplicationOperationsCount float64 `pulumi:"pendingReplicationOperationsCount"`
// Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' or 'Failed'
ProvisioningState string `pulumi:"provisioningState"`
// role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'
Role string `pulumi:"role"`
// Resource type.
Type string `pulumi:"type"`
}