Package com.pulumi.aws.devicefarm
Class Upload
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.devicefarm.Upload
-
public class Upload extends com.pulumi.resources.CustomResource
Provides a resource to manage AWS Device Farm Uploads. > **NOTE:** AWS currently has limited regional support for Device Farm (e.g., `us-west-2`). See [AWS Device Farm endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/devicefarm.html) for information on supported regions. ## Example Usage <!--Start PulumiCodeChooser -->package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.devicefarm.Project; import com.pulumi.aws.devicefarm.ProjectArgs; import com.pulumi.aws.devicefarm.Upload; import com.pulumi.aws.devicefarm.UploadArgs; 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 Project("example", ProjectArgs.builder() .name("example") .build()); var exampleUpload = new Upload("exampleUpload", UploadArgs.builder() .name("example") .projectArn(example.arn()) .type("APPIUM_JAVA_TESTNG_TEST_SPEC") .build()); } }
-
-
Constructor Summary
Constructors Constructor Description Upload(java.lang.String name)
Upload(java.lang.String name, UploadArgs args)
Upload(java.lang.String name, UploadArgs 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.lang.String>
category()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
contentType()
static Upload
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, UploadState 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.lang.String>
metadata()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.lang.String>
projectArn()
com.pulumi.core.Output<java.lang.String>
type()
com.pulumi.core.Output<java.lang.String>
url()
-
-
-
Constructor Detail
-
Upload
public Upload(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
Upload
public Upload(java.lang.String name, UploadArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
Upload
public Upload(java.lang.String name, UploadArgs 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:
- The Amazon Resource Name of this upload.
-
category
public com.pulumi.core.Output<java.lang.String> category()
- Returns:
- The upload's category.
-
contentType
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> contentType()
- Returns:
- The upload's content type (for example, application/octet-stream).
-
metadata
public com.pulumi.core.Output<java.lang.String> metadata()
- Returns:
- The upload's metadata. For example, for Android, this contains information that is parsed from the manifest and is displayed in the AWS Device Farm console after the associated app is uploaded.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The upload's file name. The name should not contain any forward slashes (/). If you are uploading an iOS app, the file name must end with the .ipa extension. If you are uploading an Android app, the file name must end with the .apk extension. For all others, the file name must end with the .zip file extension.
-
projectArn
public com.pulumi.core.Output<java.lang.String> projectArn()
- Returns:
- The ARN of the project for the upload.
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- The upload's upload type. See [AWS Docs](https://docs.aws.amazon.com/devicefarm/latest/APIReference/API_CreateUpload.html#API_CreateUpload_RequestSyntax) for valid list of values.
-
url
public com.pulumi.core.Output<java.lang.String> url()
- Returns:
- The presigned Amazon S3 URL that was used to store a file using a PUT request.
-
get
public static Upload get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable UploadState 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.
-
-