java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IUploadRef, IEnvironmentAware, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-02T11:03:07.543Z") @Stability(Stable) public class CfnUpload extends CfnResource implements IInspectable, IUploadRef
Represents an app or test scripts upload in AWS Device Farm.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.devicefarm.*;
 CfnUpload cfnUpload = CfnUpload.Builder.create(this, "MyCfnUpload")
         .name("name")
         .projectArn("projectArn")
         .type("type")
         // the properties below are optional
         .contentType("contentType")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnUpload

      protected CfnUpload(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnUpload

      protected CfnUpload(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnUpload

      @Stability(Stable) public CfnUpload(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnUploadProps props)
      Create a new AWS::DeviceFarm::Upload.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • arnForUpload

      @Stability(Stable) @NotNull public static String arnForUpload(@NotNull IUploadRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnUpload

      @Stability(Stable) @NotNull public static Boolean isCfnUpload(@NotNull Object x)
      Checks whether the given object is a CfnUpload.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the upload.
    • getAttrCategory

      @Stability(Stable) @NotNull public String getAttrCategory()
      The upload's category.
    • getAttrCreated

      @Stability(Stable) @NotNull public String getAttrCreated()
      When the upload was created.
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
      The upload's status.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getUploadRef

      @Stability(Stable) @NotNull public UploadReference getUploadRef()
      A reference to a Upload resource.
      Specified by:
      getUploadRef in interface IUploadRef
    • getName

      @Stability(Stable) @NotNull public String getName()
      The upload's file name.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The upload's file name.
    • getProjectArn

      @Stability(Stable) @NotNull public String getProjectArn()
      The ARN of the project for the upload.
    • setProjectArn

      @Stability(Stable) public void setProjectArn(@NotNull String value)
      The ARN of the project for the upload.
    • getType

      @Stability(Stable) @NotNull public String getType()
      The upload's type.
    • setType

      @Stability(Stable) public void setType(@NotNull String value)
      The upload's type.
    • getContentType

      @Stability(Stable) @Nullable public String getContentType()
      The upload's content type (for example, application/octet-stream).
    • setContentType

      @Stability(Stable) public void setContentType(@Nullable String value)
      The upload's content type (for example, application/octet-stream).