Paws::StorageGateway::AttachVolume - Arguments for method AttachVolume on Paws::StorageGateway
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.
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
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.
The Amazon Resource Name (ARN) of the gateway that you want to attach the volume to.
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.
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.
TargetName
arn:aws:storagegateway:us-east-2:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume
If you don't specify a value, Storage Gateway uses the value that was previously used for this volume as the new target name.
The Amazon Resource Name (ARN) of the volume to attach to the specified gateway.
This class forms part of Paws, documenting arguments for method AttachVolume in Paws::StorageGateway
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
To install Paws::SDK::Config, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paws::SDK::Config
CPAN shell
perl -MCPAN -e shell install Paws::SDK::Config
For more information on module installation, please visit the detailed CPAN module installation guide.