Class CfnConnectionFunction

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IConnectionFunctionRef, IEnvironmentAware, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)", date="2025-11-20T23:37:16.222Z") @Stability(Stable) public class CfnConnectionFunction extends CfnResource implements IInspectable, IConnectionFunctionRef, ITaggableV2
Resource Type definition for AWS::CloudFront::ConnectionFunction.

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.cloudfront.*;
 CfnConnectionFunction cfnConnectionFunction = CfnConnectionFunction.Builder.create(this, "MyCfnConnectionFunction")
         .connectionFunctionCode("connectionFunctionCode")
         .connectionFunctionConfig(ConnectionFunctionConfigProperty.builder()
                 .comment("comment")
                 .runtime("runtime")
                 // the properties below are optional
                 .keyValueStoreAssociations(List.of(KeyValueStoreAssociationProperty.builder()
                         .keyValueStoreArn("keyValueStoreArn")
                         .build()))
                 .build())
         .name("name")
         // the properties below are optional
         .autoPublish(false)
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnConnectionFunction

      protected CfnConnectionFunction(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnConnectionFunction

      protected CfnConnectionFunction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnConnectionFunction

      @Stability(Stable) public CfnConnectionFunction(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnConnectionFunctionProps props)
      Create a new AWS::CloudFront::ConnectionFunction.

      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

    • arnForConnectionFunction

      @Stability(Stable) @NotNull public static String arnForConnectionFunction(@NotNull IConnectionFunctionRef resource)
      Parameters:
      resource - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrConnectionFunctionArn

      @Stability(Stable) @NotNull public String getAttrConnectionFunctionArn()
    • getAttrCreatedTime

      @Stability(Stable) @NotNull public String getAttrCreatedTime()
    • getAttrETag

      @Stability(Stable) @NotNull public String getAttrETag()
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
    • getAttrLastModifiedTime

      @Stability(Stable) @NotNull public String getAttrLastModifiedTime()
    • getAttrStage

      @Stability(Stable) @NotNull public String getAttrStage()
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getConnectionFunctionRef

      @Stability(Stable) @NotNull public ConnectionFunctionReference getConnectionFunctionRef()
      A reference to a ConnectionFunction resource.
      Specified by:
      getConnectionFunctionRef in interface IConnectionFunctionRef
    • getConnectionFunctionCode

      @Stability(Stable) @NotNull public String getConnectionFunctionCode()
    • setConnectionFunctionCode

      @Stability(Stable) public void setConnectionFunctionCode(@NotNull String value)
    • getConnectionFunctionConfig

      @Stability(Stable) @NotNull public Object getConnectionFunctionConfig()
    • setConnectionFunctionConfig

      @Stability(Stable) public void setConnectionFunctionConfig(@NotNull IResolvable value)
    • setConnectionFunctionConfig

      @Stability(Stable) public void setConnectionFunctionConfig(@NotNull CfnConnectionFunction.ConnectionFunctionConfigProperty value)
    • getName

      @Stability(Stable) @NotNull public String getName()
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
    • getAutoPublish

      @Stability(Stable) @Nullable public Object getAutoPublish()
      Returns union: either Boolean or IResolvable
    • setAutoPublish

      @Stability(Stable) public void setAutoPublish(@Nullable Boolean value)
    • setAutoPublish

      @Stability(Stable) public void setAutoPublish(@Nullable IResolvable value)
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)