Paws
view release on metacpan or search on metacpan
lib/Paws/Batch/RegisterJobDefinition.pm view on Meta::CPAN
package Paws::Batch::RegisterJobDefinition;
use Moose;
has ContainerProperties => (is => 'ro', isa => 'Paws::Batch::ContainerProperties', traits => ['NameInRequest'], request_name => 'containerProperties');
has JobDefinitionName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'jobDefinitionName', required => 1);
has NodeProperties => (is => 'ro', isa => 'Paws::Batch::NodeProperties', traits => ['NameInRequest'], request_name => 'nodeProperties');
has Parameters => (is => 'ro', isa => 'Paws::Batch::ParametersMap', traits => ['NameInRequest'], request_name => 'parameters');
has PlatformCapabilities => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'platformCapabilities');
has PropagateTags => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'propagateTags');
has RetryStrategy => (is => 'ro', isa => 'Paws::Batch::RetryStrategy', traits => ['NameInRequest'], request_name => 'retryStrategy');
has Tags => (is => 'ro', isa => 'Paws::Batch::TagrisTagsMap', traits => ['NameInRequest'], request_name => 'tags');
has Timeout => (is => 'ro', isa => 'Paws::Batch::JobTimeout', traits => ['NameInRequest'], request_name => 'timeout');
has Type => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'type', required => 1);
use MooseX::ClassAttribute;
class_has _api_call => (isa => 'Str', is => 'ro', default => 'RegisterJobDefinition');
class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/registerjobdefinition');
class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Batch::RegisterJobDefinitionResponse');
1;
### main pod documentation begin ###
=head1 NAME
Paws::Batch::RegisterJobDefinition - Arguments for method RegisterJobDefinition on L<Paws::Batch>
=head1 DESCRIPTION
This class represents the parameters used for calling the method RegisterJobDefinition on the
L<AWS Batch|Paws::Batch> service. Use the attributes of this class
as arguments to method RegisterJobDefinition.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to RegisterJobDefinition.
=head1 SYNOPSIS
my $batch = Paws->service('Batch');
# To register a job definition
# This example registers a job definition for a simple container job.
my $RegisterJobDefinitionResponse = $batch->RegisterJobDefinition(
'ContainerProperties' => {
'Command' => [ 'sleep', 10 ],
'Image' => 'busybox',
'Memory' => 128,
'Vcpus' => 1
},
'JobDefinitionName' => 'sleep10',
'Type' => 'container'
);
# Results:
my $jobDefinitionArn = $RegisterJobDefinitionResponse->jobDefinitionArn;
my $jobDefinitionName = $RegisterJobDefinitionResponse->jobDefinitionName;
my $revision = $RegisterJobDefinitionResponse->revision;
# Returns a L<Paws::Batch::RegisterJobDefinitionResponse> 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 L<https://docs.aws.amazon.com/goto/WebAPI/batch/RegisterJobDefinition>
=head1 ATTRIBUTES
=head2 ContainerProperties => L<Paws::Batch::ContainerProperties>
An object with various properties specific to single-node
container-based jobs. If the job definition's C<type> parameter is
C<container>, then you must specify either C<containerProperties> or
C<nodeProperties>.
If the job runs on Fargate resources, then you must not specify
C<nodeProperties>; use only C<containerProperties>.
=head2 B<REQUIRED> JobDefinitionName => Str
The name of the job definition to register. Up to 128 letters
(uppercase and lowercase), numbers, hyphens, and underscores are
allowed.
=head2 NodeProperties => L<Paws::Batch::NodeProperties>
An object with various properties specific to multi-node parallel jobs.
If you specify node properties for a job, it becomes a multi-node
parallel job. For more information, see Multi-node Parallel Jobs
(https://docs.aws.amazon.com/batch/latest/userguide/multi-node-parallel-jobs.html)
in the I<AWS Batch User Guide>. If the job definition's C<type>
parameter is C<container>, then you must specify either
C<containerProperties> or C<nodeProperties>.
If the job runs on Fargate resources, then you must not specify
C<nodeProperties>; use C<containerProperties> instead.
=head2 Parameters => L<Paws::Batch::ParametersMap>
Default parameter substitution placeholders to set in the job
definition. Parameters are specified as a key-value pair mapping.
Parameters in a C<SubmitJob> request override any corresponding
( run in 0.536 second using v1.01-cache-2.11-cpan-39bf76dae61 )