func NewChannelSlack(ctx *pulumi.Context,
	name string, args *ChannelSlackArgs, opts ...pulumi.ResourceOption) (*ChannelSlack, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}

	if args.BotName == nil {
		return nil, errors.New("invalid value for required argument 'BotName'")
	}
	if args.ClientId == nil {
		return nil, errors.New("invalid value for required argument 'ClientId'")
	}
	if args.ClientSecret == nil {
		return nil, errors.New("invalid value for required argument 'ClientSecret'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.VerificationToken == nil {
		return nil, errors.New("invalid value for required argument 'VerificationToken'")
	}
	var resource ChannelSlack
	err := ctx.RegisterResource("azure:bot/channelSlack:ChannelSlack", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewChannelSlack registers a new resource with the given unique name, arguments, and options.
NewChannelSlack registers a new resource with the given unique name, arguments, and options.
// NewChannelSlack registers a new resource with the given unique name arguments and options .
func NewChannelSlack(ctx *pulumi.Context,
	name string, args *ChannelSlackArgs, opts ...pulumi.ResourceOption) (*ChannelSlack, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.BotName == nil {
		return nil, errors.New("invalid value for required argument 'BotName'")
	}
	if args.ClientId == nil {
		return nil, errors.New("invalid value for required argument 'ClientId'")
	}
	if args.ClientSecret == nil {
		return nil, errors.New("invalid value for required argument 'ClientSecret'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.VerificationToken == nil {
		return nil, errors.New("invalid value for required argument 'VerificationToken'")
	}
	var resource ChannelSlack
	err := ctx.RegisterResource("azure:bot/channelSlack:ChannelSlack", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewChannelSlack ( ctx * pulumi . Context , name string , args * ChannelSlackArgs , opts ... pulumi . ResourceOption ) ( * ChannelSlack , error ) { if args == nil { return nil , errors . New ( " " ) } if args . BotName == nil { return nil , errors . New ( " " ) } if args . ClientId == nil { return nil , errors . New ( " " ) } if args . ClientSecret == nil { return nil , errors . New ( " " ) } if args . ResourceGroupName == nil { return nil , errors . New ( " " ) } if args . VerificationToken == nil { return nil , errors . New ( " " ) } var resource ChannelSlack err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewChannelSlack registers a new resource with the given unique name, arguments, and options.
NewChannelSlack registers a new resource with the given unique name arguments and options .