Documentation ¶
Index ¶
- type EmailService
- type EmailServiceArgs
- type EmailServiceArray
- func (EmailServiceArray) ElementType() reflect.Type
- func (i EmailServiceArray) ToEmailServiceArrayOutput() EmailServiceArrayOutput
- func (i EmailServiceArray) ToEmailServiceArrayOutputWithContext(ctx context.Context) EmailServiceArrayOutput
- func (i EmailServiceArray) ToOutput(ctx context.Context) pulumix.Output[[]*EmailService]
- type EmailServiceArrayInput
- type EmailServiceArrayOutput
- func (EmailServiceArrayOutput) ElementType() reflect.Type
- func (o EmailServiceArrayOutput) Index(i pulumi.IntInput) EmailServiceOutput
- func (o EmailServiceArrayOutput) ToEmailServiceArrayOutput() EmailServiceArrayOutput
- func (o EmailServiceArrayOutput) ToEmailServiceArrayOutputWithContext(ctx context.Context) EmailServiceArrayOutput
- func (o EmailServiceArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*EmailService]
- type EmailServiceInput
- type EmailServiceMap
- func (EmailServiceMap) ElementType() reflect.Type
- func (i EmailServiceMap) ToEmailServiceMapOutput() EmailServiceMapOutput
- func (i EmailServiceMap) ToEmailServiceMapOutputWithContext(ctx context.Context) EmailServiceMapOutput
- func (i EmailServiceMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*EmailService]
- type EmailServiceMapInput
- type EmailServiceMapOutput
- func (EmailServiceMapOutput) ElementType() reflect.Type
- func (o EmailServiceMapOutput) MapIndex(k pulumi.StringInput) EmailServiceOutput
- func (o EmailServiceMapOutput) ToEmailServiceMapOutput() EmailServiceMapOutput
- func (o EmailServiceMapOutput) ToEmailServiceMapOutputWithContext(ctx context.Context) EmailServiceMapOutput
- func (o EmailServiceMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*EmailService]
- type EmailServiceOutput
- func (o EmailServiceOutput) DataLocation() pulumi.StringOutput
- func (EmailServiceOutput) ElementType() reflect.Type
- func (o EmailServiceOutput) Name() pulumi.StringOutput
- func (o EmailServiceOutput) ResourceGroupName() pulumi.StringOutput
- func (o EmailServiceOutput) Tags() pulumi.StringMapOutput
- func (o EmailServiceOutput) ToEmailServiceOutput() EmailServiceOutput
- func (o EmailServiceOutput) ToEmailServiceOutputWithContext(ctx context.Context) EmailServiceOutput
- func (o EmailServiceOutput) ToOutput(ctx context.Context) pulumix.Output[*EmailService]
- type EmailServiceState
- type LookupServiceArgs
- type LookupServiceOutputArgs
- type LookupServiceResult
- type LookupServiceResultOutput
- func (o LookupServiceResultOutput) DataLocation() pulumi.StringOutput
- func (LookupServiceResultOutput) ElementType() reflect.Type
- func (o LookupServiceResultOutput) Id() pulumi.StringOutput
- func (o LookupServiceResultOutput) Name() pulumi.StringOutput
- func (o LookupServiceResultOutput) PrimaryConnectionString() pulumi.StringOutput
- func (o LookupServiceResultOutput) PrimaryKey() pulumi.StringOutput
- func (o LookupServiceResultOutput) ResourceGroupName() pulumi.StringOutput
- func (o LookupServiceResultOutput) SecondaryConnectionString() pulumi.StringOutput
- func (o LookupServiceResultOutput) SecondaryKey() pulumi.StringOutput
- func (o LookupServiceResultOutput) Tags() pulumi.StringMapOutput
- func (o LookupServiceResultOutput) ToLookupServiceResultOutput() LookupServiceResultOutput
- func (o LookupServiceResultOutput) ToLookupServiceResultOutputWithContext(ctx context.Context) LookupServiceResultOutput
- func (o LookupServiceResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupServiceResult]
- type Service
- type ServiceArgs
- type ServiceArray
- type ServiceArrayInput
- type ServiceArrayOutput
- func (ServiceArrayOutput) ElementType() reflect.Type
- func (o ServiceArrayOutput) Index(i pulumi.IntInput) ServiceOutput
- func (o ServiceArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*Service]
- func (o ServiceArrayOutput) ToServiceArrayOutput() ServiceArrayOutput
- func (o ServiceArrayOutput) ToServiceArrayOutputWithContext(ctx context.Context) ServiceArrayOutput
- type ServiceInput
- type ServiceMap
- type ServiceMapInput
- type ServiceMapOutput
- func (ServiceMapOutput) ElementType() reflect.Type
- func (o ServiceMapOutput) MapIndex(k pulumi.StringInput) ServiceOutput
- func (o ServiceMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*Service]
- func (o ServiceMapOutput) ToServiceMapOutput() ServiceMapOutput
- func (o ServiceMapOutput) ToServiceMapOutputWithContext(ctx context.Context) ServiceMapOutput
- type ServiceOutput
- func (o ServiceOutput) DataLocation() pulumi.StringPtrOutput
- func (ServiceOutput) ElementType() reflect.Type
- func (o ServiceOutput) Name() pulumi.StringOutput
- func (o ServiceOutput) PrimaryConnectionString() pulumi.StringOutput
- func (o ServiceOutput) PrimaryKey() pulumi.StringOutput
- func (o ServiceOutput) ResourceGroupName() pulumi.StringOutput
- func (o ServiceOutput) SecondaryConnectionString() pulumi.StringOutput
- func (o ServiceOutput) SecondaryKey() pulumi.StringOutput
- func (o ServiceOutput) Tags() pulumi.StringMapOutput
- func (o ServiceOutput) ToOutput(ctx context.Context) pulumix.Output[*Service]
- func (o ServiceOutput) ToServiceOutput() ServiceOutput
- func (o ServiceOutput) ToServiceOutputWithContext(ctx context.Context) ServiceOutput
- type ServiceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailService ¶ added in v5.43.0
type EmailService struct { pulumi.CustomResourceState // The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Email Communication Service to be created. DataLocation pulumi.StringOutput `pulumi:"dataLocation"` // The name of the Email Communication Service resource. Changing this forces a new Email Communication Service to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Email Communication Service should exist. Changing this forces a new Email Communication Service to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Email Communication Service. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages an Email Communication Service.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/communication" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } _, err = communication.NewEmailService(ctx, "exampleEmailService", &communication.EmailServiceArgs{ ResourceGroupName: exampleResourceGroup.Name, DataLocation: pulumi.String("United States"), }) if err != nil { return err } return nil }) }
```
## Import
Communication Services can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:communication/emailService:EmailService example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Communication/emailServices/emailCommunicationService1
```
func GetEmailService ¶ added in v5.43.0
func GetEmailService(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EmailServiceState, opts ...pulumi.ResourceOption) (*EmailService, error)
GetEmailService gets an existing EmailService 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 NewEmailService ¶ added in v5.43.0
func NewEmailService(ctx *pulumi.Context, name string, args *EmailServiceArgs, opts ...pulumi.ResourceOption) (*EmailService, error)
NewEmailService registers a new resource with the given unique name, arguments, and options.
func (*EmailService) ElementType ¶ added in v5.43.0
func (*EmailService) ElementType() reflect.Type
func (*EmailService) ToEmailServiceOutput ¶ added in v5.43.0
func (i *EmailService) ToEmailServiceOutput() EmailServiceOutput
func (*EmailService) ToEmailServiceOutputWithContext ¶ added in v5.43.0
func (i *EmailService) ToEmailServiceOutputWithContext(ctx context.Context) EmailServiceOutput
func (*EmailService) ToOutput ¶ added in v5.52.0
func (i *EmailService) ToOutput(ctx context.Context) pulumix.Output[*EmailService]
type EmailServiceArgs ¶ added in v5.43.0
type EmailServiceArgs struct { // The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Email Communication Service to be created. DataLocation pulumi.StringInput // The name of the Email Communication Service resource. Changing this forces a new Email Communication Service to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Email Communication Service should exist. Changing this forces a new Email Communication Service to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the Email Communication Service. Tags pulumi.StringMapInput }
The set of arguments for constructing a EmailService resource.
func (EmailServiceArgs) ElementType ¶ added in v5.43.0
func (EmailServiceArgs) ElementType() reflect.Type
type EmailServiceArray ¶ added in v5.43.0
type EmailServiceArray []EmailServiceInput
func (EmailServiceArray) ElementType ¶ added in v5.43.0
func (EmailServiceArray) ElementType() reflect.Type
func (EmailServiceArray) ToEmailServiceArrayOutput ¶ added in v5.43.0
func (i EmailServiceArray) ToEmailServiceArrayOutput() EmailServiceArrayOutput
func (EmailServiceArray) ToEmailServiceArrayOutputWithContext ¶ added in v5.43.0
func (i EmailServiceArray) ToEmailServiceArrayOutputWithContext(ctx context.Context) EmailServiceArrayOutput
func (EmailServiceArray) ToOutput ¶ added in v5.52.0
func (i EmailServiceArray) ToOutput(ctx context.Context) pulumix.Output[[]*EmailService]
type EmailServiceArrayInput ¶ added in v5.43.0
type EmailServiceArrayInput interface { pulumi.Input ToEmailServiceArrayOutput() EmailServiceArrayOutput ToEmailServiceArrayOutputWithContext(context.Context) EmailServiceArrayOutput }
EmailServiceArrayInput is an input type that accepts EmailServiceArray and EmailServiceArrayOutput values. You can construct a concrete instance of `EmailServiceArrayInput` via:
EmailServiceArray{ EmailServiceArgs{...} }
type EmailServiceArrayOutput ¶ added in v5.43.0
type EmailServiceArrayOutput struct{ *pulumi.OutputState }
func (EmailServiceArrayOutput) ElementType ¶ added in v5.43.0
func (EmailServiceArrayOutput) ElementType() reflect.Type
func (EmailServiceArrayOutput) Index ¶ added in v5.43.0
func (o EmailServiceArrayOutput) Index(i pulumi.IntInput) EmailServiceOutput
func (EmailServiceArrayOutput) ToEmailServiceArrayOutput ¶ added in v5.43.0
func (o EmailServiceArrayOutput) ToEmailServiceArrayOutput() EmailServiceArrayOutput
func (EmailServiceArrayOutput) ToEmailServiceArrayOutputWithContext ¶ added in v5.43.0
func (o EmailServiceArrayOutput) ToEmailServiceArrayOutputWithContext(ctx context.Context) EmailServiceArrayOutput
func (EmailServiceArrayOutput) ToOutput ¶ added in v5.52.0
func (o EmailServiceArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*EmailService]
type EmailServiceInput ¶ added in v5.43.0
type EmailServiceInput interface { pulumi.Input ToEmailServiceOutput() EmailServiceOutput ToEmailServiceOutputWithContext(ctx context.Context) EmailServiceOutput }
type EmailServiceMap ¶ added in v5.43.0
type EmailServiceMap map[string]EmailServiceInput
func (EmailServiceMap) ElementType ¶ added in v5.43.0
func (EmailServiceMap) ElementType() reflect.Type
func (EmailServiceMap) ToEmailServiceMapOutput ¶ added in v5.43.0
func (i EmailServiceMap) ToEmailServiceMapOutput() EmailServiceMapOutput
func (EmailServiceMap) ToEmailServiceMapOutputWithContext ¶ added in v5.43.0
func (i EmailServiceMap) ToEmailServiceMapOutputWithContext(ctx context.Context) EmailServiceMapOutput
func (EmailServiceMap) ToOutput ¶ added in v5.52.0
func (i EmailServiceMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*EmailService]
type EmailServiceMapInput ¶ added in v5.43.0
type EmailServiceMapInput interface { pulumi.Input ToEmailServiceMapOutput() EmailServiceMapOutput ToEmailServiceMapOutputWithContext(context.Context) EmailServiceMapOutput }
EmailServiceMapInput is an input type that accepts EmailServiceMap and EmailServiceMapOutput values. You can construct a concrete instance of `EmailServiceMapInput` via:
EmailServiceMap{ "key": EmailServiceArgs{...} }
type EmailServiceMapOutput ¶ added in v5.43.0
type EmailServiceMapOutput struct{ *pulumi.OutputState }
func (EmailServiceMapOutput) ElementType ¶ added in v5.43.0
func (EmailServiceMapOutput) ElementType() reflect.Type
func (EmailServiceMapOutput) MapIndex ¶ added in v5.43.0
func (o EmailServiceMapOutput) MapIndex(k pulumi.StringInput) EmailServiceOutput
func (EmailServiceMapOutput) ToEmailServiceMapOutput ¶ added in v5.43.0
func (o EmailServiceMapOutput) ToEmailServiceMapOutput() EmailServiceMapOutput
func (EmailServiceMapOutput) ToEmailServiceMapOutputWithContext ¶ added in v5.43.0
func (o EmailServiceMapOutput) ToEmailServiceMapOutputWithContext(ctx context.Context) EmailServiceMapOutput
func (EmailServiceMapOutput) ToOutput ¶ added in v5.52.0
func (o EmailServiceMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*EmailService]
type EmailServiceOutput ¶ added in v5.43.0
type EmailServiceOutput struct{ *pulumi.OutputState }
func (EmailServiceOutput) DataLocation ¶ added in v5.43.0
func (o EmailServiceOutput) DataLocation() pulumi.StringOutput
The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Email Communication Service to be created.
func (EmailServiceOutput) ElementType ¶ added in v5.43.0
func (EmailServiceOutput) ElementType() reflect.Type
func (EmailServiceOutput) Name ¶ added in v5.43.0
func (o EmailServiceOutput) Name() pulumi.StringOutput
The name of the Email Communication Service resource. Changing this forces a new Email Communication Service to be created.
func (EmailServiceOutput) ResourceGroupName ¶ added in v5.43.0
func (o EmailServiceOutput) ResourceGroupName() pulumi.StringOutput
The name of the Resource Group where the Email Communication Service should exist. Changing this forces a new Email Communication Service to be created.
func (EmailServiceOutput) Tags ¶ added in v5.43.0
func (o EmailServiceOutput) Tags() pulumi.StringMapOutput
A mapping of tags which should be assigned to the Email Communication Service.
func (EmailServiceOutput) ToEmailServiceOutput ¶ added in v5.43.0
func (o EmailServiceOutput) ToEmailServiceOutput() EmailServiceOutput
func (EmailServiceOutput) ToEmailServiceOutputWithContext ¶ added in v5.43.0
func (o EmailServiceOutput) ToEmailServiceOutputWithContext(ctx context.Context) EmailServiceOutput
func (EmailServiceOutput) ToOutput ¶ added in v5.52.0
func (o EmailServiceOutput) ToOutput(ctx context.Context) pulumix.Output[*EmailService]
type EmailServiceState ¶ added in v5.43.0
type EmailServiceState struct { // The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Email Communication Service to be created. DataLocation pulumi.StringPtrInput // The name of the Email Communication Service resource. Changing this forces a new Email Communication Service to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Email Communication Service should exist. Changing this forces a new Email Communication Service to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags which should be assigned to the Email Communication Service. Tags pulumi.StringMapInput }
func (EmailServiceState) ElementType ¶ added in v5.43.0
func (EmailServiceState) ElementType() reflect.Type
type LookupServiceArgs ¶ added in v5.46.0
type LookupServiceArgs struct { // The name of this Communication Service. // * Name string `pulumi:"name"` // The name of the Resource Group where the Communication Service exists. // * ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getService.
type LookupServiceOutputArgs ¶ added in v5.46.0
type LookupServiceOutputArgs struct { // The name of this Communication Service. // * Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group where the Communication Service exists. // * ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getService.
func (LookupServiceOutputArgs) ElementType ¶ added in v5.46.0
func (LookupServiceOutputArgs) ElementType() reflect.Type
type LookupServiceResult ¶ added in v5.46.0
type LookupServiceResult struct { // The location where the Communication service stores its data at rest. DataLocation string `pulumi:"dataLocation"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` // The primary connection string of the Communication Service. PrimaryConnectionString string `pulumi:"primaryConnectionString"` // The primary key of the Communication Service. PrimaryKey string `pulumi:"primaryKey"` ResourceGroupName string `pulumi:"resourceGroupName"` // The secondary connection string of the Communication Service. SecondaryConnectionString string `pulumi:"secondaryConnectionString"` // The secondary key of the Communication Service. SecondaryKey string `pulumi:"secondaryKey"` // A mapping of tags assigned to the Communication Service. Tags map[string]string `pulumi:"tags"` }
A collection of values returned by getService.
func LookupService ¶ added in v5.46.0
func LookupService(ctx *pulumi.Context, args *LookupServiceArgs, opts ...pulumi.InvokeOption) (*LookupServiceResult, error)
Use this data source to access information about an existing Communication Service.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/communication" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := communication.LookupService(ctx, &communication.LookupServiceArgs{ Name: "existing", ResourceGroupName: "existing", }, nil) if err != nil { return err } ctx.Export("id", example.Id) return nil }) }
```
type LookupServiceResultOutput ¶ added in v5.46.0
type LookupServiceResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getService.
func LookupServiceOutput ¶ added in v5.46.0
func LookupServiceOutput(ctx *pulumi.Context, args LookupServiceOutputArgs, opts ...pulumi.InvokeOption) LookupServiceResultOutput
func (LookupServiceResultOutput) DataLocation ¶ added in v5.46.0
func (o LookupServiceResultOutput) DataLocation() pulumi.StringOutput
The location where the Communication service stores its data at rest.
func (LookupServiceResultOutput) ElementType ¶ added in v5.46.0
func (LookupServiceResultOutput) ElementType() reflect.Type
func (LookupServiceResultOutput) Id ¶ added in v5.46.0
func (o LookupServiceResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupServiceResultOutput) Name ¶ added in v5.46.0
func (o LookupServiceResultOutput) Name() pulumi.StringOutput
func (LookupServiceResultOutput) PrimaryConnectionString ¶ added in v5.46.0
func (o LookupServiceResultOutput) PrimaryConnectionString() pulumi.StringOutput
The primary connection string of the Communication Service.
func (LookupServiceResultOutput) PrimaryKey ¶ added in v5.46.0
func (o LookupServiceResultOutput) PrimaryKey() pulumi.StringOutput
The primary key of the Communication Service.
func (LookupServiceResultOutput) ResourceGroupName ¶ added in v5.46.0
func (o LookupServiceResultOutput) ResourceGroupName() pulumi.StringOutput
func (LookupServiceResultOutput) SecondaryConnectionString ¶ added in v5.46.0
func (o LookupServiceResultOutput) SecondaryConnectionString() pulumi.StringOutput
The secondary connection string of the Communication Service.
func (LookupServiceResultOutput) SecondaryKey ¶ added in v5.46.0
func (o LookupServiceResultOutput) SecondaryKey() pulumi.StringOutput
The secondary key of the Communication Service.
func (LookupServiceResultOutput) Tags ¶ added in v5.46.0
func (o LookupServiceResultOutput) Tags() pulumi.StringMapOutput
A mapping of tags assigned to the Communication Service.
func (LookupServiceResultOutput) ToLookupServiceResultOutput ¶ added in v5.46.0
func (o LookupServiceResultOutput) ToLookupServiceResultOutput() LookupServiceResultOutput
func (LookupServiceResultOutput) ToLookupServiceResultOutputWithContext ¶ added in v5.46.0
func (o LookupServiceResultOutput) ToLookupServiceResultOutputWithContext(ctx context.Context) LookupServiceResultOutput
func (LookupServiceResultOutput) ToOutput ¶ added in v5.52.0
func (o LookupServiceResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupServiceResult]
type Service ¶
type Service struct { pulumi.CustomResourceState // The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. DataLocation pulumi.StringPtrOutput `pulumi:"dataLocation"` // The name of the Communication Service resource. Changing this forces a new Communication Service to be created. Name pulumi.StringOutput `pulumi:"name"` // The primary connection string of the Communication Service. PrimaryConnectionString pulumi.StringOutput `pulumi:"primaryConnectionString"` // The primary key of the Communication Service. PrimaryKey pulumi.StringOutput `pulumi:"primaryKey"` // The name of the Resource Group where the Communication Service should exist. Changing this forces a new Communication Service to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The secondary connection string of the Communication Service. SecondaryConnectionString pulumi.StringOutput `pulumi:"secondaryConnectionString"` // The secondary key of the Communication Service. SecondaryKey pulumi.StringOutput `pulumi:"secondaryKey"` // A mapping of tags which should be assigned to the Communication Service. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages a Communication Service.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/communication" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } _, err = communication.NewService(ctx, "exampleService", &communication.ServiceArgs{ ResourceGroupName: exampleResourceGroup.Name, DataLocation: pulumi.String("United States"), }) if err != nil { return err } return nil }) }
```
## Import
Communication Services can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:communication/service:Service example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Communication/communicationServices/communicationService1
```
func GetService ¶
func GetService(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ServiceState, opts ...pulumi.ResourceOption) (*Service, error)
GetService gets an existing Service 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 NewService ¶
func NewService(ctx *pulumi.Context, name string, args *ServiceArgs, opts ...pulumi.ResourceOption) (*Service, error)
NewService registers a new resource with the given unique name, arguments, and options.
func (*Service) ElementType ¶
func (*Service) ToServiceOutput ¶
func (i *Service) ToServiceOutput() ServiceOutput
func (*Service) ToServiceOutputWithContext ¶
func (i *Service) ToServiceOutputWithContext(ctx context.Context) ServiceOutput
type ServiceArgs ¶
type ServiceArgs struct { // The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. DataLocation pulumi.StringPtrInput // The name of the Communication Service resource. Changing this forces a new Communication Service to be created. Name pulumi.StringPtrInput // The name of the Resource Group where the Communication Service should exist. Changing this forces a new Communication Service to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the Communication Service. Tags pulumi.StringMapInput }
The set of arguments for constructing a Service resource.
func (ServiceArgs) ElementType ¶
func (ServiceArgs) ElementType() reflect.Type
type ServiceArray ¶
type ServiceArray []ServiceInput
func (ServiceArray) ElementType ¶
func (ServiceArray) ElementType() reflect.Type
func (ServiceArray) ToServiceArrayOutput ¶
func (i ServiceArray) ToServiceArrayOutput() ServiceArrayOutput
func (ServiceArray) ToServiceArrayOutputWithContext ¶
func (i ServiceArray) ToServiceArrayOutputWithContext(ctx context.Context) ServiceArrayOutput
type ServiceArrayInput ¶
type ServiceArrayInput interface { pulumi.Input ToServiceArrayOutput() ServiceArrayOutput ToServiceArrayOutputWithContext(context.Context) ServiceArrayOutput }
ServiceArrayInput is an input type that accepts ServiceArray and ServiceArrayOutput values. You can construct a concrete instance of `ServiceArrayInput` via:
ServiceArray{ ServiceArgs{...} }
type ServiceArrayOutput ¶
type ServiceArrayOutput struct{ *pulumi.OutputState }
func (ServiceArrayOutput) ElementType ¶
func (ServiceArrayOutput) ElementType() reflect.Type
func (ServiceArrayOutput) Index ¶
func (o ServiceArrayOutput) Index(i pulumi.IntInput) ServiceOutput
func (ServiceArrayOutput) ToServiceArrayOutput ¶
func (o ServiceArrayOutput) ToServiceArrayOutput() ServiceArrayOutput
func (ServiceArrayOutput) ToServiceArrayOutputWithContext ¶
func (o ServiceArrayOutput) ToServiceArrayOutputWithContext(ctx context.Context) ServiceArrayOutput
type ServiceInput ¶
type ServiceInput interface { pulumi.Input ToServiceOutput() ServiceOutput ToServiceOutputWithContext(ctx context.Context) ServiceOutput }
type ServiceMap ¶
type ServiceMap map[string]ServiceInput
func (ServiceMap) ElementType ¶
func (ServiceMap) ElementType() reflect.Type
func (ServiceMap) ToServiceMapOutput ¶
func (i ServiceMap) ToServiceMapOutput() ServiceMapOutput
func (ServiceMap) ToServiceMapOutputWithContext ¶
func (i ServiceMap) ToServiceMapOutputWithContext(ctx context.Context) ServiceMapOutput
type ServiceMapInput ¶
type ServiceMapInput interface { pulumi.Input ToServiceMapOutput() ServiceMapOutput ToServiceMapOutputWithContext(context.Context) ServiceMapOutput }
ServiceMapInput is an input type that accepts ServiceMap and ServiceMapOutput values. You can construct a concrete instance of `ServiceMapInput` via:
ServiceMap{ "key": ServiceArgs{...} }
type ServiceMapOutput ¶
type ServiceMapOutput struct{ *pulumi.OutputState }
func (ServiceMapOutput) ElementType ¶
func (ServiceMapOutput) ElementType() reflect.Type
func (ServiceMapOutput) MapIndex ¶
func (o ServiceMapOutput) MapIndex(k pulumi.StringInput) ServiceOutput
func (ServiceMapOutput) ToServiceMapOutput ¶
func (o ServiceMapOutput) ToServiceMapOutput() ServiceMapOutput
func (ServiceMapOutput) ToServiceMapOutputWithContext ¶
func (o ServiceMapOutput) ToServiceMapOutputWithContext(ctx context.Context) ServiceMapOutput
type ServiceOutput ¶
type ServiceOutput struct{ *pulumi.OutputState }
func (ServiceOutput) DataLocation ¶ added in v5.5.0
func (o ServiceOutput) DataLocation() pulumi.StringPtrOutput
The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created.
func (ServiceOutput) ElementType ¶
func (ServiceOutput) ElementType() reflect.Type
func (ServiceOutput) Name ¶ added in v5.5.0
func (o ServiceOutput) Name() pulumi.StringOutput
The name of the Communication Service resource. Changing this forces a new Communication Service to be created.
func (ServiceOutput) PrimaryConnectionString ¶ added in v5.5.0
func (o ServiceOutput) PrimaryConnectionString() pulumi.StringOutput
The primary connection string of the Communication Service.
func (ServiceOutput) PrimaryKey ¶ added in v5.5.0
func (o ServiceOutput) PrimaryKey() pulumi.StringOutput
The primary key of the Communication Service.
func (ServiceOutput) ResourceGroupName ¶ added in v5.5.0
func (o ServiceOutput) ResourceGroupName() pulumi.StringOutput
The name of the Resource Group where the Communication Service should exist. Changing this forces a new Communication Service to be created.
func (ServiceOutput) SecondaryConnectionString ¶ added in v5.5.0
func (o ServiceOutput) SecondaryConnectionString() pulumi.StringOutput
The secondary connection string of the Communication Service.
func (ServiceOutput) SecondaryKey ¶ added in v5.5.0
func (o ServiceOutput) SecondaryKey() pulumi.StringOutput
The secondary key of the Communication Service.
func (ServiceOutput) Tags ¶ added in v5.5.0
func (o ServiceOutput) Tags() pulumi.StringMapOutput
A mapping of tags which should be assigned to the Communication Service.
func (ServiceOutput) ToServiceOutput ¶
func (o ServiceOutput) ToServiceOutput() ServiceOutput
func (ServiceOutput) ToServiceOutputWithContext ¶
func (o ServiceOutput) ToServiceOutputWithContext(ctx context.Context) ServiceOutput
type ServiceState ¶
type ServiceState struct { // The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. DataLocation pulumi.StringPtrInput // The name of the Communication Service resource. Changing this forces a new Communication Service to be created. Name pulumi.StringPtrInput // The primary connection string of the Communication Service. PrimaryConnectionString pulumi.StringPtrInput // The primary key of the Communication Service. PrimaryKey pulumi.StringPtrInput // The name of the Resource Group where the Communication Service should exist. Changing this forces a new Communication Service to be created. ResourceGroupName pulumi.StringPtrInput // The secondary connection string of the Communication Service. SecondaryConnectionString pulumi.StringPtrInput // The secondary key of the Communication Service. SecondaryKey pulumi.StringPtrInput // A mapping of tags which should be assigned to the Communication Service. Tags pulumi.StringMapInput }
func (ServiceState) ElementType ¶
func (ServiceState) ElementType() reflect.Type