Try AWS Native preview for resources not in the classic version.
aws.devicefarm.DevicePool
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides a resource to manage AWS Device Farm Device Pools.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.DeviceFarm.DevicePool("example", new()
{
ProjectArn = aws_devicefarm_project.Example.Arn,
Rules = new[]
{
new Aws.DeviceFarm.Inputs.DevicePoolRuleArgs
{
Attribute = "OS_VERSION",
Operator = "EQUALS",
Value = "\"AVAILABLE\"",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/devicefarm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devicefarm.NewDevicePool(ctx, "example", &devicefarm.DevicePoolArgs{
ProjectArn: pulumi.Any(aws_devicefarm_project.Example.Arn),
Rules: devicefarm.DevicePoolRuleArray{
&devicefarm.DevicePoolRuleArgs{
Attribute: pulumi.String("OS_VERSION"),
Operator: pulumi.String("EQUALS"),
Value: pulumi.String("\"AVAILABLE\""),
},
},
})
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.aws.devicefarm.DevicePool;
import com.pulumi.aws.devicefarm.DevicePoolArgs;
import com.pulumi.aws.devicefarm.inputs.DevicePoolRuleArgs;
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 example = new DevicePool("example", DevicePoolArgs.builder()
.projectArn(aws_devicefarm_project.example().arn())
.rules(DevicePoolRuleArgs.builder()
.attribute("OS_VERSION")
.operator("EQUALS")
.value("\"AVAILABLE\"")
.build())
.build());
}
}
import pulumi
import pulumi_aws as aws
example = aws.devicefarm.DevicePool("example",
project_arn=aws_devicefarm_project["example"]["arn"],
rules=[aws.devicefarm.DevicePoolRuleArgs(
attribute="OS_VERSION",
operator="EQUALS",
value="\"AVAILABLE\"",
)])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.devicefarm.DevicePool("example", {
projectArn: aws_devicefarm_project.example.arn,
rules: [{
attribute: "OS_VERSION",
operator: "EQUALS",
value: "\"AVAILABLE\"",
}],
});
resources:
example:
type: aws:devicefarm:DevicePool
properties:
projectArn: ${aws_devicefarm_project.example.arn}
rules:
- attribute: OS_VERSION
operator: EQUALS
value: '"AVAILABLE"'
Create DevicePool Resource
new DevicePool(name: string, args: DevicePoolArgs, opts?: CustomResourceOptions);
@overload
def DevicePool(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
max_devices: Optional[int] = None,
name: Optional[str] = None,
project_arn: Optional[str] = None,
rules: Optional[Sequence[DevicePoolRuleArgs]] = None,
tags: Optional[Mapping[str, str]] = None)
@overload
def DevicePool(resource_name: str,
args: DevicePoolArgs,
opts: Optional[ResourceOptions] = None)
func NewDevicePool(ctx *Context, name string, args DevicePoolArgs, opts ...ResourceOption) (*DevicePool, error)
public DevicePool(string name, DevicePoolArgs args, CustomResourceOptions? opts = null)
public DevicePool(String name, DevicePoolArgs args)
public DevicePool(String name, DevicePoolArgs args, CustomResourceOptions options)
type: aws:devicefarm:DevicePool
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DevicePoolArgs
- 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 DevicePoolArgs
- 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 DevicePoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DevicePoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DevicePoolArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DevicePool 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 DevicePool resource accepts the following input properties:
- Project
Arn string The ARN of the project for the device pool.
- Rules
List<Device
Pool Rule> The device pool's rules. See Rule.
- Description string
The device pool's description.
- Max
Devices int The number of devices that Device Farm can add to your device pool.
- Name string
The name of the Device Pool
- Dictionary<string, string>
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Project
Arn string The ARN of the project for the device pool.
- Rules
[]Device
Pool Rule Args The device pool's rules. See Rule.
- Description string
The device pool's description.
- Max
Devices int The number of devices that Device Farm can add to your device pool.
- Name string
The name of the Device Pool
- map[string]string
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- project
Arn String The ARN of the project for the device pool.
- rules
List<Device
Pool Rule> The device pool's rules. See Rule.
- description String
The device pool's description.
- max
Devices Integer The number of devices that Device Farm can add to your device pool.
- name String
The name of the Device Pool
- Map<String,String>
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- project
Arn string The ARN of the project for the device pool.
- rules
Device
Pool Rule[] The device pool's rules. See Rule.
- description string
The device pool's description.
- max
Devices number The number of devices that Device Farm can add to your device pool.
- name string
The name of the Device Pool
- {[key: string]: string}
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- project_
arn str The ARN of the project for the device pool.
- rules
Sequence[Device
Pool Rule Args] The device pool's rules. See Rule.
- description str
The device pool's description.
- max_
devices int The number of devices that Device Farm can add to your device pool.
- name str
The name of the Device Pool
- Mapping[str, str]
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- project
Arn String The ARN of the project for the device pool.
- rules List<Property Map>
The device pool's rules. See Rule.
- description String
The device pool's description.
- max
Devices Number The number of devices that Device Farm can add to your device pool.
- name String
The name of the Device Pool
- Map<String>
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the DevicePool resource produces the following output properties:
- Arn string
The Amazon Resource Name of this Device Pool
- Id string
The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- Type string
Look up Existing DevicePool Resource
Get an existing DevicePool resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DevicePoolState, opts?: CustomResourceOptions): DevicePool
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
description: Optional[str] = None,
max_devices: Optional[int] = None,
name: Optional[str] = None,
project_arn: Optional[str] = None,
rules: Optional[Sequence[DevicePoolRuleArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
type: Optional[str] = None) -> DevicePool
func GetDevicePool(ctx *Context, name string, id IDInput, state *DevicePoolState, opts ...ResourceOption) (*DevicePool, error)
public static DevicePool Get(string name, Input<string> id, DevicePoolState? state, CustomResourceOptions? opts = null)
public static DevicePool get(String name, Output<String> id, DevicePoolState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
The Amazon Resource Name of this Device Pool
- Description string
The device pool's description.
- Max
Devices int The number of devices that Device Farm can add to your device pool.
- Name string
The name of the Device Pool
- Project
Arn string The ARN of the project for the device pool.
- Rules
List<Device
Pool Rule> The device pool's rules. See Rule.
- Dictionary<string, string>
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- Type string
- Arn string
The Amazon Resource Name of this Device Pool
- Description string
The device pool's description.
- Max
Devices int The number of devices that Device Farm can add to your device pool.
- Name string
The name of the Device Pool
- Project
Arn string The ARN of the project for the device pool.
- Rules
[]Device
Pool Rule Args The device pool's rules. See Rule.
- map[string]string
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- Type string
- arn String
The Amazon Resource Name of this Device Pool
- description String
The device pool's description.
- max
Devices Integer The number of devices that Device Farm can add to your device pool.
- name String
The name of the Device Pool
- project
Arn String The ARN of the project for the device pool.
- rules
List<Device
Pool Rule> The device pool's rules. See Rule.
- Map<String,String>
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- type String
- arn string
The Amazon Resource Name of this Device Pool
- description string
The device pool's description.
- max
Devices number The number of devices that Device Farm can add to your device pool.
- name string
The name of the Device Pool
- project
Arn string The ARN of the project for the device pool.
- rules
Device
Pool Rule[] The device pool's rules. See Rule.
- {[key: string]: string}
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- type string
- arn str
The Amazon Resource Name of this Device Pool
- description str
The device pool's description.
- max_
devices int The number of devices that Device Farm can add to your device pool.
- name str
The name of the Device Pool
- project_
arn str The ARN of the project for the device pool.
- rules
Sequence[Device
Pool Rule Args] The device pool's rules. See Rule.
- Mapping[str, str]
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- type str
- arn String
The Amazon Resource Name of this Device Pool
- description String
The device pool's description.
- max
Devices Number The number of devices that Device Farm can add to your device pool.
- name String
The name of the Device Pool
- project
Arn String The ARN of the project for the device pool.
- rules List<Property Map>
The device pool's rules. See Rule.
- Map<String>
A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.- type String
Supporting Types
DevicePoolRule, DevicePoolRuleArgs
- Attribute string
The rule's stringified attribute. Valid values are:
APPIUM_VERSION
,ARN
,AVAILABILITY
,FLEET_TYPE
,FORM_FACTOR
,INSTANCE_ARN
,INSTANCE_LABELS
,MANUFACTURER
,MODEL
,OS_VERSION
,PLATFORM
,REMOTE_ACCESS_ENABLED
,REMOTE_DEBUG_ENABLED
.- Operator string
Specifies how Device Farm compares the rule's attribute to the value. For the operators that are supported by each attribute. Valid values are:
EQUALS
,NOT_IN
,IN
,GREATER_THAN
,GREATER_THAN_OR_EQUALS
,LESS_THAN
,LESS_THAN_OR_EQUALS
,CONTAINS
.- Value string
The rule's value.
- Attribute string
The rule's stringified attribute. Valid values are:
APPIUM_VERSION
,ARN
,AVAILABILITY
,FLEET_TYPE
,FORM_FACTOR
,INSTANCE_ARN
,INSTANCE_LABELS
,MANUFACTURER
,MODEL
,OS_VERSION
,PLATFORM
,REMOTE_ACCESS_ENABLED
,REMOTE_DEBUG_ENABLED
.- Operator string
Specifies how Device Farm compares the rule's attribute to the value. For the operators that are supported by each attribute. Valid values are:
EQUALS
,NOT_IN
,IN
,GREATER_THAN
,GREATER_THAN_OR_EQUALS
,LESS_THAN
,LESS_THAN_OR_EQUALS
,CONTAINS
.- Value string
The rule's value.
- attribute String
The rule's stringified attribute. Valid values are:
APPIUM_VERSION
,ARN
,AVAILABILITY
,FLEET_TYPE
,FORM_FACTOR
,INSTANCE_ARN
,INSTANCE_LABELS
,MANUFACTURER
,MODEL
,OS_VERSION
,PLATFORM
,REMOTE_ACCESS_ENABLED
,REMOTE_DEBUG_ENABLED
.- operator String
Specifies how Device Farm compares the rule's attribute to the value. For the operators that are supported by each attribute. Valid values are:
EQUALS
,NOT_IN
,IN
,GREATER_THAN
,GREATER_THAN_OR_EQUALS
,LESS_THAN
,LESS_THAN_OR_EQUALS
,CONTAINS
.- value String
The rule's value.
- attribute string
The rule's stringified attribute. Valid values are:
APPIUM_VERSION
,ARN
,AVAILABILITY
,FLEET_TYPE
,FORM_FACTOR
,INSTANCE_ARN
,INSTANCE_LABELS
,MANUFACTURER
,MODEL
,OS_VERSION
,PLATFORM
,REMOTE_ACCESS_ENABLED
,REMOTE_DEBUG_ENABLED
.- operator string
Specifies how Device Farm compares the rule's attribute to the value. For the operators that are supported by each attribute. Valid values are:
EQUALS
,NOT_IN
,IN
,GREATER_THAN
,GREATER_THAN_OR_EQUALS
,LESS_THAN
,LESS_THAN_OR_EQUALS
,CONTAINS
.- value string
The rule's value.
- attribute str
The rule's stringified attribute. Valid values are:
APPIUM_VERSION
,ARN
,AVAILABILITY
,FLEET_TYPE
,FORM_FACTOR
,INSTANCE_ARN
,INSTANCE_LABELS
,MANUFACTURER
,MODEL
,OS_VERSION
,PLATFORM
,REMOTE_ACCESS_ENABLED
,REMOTE_DEBUG_ENABLED
.- operator str
Specifies how Device Farm compares the rule's attribute to the value. For the operators that are supported by each attribute. Valid values are:
EQUALS
,NOT_IN
,IN
,GREATER_THAN
,GREATER_THAN_OR_EQUALS
,LESS_THAN
,LESS_THAN_OR_EQUALS
,CONTAINS
.- value str
The rule's value.
- attribute String
The rule's stringified attribute. Valid values are:
APPIUM_VERSION
,ARN
,AVAILABILITY
,FLEET_TYPE
,FORM_FACTOR
,INSTANCE_ARN
,INSTANCE_LABELS
,MANUFACTURER
,MODEL
,OS_VERSION
,PLATFORM
,REMOTE_ACCESS_ENABLED
,REMOTE_DEBUG_ENABLED
.- operator String
Specifies how Device Farm compares the rule's attribute to the value. For the operators that are supported by each attribute. Valid values are:
EQUALS
,NOT_IN
,IN
,GREATER_THAN
,GREATER_THAN_OR_EQUALS
,LESS_THAN
,LESS_THAN_OR_EQUALS
,CONTAINS
.- value String
The rule's value.
Import
Using pulumi import
, import DeviceFarm Device Pools using their ARN. For example:
$ pulumi import aws:devicefarm/devicePool:DevicePool example arn:aws:devicefarm:us-west-2:123456789012:devicepool:4fa784c7-ccb4-4dbf-ba4f-02198320daa1/4fa784c7-ccb4-4dbf-ba4f-02198320daa1
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.