Class ServiceArgs.Builder

  • Enclosing class:
    ServiceArgs

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

      • Builder

        public Builder()
    • Method Detail

      • description

        public ServiceArgs.Builder description​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - The description of the service.
        Returns:
        builder
      • description

        public ServiceArgs.Builder description​(java.lang.String description)
        Parameters:
        description - The description of the service.
        Returns:
        builder
      • dnsConfig

        public ServiceArgs.Builder dnsConfig​(@Nullable
                                             com.pulumi.core.Output<ServiceDnsConfigArgs> dnsConfig)
        Parameters:
        dnsConfig - A complex type that contains information about the resource record sets that you want Amazon Route 53 to create when you register an instance. See `dnsConfig` Block for details.
        Returns:
        builder
      • dnsConfig

        public ServiceArgs.Builder dnsConfig​(ServiceDnsConfigArgs dnsConfig)
        Parameters:
        dnsConfig - A complex type that contains information about the resource record sets that you want Amazon Route 53 to create when you register an instance. See `dnsConfig` Block for details.
        Returns:
        builder
      • forceDestroy

        public ServiceArgs.Builder forceDestroy​(@Nullable
                                                com.pulumi.core.Output<java.lang.Boolean> forceDestroy)
        Parameters:
        forceDestroy - A boolean that indicates all instances should be deleted from the service so that the service can be destroyed without error. These instances are not recoverable. Defaults to `false`.
        Returns:
        builder
      • forceDestroy

        public ServiceArgs.Builder forceDestroy​(java.lang.Boolean forceDestroy)
        Parameters:
        forceDestroy - A boolean that indicates all instances should be deleted from the service so that the service can be destroyed without error. These instances are not recoverable. Defaults to `false`.
        Returns:
        builder
      • healthCheckConfig

        public ServiceArgs.Builder healthCheckConfig​(@Nullable
                                                     com.pulumi.core.Output<ServiceHealthCheckConfigArgs> healthCheckConfig)
        Parameters:
        healthCheckConfig - A complex type that contains settings for an optional health check. Only for Public DNS namespaces. See `healthCheckConfig` Block for details.
        Returns:
        builder
      • healthCheckConfig

        public ServiceArgs.Builder healthCheckConfig​(ServiceHealthCheckConfigArgs healthCheckConfig)
        Parameters:
        healthCheckConfig - A complex type that contains settings for an optional health check. Only for Public DNS namespaces. See `healthCheckConfig` Block for details.
        Returns:
        builder
      • healthCheckCustomConfig

        public ServiceArgs.Builder healthCheckCustomConfig​(@Nullable
                                                           com.pulumi.core.Output<ServiceHealthCheckCustomConfigArgs> healthCheckCustomConfig)
        Parameters:
        healthCheckCustomConfig - Please use `healthCheckConfig` instead. See `healthCheckCustomConfig` Block for details.
        Returns:
        builder
      • healthCheckCustomConfig

        public ServiceArgs.Builder healthCheckCustomConfig​(ServiceHealthCheckCustomConfigArgs healthCheckCustomConfig)
        Parameters:
        healthCheckCustomConfig - Please use `healthCheckConfig` instead. See `healthCheckCustomConfig` Block for details.
        Returns:
        builder
      • name

        public ServiceArgs.Builder name​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - The name of the service.
        Returns:
        builder
      • name

        public ServiceArgs.Builder name​(java.lang.String name)
        Parameters:
        name - The name of the service.
        Returns:
        builder
      • namespaceId

        public ServiceArgs.Builder namespaceId​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> namespaceId)
        Parameters:
        namespaceId - The ID of the namespace that you want to use to create the service.
        Returns:
        builder
      • namespaceId

        public ServiceArgs.Builder namespaceId​(java.lang.String namespaceId)
        Parameters:
        namespaceId - The ID of the namespace that you want to use to create the service.
        Returns:
        builder
      • region

        public ServiceArgs.Builder region​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public ServiceArgs.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • tags

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

        public ServiceArgs.Builder type​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> type)
        Parameters:
        type - If present, specifies that the service instances are only discoverable using the `DiscoverInstances` API operation. No DNS records is registered for the service instances. The only valid value is `HTTP`.
        Returns:
        builder
      • type

        public ServiceArgs.Builder type​(java.lang.String type)
        Parameters:
        type - If present, specifies that the service instances are only discoverable using the `DiscoverInstances` API operation. No DNS records is registered for the service instances. The only valid value is `HTTP`.
        Returns:
        builder