Skip to content

Create Scheduling Policy

batch_create_scheduling_policy R Documentation

Creates an Batch scheduling policy

Description

Creates an Batch scheduling policy.

Usage

batch_create_scheduling_policy(name, quotaSharePolicy, fairsharePolicy,
  tags)

Arguments

name

[required] The name of the fair-share scheduling policy. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

quotaSharePolicy

The quota share scheduling policy details. Only one of fairsharePolicy or quotaSharePolicy can be set. Once set, this policy type cannot be removed or changed to a fairSharePolicy.

fairsharePolicy

The fair-share scheduling policy details. Only one of fairsharePolicy or quotaSharePolicy can be set. Once set, this policy type cannot be removed or changed to a quotaSharePolicy.

tags

The tags that you apply to the scheduling policy to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General Reference.

These tags can be updated or removed using the tag_resource and untag_resource API operations.

Value

A list with the following syntax:

list(
  name = "string",
  arn = "string"
)

Request syntax

svc$create_scheduling_policy(
  name = "string",
  quotaSharePolicy = list(
    idleResourceAssignmentStrategy = "FIFO"
  ),
  fairsharePolicy = list(
    shareDecaySeconds = 123,
    computeReservation = 123,
    shareDistribution = list(
      list(
        shareIdentifier = "string",
        weightFactor = 123.0
      )
    )
  ),
  tags = list(
    "string"
  )
)