The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Paws::StorageGateway::AttachVolume - Arguments for method AttachVolume on Paws::StorageGateway

DESCRIPTION

This class represents the parameters used for calling the method AttachVolume on the AWS Storage Gateway service. Use the attributes of this class as arguments to method AttachVolume.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AttachVolume.

SYNOPSIS

    my $storagegateway = Paws->service('StorageGateway');
    my $AttachVolumeOutput = $storagegateway->AttachVolume(
      GatewayARN         => 'MyGatewayARN',
      NetworkInterfaceId => 'MyNetworkInterfaceId',
      VolumeARN          => 'MyVolumeARN',
      DiskId             => 'MyDiskId',               # OPTIONAL
      TargetName         => 'MyTargetName',           # OPTIONAL
    );

    # Results:
    my $TargetARN = $AttachVolumeOutput->TargetARN;
    my $VolumeARN = $AttachVolumeOutput->VolumeARN;

    # Returns a L<Paws::StorageGateway::AttachVolumeOutput> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/storagegateway/AttachVolume

ATTRIBUTES

DiskId => Str

The unique device ID or other distinguishing data that identifies the local disk used to create the volume. This value is only required when you are attaching a stored volume.

REQUIRED GatewayARN => Str

The Amazon Resource Name (ARN) of the gateway that you want to attach the volume to.

REQUIRED NetworkInterfaceId => Str

The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addresses are accepted. Use DescribeGatewayInformation to get a list of the network interfaces available on a gateway.

Valid Values: A valid IP address.

TargetName => Str

The name of the iSCSI target used by an initiator to connect to a volume and used as a suffix for the target ARN. For example, specifying TargetName as myvolume results in the target ARN of arn:aws:storagegateway:us-east-2:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume. The target name must be unique across all volumes on a gateway.

If you don't specify a value, Storage Gateway uses the value that was previously used for this volume as the new target name.

REQUIRED VolumeARN => Str

The Amazon Resource Name (ARN) of the volume to attach to the specified gateway.

SEE ALSO

This class forms part of Paws, documenting arguments for method AttachVolume in Paws::StorageGateway

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues