Class StorageNotification.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static StorageNotification.Builder create​(software.constructs.Construct scope,
                                                         String id)
        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        id - The scoped construct ID. This parameter is required.
        Returns:
        a new instance of StorageNotification.Builder.
      • connection

        @Stability(Experimental)
        public StorageNotification.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public StorageNotification.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public StorageNotification.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public StorageNotification.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public StorageNotification.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public StorageNotification.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public StorageNotification.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public StorageNotification.Builder provisioners​(List<? extends Object> provisioners)
        Parameters:
        provisioners - This parameter is required.
        Returns:
        this
      • bucket

        @Stability(Stable)
        public StorageNotification.Builder bucket​(String bucket)
        The name of the bucket.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_notification#bucket StorageNotification#bucket}

        Parameters:
        bucket - The name of the bucket. This parameter is required.
        Returns:
        this
      • payloadFormat

        @Stability(Stable)
        public StorageNotification.Builder payloadFormat​(String payloadFormat)
        The desired content of the Payload. One of "JSON_API_V1" or "NONE".

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_notification#payload_format StorageNotification#payload_format}

        Parameters:
        payloadFormat - The desired content of the Payload. One of "JSON_API_V1" or "NONE". This parameter is required.
        Returns:
        this
      • topic

        @Stability(Stable)
        public StorageNotification.Builder topic​(String topic)
        The Cloud Pub/Sub topic to which this subscription publishes.

        Expects either the topic name, assumed to belong to the default GCP provider project, or the project-level name, i.e. projects/my-gcp-project/topics/my-topic or my-topic. If the project is not set in the provider, you will need to use the project-level name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_notification#topic StorageNotification#topic}

        Parameters:
        topic - The Cloud Pub/Sub topic to which this subscription publishes. This parameter is required.
        Returns:
        this
      • customAttributes

        @Stability(Stable)
        public StorageNotification.Builder customAttributes​(Map<String,​String> customAttributes)
        A set of key/value attribute pairs to attach to each Cloud Pub/Sub message published for this notification subscription.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_notification#custom_attributes StorageNotification#custom_attributes}

        Parameters:
        customAttributes - A set of key/value attribute pairs to attach to each Cloud Pub/Sub message published for this notification subscription. This parameter is required.
        Returns:
        this
      • eventTypes

        @Stability(Stable)
        public StorageNotification.Builder eventTypes​(List<String> eventTypes)
        List of event type filters for this notification config.

        If not specified, Cloud Storage will send notifications for all event types. The valid types are: "OBJECT_FINALIZE", "OBJECT_METADATA_UPDATE", "OBJECT_DELETE", "OBJECT_ARCHIVE" Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_notification#event_types StorageNotification#event_types}

        Parameters:
        eventTypes - List of event type filters for this notification config. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public StorageNotification.Builder id​(String id)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_notification#id StorageNotification#id}.

        Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.

        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_notification#id StorageNotification#id}. This parameter is required.
        Returns:
        this
      • objectNamePrefix

        @Stability(Stable)
        public StorageNotification.Builder objectNamePrefix​(String objectNamePrefix)
        Specifies a prefix path filter for this notification config.

        Cloud Storage will only send notifications for objects in this bucket whose names begin with the specified prefix. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_notification#object_name_prefix StorageNotification#object_name_prefix}

        Parameters:
        objectNamePrefix - Specifies a prefix path filter for this notification config. This parameter is required.
        Returns:
        this