Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.Batch.CreateSchedulingPolicy
Description
Creates an Batch scheduling policy.
Synopsis
- data CreateSchedulingPolicy = CreateSchedulingPolicy' {
- fairsharePolicy :: Maybe FairsharePolicy
- tags :: Maybe (HashMap Text Text)
- name :: Text
- newCreateSchedulingPolicy :: Text -> CreateSchedulingPolicy
- createSchedulingPolicy_fairsharePolicy :: Lens' CreateSchedulingPolicy (Maybe FairsharePolicy)
- createSchedulingPolicy_tags :: Lens' CreateSchedulingPolicy (Maybe (HashMap Text Text))
- createSchedulingPolicy_name :: Lens' CreateSchedulingPolicy Text
- data CreateSchedulingPolicyResponse = CreateSchedulingPolicyResponse' {}
- newCreateSchedulingPolicyResponse :: Int -> Text -> Text -> CreateSchedulingPolicyResponse
- createSchedulingPolicyResponse_httpStatus :: Lens' CreateSchedulingPolicyResponse Int
- createSchedulingPolicyResponse_name :: Lens' CreateSchedulingPolicyResponse Text
- createSchedulingPolicyResponse_arn :: Lens' CreateSchedulingPolicyResponse Text
Creating a Request
data CreateSchedulingPolicy Source #
Contains the parameters for CreateSchedulingPolicy
.
See: newCreateSchedulingPolicy
smart constructor.
Constructors
CreateSchedulingPolicy' | |
Fields
|
Instances
newCreateSchedulingPolicy Source #
Arguments
:: Text | |
-> CreateSchedulingPolicy |
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_fairsharePolicy :: Lens' CreateSchedulingPolicy (Maybe FairsharePolicy) Source #
The fair share policy of the scheduling policy.
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
|
Instances
newCreateSchedulingPolicyResponse Source #
Arguments
:: Int | |
-> Text | |
-> Text | |
-> CreateSchedulingPolicyResponse |
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_httpStatus :: Lens' CreateSchedulingPolicyResponse Int Source #
The response's http status code.
createSchedulingPolicyResponse_name :: Lens' CreateSchedulingPolicyResponse Text Source #
The name of the scheduling policy.
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
.