Interface ServiceConnectConfiguration.Builder

    • Method Detail

      • enabled

        ServiceConnectConfiguration.Builder enabled​(Boolean enabled)

        Specifies whether to use Service Connect with this service.

        Parameters:
        enabled - Specifies whether to use Service Connect with this service.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • namespace

        ServiceConnectConfiguration.Builder namespace​(String namespace)

        The namespace name or full Amazon Resource Name (ARN) of the Cloud Map namespace for use with Service Connect. The namespace must be in the same Amazon Web Services Region as the Amazon ECS service and cluster. The type of namespace doesn't affect Service Connect. For more information about Cloud Map, see Working with Services in the Cloud Map Developer Guide.

        Parameters:
        namespace - The namespace name or full Amazon Resource Name (ARN) of the Cloud Map namespace for use with Service Connect. The namespace must be in the same Amazon Web Services Region as the Amazon ECS service and cluster. The type of namespace doesn't affect Service Connect. For more information about Cloud Map, see Working with Services in the Cloud Map Developer Guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • services

        ServiceConnectConfiguration.Builder services​(Collection<ServiceConnectService> services)

        The list of Service Connect service objects. These are names and aliases (also known as endpoints) that are used by other Amazon ECS services to connect to this service.

        This field is not required for a "client" Amazon ECS service that's a member of a namespace only to connect to other services within the namespace. An example of this would be a frontend application that accepts incoming requests from either a load balancer that's attached to the service or by other means.

        An object selects a port from the task definition, assigns a name for the Cloud Map service, and a list of aliases (endpoints) and ports for client applications to refer to this service.

        Parameters:
        services - The list of Service Connect service objects. These are names and aliases (also known as endpoints) that are used by other Amazon ECS services to connect to this service.

        This field is not required for a "client" Amazon ECS service that's a member of a namespace only to connect to other services within the namespace. An example of this would be a frontend application that accepts incoming requests from either a load balancer that's attached to the service or by other means.

        An object selects a port from the task definition, assigns a name for the Cloud Map service, and a list of aliases (endpoints) and ports for client applications to refer to this service.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • services

        ServiceConnectConfiguration.Builder services​(ServiceConnectService... services)

        The list of Service Connect service objects. These are names and aliases (also known as endpoints) that are used by other Amazon ECS services to connect to this service.

        This field is not required for a "client" Amazon ECS service that's a member of a namespace only to connect to other services within the namespace. An example of this would be a frontend application that accepts incoming requests from either a load balancer that's attached to the service or by other means.

        An object selects a port from the task definition, assigns a name for the Cloud Map service, and a list of aliases (endpoints) and ports for client applications to refer to this service.

        Parameters:
        services - The list of Service Connect service objects. These are names and aliases (also known as endpoints) that are used by other Amazon ECS services to connect to this service.

        This field is not required for a "client" Amazon ECS service that's a member of a namespace only to connect to other services within the namespace. An example of this would be a frontend application that accepts incoming requests from either a load balancer that's attached to the service or by other means.

        An object selects a port from the task definition, assigns a name for the Cloud Map service, and a list of aliases (endpoints) and ports for client applications to refer to this service.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • services

        ServiceConnectConfiguration.Builder services​(Consumer<ServiceConnectService.Builder>... services)

        The list of Service Connect service objects. These are names and aliases (also known as endpoints) that are used by other Amazon ECS services to connect to this service.

        This field is not required for a "client" Amazon ECS service that's a member of a namespace only to connect to other services within the namespace. An example of this would be a frontend application that accepts incoming requests from either a load balancer that's attached to the service or by other means.

        An object selects a port from the task definition, assigns a name for the Cloud Map service, and a list of aliases (endpoints) and ports for client applications to refer to this service.

        This is a convenience method that creates an instance of the ServiceConnectService.Builder avoiding the need to create one manually via ServiceConnectService.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #services(List).

        Parameters:
        services - a consumer that will call methods on ServiceConnectService.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #services(java.util.Collection)
      • logConfiguration

        ServiceConnectConfiguration.Builder logConfiguration​(LogConfiguration logConfiguration)
        Sets the value of the LogConfiguration property for this object.
        Parameters:
        logConfiguration - The new value for the LogConfiguration property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.