« blib/lib/Paws/DataExchange/UntagResource.pm
↑ Summary
blib/lib/Paws/DataExchange/UpdateAssetResponse.pm »
| 1 | |||
| 2 | package Paws::DataExchange::UpdateAsset; | ||
| 3 | use Moose; | ||
| 4 | has AssetId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'AssetId', required => 1); | ||
| 5 | has DataSetId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'DataSetId', required => 1); | ||
| 6 | has Name => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | has RevisionId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'RevisionId', required => 1); | ||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | |||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateAsset'); | ||
| 12 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}'); | ||
| 13 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PATCH'); | ||
| 14 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::DataExchange::UpdateAssetResponse'); | ||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::DataExchange::UpdateAsset - Arguments for method UpdateAsset on L<Paws::DataExchange> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method UpdateAsset on the | ||
| 26 | L<AWS Data Exchange|Paws::DataExchange> service. Use the attributes of this class | ||
| 27 | as arguments to method UpdateAsset. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateAsset. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $dataexchange = Paws->service('DataExchange'); | ||
| 34 | my $UpdateAssetResponse = $dataexchange->UpdateAsset( | ||
| 35 | AssetId => 'My__string', | ||
| 36 | DataSetId => 'My__string', | ||
| 37 | Name => 'MyAssetName', | ||
| 38 | RevisionId => 'My__string', | ||
| 39 | |||
| 40 | ); | ||
| 41 | |||
| 42 | # Results: | ||
| 43 | my $Arn = $UpdateAssetResponse->Arn; | ||
| 44 | my $AssetDetails = $UpdateAssetResponse->AssetDetails; | ||
| 45 | my $AssetType = $UpdateAssetResponse->AssetType; | ||
| 46 | my $CreatedAt = $UpdateAssetResponse->CreatedAt; | ||
| 47 | my $DataSetId = $UpdateAssetResponse->DataSetId; | ||
| 48 | my $Id = $UpdateAssetResponse->Id; | ||
| 49 | my $Name = $UpdateAssetResponse->Name; | ||
| 50 | my $RevisionId = $UpdateAssetResponse->RevisionId; | ||
| 51 | my $SourceId = $UpdateAssetResponse->SourceId; | ||
| 52 | my $UpdatedAt = $UpdateAssetResponse->UpdatedAt; | ||
| 53 | |||
| 54 | # Returns a L<Paws::DataExchange::UpdateAssetResponse> object. | ||
| 55 | |||
| 56 | 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. | ||
| 57 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/dataexchange/UpdateAsset> | ||
| 58 | |||
| 59 | =head1 ATTRIBUTES | ||
| 60 | |||
| 61 | |||
| 62 | =head2 B<REQUIRED> AssetId => Str | ||
| 63 | |||
| 64 | The unique identifier for an asset. | ||
| 65 | |||
| 66 | |||
| 67 | |||
| 68 | =head2 B<REQUIRED> DataSetId => Str | ||
| 69 | |||
| 70 | The unique identifier for a data set. | ||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | =head2 B<REQUIRED> Name => Str | ||
| 75 | |||
| 76 | The name of the asset. When importing from Amazon S3, the S3 object key | ||
| 77 | is used as the asset name. When exporting to Amazon S3, the asset name | ||
| 78 | is used as default target S3 object key. | ||
| 79 | |||
| 80 | |||
| 81 | |||
| 82 | =head2 B<REQUIRED> RevisionId => Str | ||
| 83 | |||
| 84 | The unique identifier for a revision. | ||
| 85 | |||
| 86 | |||
| 87 | |||
| 88 | |||
| 89 | =head1 SEE ALSO | ||
| 90 | |||
| 91 | This class forms part of L<Paws>, documenting arguments for method UpdateAsset in L<Paws::DataExchange> | ||
| 92 | |||
| 93 | =head1 BUGS and CONTRIBUTIONS | ||
| 94 | |||
| 95 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 96 | |||
| 97 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 98 | |||
| 99 | =cut | ||
| 100 |