amazonka-batch-2.0: Amazon Batch SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Batch.CreateSchedulingPolicy

Description

Creates an Batch scheduling policy.

Synopsis

Creating a Request

data CreateSchedulingPolicy Source #

Contains the parameters for CreateSchedulingPolicy.

See: newCreateSchedulingPolicy smart constructor.

Constructors

CreateSchedulingPolicy' 

Fields

Instances

Instances details
ToJSON CreateSchedulingPolicy Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

ToHeaders CreateSchedulingPolicy Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

ToPath CreateSchedulingPolicy Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

ToQuery CreateSchedulingPolicy Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

AWSRequest CreateSchedulingPolicy Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

Associated Types

type AWSResponse CreateSchedulingPolicy #

Generic CreateSchedulingPolicy Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

Associated Types

type Rep CreateSchedulingPolicy :: Type -> Type #

Read CreateSchedulingPolicy Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

Show CreateSchedulingPolicy Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

NFData CreateSchedulingPolicy Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

Methods

rnf :: CreateSchedulingPolicy -> () #

Eq CreateSchedulingPolicy Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

Hashable CreateSchedulingPolicy Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

type AWSResponse CreateSchedulingPolicy Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

type Rep CreateSchedulingPolicy Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

type Rep CreateSchedulingPolicy = D1 ('MetaData "CreateSchedulingPolicy" "Amazonka.Batch.CreateSchedulingPolicy" "amazonka-batch-2.0-Ey2VZ5obnq65VwmlrJ2r2K" 'False) (C1 ('MetaCons "CreateSchedulingPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fairsharePolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FairsharePolicy)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateSchedulingPolicy Source #

Create a value of CreateSchedulingPolicy with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateSchedulingPolicy, createSchedulingPolicy_fairsharePolicy - The fair share policy of the scheduling policy.

CreateSchedulingPolicy, createSchedulingPolicy_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 TagResource and UntagResource API operations.

CreateSchedulingPolicy, createSchedulingPolicy_name - The name of the scheduling policy. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

Request Lenses

createSchedulingPolicy_tags :: Lens' CreateSchedulingPolicy (Maybe (HashMap Text Text)) Source #

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 TagResource and UntagResource API operations.

createSchedulingPolicy_name :: Lens' CreateSchedulingPolicy Text Source #

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

Destructuring the Response

data CreateSchedulingPolicyResponse Source #

See: newCreateSchedulingPolicyResponse smart constructor.

Constructors

CreateSchedulingPolicyResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • name :: Text

    The name of the scheduling policy.

  • arn :: Text

    The Amazon Resource Name (ARN) of the scheduling policy. The format is aws:Partition:batch:Region:Account:scheduling-policy/Name . For example, aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

Instances

Instances details
Generic CreateSchedulingPolicyResponse Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

Associated Types

type Rep CreateSchedulingPolicyResponse :: Type -> Type #

Read CreateSchedulingPolicyResponse Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

Show CreateSchedulingPolicyResponse Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

NFData CreateSchedulingPolicyResponse Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

Eq CreateSchedulingPolicyResponse Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

type Rep CreateSchedulingPolicyResponse Source # 
Instance details

Defined in Amazonka.Batch.CreateSchedulingPolicy

type Rep CreateSchedulingPolicyResponse = D1 ('MetaData "CreateSchedulingPolicyResponse" "Amazonka.Batch.CreateSchedulingPolicy" "amazonka-batch-2.0-Ey2VZ5obnq65VwmlrJ2r2K" 'False) (C1 ('MetaCons "CreateSchedulingPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateSchedulingPolicyResponse Source #

Create a value of CreateSchedulingPolicyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:CreateSchedulingPolicyResponse', createSchedulingPolicyResponse_httpStatus - The response's http status code.

CreateSchedulingPolicy, createSchedulingPolicyResponse_name - The name of the scheduling policy.

CreateSchedulingPolicyResponse, createSchedulingPolicyResponse_arn - The Amazon Resource Name (ARN) of the scheduling policy. The format is aws:Partition:batch:Region:Account:scheduling-policy/Name . For example, aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

Response Lenses

createSchedulingPolicyResponse_arn :: Lens' CreateSchedulingPolicyResponse Text Source #

The Amazon Resource Name (ARN) of the scheduling policy. The format is aws:Partition:batch:Region:Account:scheduling-policy/Name . For example, aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.