Class CfnPrimaryTaskSet
Modifies which task set in a service is the primary task set.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPrimaryTaskSet : CfnResource, IInspectable
Syntax (vb)
Public Class CfnPrimaryTaskSet
Inherits CfnResource
Implements IInspectable
Remarks
Any parameters that are updated on the primary task set in a service will transition to the service. This is used when a service uses the EXTERNAL
deployment controller type. For more information, see Amazon ECS Deployment Types in the Amazon Elastic Container Service Developer Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-primarytaskset.html
CloudformationResource: AWS::ECS::PrimaryTaskSet
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.ECS;
var cfnPrimaryTaskSet = new CfnPrimaryTaskSet(this, "MyCfnPrimaryTaskSet", new CfnPrimaryTaskSetProps {
Cluster = "cluster",
Service = "service",
TaskSetId = "taskSetId"
});
Synopsis
Constructors
CfnPrimaryTaskSet(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnPrimaryTaskSet(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnPrimaryTaskSet(Construct, String, ICfnPrimaryTaskSetProps) |
Properties
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Cluster | The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task set exists in. |
Service | The short name or full Amazon Resource Name (ARN) of the service that the task set exists in. |
TaskSetId | The short name or full Amazon Resource Name (ARN) of the task set to set as the primary task set in the deployment. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnPrimaryTaskSet(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnPrimaryTaskSet(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnPrimaryTaskSet(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnPrimaryTaskSet(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnPrimaryTaskSet(Construct, String, ICfnPrimaryTaskSetProps)
public CfnPrimaryTaskSet(Construct scope, string id, ICfnPrimaryTaskSetProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnPrimaryTaskSetProps
Resource properties.
Properties
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
Cluster
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task set exists in.
public virtual string Cluster { get; set; }
Property Value
System.String
Service
The short name or full Amazon Resource Name (ARN) of the service that the task set exists in.
public virtual string Service { get; set; }
Property Value
System.String
TaskSetId
The short name or full Amazon Resource Name (ARN) of the task set to set as the primary task set in the deployment.
public virtual string TaskSetId { get; set; }
Property Value
System.String
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>