![]() |
![]()
| ![]() |
![]()
NAMEPaws::Glue::CreateTrigger - Arguments for method CreateTrigger on Paws::Glue DESCRIPTIONThis class represents the parameters used for calling the method CreateTrigger on the AWS Glue service. Use the attributes of this class as arguments to method CreateTrigger. You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateTrigger. SYNOPSISmy $glue = Paws->service('Glue'); my $CreateTriggerResponse = $glue->CreateTrigger( Actions => [ { Arguments => { 'MyGenericString' => 'MyGenericString', }, # OPTIONAL CrawlerName => 'MyNameString', # min: 1, max: 255; OPTIONAL JobName => 'MyNameString', # min: 1, max: 255; OPTIONAL NotificationProperty => { NotifyDelayAfter => 1, # min: 1; OPTIONAL }, # OPTIONAL SecurityConfiguration => 'MyNameString', # min: 1, max: 255; OPTIONAL Timeout => 1, # min: 1; OPTIONAL }, ... ], Name => 'MyNameString', Type => 'SCHEDULED', Description => 'MyDescriptionString', # OPTIONAL Predicate => { Conditions => [ { CrawlState => 'RUNNING' , # values: RUNNING, CANCELLING, CANCELLED, SUCCEEDED, FAILED; OPTIONAL CrawlerName => 'MyNameString', # min: 1, max: 255; OPTIONAL JobName => 'MyNameString', # min: 1, max: 255; OPTIONAL LogicalOperator => 'EQUALS', # values: EQUALS; OPTIONAL State => 'STARTING' , # values: STARTING, RUNNING, STOPPING, STOPPED, SUCCEEDED, FAILED, TIMEOUT; OPTIONAL }, ... ], # OPTIONAL Logical => 'AND', # values: AND, ANY; OPTIONAL }, # OPTIONAL Schedule => 'MyGenericString', # OPTIONAL StartOnCreation => 1, # OPTIONAL Tags => { 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256 }, # OPTIONAL WorkflowName => 'MyNameString', # OPTIONAL ); # Results: my $Name = $CreateTriggerResponse->Name; # Returns a L<Paws::Glue::CreateTriggerResponse> 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/glue/CreateTrigger> ATTRIBUTESREQUIRED Actions => ArrayRef[Paws::Glue::Action]The actions initiated by this trigger when it fires. Description => StrA description of the new trigger. REQUIRED Name => StrThe name of the trigger. Predicate => Paws::Glue::PredicateA predicate to specify when the new trigger should fire. This field is required when the trigger type is "CONDITIONAL". Schedule => StrA "cron" expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers (https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html). For example, to run something every day at 12:15 UTC, you would specify: "cron(15 12 * * ? *)". This field is required when the trigger type is SCHEDULED. StartOnCreation => BoolSet to "true" to start "SCHEDULED" and "CONDITIONAL" triggers when created. True is not supported for "ON_DEMAND" triggers. Tags => Paws::Glue::TagsMapThe tags to use with this trigger. You may use tags to limit access to the trigger. For more information about tags in Glue, see Amazon Web Services Tags in Glue (https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html) in the developer guide. REQUIRED Type => StrThe type of the new trigger. Valid values are: "SCHEDULED", "CONDITIONAL", "ON_DEMAND" WorkflowName => StrThe name of the workflow associated with the trigger. SEE ALSOThis class forms part of Paws, documenting arguments for method CreateTrigger in Paws::Glue BUGS and CONTRIBUTIONSThe source code is located here: <https://github.com/pplu/aws-sdk-perl> Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>
|