Class CfnSchedulingPolicy
A CloudFormation AWS::Batch::SchedulingPolicy
.
Inherited Members
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.AWS.Batch.dll
Syntax (csharp)
public class CfnSchedulingPolicy : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnSchedulingPolicy
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
The AWS::Batch::SchedulingPolicy
resource specifies the parameters for an AWS Batch scheduling policy. For more information, see Scheduling Policies in the ** .
CloudformationResource: AWS::Batch::SchedulingPolicy
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;
var cfnSchedulingPolicy = new CfnSchedulingPolicy(this, "MyCfnSchedulingPolicy", new CfnSchedulingPolicyProps {
FairsharePolicy = new FairsharePolicyProperty {
ComputeReservation = 123,
ShareDecaySeconds = 123,
ShareDistribution = new [] { new ShareAttributesProperty {
ShareIdentifier = "shareIdentifier",
WeightFactor = 123
} }
},
Name = "name",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
});
Synopsis
Constructors
CfnSchedulingPolicy(Construct, String, ICfnSchedulingPolicyProps) | Create a new |
CfnSchedulingPolicy(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnSchedulingPolicy(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrArn | Returns the scheduling policy ARN, such as |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
FairsharePolicy | The fair share policy of the scheduling policy. |
Name | The name of the scheduling policy. |
Tags | The tags that you apply to the scheduling policy to help you categorize and organize your resources. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnSchedulingPolicy(Construct, String, ICfnSchedulingPolicyProps)
Create a new AWS::Batch::SchedulingPolicy
.
public CfnSchedulingPolicy(Construct scope, string id, ICfnSchedulingPolicyProps props = null)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnSchedulingPolicyProps
- resource properties.
CfnSchedulingPolicy(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnSchedulingPolicy(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnSchedulingPolicy(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnSchedulingPolicy(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrArn
Returns the scheduling policy ARN, such as batch: *us-east-1* : *111122223333* :scheduling-policy/ *HighPriority*
.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Arn
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
FairsharePolicy
The fair share policy of the scheduling policy.
public virtual object FairsharePolicy { get; set; }
Property Value
System.Object
Remarks
Name
The name of the scheduling policy.
public virtual string Name { get; set; }
Property Value
System.String
Remarks
It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
Tags
The tags that you apply to the scheduling policy to help you categorize and organize your resources.
public virtual TagManager Tags { get; }
Property Value
Remarks
Each tag consists of a key and an optional value. For more information, see Tagging AWS Resources in AWS General Reference .
These tags can be updated or removed using the TagResource and UntagResource API operations.
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>