Documentation ¶
Index ¶
- type HybridConnection
- type HybridConnectionArgs
- type HybridConnectionArray
- type HybridConnectionArrayInput
- type HybridConnectionArrayOutput
- func (HybridConnectionArrayOutput) ElementType() reflect.Type
- func (o HybridConnectionArrayOutput) Index(i pulumi.IntInput) HybridConnectionOutput
- func (o HybridConnectionArrayOutput) ToHybridConnectionArrayOutput() HybridConnectionArrayOutput
- func (o HybridConnectionArrayOutput) ToHybridConnectionArrayOutputWithContext(ctx context.Context) HybridConnectionArrayOutput
- type HybridConnectionAuthorizationRule
- func GetHybridConnectionAuthorizationRule(ctx *pulumi.Context, name string, id pulumi.IDInput, ...) (*HybridConnectionAuthorizationRule, error)
- func NewHybridConnectionAuthorizationRule(ctx *pulumi.Context, name string, args *HybridConnectionAuthorizationRuleArgs, ...) (*HybridConnectionAuthorizationRule, error)
- func (*HybridConnectionAuthorizationRule) ElementType() reflect.Type
- func (i *HybridConnectionAuthorizationRule) ToHybridConnectionAuthorizationRuleOutput() HybridConnectionAuthorizationRuleOutput
- func (i *HybridConnectionAuthorizationRule) ToHybridConnectionAuthorizationRuleOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleOutput
- type HybridConnectionAuthorizationRuleArgs
- type HybridConnectionAuthorizationRuleArray
- func (HybridConnectionAuthorizationRuleArray) ElementType() reflect.Type
- func (i HybridConnectionAuthorizationRuleArray) ToHybridConnectionAuthorizationRuleArrayOutput() HybridConnectionAuthorizationRuleArrayOutput
- func (i HybridConnectionAuthorizationRuleArray) ToHybridConnectionAuthorizationRuleArrayOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleArrayOutput
- type HybridConnectionAuthorizationRuleArrayInput
- type HybridConnectionAuthorizationRuleArrayOutput
- func (HybridConnectionAuthorizationRuleArrayOutput) ElementType() reflect.Type
- func (o HybridConnectionAuthorizationRuleArrayOutput) Index(i pulumi.IntInput) HybridConnectionAuthorizationRuleOutput
- func (o HybridConnectionAuthorizationRuleArrayOutput) ToHybridConnectionAuthorizationRuleArrayOutput() HybridConnectionAuthorizationRuleArrayOutput
- func (o HybridConnectionAuthorizationRuleArrayOutput) ToHybridConnectionAuthorizationRuleArrayOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleArrayOutput
- type HybridConnectionAuthorizationRuleInput
- type HybridConnectionAuthorizationRuleMap
- func (HybridConnectionAuthorizationRuleMap) ElementType() reflect.Type
- func (i HybridConnectionAuthorizationRuleMap) ToHybridConnectionAuthorizationRuleMapOutput() HybridConnectionAuthorizationRuleMapOutput
- func (i HybridConnectionAuthorizationRuleMap) ToHybridConnectionAuthorizationRuleMapOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleMapOutput
- type HybridConnectionAuthorizationRuleMapInput
- type HybridConnectionAuthorizationRuleMapOutput
- func (HybridConnectionAuthorizationRuleMapOutput) ElementType() reflect.Type
- func (o HybridConnectionAuthorizationRuleMapOutput) MapIndex(k pulumi.StringInput) HybridConnectionAuthorizationRuleOutput
- func (o HybridConnectionAuthorizationRuleMapOutput) ToHybridConnectionAuthorizationRuleMapOutput() HybridConnectionAuthorizationRuleMapOutput
- func (o HybridConnectionAuthorizationRuleMapOutput) ToHybridConnectionAuthorizationRuleMapOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleMapOutput
- type HybridConnectionAuthorizationRuleOutput
- func (HybridConnectionAuthorizationRuleOutput) ElementType() reflect.Type
- func (o HybridConnectionAuthorizationRuleOutput) HybridConnectionName() pulumi.StringOutput
- func (o HybridConnectionAuthorizationRuleOutput) Listen() pulumi.BoolPtrOutput
- func (o HybridConnectionAuthorizationRuleOutput) Manage() pulumi.BoolPtrOutput
- func (o HybridConnectionAuthorizationRuleOutput) Name() pulumi.StringOutput
- func (o HybridConnectionAuthorizationRuleOutput) NamespaceName() pulumi.StringOutput
- func (o HybridConnectionAuthorizationRuleOutput) PrimaryConnectionString() pulumi.StringOutput
- func (o HybridConnectionAuthorizationRuleOutput) PrimaryKey() pulumi.StringOutput
- func (o HybridConnectionAuthorizationRuleOutput) ResourceGroupName() pulumi.StringOutput
- func (o HybridConnectionAuthorizationRuleOutput) SecondaryConnectionString() pulumi.StringOutput
- func (o HybridConnectionAuthorizationRuleOutput) SecondaryKey() pulumi.StringOutput
- func (o HybridConnectionAuthorizationRuleOutput) Send() pulumi.BoolPtrOutput
- func (o HybridConnectionAuthorizationRuleOutput) ToHybridConnectionAuthorizationRuleOutput() HybridConnectionAuthorizationRuleOutput
- func (o HybridConnectionAuthorizationRuleOutput) ToHybridConnectionAuthorizationRuleOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleOutput
- type HybridConnectionAuthorizationRuleState
- type HybridConnectionInput
- type HybridConnectionMap
- type HybridConnectionMapInput
- type HybridConnectionMapOutput
- func (HybridConnectionMapOutput) ElementType() reflect.Type
- func (o HybridConnectionMapOutput) MapIndex(k pulumi.StringInput) HybridConnectionOutput
- func (o HybridConnectionMapOutput) ToHybridConnectionMapOutput() HybridConnectionMapOutput
- func (o HybridConnectionMapOutput) ToHybridConnectionMapOutputWithContext(ctx context.Context) HybridConnectionMapOutput
- type HybridConnectionOutput
- func (HybridConnectionOutput) ElementType() reflect.Type
- func (o HybridConnectionOutput) Name() pulumi.StringOutput
- func (o HybridConnectionOutput) RelayNamespaceName() pulumi.StringOutput
- func (o HybridConnectionOutput) RequiresClientAuthorization() pulumi.BoolPtrOutput
- func (o HybridConnectionOutput) ResourceGroupName() pulumi.StringOutput
- func (o HybridConnectionOutput) ToHybridConnectionOutput() HybridConnectionOutput
- func (o HybridConnectionOutput) ToHybridConnectionOutputWithContext(ctx context.Context) HybridConnectionOutput
- func (o HybridConnectionOutput) UserMetadata() pulumi.StringPtrOutput
- type HybridConnectionState
- type Namespace
- type NamespaceArgs
- type NamespaceArray
- type NamespaceArrayInput
- type NamespaceArrayOutput
- func (NamespaceArrayOutput) ElementType() reflect.Type
- func (o NamespaceArrayOutput) Index(i pulumi.IntInput) NamespaceOutput
- func (o NamespaceArrayOutput) ToNamespaceArrayOutput() NamespaceArrayOutput
- func (o NamespaceArrayOutput) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput
- type NamespaceAuthorizationRule
- func (*NamespaceAuthorizationRule) ElementType() reflect.Type
- func (i *NamespaceAuthorizationRule) ToNamespaceAuthorizationRuleOutput() NamespaceAuthorizationRuleOutput
- func (i *NamespaceAuthorizationRule) ToNamespaceAuthorizationRuleOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleOutput
- type NamespaceAuthorizationRuleArgs
- type NamespaceAuthorizationRuleArray
- func (NamespaceAuthorizationRuleArray) ElementType() reflect.Type
- func (i NamespaceAuthorizationRuleArray) ToNamespaceAuthorizationRuleArrayOutput() NamespaceAuthorizationRuleArrayOutput
- func (i NamespaceAuthorizationRuleArray) ToNamespaceAuthorizationRuleArrayOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleArrayOutput
- type NamespaceAuthorizationRuleArrayInput
- type NamespaceAuthorizationRuleArrayOutput
- func (NamespaceAuthorizationRuleArrayOutput) ElementType() reflect.Type
- func (o NamespaceAuthorizationRuleArrayOutput) Index(i pulumi.IntInput) NamespaceAuthorizationRuleOutput
- func (o NamespaceAuthorizationRuleArrayOutput) ToNamespaceAuthorizationRuleArrayOutput() NamespaceAuthorizationRuleArrayOutput
- func (o NamespaceAuthorizationRuleArrayOutput) ToNamespaceAuthorizationRuleArrayOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleArrayOutput
- type NamespaceAuthorizationRuleInput
- type NamespaceAuthorizationRuleMap
- func (NamespaceAuthorizationRuleMap) ElementType() reflect.Type
- func (i NamespaceAuthorizationRuleMap) ToNamespaceAuthorizationRuleMapOutput() NamespaceAuthorizationRuleMapOutput
- func (i NamespaceAuthorizationRuleMap) ToNamespaceAuthorizationRuleMapOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleMapOutput
- type NamespaceAuthorizationRuleMapInput
- type NamespaceAuthorizationRuleMapOutput
- func (NamespaceAuthorizationRuleMapOutput) ElementType() reflect.Type
- func (o NamespaceAuthorizationRuleMapOutput) MapIndex(k pulumi.StringInput) NamespaceAuthorizationRuleOutput
- func (o NamespaceAuthorizationRuleMapOutput) ToNamespaceAuthorizationRuleMapOutput() NamespaceAuthorizationRuleMapOutput
- func (o NamespaceAuthorizationRuleMapOutput) ToNamespaceAuthorizationRuleMapOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleMapOutput
- type NamespaceAuthorizationRuleOutput
- func (NamespaceAuthorizationRuleOutput) ElementType() reflect.Type
- func (o NamespaceAuthorizationRuleOutput) Listen() pulumi.BoolPtrOutput
- func (o NamespaceAuthorizationRuleOutput) Manage() pulumi.BoolPtrOutput
- func (o NamespaceAuthorizationRuleOutput) Name() pulumi.StringOutput
- func (o NamespaceAuthorizationRuleOutput) NamespaceName() pulumi.StringOutput
- func (o NamespaceAuthorizationRuleOutput) PrimaryConnectionString() pulumi.StringOutput
- func (o NamespaceAuthorizationRuleOutput) PrimaryKey() pulumi.StringOutput
- func (o NamespaceAuthorizationRuleOutput) ResourceGroupName() pulumi.StringOutput
- func (o NamespaceAuthorizationRuleOutput) SecondaryConnectionString() pulumi.StringOutput
- func (o NamespaceAuthorizationRuleOutput) SecondaryKey() pulumi.StringOutput
- func (o NamespaceAuthorizationRuleOutput) Send() pulumi.BoolPtrOutput
- func (o NamespaceAuthorizationRuleOutput) ToNamespaceAuthorizationRuleOutput() NamespaceAuthorizationRuleOutput
- func (o NamespaceAuthorizationRuleOutput) ToNamespaceAuthorizationRuleOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleOutput
- type NamespaceAuthorizationRuleState
- type NamespaceInput
- type NamespaceMap
- type NamespaceMapInput
- type NamespaceMapOutput
- type NamespaceOutput
- func (NamespaceOutput) ElementType() reflect.Type
- func (o NamespaceOutput) Location() pulumi.StringOutput
- func (o NamespaceOutput) MetricId() pulumi.StringOutput
- func (o NamespaceOutput) Name() pulumi.StringOutput
- func (o NamespaceOutput) PrimaryConnectionString() pulumi.StringOutput
- func (o NamespaceOutput) PrimaryKey() pulumi.StringOutput
- func (o NamespaceOutput) ResourceGroupName() pulumi.StringOutput
- func (o NamespaceOutput) SecondaryConnectionString() pulumi.StringOutput
- func (o NamespaceOutput) SecondaryKey() pulumi.StringOutput
- func (o NamespaceOutput) SkuName() pulumi.StringOutput
- func (o NamespaceOutput) Tags() pulumi.StringMapOutput
- func (o NamespaceOutput) ToNamespaceOutput() NamespaceOutput
- func (o NamespaceOutput) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
- type NamespaceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HybridConnection ¶
type HybridConnection struct { pulumi.CustomResourceState // Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. RelayNamespaceName pulumi.StringOutput `pulumi:"relayNamespaceName"` // Specify if client authorization is needed for this hybrid connection. Changing this forces a new resource to be created. Defaults to `true`. RequiresClientAuthorization pulumi.BoolPtrOutput `pulumi:"requiresClientAuthorization"` // The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored. UserMetadata pulumi.StringPtrOutput `pulumi:"userMetadata"` }
Manages an Azure Relay Hybrid Connection.
## Example Usage
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/relay" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Name: pulumi.String("example-resources"), Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleNamespace, err := relay.NewNamespace(ctx, "example", &relay.NamespaceArgs{ Name: pulumi.String("example-relay"), Location: example.Location, ResourceGroupName: example.Name, SkuName: pulumi.String("Standard"), Tags: pulumi.StringMap{ "source": pulumi.String("managed"), }, }) if err != nil { return err } _, err = relay.NewHybridConnection(ctx, "example", &relay.HybridConnectionArgs{ Name: pulumi.String("acctestrnhc-%d"), ResourceGroupName: example.Name, RelayNamespaceName: exampleNamespace.Name, RequiresClientAuthorization: pulumi.Bool(false), UserMetadata: pulumi.String("testmetadata"), }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
## Import
Relay Hybrid Connection's can be imported using the `resource id`, e.g.
```sh $ pulumi import azure:relay/hybridConnection:HybridConnection relay1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Relay/namespaces/relay1/hybridConnections/hconn1 ```
func GetHybridConnection ¶
func GetHybridConnection(ctx *pulumi.Context, name string, id pulumi.IDInput, state *HybridConnectionState, opts ...pulumi.ResourceOption) (*HybridConnection, error)
GetHybridConnection gets an existing HybridConnection resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewHybridConnection ¶
func NewHybridConnection(ctx *pulumi.Context, name string, args *HybridConnectionArgs, opts ...pulumi.ResourceOption) (*HybridConnection, error)
NewHybridConnection registers a new resource with the given unique name, arguments, and options.
func (*HybridConnection) ElementType ¶
func (*HybridConnection) ElementType() reflect.Type
func (*HybridConnection) ToHybridConnectionOutput ¶
func (i *HybridConnection) ToHybridConnectionOutput() HybridConnectionOutput
func (*HybridConnection) ToHybridConnectionOutputWithContext ¶
func (i *HybridConnection) ToHybridConnectionOutputWithContext(ctx context.Context) HybridConnectionOutput
type HybridConnectionArgs ¶
type HybridConnectionArgs struct { // Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. RelayNamespaceName pulumi.StringInput // Specify if client authorization is needed for this hybrid connection. Changing this forces a new resource to be created. Defaults to `true`. RequiresClientAuthorization pulumi.BoolPtrInput // The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored. UserMetadata pulumi.StringPtrInput }
The set of arguments for constructing a HybridConnection resource.
func (HybridConnectionArgs) ElementType ¶
func (HybridConnectionArgs) ElementType() reflect.Type
type HybridConnectionArray ¶
type HybridConnectionArray []HybridConnectionInput
func (HybridConnectionArray) ElementType ¶
func (HybridConnectionArray) ElementType() reflect.Type
func (HybridConnectionArray) ToHybridConnectionArrayOutput ¶
func (i HybridConnectionArray) ToHybridConnectionArrayOutput() HybridConnectionArrayOutput
func (HybridConnectionArray) ToHybridConnectionArrayOutputWithContext ¶
func (i HybridConnectionArray) ToHybridConnectionArrayOutputWithContext(ctx context.Context) HybridConnectionArrayOutput
type HybridConnectionArrayInput ¶
type HybridConnectionArrayInput interface { pulumi.Input ToHybridConnectionArrayOutput() HybridConnectionArrayOutput ToHybridConnectionArrayOutputWithContext(context.Context) HybridConnectionArrayOutput }
HybridConnectionArrayInput is an input type that accepts HybridConnectionArray and HybridConnectionArrayOutput values. You can construct a concrete instance of `HybridConnectionArrayInput` via:
HybridConnectionArray{ HybridConnectionArgs{...} }
type HybridConnectionArrayOutput ¶
type HybridConnectionArrayOutput struct{ *pulumi.OutputState }
func (HybridConnectionArrayOutput) ElementType ¶
func (HybridConnectionArrayOutput) ElementType() reflect.Type
func (HybridConnectionArrayOutput) Index ¶
func (o HybridConnectionArrayOutput) Index(i pulumi.IntInput) HybridConnectionOutput
func (HybridConnectionArrayOutput) ToHybridConnectionArrayOutput ¶
func (o HybridConnectionArrayOutput) ToHybridConnectionArrayOutput() HybridConnectionArrayOutput
func (HybridConnectionArrayOutput) ToHybridConnectionArrayOutputWithContext ¶
func (o HybridConnectionArrayOutput) ToHybridConnectionArrayOutputWithContext(ctx context.Context) HybridConnectionArrayOutput
type HybridConnectionAuthorizationRule ¶
type HybridConnectionAuthorizationRule struct { pulumi.CustomResourceState // Name of the Azure Relay Hybrid Connection for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. HybridConnectionName pulumi.StringOutput `pulumi:"hybridConnectionName"` // Grants listen access to this Authorization Rule. Defaults to `false`. Listen pulumi.BoolPtrOutput `pulumi:"listen"` // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. Manage pulumi.BoolPtrOutput `pulumi:"manage"` // The name which should be used for this Azure Relay Hybrid Connection Authorization Rule. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. Name pulumi.StringOutput `pulumi:"name"` // Name of the Azure Relay Namespace for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. NamespaceName pulumi.StringOutput `pulumi:"namespaceName"` // The Primary Connection String for the Azure Relay Hybrid Connection Authorization Rule. PrimaryConnectionString pulumi.StringOutput `pulumi:"primaryConnectionString"` // The Primary Key for the Azure Relay Hybrid Connection Authorization Rule. PrimaryKey pulumi.StringOutput `pulumi:"primaryKey"` // The name of the Resource Group where the Azure Relay Hybrid Connection Authorization Rule should exist. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The Secondary Connection String for the Azure Relay Hybrid Connection Authorization Rule. SecondaryConnectionString pulumi.StringOutput `pulumi:"secondaryConnectionString"` // The Secondary Key for the Azure Relay Hybrid Connection Authorization Rule. SecondaryKey pulumi.StringOutput `pulumi:"secondaryKey"` // Grants send access to this Authorization Rule. Defaults to `false`. Send pulumi.BoolPtrOutput `pulumi:"send"` }
Manages an Azure Relay Hybrid Connection Authorization Rule.
## Example Usage
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/relay" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Name: pulumi.String("example-resources"), Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleNamespace, err := relay.NewNamespace(ctx, "example", &relay.NamespaceArgs{ Name: pulumi.String("example-relay"), Location: example.Location, ResourceGroupName: example.Name, SkuName: pulumi.String("Standard"), Tags: pulumi.StringMap{ "source": pulumi.String("terraform"), }, }) if err != nil { return err } exampleHybridConnection, err := relay.NewHybridConnection(ctx, "example", &relay.HybridConnectionArgs{ Name: pulumi.String("acctestrnhc-%d"), ResourceGroupName: example.Name, RelayNamespaceName: exampleNamespace.Name, RequiresClientAuthorization: pulumi.Bool(false), UserMetadata: pulumi.String("testmetadata"), }) if err != nil { return err } _, err = relay.NewHybridConnectionAuthorizationRule(ctx, "example", &relay.HybridConnectionAuthorizationRuleArgs{ Name: pulumi.String("example"), ResourceGroupName: example.Name, HybridConnectionName: exampleHybridConnection.Name, NamespaceName: exampleNamespace.Name, Listen: pulumi.Bool(true), Send: pulumi.Bool(true), Manage: pulumi.Bool(false), }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
## Import
Azure Relay Hybrid Connection Authorization Rules can be imported using the `resource id`, e.g.
```sh $ pulumi import azure:relay/hybridConnectionAuthorizationRule:HybridConnectionAuthorizationRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Relay/namespaces/namespace1/hybridConnections/connection1/authorizationRules/rule1 ```
func GetHybridConnectionAuthorizationRule ¶
func GetHybridConnectionAuthorizationRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *HybridConnectionAuthorizationRuleState, opts ...pulumi.ResourceOption) (*HybridConnectionAuthorizationRule, error)
GetHybridConnectionAuthorizationRule gets an existing HybridConnectionAuthorizationRule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewHybridConnectionAuthorizationRule ¶
func NewHybridConnectionAuthorizationRule(ctx *pulumi.Context, name string, args *HybridConnectionAuthorizationRuleArgs, opts ...pulumi.ResourceOption) (*HybridConnectionAuthorizationRule, error)
NewHybridConnectionAuthorizationRule registers a new resource with the given unique name, arguments, and options.
func (*HybridConnectionAuthorizationRule) ElementType ¶
func (*HybridConnectionAuthorizationRule) ElementType() reflect.Type
func (*HybridConnectionAuthorizationRule) ToHybridConnectionAuthorizationRuleOutput ¶
func (i *HybridConnectionAuthorizationRule) ToHybridConnectionAuthorizationRuleOutput() HybridConnectionAuthorizationRuleOutput
func (*HybridConnectionAuthorizationRule) ToHybridConnectionAuthorizationRuleOutputWithContext ¶
func (i *HybridConnectionAuthorizationRule) ToHybridConnectionAuthorizationRuleOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleOutput
type HybridConnectionAuthorizationRuleArgs ¶
type HybridConnectionAuthorizationRuleArgs struct { // Name of the Azure Relay Hybrid Connection for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. HybridConnectionName pulumi.StringInput // Grants listen access to this Authorization Rule. Defaults to `false`. Listen pulumi.BoolPtrInput // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. Manage pulumi.BoolPtrInput // The name which should be used for this Azure Relay Hybrid Connection Authorization Rule. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. Name pulumi.StringPtrInput // Name of the Azure Relay Namespace for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. NamespaceName pulumi.StringInput // The name of the Resource Group where the Azure Relay Hybrid Connection Authorization Rule should exist. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. ResourceGroupName pulumi.StringInput // Grants send access to this Authorization Rule. Defaults to `false`. Send pulumi.BoolPtrInput }
The set of arguments for constructing a HybridConnectionAuthorizationRule resource.
func (HybridConnectionAuthorizationRuleArgs) ElementType ¶
func (HybridConnectionAuthorizationRuleArgs) ElementType() reflect.Type
type HybridConnectionAuthorizationRuleArray ¶
type HybridConnectionAuthorizationRuleArray []HybridConnectionAuthorizationRuleInput
func (HybridConnectionAuthorizationRuleArray) ElementType ¶
func (HybridConnectionAuthorizationRuleArray) ElementType() reflect.Type
func (HybridConnectionAuthorizationRuleArray) ToHybridConnectionAuthorizationRuleArrayOutput ¶
func (i HybridConnectionAuthorizationRuleArray) ToHybridConnectionAuthorizationRuleArrayOutput() HybridConnectionAuthorizationRuleArrayOutput
func (HybridConnectionAuthorizationRuleArray) ToHybridConnectionAuthorizationRuleArrayOutputWithContext ¶
func (i HybridConnectionAuthorizationRuleArray) ToHybridConnectionAuthorizationRuleArrayOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleArrayOutput
type HybridConnectionAuthorizationRuleArrayInput ¶
type HybridConnectionAuthorizationRuleArrayInput interface { pulumi.Input ToHybridConnectionAuthorizationRuleArrayOutput() HybridConnectionAuthorizationRuleArrayOutput ToHybridConnectionAuthorizationRuleArrayOutputWithContext(context.Context) HybridConnectionAuthorizationRuleArrayOutput }
HybridConnectionAuthorizationRuleArrayInput is an input type that accepts HybridConnectionAuthorizationRuleArray and HybridConnectionAuthorizationRuleArrayOutput values. You can construct a concrete instance of `HybridConnectionAuthorizationRuleArrayInput` via:
HybridConnectionAuthorizationRuleArray{ HybridConnectionAuthorizationRuleArgs{...} }
type HybridConnectionAuthorizationRuleArrayOutput ¶
type HybridConnectionAuthorizationRuleArrayOutput struct{ *pulumi.OutputState }
func (HybridConnectionAuthorizationRuleArrayOutput) ElementType ¶
func (HybridConnectionAuthorizationRuleArrayOutput) ElementType() reflect.Type
func (HybridConnectionAuthorizationRuleArrayOutput) ToHybridConnectionAuthorizationRuleArrayOutput ¶
func (o HybridConnectionAuthorizationRuleArrayOutput) ToHybridConnectionAuthorizationRuleArrayOutput() HybridConnectionAuthorizationRuleArrayOutput
func (HybridConnectionAuthorizationRuleArrayOutput) ToHybridConnectionAuthorizationRuleArrayOutputWithContext ¶
func (o HybridConnectionAuthorizationRuleArrayOutput) ToHybridConnectionAuthorizationRuleArrayOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleArrayOutput
type HybridConnectionAuthorizationRuleInput ¶
type HybridConnectionAuthorizationRuleInput interface { pulumi.Input ToHybridConnectionAuthorizationRuleOutput() HybridConnectionAuthorizationRuleOutput ToHybridConnectionAuthorizationRuleOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleOutput }
type HybridConnectionAuthorizationRuleMap ¶
type HybridConnectionAuthorizationRuleMap map[string]HybridConnectionAuthorizationRuleInput
func (HybridConnectionAuthorizationRuleMap) ElementType ¶
func (HybridConnectionAuthorizationRuleMap) ElementType() reflect.Type
func (HybridConnectionAuthorizationRuleMap) ToHybridConnectionAuthorizationRuleMapOutput ¶
func (i HybridConnectionAuthorizationRuleMap) ToHybridConnectionAuthorizationRuleMapOutput() HybridConnectionAuthorizationRuleMapOutput
func (HybridConnectionAuthorizationRuleMap) ToHybridConnectionAuthorizationRuleMapOutputWithContext ¶
func (i HybridConnectionAuthorizationRuleMap) ToHybridConnectionAuthorizationRuleMapOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleMapOutput
type HybridConnectionAuthorizationRuleMapInput ¶
type HybridConnectionAuthorizationRuleMapInput interface { pulumi.Input ToHybridConnectionAuthorizationRuleMapOutput() HybridConnectionAuthorizationRuleMapOutput ToHybridConnectionAuthorizationRuleMapOutputWithContext(context.Context) HybridConnectionAuthorizationRuleMapOutput }
HybridConnectionAuthorizationRuleMapInput is an input type that accepts HybridConnectionAuthorizationRuleMap and HybridConnectionAuthorizationRuleMapOutput values. You can construct a concrete instance of `HybridConnectionAuthorizationRuleMapInput` via:
HybridConnectionAuthorizationRuleMap{ "key": HybridConnectionAuthorizationRuleArgs{...} }
type HybridConnectionAuthorizationRuleMapOutput ¶
type HybridConnectionAuthorizationRuleMapOutput struct{ *pulumi.OutputState }
func (HybridConnectionAuthorizationRuleMapOutput) ElementType ¶
func (HybridConnectionAuthorizationRuleMapOutput) ElementType() reflect.Type
func (HybridConnectionAuthorizationRuleMapOutput) ToHybridConnectionAuthorizationRuleMapOutput ¶
func (o HybridConnectionAuthorizationRuleMapOutput) ToHybridConnectionAuthorizationRuleMapOutput() HybridConnectionAuthorizationRuleMapOutput
func (HybridConnectionAuthorizationRuleMapOutput) ToHybridConnectionAuthorizationRuleMapOutputWithContext ¶
func (o HybridConnectionAuthorizationRuleMapOutput) ToHybridConnectionAuthorizationRuleMapOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleMapOutput
type HybridConnectionAuthorizationRuleOutput ¶
type HybridConnectionAuthorizationRuleOutput struct{ *pulumi.OutputState }
func (HybridConnectionAuthorizationRuleOutput) ElementType ¶
func (HybridConnectionAuthorizationRuleOutput) ElementType() reflect.Type
func (HybridConnectionAuthorizationRuleOutput) HybridConnectionName ¶ added in v5.5.0
func (o HybridConnectionAuthorizationRuleOutput) HybridConnectionName() pulumi.StringOutput
Name of the Azure Relay Hybrid Connection for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created.
func (HybridConnectionAuthorizationRuleOutput) Listen ¶ added in v5.5.0
func (o HybridConnectionAuthorizationRuleOutput) Listen() pulumi.BoolPtrOutput
Grants listen access to this Authorization Rule. Defaults to `false`.
func (HybridConnectionAuthorizationRuleOutput) Manage ¶ added in v5.5.0
func (o HybridConnectionAuthorizationRuleOutput) Manage() pulumi.BoolPtrOutput
Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`.
func (HybridConnectionAuthorizationRuleOutput) Name ¶ added in v5.5.0
func (o HybridConnectionAuthorizationRuleOutput) Name() pulumi.StringOutput
The name which should be used for this Azure Relay Hybrid Connection Authorization Rule. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created.
func (HybridConnectionAuthorizationRuleOutput) NamespaceName ¶ added in v5.5.0
func (o HybridConnectionAuthorizationRuleOutput) NamespaceName() pulumi.StringOutput
Name of the Azure Relay Namespace for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created.
func (HybridConnectionAuthorizationRuleOutput) PrimaryConnectionString ¶ added in v5.5.0
func (o HybridConnectionAuthorizationRuleOutput) PrimaryConnectionString() pulumi.StringOutput
The Primary Connection String for the Azure Relay Hybrid Connection Authorization Rule.
func (HybridConnectionAuthorizationRuleOutput) PrimaryKey ¶ added in v5.5.0
func (o HybridConnectionAuthorizationRuleOutput) PrimaryKey() pulumi.StringOutput
The Primary Key for the Azure Relay Hybrid Connection Authorization Rule.
func (HybridConnectionAuthorizationRuleOutput) ResourceGroupName ¶ added in v5.5.0
func (o HybridConnectionAuthorizationRuleOutput) ResourceGroupName() pulumi.StringOutput
The name of the Resource Group where the Azure Relay Hybrid Connection Authorization Rule should exist. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created.
func (HybridConnectionAuthorizationRuleOutput) SecondaryConnectionString ¶ added in v5.5.0
func (o HybridConnectionAuthorizationRuleOutput) SecondaryConnectionString() pulumi.StringOutput
The Secondary Connection String for the Azure Relay Hybrid Connection Authorization Rule.
func (HybridConnectionAuthorizationRuleOutput) SecondaryKey ¶ added in v5.5.0
func (o HybridConnectionAuthorizationRuleOutput) SecondaryKey() pulumi.StringOutput
The Secondary Key for the Azure Relay Hybrid Connection Authorization Rule.
func (HybridConnectionAuthorizationRuleOutput) Send ¶ added in v5.5.0
func (o HybridConnectionAuthorizationRuleOutput) Send() pulumi.BoolPtrOutput
Grants send access to this Authorization Rule. Defaults to `false`.
func (HybridConnectionAuthorizationRuleOutput) ToHybridConnectionAuthorizationRuleOutput ¶
func (o HybridConnectionAuthorizationRuleOutput) ToHybridConnectionAuthorizationRuleOutput() HybridConnectionAuthorizationRuleOutput
func (HybridConnectionAuthorizationRuleOutput) ToHybridConnectionAuthorizationRuleOutputWithContext ¶
func (o HybridConnectionAuthorizationRuleOutput) ToHybridConnectionAuthorizationRuleOutputWithContext(ctx context.Context) HybridConnectionAuthorizationRuleOutput
type HybridConnectionAuthorizationRuleState ¶
type HybridConnectionAuthorizationRuleState struct { // Name of the Azure Relay Hybrid Connection for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. HybridConnectionName pulumi.StringPtrInput // Grants listen access to this Authorization Rule. Defaults to `false`. Listen pulumi.BoolPtrInput // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. Manage pulumi.BoolPtrInput // The name which should be used for this Azure Relay Hybrid Connection Authorization Rule. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. Name pulumi.StringPtrInput // Name of the Azure Relay Namespace for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. NamespaceName pulumi.StringPtrInput // The Primary Connection String for the Azure Relay Hybrid Connection Authorization Rule. PrimaryConnectionString pulumi.StringPtrInput // The Primary Key for the Azure Relay Hybrid Connection Authorization Rule. PrimaryKey pulumi.StringPtrInput // The name of the Resource Group where the Azure Relay Hybrid Connection Authorization Rule should exist. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created. ResourceGroupName pulumi.StringPtrInput // The Secondary Connection String for the Azure Relay Hybrid Connection Authorization Rule. SecondaryConnectionString pulumi.StringPtrInput // The Secondary Key for the Azure Relay Hybrid Connection Authorization Rule. SecondaryKey pulumi.StringPtrInput // Grants send access to this Authorization Rule. Defaults to `false`. Send pulumi.BoolPtrInput }
func (HybridConnectionAuthorizationRuleState) ElementType ¶
func (HybridConnectionAuthorizationRuleState) ElementType() reflect.Type
type HybridConnectionInput ¶
type HybridConnectionInput interface { pulumi.Input ToHybridConnectionOutput() HybridConnectionOutput ToHybridConnectionOutputWithContext(ctx context.Context) HybridConnectionOutput }
type HybridConnectionMap ¶
type HybridConnectionMap map[string]HybridConnectionInput
func (HybridConnectionMap) ElementType ¶
func (HybridConnectionMap) ElementType() reflect.Type
func (HybridConnectionMap) ToHybridConnectionMapOutput ¶
func (i HybridConnectionMap) ToHybridConnectionMapOutput() HybridConnectionMapOutput
func (HybridConnectionMap) ToHybridConnectionMapOutputWithContext ¶
func (i HybridConnectionMap) ToHybridConnectionMapOutputWithContext(ctx context.Context) HybridConnectionMapOutput
type HybridConnectionMapInput ¶
type HybridConnectionMapInput interface { pulumi.Input ToHybridConnectionMapOutput() HybridConnectionMapOutput ToHybridConnectionMapOutputWithContext(context.Context) HybridConnectionMapOutput }
HybridConnectionMapInput is an input type that accepts HybridConnectionMap and HybridConnectionMapOutput values. You can construct a concrete instance of `HybridConnectionMapInput` via:
HybridConnectionMap{ "key": HybridConnectionArgs{...} }
type HybridConnectionMapOutput ¶
type HybridConnectionMapOutput struct{ *pulumi.OutputState }
func (HybridConnectionMapOutput) ElementType ¶
func (HybridConnectionMapOutput) ElementType() reflect.Type
func (HybridConnectionMapOutput) MapIndex ¶
func (o HybridConnectionMapOutput) MapIndex(k pulumi.StringInput) HybridConnectionOutput
func (HybridConnectionMapOutput) ToHybridConnectionMapOutput ¶
func (o HybridConnectionMapOutput) ToHybridConnectionMapOutput() HybridConnectionMapOutput
func (HybridConnectionMapOutput) ToHybridConnectionMapOutputWithContext ¶
func (o HybridConnectionMapOutput) ToHybridConnectionMapOutputWithContext(ctx context.Context) HybridConnectionMapOutput
type HybridConnectionOutput ¶
type HybridConnectionOutput struct{ *pulumi.OutputState }
func (HybridConnectionOutput) ElementType ¶
func (HybridConnectionOutput) ElementType() reflect.Type
func (HybridConnectionOutput) Name ¶ added in v5.5.0
func (o HybridConnectionOutput) Name() pulumi.StringOutput
Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.
func (HybridConnectionOutput) RelayNamespaceName ¶ added in v5.5.0
func (o HybridConnectionOutput) RelayNamespaceName() pulumi.StringOutput
The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.
func (HybridConnectionOutput) RequiresClientAuthorization ¶ added in v5.5.0
func (o HybridConnectionOutput) RequiresClientAuthorization() pulumi.BoolPtrOutput
Specify if client authorization is needed for this hybrid connection. Changing this forces a new resource to be created. Defaults to `true`.
func (HybridConnectionOutput) ResourceGroupName ¶ added in v5.5.0
func (o HybridConnectionOutput) ResourceGroupName() pulumi.StringOutput
The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.
func (HybridConnectionOutput) ToHybridConnectionOutput ¶
func (o HybridConnectionOutput) ToHybridConnectionOutput() HybridConnectionOutput
func (HybridConnectionOutput) ToHybridConnectionOutputWithContext ¶
func (o HybridConnectionOutput) ToHybridConnectionOutputWithContext(ctx context.Context) HybridConnectionOutput
func (HybridConnectionOutput) UserMetadata ¶ added in v5.5.0
func (o HybridConnectionOutput) UserMetadata() pulumi.StringPtrOutput
The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored.
type HybridConnectionState ¶
type HybridConnectionState struct { // Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. RelayNamespaceName pulumi.StringPtrInput // Specify if client authorization is needed for this hybrid connection. Changing this forces a new resource to be created. Defaults to `true`. RequiresClientAuthorization pulumi.BoolPtrInput // The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored. UserMetadata pulumi.StringPtrInput }
func (HybridConnectionState) ElementType ¶
func (HybridConnectionState) ElementType() reflect.Type
type Namespace ¶
type Namespace struct { pulumi.CustomResourceState // Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The Identifier for Azure Insights metrics. MetricId pulumi.StringOutput `pulumi:"metricId"` // Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The primary connection string for the authorization rule `RootManageSharedAccessKey`. PrimaryConnectionString pulumi.StringOutput `pulumi:"primaryConnectionString"` // The primary access key for the authorization rule `RootManageSharedAccessKey`. PrimaryKey pulumi.StringOutput `pulumi:"primaryKey"` // The name of the resource group in which to create the Azure Relay Namespace. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The secondary connection string for the authorization rule `RootManageSharedAccessKey`. SecondaryConnectionString pulumi.StringOutput `pulumi:"secondaryConnectionString"` // The secondary access key for the authorization rule `RootManageSharedAccessKey`. SecondaryKey pulumi.StringOutput `pulumi:"secondaryKey"` // The name of the SKU to use. At this time the only supported value is `Standard`. SkuName pulumi.StringOutput `pulumi:"skuName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages an Azure Relay Namespace.
## Example Usage
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/relay" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Name: pulumi.String("example-resources"), Location: pulumi.String("West Europe"), }) if err != nil { return err } _, err = relay.NewNamespace(ctx, "example", &relay.NamespaceArgs{ Name: pulumi.String("example-relay"), Location: example.Location, ResourceGroupName: example.Name, SkuName: pulumi.String("Standard"), Tags: pulumi.StringMap{ "source": pulumi.String("example"), }, }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
## Import
Azure Relay Namespace's can be imported using the `resource id`, e.g.
```sh $ pulumi import azure:relay/namespace:Namespace relay1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Relay/namespaces/relay1 ```
func GetNamespace ¶
func GetNamespace(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NamespaceState, opts ...pulumi.ResourceOption) (*Namespace, error)
GetNamespace gets an existing Namespace resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewNamespace ¶
func NewNamespace(ctx *pulumi.Context, name string, args *NamespaceArgs, opts ...pulumi.ResourceOption) (*Namespace, error)
NewNamespace registers a new resource with the given unique name, arguments, and options.
func (*Namespace) ElementType ¶
func (*Namespace) ToNamespaceOutput ¶
func (i *Namespace) ToNamespaceOutput() NamespaceOutput
func (*Namespace) ToNamespaceOutputWithContext ¶
func (i *Namespace) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
type NamespaceArgs ¶
type NamespaceArgs struct { // Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the Azure Relay Namespace. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The name of the SKU to use. At this time the only supported value is `Standard`. SkuName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a Namespace resource.
func (NamespaceArgs) ElementType ¶
func (NamespaceArgs) ElementType() reflect.Type
type NamespaceArray ¶
type NamespaceArray []NamespaceInput
func (NamespaceArray) ElementType ¶
func (NamespaceArray) ElementType() reflect.Type
func (NamespaceArray) ToNamespaceArrayOutput ¶
func (i NamespaceArray) ToNamespaceArrayOutput() NamespaceArrayOutput
func (NamespaceArray) ToNamespaceArrayOutputWithContext ¶
func (i NamespaceArray) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput
type NamespaceArrayInput ¶
type NamespaceArrayInput interface { pulumi.Input ToNamespaceArrayOutput() NamespaceArrayOutput ToNamespaceArrayOutputWithContext(context.Context) NamespaceArrayOutput }
NamespaceArrayInput is an input type that accepts NamespaceArray and NamespaceArrayOutput values. You can construct a concrete instance of `NamespaceArrayInput` via:
NamespaceArray{ NamespaceArgs{...} }
type NamespaceArrayOutput ¶
type NamespaceArrayOutput struct{ *pulumi.OutputState }
func (NamespaceArrayOutput) ElementType ¶
func (NamespaceArrayOutput) ElementType() reflect.Type
func (NamespaceArrayOutput) Index ¶
func (o NamespaceArrayOutput) Index(i pulumi.IntInput) NamespaceOutput
func (NamespaceArrayOutput) ToNamespaceArrayOutput ¶
func (o NamespaceArrayOutput) ToNamespaceArrayOutput() NamespaceArrayOutput
func (NamespaceArrayOutput) ToNamespaceArrayOutputWithContext ¶
func (o NamespaceArrayOutput) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput
type NamespaceAuthorizationRule ¶
type NamespaceAuthorizationRule struct { pulumi.CustomResourceState // Grants listen access to this Authorization Rule. Defaults to `false`. Listen pulumi.BoolPtrOutput `pulumi:"listen"` // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. Manage pulumi.BoolPtrOutput `pulumi:"manage"` // The name which should be used for this Azure Relay Namespace Authorization Rule. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. Name pulumi.StringOutput `pulumi:"name"` // Name of the Azure Relay Namespace for which this Azure Relay Namespace Authorization Rule will be created. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. NamespaceName pulumi.StringOutput `pulumi:"namespaceName"` // The Primary Connection String for the Azure Relay Namespace Authorization Rule. PrimaryConnectionString pulumi.StringOutput `pulumi:"primaryConnectionString"` // The Primary Key for the Azure Relay Namespace Authorization Rule. PrimaryKey pulumi.StringOutput `pulumi:"primaryKey"` // The name of the Resource Group where the Azure Relay Namespace Authorization Rule should exist. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The Secondary Connection String for the Azure Relay Namespace Authorization Rule. SecondaryConnectionString pulumi.StringOutput `pulumi:"secondaryConnectionString"` // The Secondary Key for the Azure Relay Namespace Authorization Rule. SecondaryKey pulumi.StringOutput `pulumi:"secondaryKey"` // Grants send access to this Authorization Rule. Defaults to `false`. Send pulumi.BoolPtrOutput `pulumi:"send"` }
Manages an Azure Relay Namespace Authorization Rule.
## Example Usage
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/relay" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Name: pulumi.String("example-resources"), Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleNamespace, err := relay.NewNamespace(ctx, "example", &relay.NamespaceArgs{ Name: pulumi.String("example-relay"), Location: example.Location, ResourceGroupName: example.Name, SkuName: pulumi.String("Standard"), Tags: pulumi.StringMap{ "source": pulumi.String("terraform"), }, }) if err != nil { return err } _, err = relay.NewNamespaceAuthorizationRule(ctx, "example", &relay.NamespaceAuthorizationRuleArgs{ Name: pulumi.String("example"), ResourceGroupName: example.Name, NamespaceName: exampleNamespace.Name, Listen: pulumi.Bool(true), Send: pulumi.Bool(true), Manage: pulumi.Bool(false), }) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
## Import
Azure Relay Namespace Authorization Rules can be imported using the `resource id`, e.g.
```sh $ pulumi import azure:relay/namespaceAuthorizationRule:NamespaceAuthorizationRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Relay/namespaces/namespace1/authorizationRules/rule1 ```
func GetNamespaceAuthorizationRule ¶
func GetNamespaceAuthorizationRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NamespaceAuthorizationRuleState, opts ...pulumi.ResourceOption) (*NamespaceAuthorizationRule, error)
GetNamespaceAuthorizationRule gets an existing NamespaceAuthorizationRule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewNamespaceAuthorizationRule ¶
func NewNamespaceAuthorizationRule(ctx *pulumi.Context, name string, args *NamespaceAuthorizationRuleArgs, opts ...pulumi.ResourceOption) (*NamespaceAuthorizationRule, error)
NewNamespaceAuthorizationRule registers a new resource with the given unique name, arguments, and options.
func (*NamespaceAuthorizationRule) ElementType ¶
func (*NamespaceAuthorizationRule) ElementType() reflect.Type
func (*NamespaceAuthorizationRule) ToNamespaceAuthorizationRuleOutput ¶
func (i *NamespaceAuthorizationRule) ToNamespaceAuthorizationRuleOutput() NamespaceAuthorizationRuleOutput
func (*NamespaceAuthorizationRule) ToNamespaceAuthorizationRuleOutputWithContext ¶
func (i *NamespaceAuthorizationRule) ToNamespaceAuthorizationRuleOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleOutput
type NamespaceAuthorizationRuleArgs ¶
type NamespaceAuthorizationRuleArgs struct { // Grants listen access to this Authorization Rule. Defaults to `false`. Listen pulumi.BoolPtrInput // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. Manage pulumi.BoolPtrInput // The name which should be used for this Azure Relay Namespace Authorization Rule. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. Name pulumi.StringPtrInput // Name of the Azure Relay Namespace for which this Azure Relay Namespace Authorization Rule will be created. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. NamespaceName pulumi.StringInput // The name of the Resource Group where the Azure Relay Namespace Authorization Rule should exist. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. ResourceGroupName pulumi.StringInput // Grants send access to this Authorization Rule. Defaults to `false`. Send pulumi.BoolPtrInput }
The set of arguments for constructing a NamespaceAuthorizationRule resource.
func (NamespaceAuthorizationRuleArgs) ElementType ¶
func (NamespaceAuthorizationRuleArgs) ElementType() reflect.Type
type NamespaceAuthorizationRuleArray ¶
type NamespaceAuthorizationRuleArray []NamespaceAuthorizationRuleInput
func (NamespaceAuthorizationRuleArray) ElementType ¶
func (NamespaceAuthorizationRuleArray) ElementType() reflect.Type
func (NamespaceAuthorizationRuleArray) ToNamespaceAuthorizationRuleArrayOutput ¶
func (i NamespaceAuthorizationRuleArray) ToNamespaceAuthorizationRuleArrayOutput() NamespaceAuthorizationRuleArrayOutput
func (NamespaceAuthorizationRuleArray) ToNamespaceAuthorizationRuleArrayOutputWithContext ¶
func (i NamespaceAuthorizationRuleArray) ToNamespaceAuthorizationRuleArrayOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleArrayOutput
type NamespaceAuthorizationRuleArrayInput ¶
type NamespaceAuthorizationRuleArrayInput interface { pulumi.Input ToNamespaceAuthorizationRuleArrayOutput() NamespaceAuthorizationRuleArrayOutput ToNamespaceAuthorizationRuleArrayOutputWithContext(context.Context) NamespaceAuthorizationRuleArrayOutput }
NamespaceAuthorizationRuleArrayInput is an input type that accepts NamespaceAuthorizationRuleArray and NamespaceAuthorizationRuleArrayOutput values. You can construct a concrete instance of `NamespaceAuthorizationRuleArrayInput` via:
NamespaceAuthorizationRuleArray{ NamespaceAuthorizationRuleArgs{...} }
type NamespaceAuthorizationRuleArrayOutput ¶
type NamespaceAuthorizationRuleArrayOutput struct{ *pulumi.OutputState }
func (NamespaceAuthorizationRuleArrayOutput) ElementType ¶
func (NamespaceAuthorizationRuleArrayOutput) ElementType() reflect.Type
func (NamespaceAuthorizationRuleArrayOutput) Index ¶
func (o NamespaceAuthorizationRuleArrayOutput) Index(i pulumi.IntInput) NamespaceAuthorizationRuleOutput
func (NamespaceAuthorizationRuleArrayOutput) ToNamespaceAuthorizationRuleArrayOutput ¶
func (o NamespaceAuthorizationRuleArrayOutput) ToNamespaceAuthorizationRuleArrayOutput() NamespaceAuthorizationRuleArrayOutput
func (NamespaceAuthorizationRuleArrayOutput) ToNamespaceAuthorizationRuleArrayOutputWithContext ¶
func (o NamespaceAuthorizationRuleArrayOutput) ToNamespaceAuthorizationRuleArrayOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleArrayOutput
type NamespaceAuthorizationRuleInput ¶
type NamespaceAuthorizationRuleInput interface { pulumi.Input ToNamespaceAuthorizationRuleOutput() NamespaceAuthorizationRuleOutput ToNamespaceAuthorizationRuleOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleOutput }
type NamespaceAuthorizationRuleMap ¶
type NamespaceAuthorizationRuleMap map[string]NamespaceAuthorizationRuleInput
func (NamespaceAuthorizationRuleMap) ElementType ¶
func (NamespaceAuthorizationRuleMap) ElementType() reflect.Type
func (NamespaceAuthorizationRuleMap) ToNamespaceAuthorizationRuleMapOutput ¶
func (i NamespaceAuthorizationRuleMap) ToNamespaceAuthorizationRuleMapOutput() NamespaceAuthorizationRuleMapOutput
func (NamespaceAuthorizationRuleMap) ToNamespaceAuthorizationRuleMapOutputWithContext ¶
func (i NamespaceAuthorizationRuleMap) ToNamespaceAuthorizationRuleMapOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleMapOutput
type NamespaceAuthorizationRuleMapInput ¶
type NamespaceAuthorizationRuleMapInput interface { pulumi.Input ToNamespaceAuthorizationRuleMapOutput() NamespaceAuthorizationRuleMapOutput ToNamespaceAuthorizationRuleMapOutputWithContext(context.Context) NamespaceAuthorizationRuleMapOutput }
NamespaceAuthorizationRuleMapInput is an input type that accepts NamespaceAuthorizationRuleMap and NamespaceAuthorizationRuleMapOutput values. You can construct a concrete instance of `NamespaceAuthorizationRuleMapInput` via:
NamespaceAuthorizationRuleMap{ "key": NamespaceAuthorizationRuleArgs{...} }
type NamespaceAuthorizationRuleMapOutput ¶
type NamespaceAuthorizationRuleMapOutput struct{ *pulumi.OutputState }
func (NamespaceAuthorizationRuleMapOutput) ElementType ¶
func (NamespaceAuthorizationRuleMapOutput) ElementType() reflect.Type
func (NamespaceAuthorizationRuleMapOutput) MapIndex ¶
func (o NamespaceAuthorizationRuleMapOutput) MapIndex(k pulumi.StringInput) NamespaceAuthorizationRuleOutput
func (NamespaceAuthorizationRuleMapOutput) ToNamespaceAuthorizationRuleMapOutput ¶
func (o NamespaceAuthorizationRuleMapOutput) ToNamespaceAuthorizationRuleMapOutput() NamespaceAuthorizationRuleMapOutput
func (NamespaceAuthorizationRuleMapOutput) ToNamespaceAuthorizationRuleMapOutputWithContext ¶
func (o NamespaceAuthorizationRuleMapOutput) ToNamespaceAuthorizationRuleMapOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleMapOutput
type NamespaceAuthorizationRuleOutput ¶
type NamespaceAuthorizationRuleOutput struct{ *pulumi.OutputState }
func (NamespaceAuthorizationRuleOutput) ElementType ¶
func (NamespaceAuthorizationRuleOutput) ElementType() reflect.Type
func (NamespaceAuthorizationRuleOutput) Listen ¶ added in v5.5.0
func (o NamespaceAuthorizationRuleOutput) Listen() pulumi.BoolPtrOutput
Grants listen access to this Authorization Rule. Defaults to `false`.
func (NamespaceAuthorizationRuleOutput) Manage ¶ added in v5.5.0
func (o NamespaceAuthorizationRuleOutput) Manage() pulumi.BoolPtrOutput
Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`.
func (NamespaceAuthorizationRuleOutput) Name ¶ added in v5.5.0
func (o NamespaceAuthorizationRuleOutput) Name() pulumi.StringOutput
The name which should be used for this Azure Relay Namespace Authorization Rule. Changing this forces a new Azure Relay Namespace Authorization Rule to be created.
func (NamespaceAuthorizationRuleOutput) NamespaceName ¶ added in v5.5.0
func (o NamespaceAuthorizationRuleOutput) NamespaceName() pulumi.StringOutput
Name of the Azure Relay Namespace for which this Azure Relay Namespace Authorization Rule will be created. Changing this forces a new Azure Relay Namespace Authorization Rule to be created.
func (NamespaceAuthorizationRuleOutput) PrimaryConnectionString ¶ added in v5.5.0
func (o NamespaceAuthorizationRuleOutput) PrimaryConnectionString() pulumi.StringOutput
The Primary Connection String for the Azure Relay Namespace Authorization Rule.
func (NamespaceAuthorizationRuleOutput) PrimaryKey ¶ added in v5.5.0
func (o NamespaceAuthorizationRuleOutput) PrimaryKey() pulumi.StringOutput
The Primary Key for the Azure Relay Namespace Authorization Rule.
func (NamespaceAuthorizationRuleOutput) ResourceGroupName ¶ added in v5.5.0
func (o NamespaceAuthorizationRuleOutput) ResourceGroupName() pulumi.StringOutput
The name of the Resource Group where the Azure Relay Namespace Authorization Rule should exist. Changing this forces a new Azure Relay Namespace Authorization Rule to be created.
func (NamespaceAuthorizationRuleOutput) SecondaryConnectionString ¶ added in v5.5.0
func (o NamespaceAuthorizationRuleOutput) SecondaryConnectionString() pulumi.StringOutput
The Secondary Connection String for the Azure Relay Namespace Authorization Rule.
func (NamespaceAuthorizationRuleOutput) SecondaryKey ¶ added in v5.5.0
func (o NamespaceAuthorizationRuleOutput) SecondaryKey() pulumi.StringOutput
The Secondary Key for the Azure Relay Namespace Authorization Rule.
func (NamespaceAuthorizationRuleOutput) Send ¶ added in v5.5.0
func (o NamespaceAuthorizationRuleOutput) Send() pulumi.BoolPtrOutput
Grants send access to this Authorization Rule. Defaults to `false`.
func (NamespaceAuthorizationRuleOutput) ToNamespaceAuthorizationRuleOutput ¶
func (o NamespaceAuthorizationRuleOutput) ToNamespaceAuthorizationRuleOutput() NamespaceAuthorizationRuleOutput
func (NamespaceAuthorizationRuleOutput) ToNamespaceAuthorizationRuleOutputWithContext ¶
func (o NamespaceAuthorizationRuleOutput) ToNamespaceAuthorizationRuleOutputWithContext(ctx context.Context) NamespaceAuthorizationRuleOutput
type NamespaceAuthorizationRuleState ¶
type NamespaceAuthorizationRuleState struct { // Grants listen access to this Authorization Rule. Defaults to `false`. Listen pulumi.BoolPtrInput // Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. Manage pulumi.BoolPtrInput // The name which should be used for this Azure Relay Namespace Authorization Rule. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. Name pulumi.StringPtrInput // Name of the Azure Relay Namespace for which this Azure Relay Namespace Authorization Rule will be created. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. NamespaceName pulumi.StringPtrInput // The Primary Connection String for the Azure Relay Namespace Authorization Rule. PrimaryConnectionString pulumi.StringPtrInput // The Primary Key for the Azure Relay Namespace Authorization Rule. PrimaryKey pulumi.StringPtrInput // The name of the Resource Group where the Azure Relay Namespace Authorization Rule should exist. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. ResourceGroupName pulumi.StringPtrInput // The Secondary Connection String for the Azure Relay Namespace Authorization Rule. SecondaryConnectionString pulumi.StringPtrInput // The Secondary Key for the Azure Relay Namespace Authorization Rule. SecondaryKey pulumi.StringPtrInput // Grants send access to this Authorization Rule. Defaults to `false`. Send pulumi.BoolPtrInput }
func (NamespaceAuthorizationRuleState) ElementType ¶
func (NamespaceAuthorizationRuleState) ElementType() reflect.Type
type NamespaceInput ¶
type NamespaceInput interface { pulumi.Input ToNamespaceOutput() NamespaceOutput ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput }
type NamespaceMap ¶
type NamespaceMap map[string]NamespaceInput
func (NamespaceMap) ElementType ¶
func (NamespaceMap) ElementType() reflect.Type
func (NamespaceMap) ToNamespaceMapOutput ¶
func (i NamespaceMap) ToNamespaceMapOutput() NamespaceMapOutput
func (NamespaceMap) ToNamespaceMapOutputWithContext ¶
func (i NamespaceMap) ToNamespaceMapOutputWithContext(ctx context.Context) NamespaceMapOutput
type NamespaceMapInput ¶
type NamespaceMapInput interface { pulumi.Input ToNamespaceMapOutput() NamespaceMapOutput ToNamespaceMapOutputWithContext(context.Context) NamespaceMapOutput }
NamespaceMapInput is an input type that accepts NamespaceMap and NamespaceMapOutput values. You can construct a concrete instance of `NamespaceMapInput` via:
NamespaceMap{ "key": NamespaceArgs{...} }
type NamespaceMapOutput ¶
type NamespaceMapOutput struct{ *pulumi.OutputState }
func (NamespaceMapOutput) ElementType ¶
func (NamespaceMapOutput) ElementType() reflect.Type
func (NamespaceMapOutput) MapIndex ¶
func (o NamespaceMapOutput) MapIndex(k pulumi.StringInput) NamespaceOutput
func (NamespaceMapOutput) ToNamespaceMapOutput ¶
func (o NamespaceMapOutput) ToNamespaceMapOutput() NamespaceMapOutput
func (NamespaceMapOutput) ToNamespaceMapOutputWithContext ¶
func (o NamespaceMapOutput) ToNamespaceMapOutputWithContext(ctx context.Context) NamespaceMapOutput
type NamespaceOutput ¶
type NamespaceOutput struct{ *pulumi.OutputState }
func (NamespaceOutput) ElementType ¶
func (NamespaceOutput) ElementType() reflect.Type
func (NamespaceOutput) Location ¶ added in v5.5.0
func (o NamespaceOutput) Location() pulumi.StringOutput
Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created.
func (NamespaceOutput) MetricId ¶ added in v5.5.0
func (o NamespaceOutput) MetricId() pulumi.StringOutput
The Identifier for Azure Insights metrics.
func (NamespaceOutput) Name ¶ added in v5.5.0
func (o NamespaceOutput) Name() pulumi.StringOutput
Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created.
func (NamespaceOutput) PrimaryConnectionString ¶ added in v5.5.0
func (o NamespaceOutput) PrimaryConnectionString() pulumi.StringOutput
The primary connection string for the authorization rule `RootManageSharedAccessKey`.
func (NamespaceOutput) PrimaryKey ¶ added in v5.5.0
func (o NamespaceOutput) PrimaryKey() pulumi.StringOutput
The primary access key for the authorization rule `RootManageSharedAccessKey`.
func (NamespaceOutput) ResourceGroupName ¶ added in v5.5.0
func (o NamespaceOutput) ResourceGroupName() pulumi.StringOutput
The name of the resource group in which to create the Azure Relay Namespace. Changing this forces a new resource to be created.
func (NamespaceOutput) SecondaryConnectionString ¶ added in v5.5.0
func (o NamespaceOutput) SecondaryConnectionString() pulumi.StringOutput
The secondary connection string for the authorization rule `RootManageSharedAccessKey`.
func (NamespaceOutput) SecondaryKey ¶ added in v5.5.0
func (o NamespaceOutput) SecondaryKey() pulumi.StringOutput
The secondary access key for the authorization rule `RootManageSharedAccessKey`.
func (NamespaceOutput) SkuName ¶ added in v5.5.0
func (o NamespaceOutput) SkuName() pulumi.StringOutput
The name of the SKU to use. At this time the only supported value is `Standard`.
func (NamespaceOutput) Tags ¶ added in v5.5.0
func (o NamespaceOutput) Tags() pulumi.StringMapOutput
A mapping of tags to assign to the resource.
func (NamespaceOutput) ToNamespaceOutput ¶
func (o NamespaceOutput) ToNamespaceOutput() NamespaceOutput
func (NamespaceOutput) ToNamespaceOutputWithContext ¶
func (o NamespaceOutput) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
type NamespaceState ¶
type NamespaceState struct { // Specifies the supported Azure location where the Azure Relay Namespace exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The Identifier for Azure Insights metrics. MetricId pulumi.StringPtrInput // Specifies the name of the Azure Relay Namespace. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The primary connection string for the authorization rule `RootManageSharedAccessKey`. PrimaryConnectionString pulumi.StringPtrInput // The primary access key for the authorization rule `RootManageSharedAccessKey`. PrimaryKey pulumi.StringPtrInput // The name of the resource group in which to create the Azure Relay Namespace. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The secondary connection string for the authorization rule `RootManageSharedAccessKey`. SecondaryConnectionString pulumi.StringPtrInput // The secondary access key for the authorization rule `RootManageSharedAccessKey`. SecondaryKey pulumi.StringPtrInput // The name of the SKU to use. At this time the only supported value is `Standard`. SkuName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
func (NamespaceState) ElementType ¶
func (NamespaceState) ElementType() reflect.Type