Class: Aws::Snowball::Types::JobResource

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-snowball/lib/aws-sdk-snowball/types.rb

Overview

Note:

When making an API call, you may pass JobResource data as a hash:

{
  s3_resources: [
    {
      bucket_arn: "ResourceARN",
      key_range: {
        begin_marker: "String",
        end_marker: "String",
      },
      target_on_device_services: [
        {
          service_name: "NFS_ON_DEVICE_SERVICE", # accepts NFS_ON_DEVICE_SERVICE, S3_ON_DEVICE_SERVICE
          transfer_option: "IMPORT", # accepts IMPORT, EXPORT, LOCAL_USE
        },
      ],
    },
  ],
  lambda_resources: [
    {
      lambda_arn: "ResourceARN",
      event_triggers: [
        {
          event_resource_arn: "ResourceARN",
        },
      ],
    },
  ],
  ec2_ami_resources: [
    {
      ami_id: "AmiId", # required
      snowball_ami_id: "String",
    },
  ],
}

Contains an array of Amazon Web Services resource objects. Each object represents an Amazon S3 bucket, an Lambda function, or an Amazon Machine Image (AMI) based on Amazon EC2 that is associated with a particular job.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#ec2_ami_resourcesArray<Types::Ec2AmiResource>

The Amazon Machine Images (AMIs) associated with this job.

Returns:



1890
1891
1892
1893
1894
1895
1896
# File 'gems/aws-sdk-snowball/lib/aws-sdk-snowball/types.rb', line 1890

class JobResource < Struct.new(
  :s3_resources,
  :lambda_resources,
  :ec2_ami_resources)
  SENSITIVE = []
  include Aws::Structure
end

#lambda_resourcesArray<Types::LambdaResource>

The Python-language Lambda functions for this job.

Returns:



1890
1891
1892
1893
1894
1895
1896
# File 'gems/aws-sdk-snowball/lib/aws-sdk-snowball/types.rb', line 1890

class JobResource < Struct.new(
  :s3_resources,
  :lambda_resources,
  :ec2_ami_resources)
  SENSITIVE = []
  include Aws::Structure
end

#s3_resourcesArray<Types::S3Resource>

An array of S3Resource objects.

Returns:



1890
1891
1892
1893
1894
1895
1896
# File 'gems/aws-sdk-snowball/lib/aws-sdk-snowball/types.rb', line 1890

class JobResource < Struct.new(
  :s3_resources,
  :lambda_resources,
  :ec2_ami_resources)
  SENSITIVE = []
  include Aws::Structure
end