Class CfnFunction
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.mediatailor.CfnFunction
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IFunctionRef,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:14.089Z")
@Stability(Stable)
public class CfnFunction
extends CfnResource
implements IInspectable, IFunctionRef, ITaggableV2
Resource Type definition for AWS::MediaTailor::Function.
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.mediatailor.*;
CfnFunction cfnFunction = CfnFunction.Builder.create(this, "MyCfnFunction")
.functionId("functionId")
.functionType("functionType")
// the properties below are optional
.customOutputConfiguration(CustomOutputConfigurationProperty.builder()
.runtime("runtime")
// the properties below are optional
.output(Map.of(
"outputKey", "output"))
.build())
.description("description")
.httpRequestConfiguration(HttpRequestConfigurationProperty.builder()
.methodType("methodType")
.requestTimeoutMilliseconds(123)
.runtime("runtime")
.url("url")
// the properties below are optional
.body("body")
.headers(Map.of(
"headersKey", "headers"))
.output(Map.of(
"outputKey", "output"))
.build())
.sequentialExecutorConfiguration(SequentialExecutorConfigurationProperty.builder()
.functionList(List.of(FunctionRefProperty.builder()
.functionId("functionId")
.runCondition("runCondition")
.build()))
.runtime("runtime")
.timeoutMilliseconds(123)
// the properties below are optional
.output(Map.of(
"outputKey", "output"))
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnFunction.static interfaceConfiguration for custom output functions.static interfaceA reference to a function with an optional run condition.static interfaceConfiguration for HTTP request functions.static interfaceConfiguration for sequential executor functions.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.interfaces.mediatailor.IFunctionRef
IFunctionRef.Jsii$Default, IFunctionRef.Jsii$ProxyNested 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$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFunction(software.amazon.jsii.JsiiObjectRef objRef) CfnFunction(software.constructs.Construct scope, String id, CfnFunctionProps props) Create a newAWS::MediaTailor::Function. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForFunction(IFunctionRef resource) The ARN of the function.Tag Manager which manages the tags for this resource.Configuration for custom output functions.A description of the function.The unique identifier for the function.A reference to a Function resource.Configuration for HTTP request functions.Configuration for sequential executor functions.getTags()The tags to assign to the function resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnFunction.renderProperties(Map<String, Object> props) voidConfiguration for custom output functions.voidConfiguration for custom output functions.voidsetDescription(String value) A description of the function.voidsetFunctionId(String value) The unique identifier for the function.voidsetFunctionType(String value) voidConfiguration for HTTP request functions.voidConfiguration for HTTP request functions.voidConfiguration for sequential executor functions.voidConfiguration for sequential executor functions.voidThe tags to assign to the function 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
-
CfnFunction
protected CfnFunction(software.amazon.jsii.JsiiObjectRef objRef) -
CfnFunction
protected CfnFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnFunction
@Stability(Stable) public CfnFunction(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnFunctionProps props) Create a newAWS::MediaTailor::Function.- 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
-
arnForFunction
- Parameters:
resource- This parameter is required.
-
isCfnFunction
Checks whether the given object is a CfnFunction.- 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 ARN of the function. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getFunctionRef
A reference to a Function resource.- Specified by:
getFunctionRefin interfaceIFunctionRef
-
getFunctionId
The unique identifier for the function. -
setFunctionId
The unique identifier for the function. -
getFunctionType
-
setFunctionType
-
getCustomOutputConfiguration
Configuration for custom output functions.Returns union: either
IResolvableorCfnFunction.CustomOutputConfigurationProperty -
setCustomOutputConfiguration
Configuration for custom output functions. -
setCustomOutputConfiguration
@Stability(Stable) public void setCustomOutputConfiguration(@Nullable CfnFunction.CustomOutputConfigurationProperty value) Configuration for custom output functions. -
getDescription
A description of the function. -
setDescription
A description of the function. -
getHttpRequestConfiguration
Configuration for HTTP request functions.Returns union: either
IResolvableorCfnFunction.HttpRequestConfigurationProperty -
setHttpRequestConfiguration
Configuration for HTTP request functions. -
setHttpRequestConfiguration
@Stability(Stable) public void setHttpRequestConfiguration(@Nullable CfnFunction.HttpRequestConfigurationProperty value) Configuration for HTTP request functions. -
getSequentialExecutorConfiguration
Configuration for sequential executor functions.Returns union: either
IResolvableorCfnFunction.SequentialExecutorConfigurationProperty -
setSequentialExecutorConfiguration
Configuration for sequential executor functions. -
setSequentialExecutorConfiguration
@Stability(Stable) public void setSequentialExecutorConfiguration(@Nullable CfnFunction.SequentialExecutorConfigurationProperty value) Configuration for sequential executor functions. -
getTags
The tags to assign to the function resource. -
setTags
The tags to assign to the function resource.
-