azure-native.azureplaywrightservice.Account
Explore with Pulumi AI
An account resource Azure REST API version: 2023-10-01-preview.
Other available API versions: 2024-02-01-preview, 2024-08-01-preview.
Example Usage
Accounts_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var account = new AzureNative.AzurePlaywrightService.Account("account", new()
{
Location = "westus",
Name = "myPlaywrightAccount",
RegionalAffinity = AzureNative.AzurePlaywrightService.EnablementStatus.Enabled,
ResourceGroupName = "dummyrg",
Tags =
{
{ "Team", "Dev Exp" },
},
});
});
package main
import (
azureplaywrightservice "github.com/pulumi/pulumi-azure-native-sdk/azureplaywrightservice/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azureplaywrightservice.NewAccount(ctx, "account", &azureplaywrightservice.AccountArgs{
Location: pulumi.String("westus"),
Name: pulumi.String("myPlaywrightAccount"),
RegionalAffinity: pulumi.String(azureplaywrightservice.EnablementStatusEnabled),
ResourceGroupName: pulumi.String("dummyrg"),
Tags: pulumi.StringMap{
"Team": pulumi.String("Dev Exp"),
},
})
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.azureplaywrightservice.Account;
import com.pulumi.azurenative.azureplaywrightservice.AccountArgs;
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 account = new Account("account", AccountArgs.builder()
.location("westus")
.name("myPlaywrightAccount")
.regionalAffinity("Enabled")
.resourceGroupName("dummyrg")
.tags(Map.of("Team", "Dev Exp"))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
account = azure_native.azureplaywrightservice.Account("account",
location="westus",
name="myPlaywrightAccount",
regional_affinity=azure_native.azureplaywrightservice.EnablementStatus.ENABLED,
resource_group_name="dummyrg",
tags={
"Team": "Dev Exp",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const account = new azure_native.azureplaywrightservice.Account("account", {
location: "westus",
name: "myPlaywrightAccount",
regionalAffinity: azure_native.azureplaywrightservice.EnablementStatus.Enabled,
resourceGroupName: "dummyrg",
tags: {
Team: "Dev Exp",
},
});
resources:
account:
type: azure-native:azureplaywrightservice:Account
properties:
location: westus
name: myPlaywrightAccount
regionalAffinity: Enabled
resourceGroupName: dummyrg
tags:
Team: Dev Exp
Create Account Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
args: AccountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Account(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
regional_affinity: Optional[Union[str, EnablementStatus]] = None,
reporting: Optional[Union[str, EnablementStatus]] = None,
scalable_execution: Optional[Union[str, EnablementStatus]] = None,
tags: Optional[Mapping[str, str]] = None)
func NewAccount(ctx *Context, name string, args AccountArgs, opts ...ResourceOption) (*Account, error)
public Account(string name, AccountArgs args, CustomResourceOptions? opts = null)
public Account(String name, AccountArgs args)
public Account(String name, AccountArgs args, CustomResourceOptions options)
type: azure-native:azureplaywrightservice:Account
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AccountArgs
- 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 AccountArgs
- 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 AccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeAccountResource = new AzureNative.AzurePlaywrightService.Account("azure-nativeAccountResource", new()
{
ResourceGroupName = "string",
Location = "string",
Name = "string",
RegionalAffinity = "string",
Reporting = "string",
ScalableExecution = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := azureplaywrightservice.NewAccount(ctx, "azure-nativeAccountResource", &azureplaywrightservice.AccountArgs{
ResourceGroupName: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
RegionalAffinity: pulumi.String("string"),
Reporting: pulumi.String("string"),
ScalableExecution: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var azure_nativeAccountResource = new Account("azure-nativeAccountResource", AccountArgs.builder()
.resourceGroupName("string")
.location("string")
.name("string")
.regionalAffinity("string")
.reporting("string")
.scalableExecution("string")
.tags(Map.of("string", "string"))
.build());
azure_native_account_resource = azure_native.azureplaywrightservice.Account("azure-nativeAccountResource",
resource_group_name="string",
location="string",
name="string",
regional_affinity="string",
reporting="string",
scalable_execution="string",
tags={
"string": "string",
})
const azure_nativeAccountResource = new azure_native.azureplaywrightservice.Account("azure-nativeAccountResource", {
resourceGroupName: "string",
location: "string",
name: "string",
regionalAffinity: "string",
reporting: "string",
scalableExecution: "string",
tags: {
string: "string",
},
});
type: azure-native:azureplaywrightservice:Account
properties:
location: string
name: string
regionalAffinity: string
reporting: string
resourceGroupName: string
scalableExecution: string
tags:
string: string
Account Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Account resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- Name string
- Name of account
- Regional
Affinity string | Pulumi.Azure Native. Azure Playwright Service. Enablement Status - This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
- Reporting
string | Pulumi.
Azure Native. Azure Playwright Service. Enablement Status - When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
- Scalable
Execution string | Pulumi.Azure Native. Azure Playwright Service. Enablement Status - When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- Name string
- Name of account
- Regional
Affinity string | EnablementStatus - This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
- Reporting
string | Enablement
Status - When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
- Scalable
Execution string | EnablementStatus - When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- name String
- Name of account
- regional
Affinity String | EnablementStatus - This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
- reporting
String | Enablement
Status - When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
- scalable
Execution String | EnablementStatus - When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- location string
- The geo-location where the resource lives
- name string
- Name of account
- regional
Affinity string | EnablementStatus - This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
- reporting
string | Enablement
Status - When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
- scalable
Execution string | EnablementStatus - When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- location str
- The geo-location where the resource lives
- name str
- Name of account
- regional_
affinity str | EnablementStatus - This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
- reporting
str | Enablement
Status - When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
- scalable_
execution str | EnablementStatus - When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- name String
- Name of account
- regional
Affinity String | "Enabled" | "Disabled" - This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.
- reporting String | "Enabled" | "Disabled"
- When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.
- scalable
Execution String | "Enabled" | "Disabled" - When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:
- Dashboard
Uri string - The Playwright testing dashboard URI for the account resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - The status of the last operation.
- System
Data Pulumi.Azure Native. Azure Playwright Service. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Dashboard
Uri string - The Playwright testing dashboard URI for the account resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - The status of the last operation.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- dashboard
Uri String - The Playwright testing dashboard URI for the account resource.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - The status of the last operation.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- dashboard
Uri string - The Playwright testing dashboard URI for the account resource.
- id string
- The provider-assigned unique ID for this managed resource.
- provisioning
State string - The status of the last operation.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- dashboard_
uri str - The Playwright testing dashboard URI for the account resource.
- id str
- The provider-assigned unique ID for this managed resource.
- provisioning_
state str - The status of the last operation.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- dashboard
Uri String - The Playwright testing dashboard URI for the account resource.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - The status of the last operation.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
EnablementStatus, EnablementStatusArgs
- Enabled
- EnabledThe feature is Enabled.
- Disabled
- DisabledThe feature is Disabled.
- Enablement
Status Enabled - EnabledThe feature is Enabled.
- Enablement
Status Disabled - DisabledThe feature is Disabled.
- Enabled
- EnabledThe feature is Enabled.
- Disabled
- DisabledThe feature is Disabled.
- Enabled
- EnabledThe feature is Enabled.
- Disabled
- DisabledThe feature is Disabled.
- ENABLED
- EnabledThe feature is Enabled.
- DISABLED
- DisabledThe feature is Disabled.
- "Enabled"
- EnabledThe feature is Enabled.
- "Disabled"
- DisabledThe feature is Disabled.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:azureplaywrightservice:Account myPlaywrightAccount /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{name}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0