Class FunctionState.Builder

  • Enclosing class:
    FunctionState

    public static final class FunctionState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • arn

        public FunctionState.Builder arn​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN identifying your CloudFront Function.
        Returns:
        builder
      • arn

        public FunctionState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN identifying your CloudFront Function.
        Returns:
        builder
      • code

        public FunctionState.Builder code​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> code)
        Parameters:
        code - Source code of the function. Must be between 1 and 40960 bytes.
        Returns:
        builder
      • code

        public FunctionState.Builder code​(java.lang.String code)
        Parameters:
        code - Source code of the function. Must be between 1 and 40960 bytes.
        Returns:
        builder
      • comment

        public FunctionState.Builder comment​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> comment)
        Parameters:
        comment - Comment. Must not exceed 128 characters.
        Returns:
        builder
      • comment

        public FunctionState.Builder comment​(java.lang.String comment)
        Parameters:
        comment - Comment. Must not exceed 128 characters.
        Returns:
        builder
      • etag

        public FunctionState.Builder etag​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> etag)
        Parameters:
        etag - ETag hash of the function. This is the value for the `DEVELOPMENT` stage of the function.
        Returns:
        builder
      • etag

        public FunctionState.Builder etag​(java.lang.String etag)
        Parameters:
        etag - ETag hash of the function. This is the value for the `DEVELOPMENT` stage of the function.
        Returns:
        builder
      • keyValueStoreAssociations

        public FunctionState.Builder keyValueStoreAssociations​(@Nullable
                                                               com.pulumi.core.Output<java.util.List<java.lang.String>> keyValueStoreAssociations)
        Parameters:
        keyValueStoreAssociations - List of `aws.cloudfront.KeyValueStore` ARNs to be associated to the function. AWS limits associations to one key value store per function.
        Returns:
        builder
      • keyValueStoreAssociations

        public FunctionState.Builder keyValueStoreAssociations​(java.util.List<java.lang.String> keyValueStoreAssociations)
        Parameters:
        keyValueStoreAssociations - List of `aws.cloudfront.KeyValueStore` ARNs to be associated to the function. AWS limits associations to one key value store per function.
        Returns:
        builder
      • keyValueStoreAssociations

        public FunctionState.Builder keyValueStoreAssociations​(java.lang.String... keyValueStoreAssociations)
        Parameters:
        keyValueStoreAssociations - List of `aws.cloudfront.KeyValueStore` ARNs to be associated to the function. AWS limits associations to one key value store per function.
        Returns:
        builder
      • liveStageEtag

        public FunctionState.Builder liveStageEtag​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> liveStageEtag)
        Parameters:
        liveStageEtag - ETag hash of any `LIVE` stage of the function.
        Returns:
        builder
      • liveStageEtag

        public FunctionState.Builder liveStageEtag​(java.lang.String liveStageEtag)
        Parameters:
        liveStageEtag - ETag hash of any `LIVE` stage of the function.
        Returns:
        builder
      • name

        public FunctionState.Builder name​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Unique name for your CloudFront Function. Valid names contain only alphanumeric characters, hyphens, and underscores, and must be between 1 and 64 characters.
        Returns:
        builder
      • name

        public FunctionState.Builder name​(java.lang.String name)
        Parameters:
        name - Unique name for your CloudFront Function. Valid names contain only alphanumeric characters, hyphens, and underscores, and must be between 1 and 64 characters.
        Returns:
        builder
      • publish

        public FunctionState.Builder publish​(@Nullable
                                             com.pulumi.core.Output<java.lang.Boolean> publish)
        Parameters:
        publish - Whether to publish creation/change as Live CloudFront Function Version. Defaults to `true`.
        Returns:
        builder
      • publish

        public FunctionState.Builder publish​(java.lang.Boolean publish)
        Parameters:
        publish - Whether to publish creation/change as Live CloudFront Function Version. Defaults to `true`.
        Returns:
        builder
      • runtime

        public FunctionState.Builder runtime​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> runtime)
        Parameters:
        runtime - Identifier of the function's runtime. Valid values are `cloudfront-js-1.0` and `cloudfront-js-2.0`. The following arguments are optional:
        Returns:
        builder
      • runtime

        public FunctionState.Builder runtime​(java.lang.String runtime)
        Parameters:
        runtime - Identifier of the function's runtime. Valid values are `cloudfront-js-1.0` and `cloudfront-js-2.0`. The following arguments are optional:
        Returns:
        builder
      • status

        public FunctionState.Builder status​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> status)
        Parameters:
        status - Status of the function. Can be `UNPUBLISHED`, `UNASSOCIATED` or `ASSOCIATED`.
        Returns:
        builder
      • status

        public FunctionState.Builder status​(java.lang.String status)
        Parameters:
        status - Status of the function. Can be `UNPUBLISHED`, `UNASSOCIATED` or `ASSOCIATED`.
        Returns:
        builder
      • tags

        public FunctionState.Builder tags​(@Nullable
                                          com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public FunctionState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tagsAll

        public FunctionState.Builder tagsAll​(@Nullable
                                             com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public FunctionState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder