Package com.pulumi.aws.devicefarm
Class DevicePool
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.devicefarm.DevicePool
-
public class DevicePool extends com.pulumi.resources.CustomResourceProvides a resource to manage AWS Device Farm Device Pools. ## Example Usage
## Import ### Identity Schema #### Required - `arn` (String) ARN of the Device Farm device pool. Using `pulumi import`, import DeviceFarm Device Pools using their ARN. For example: ```sh $ 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 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.ArrayList; import java.util.Arrays; 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() .rules(DevicePoolRuleArgs.builder() .attribute("OS_VERSION") .operator("EQUALS") .value("\"AVAILABLE\"") .build()) .name("example") .projectArn(exampleAwsDevicefarmProject.arn()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description DevicePool(java.lang.String name)DevicePool(java.lang.String name, DevicePoolArgs args)DevicePool(java.lang.String name, DevicePoolArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>arn()com.pulumi.core.Output<java.util.Optional<java.lang.String>>description()static DevicePoolget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, DevicePoolState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.Optional<java.lang.Integer>>maxDevices()com.pulumi.core.Output<java.lang.String>name()com.pulumi.core.Output<java.lang.String>projectArn()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.util.List<DevicePoolRule>>rules()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>tags()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tagsAll()com.pulumi.core.Output<java.lang.String>type()
-
-
-
Constructor Detail
-
DevicePool
public DevicePool(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
DevicePool
public DevicePool(java.lang.String name, DevicePoolArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
DevicePool
public DevicePool(java.lang.String name, DevicePoolArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- ARN of this Device Pool
-
description
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
- Returns:
- The device pool's description.
-
maxDevices
public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> maxDevices()
- Returns:
- The number of devices that Device Farm can add to your device pool.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of the Device Pool
-
projectArn
public com.pulumi.core.Output<java.lang.String> projectArn()
- Returns:
- The ARN of the project for the device pool.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
rules
public com.pulumi.core.Output<java.util.List<DevicePoolRule>> rules()
- Returns:
- The device pool's rules. See Rule.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
type
public com.pulumi.core.Output<java.lang.String> type()
-
get
public static DevicePool get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable DevicePoolState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-