Class CfnWorker
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.deadline.CfnWorker
- All Implemented Interfaces:
IInspectable,IWorkerRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:07.509Z")
@Stability(Stable)
public class CfnWorker
extends CfnResource
implements IInspectable, IWorkerRef, ITaggableV2
Definition of AWS::Deadline::Worker Resource Type.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.deadline.*;
CfnWorker cfnWorker = CfnWorker.Builder.create(this, "MyCfnWorker")
.farmId("farmId")
.fleetId("fleetId")
// the properties below are optional
.hostProperties(HostPropertiesRequestProperty.builder()
.hostName("hostName")
.ipAddresses(IpAddressesProperty.builder()
.ipV4Addresses(List.of("ipV4Addresses"))
.ipV6Addresses(List.of("ipV6Addresses"))
.build())
.build())
.tags(List.of(TagsItemsProperty.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnWorker.static interfaceThe host property details.static interfaceThe IP addresses for a host.static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.deadline.IWorkerRef
IWorkerRef.Jsii$Default, IWorkerRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnWorker(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnWorker(software.amazon.jsii.JsiiObjectRef objRef) CfnWorker(software.constructs.Construct scope, String id, CfnWorkerProps props) Create a newAWS::Deadline::Worker. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForWorker(IWorkerRef resource) The Amazon Resource Name (ARN) of the worker.The date and time the resource was created.The user or system that created this resource.The status of the worker.The worker ID.Tag Manager which manages the tags for this resource.The farm ID.The fleet ID.The host property details.getTags()An array of key-value pairs to apply to this resource.A reference to a Worker resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnWorker.renderProperties(Map<String, Object> props) voidThe farm ID.voidsetFleetId(String value) The fleet ID.voidsetHostProperties(IResolvable value) The host property details.voidThe host property details.voidsetTags(List<CfnWorker.TagsItemsProperty> value) An array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnWorker
protected CfnWorker(software.amazon.jsii.JsiiObjectRef objRef) -
CfnWorker
protected CfnWorker(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnWorker
@Stability(Stable) public CfnWorker(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnWorkerProps props) Create a newAWS::Deadline::Worker.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForWorker
- Parameters:
resource- This parameter is required.
-
isCfnWorker
Checks whether the given object is a CfnWorker.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the worker. -
getAttrCreatedAt
The date and time the resource was created. -
getAttrCreatedBy
The user or system that created this resource. -
getAttrStatus
The status of the worker. -
getAttrWorkerId
The worker ID. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getWorkerRef
A reference to a Worker resource.- Specified by:
getWorkerRefin interfaceIWorkerRef
-
getFarmId
The farm ID. -
setFarmId
The farm ID. -
getFleetId
The fleet ID. -
setFleetId
The fleet ID. -
getHostProperties
The host property details.Returns union: either
IResolvableorCfnWorker.HostPropertiesRequestProperty -
setHostProperties
The host property details. -
setHostProperties
@Stability(Stable) public void setHostProperties(@Nullable CfnWorker.HostPropertiesRequestProperty value) The host property details. -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource.
-