1. Packages
  2. AWS
  3. API Docs
  4. devicefarm
  5. TestGridProject
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

aws.devicefarm.TestGridProject

Explore with Pulumi AI

aws logo
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

    Provides a resource to manage AWS Device Farm Test Grid Projects.

    NOTE: AWS currently has limited regional support for Device Farm (e.g., us-west-2). See AWS Device Farm endpoints and quotas for information on supported regions.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.devicefarm.TestGridProject("example", {
        name: "example",
        vpcConfig: {
            vpcId: exampleAwsVpc.id,
            subnetIds: exampleAwsSubnet.map(__item => __item.id),
            securityGroupIds: exampleAwsSecurityGroup.map(__item => __item.id),
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.devicefarm.TestGridProject("example",
        name="example",
        vpc_config={
            "vpc_id": example_aws_vpc["id"],
            "subnet_ids": [__item["id"] for __item in example_aws_subnet],
            "security_group_ids": [__item["id"] for __item in example_aws_security_group],
        })
    
    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.NewTestGridProject(ctx, "example", &devicefarm.TestGridProjectArgs{
    Name: pulumi.String("example"),
    VpcConfig: &devicefarm.TestGridProjectVpcConfigArgs{
    VpcId: pulumi.Any(exampleAwsVpc.Id),
    SubnetIds: []pulumi.String(%!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:4,24-46)),
    SecurityGroupIds: []pulumi.String(%!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:5,24-53)),
    },
    })
    if err != nil {
    return err
    }
    return nil
    })
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.DeviceFarm.TestGridProject("example", new()
        {
            Name = "example",
            VpcConfig = new Aws.DeviceFarm.Inputs.TestGridProjectVpcConfigArgs
            {
                VpcId = exampleAwsVpc.Id,
                SubnetIds = exampleAwsSubnet.Select(__item => __item.Id).ToList(),
                SecurityGroupIds = exampleAwsSecurityGroup.Select(__item => __item.Id).ToList(),
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.devicefarm.TestGridProject;
    import com.pulumi.aws.devicefarm.TestGridProjectArgs;
    import com.pulumi.aws.devicefarm.inputs.TestGridProjectVpcConfigArgs;
    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 TestGridProject("example", TestGridProjectArgs.builder()
                .name("example")
                .vpcConfig(TestGridProjectVpcConfigArgs.builder()
                    .vpcId(exampleAwsVpc.id())
                    .subnetIds(exampleAwsSubnet.stream().map(element -> element.id()).collect(toList()))
                    .securityGroupIds(exampleAwsSecurityGroup.stream().map(element -> element.id()).collect(toList()))
                    .build())
                .build());
    
        }
    }
    
    Coming soon!
    

    Create TestGridProject Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TestGridProject(name: string, args?: TestGridProjectArgs, opts?: CustomResourceOptions);
    @overload
    def TestGridProject(resource_name: str,
                        args: Optional[TestGridProjectArgs] = None,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def TestGridProject(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        description: Optional[str] = None,
                        name: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        vpc_config: Optional[TestGridProjectVpcConfigArgs] = None)
    func NewTestGridProject(ctx *Context, name string, args *TestGridProjectArgs, opts ...ResourceOption) (*TestGridProject, error)
    public TestGridProject(string name, TestGridProjectArgs? args = null, CustomResourceOptions? opts = null)
    public TestGridProject(String name, TestGridProjectArgs args)
    public TestGridProject(String name, TestGridProjectArgs args, CustomResourceOptions options)
    
    type: aws:devicefarm:TestGridProject
    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 TestGridProjectArgs
    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 TestGridProjectArgs
    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 TestGridProjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TestGridProjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TestGridProjectArgs
    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 testGridProjectResource = new Aws.DeviceFarm.TestGridProject("testGridProjectResource", new()
    {
        Description = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
        VpcConfig = new Aws.DeviceFarm.Inputs.TestGridProjectVpcConfigArgs
        {
            SecurityGroupIds = new[]
            {
                "string",
            },
            SubnetIds = new[]
            {
                "string",
            },
            VpcId = "string",
        },
    });
    
    example, err := devicefarm.NewTestGridProject(ctx, "testGridProjectResource", &devicefarm.TestGridProjectArgs{
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	VpcConfig: &devicefarm.TestGridProjectVpcConfigArgs{
    		SecurityGroupIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		SubnetIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		VpcId: pulumi.String("string"),
    	},
    })
    
    var testGridProjectResource = new TestGridProject("testGridProjectResource", TestGridProjectArgs.builder()
        .description("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .vpcConfig(TestGridProjectVpcConfigArgs.builder()
            .securityGroupIds("string")
            .subnetIds("string")
            .vpcId("string")
            .build())
        .build());
    
    test_grid_project_resource = aws.devicefarm.TestGridProject("testGridProjectResource",
        description="string",
        name="string",
        tags={
            "string": "string",
        },
        vpc_config={
            "securityGroupIds": ["string"],
            "subnetIds": ["string"],
            "vpcId": "string",
        })
    
    const testGridProjectResource = new aws.devicefarm.TestGridProject("testGridProjectResource", {
        description: "string",
        name: "string",
        tags: {
            string: "string",
        },
        vpcConfig: {
            securityGroupIds: ["string"],
            subnetIds: ["string"],
            vpcId: "string",
        },
    });
    
    type: aws:devicefarm:TestGridProject
    properties:
        description: string
        name: string
        tags:
            string: string
        vpcConfig:
            securityGroupIds:
                - string
            subnetIds:
                - string
            vpcId: string
    

    TestGridProject 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 TestGridProject resource accepts the following input properties:

    Description string
    Human-readable description of the project.
    Name string
    The name of the Selenium testing project.
    Tags 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.
    VpcConfig TestGridProjectVpcConfig
    The VPC security groups and subnets that are attached to a project. See VPC Config below.
    Description string
    Human-readable description of the project.
    Name string
    The name of the Selenium testing project.
    Tags 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.
    VpcConfig TestGridProjectVpcConfigArgs
    The VPC security groups and subnets that are attached to a project. See VPC Config below.
    description String
    Human-readable description of the project.
    name String
    The name of the Selenium testing project.
    tags 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.
    vpcConfig TestGridProjectVpcConfig
    The VPC security groups and subnets that are attached to a project. See VPC Config below.
    description string
    Human-readable description of the project.
    name string
    The name of the Selenium testing project.
    tags {[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.
    vpcConfig TestGridProjectVpcConfig
    The VPC security groups and subnets that are attached to a project. See VPC Config below.
    description str
    Human-readable description of the project.
    name str
    The name of the Selenium testing project.
    tags 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.
    vpc_config TestGridProjectVpcConfigArgs
    The VPC security groups and subnets that are attached to a project. See VPC Config below.
    description String
    Human-readable description of the project.
    name String
    The name of the Selenium testing project.
    tags 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.
    vpcConfig Property Map
    The VPC security groups and subnets that are attached to a project. See VPC Config below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TestGridProject resource produces the following output properties:

    Arn string
    The Amazon Resource Name of this Test Grid Project.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    The Amazon Resource Name of this Test Grid Project.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The Amazon Resource Name of this Test Grid Project.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    The Amazon Resource Name of this Test Grid Project.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    The Amazon Resource Name of this Test Grid Project.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The Amazon Resource Name of this Test Grid Project.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up Existing TestGridProject Resource

    Get an existing TestGridProject 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?: TestGridProjectState, opts?: CustomResourceOptions): TestGridProject
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            vpc_config: Optional[TestGridProjectVpcConfigArgs] = None) -> TestGridProject
    func GetTestGridProject(ctx *Context, name string, id IDInput, state *TestGridProjectState, opts ...ResourceOption) (*TestGridProject, error)
    public static TestGridProject Get(string name, Input<string> id, TestGridProjectState? state, CustomResourceOptions? opts = null)
    public static TestGridProject get(String name, Output<String> id, TestGridProjectState 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.
    The following state arguments are supported:
    Arn string
    The Amazon Resource Name of this Test Grid Project.
    Description string
    Human-readable description of the project.
    Name string
    The name of the Selenium testing project.
    Tags 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.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    VpcConfig TestGridProjectVpcConfig
    The VPC security groups and subnets that are attached to a project. See VPC Config below.
    Arn string
    The Amazon Resource Name of this Test Grid Project.
    Description string
    Human-readable description of the project.
    Name string
    The name of the Selenium testing project.
    Tags 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.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    VpcConfig TestGridProjectVpcConfigArgs
    The VPC security groups and subnets that are attached to a project. See VPC Config below.
    arn String
    The Amazon Resource Name of this Test Grid Project.
    description String
    Human-readable description of the project.
    name String
    The name of the Selenium testing project.
    tags 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.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    vpcConfig TestGridProjectVpcConfig
    The VPC security groups and subnets that are attached to a project. See VPC Config below.
    arn string
    The Amazon Resource Name of this Test Grid Project.
    description string
    Human-readable description of the project.
    name string
    The name of the Selenium testing project.
    tags {[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.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    vpcConfig TestGridProjectVpcConfig
    The VPC security groups and subnets that are attached to a project. See VPC Config below.
    arn str
    The Amazon Resource Name of this Test Grid Project.
    description str
    Human-readable description of the project.
    name str
    The name of the Selenium testing project.
    tags 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.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    vpc_config TestGridProjectVpcConfigArgs
    The VPC security groups and subnets that are attached to a project. See VPC Config below.
    arn String
    The Amazon Resource Name of this Test Grid Project.
    description String
    Human-readable description of the project.
    name String
    The name of the Selenium testing project.
    tags 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.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    vpcConfig Property Map
    The VPC security groups and subnets that are attached to a project. See VPC Config below.

    Supporting Types

    TestGridProjectVpcConfig, TestGridProjectVpcConfigArgs

    SecurityGroupIds List<string>
    A list of VPC security group IDs in your Amazon VPC.
    SubnetIds List<string>
    A list of VPC subnet IDs in your Amazon VPC.
    VpcId string
    The ID of the Amazon VPC.
    SecurityGroupIds []string
    A list of VPC security group IDs in your Amazon VPC.
    SubnetIds []string
    A list of VPC subnet IDs in your Amazon VPC.
    VpcId string
    The ID of the Amazon VPC.
    securityGroupIds List<String>
    A list of VPC security group IDs in your Amazon VPC.
    subnetIds List<String>
    A list of VPC subnet IDs in your Amazon VPC.
    vpcId String
    The ID of the Amazon VPC.
    securityGroupIds string[]
    A list of VPC security group IDs in your Amazon VPC.
    subnetIds string[]
    A list of VPC subnet IDs in your Amazon VPC.
    vpcId string
    The ID of the Amazon VPC.
    security_group_ids Sequence[str]
    A list of VPC security group IDs in your Amazon VPC.
    subnet_ids Sequence[str]
    A list of VPC subnet IDs in your Amazon VPC.
    vpc_id str
    The ID of the Amazon VPC.
    securityGroupIds List<String>
    A list of VPC security group IDs in your Amazon VPC.
    subnetIds List<String>
    A list of VPC subnet IDs in your Amazon VPC.
    vpcId String
    The ID of the Amazon VPC.

    Import

    Using pulumi import, import DeviceFarm Test Grid Projects using their ARN. For example:

    $ pulumi import aws:devicefarm/testGridProject:TestGridProject example arn:aws:devicefarm:us-west-2:123456789012:testgrid-project:4fa784c7-ccb4-4dbf-ba4f-02198320daa1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi