azure-native.engagementfabric.Channel

The EngagementFabric channel API Version: 2018-09-01-preview.

Example Usage

ChannelsCreateOrUpdateExample

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var channel = new AzureNative.EngagementFabric.Channel("channel", new()
    {
        AccountName = "ExampleAccount",
        ChannelFunctions = new[]
        {
            "MockFunction1",
            "MockFunction2",
        },
        ChannelName = "ExampleChannel",
        ChannelType = "MockChannel",
        Credentials = 
        {
            { "AppId", "exampleApp" },
            { "AppKey", "exampleAppKey" },
        },
        ResourceGroupName = "ExampleRg",
    });

});
package main

import (
	engagementfabric "github.com/pulumi/pulumi-azure-native/sdk/go/azure/engagementfabric"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := engagementfabric.NewChannel(ctx, "channel", &engagementfabric.ChannelArgs{
			AccountName: pulumi.String("ExampleAccount"),
			ChannelFunctions: pulumi.StringArray{
				pulumi.String("MockFunction1"),
				pulumi.String("MockFunction2"),
			},
			ChannelName: pulumi.String("ExampleChannel"),
			ChannelType: pulumi.String("MockChannel"),
			Credentials: pulumi.StringMap{
				"AppId":  pulumi.String("exampleApp"),
				"AppKey": pulumi.String("exampleAppKey"),
			},
			ResourceGroupName: pulumi.String("ExampleRg"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.engagementfabric.Channel;
import com.pulumi.azurenative.engagementfabric.ChannelArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var channel = new Channel("channel", ChannelArgs.builder()        
            .accountName("ExampleAccount")
            .channelFunctions(            
                "MockFunction1",
                "MockFunction2")
            .channelName("ExampleChannel")
            .channelType("MockChannel")
            .credentials(Map.ofEntries(
                Map.entry("AppId", "exampleApp"),
                Map.entry("AppKey", "exampleAppKey")
            ))
            .resourceGroupName("ExampleRg")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

channel = azure_native.engagementfabric.Channel("channel",
    account_name="ExampleAccount",
    channel_functions=[
        "MockFunction1",
        "MockFunction2",
    ],
    channel_name="ExampleChannel",
    channel_type="MockChannel",
    credentials={
        "AppId": "exampleApp",
        "AppKey": "exampleAppKey",
    },
    resource_group_name="ExampleRg")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const channel = new azure_native.engagementfabric.Channel("channel", {
    accountName: "ExampleAccount",
    channelFunctions: [
        "MockFunction1",
        "MockFunction2",
    ],
    channelName: "ExampleChannel",
    channelType: "MockChannel",
    credentials: {
        AppId: "exampleApp",
        AppKey: "exampleAppKey",
    },
    resourceGroupName: "ExampleRg",
});
resources:
  channel:
    type: azure-native:engagementfabric:Channel
    properties:
      accountName: ExampleAccount
      channelFunctions:
        - MockFunction1
        - MockFunction2
      channelName: ExampleChannel
      channelType: MockChannel
      credentials:
        AppId: exampleApp
        AppKey: exampleAppKey
      resourceGroupName: ExampleRg

Create Channel Resource

new Channel(name: string, args: ChannelArgs, opts?: CustomResourceOptions);
@overload
def Channel(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            account_name: Optional[str] = None,
            channel_functions: Optional[Sequence[str]] = None,
            channel_name: Optional[str] = None,
            channel_type: Optional[str] = None,
            credentials: Optional[Mapping[str, str]] = None,
            resource_group_name: Optional[str] = None)
@overload
def Channel(resource_name: str,
            args: ChannelArgs,
            opts: Optional[ResourceOptions] = None)
func NewChannel(ctx *Context, name string, args ChannelArgs, opts ...ResourceOption) (*Channel, error)
public Channel(string name, ChannelArgs args, CustomResourceOptions? opts = null)
public Channel(String name, ChannelArgs args)
public Channel(String name, ChannelArgs args, CustomResourceOptions options)
type: azure-native:engagementfabric:Channel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ChannelArgs
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 ChannelArgs
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 ChannelArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ChannelArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ChannelArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Channel Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Channel resource accepts the following input properties:

AccountName string

Account Name

ChannelType string

The channel type

ResourceGroupName string

Resource Group Name

ChannelFunctions List<string>

The functions to be enabled for the channel

ChannelName string

Channel Name

Credentials Dictionary<string, string>

The channel credentials

AccountName string

Account Name

ChannelType string

The channel type

ResourceGroupName string

Resource Group Name

ChannelFunctions []string

The functions to be enabled for the channel

ChannelName string

Channel Name

Credentials map[string]string

The channel credentials

accountName String

Account Name

channelType String

The channel type

resourceGroupName String

Resource Group Name

channelFunctions List<String>

The functions to be enabled for the channel

channelName String

Channel Name

credentials Map<String,String>

The channel credentials

accountName string

Account Name

channelType string

The channel type

resourceGroupName string

Resource Group Name

channelFunctions string[]

The functions to be enabled for the channel

channelName string

Channel Name

credentials {[key: string]: string}

The channel credentials

account_name str

Account Name

channel_type str

The channel type

resource_group_name str

Resource Group Name

channel_functions Sequence[str]

The functions to be enabled for the channel

channel_name str

Channel Name

credentials Mapping[str, str]

The channel credentials

accountName String

Account Name

channelType String

The channel type

resourceGroupName String

Resource Group Name

channelFunctions List<String>

The functions to be enabled for the channel

channelName String

Channel Name

credentials Map<String>

The channel credentials

Outputs

All input properties are implicitly available as output properties. Additionally, the Channel resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

Type string

The fully qualified type of the resource

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

Type string

The fully qualified type of the resource

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

type String

The fully qualified type of the resource

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the resource

type string

The fully qualified type of the resource

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the resource

type str

The fully qualified type of the resource

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

type String

The fully qualified type of the resource

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:engagementfabric:Channel ExampleChannel subscriptions/EDBF0095-A524-4A84-95FB-F72DA41AA6A1/resourceGroups/ExampleRg/providers/Microsoft.EngagementFabric/Accounts/ExampleAccount/Channels/ExampleChannel 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0