Interface CreateCodeInterpreterRequest.Builder

  • Method Details

    • name

      The name of the code interpreter. The name must be unique within your account.

      Parameters:
      name - The name of the code interpreter. The name must be unique within your account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      CreateCodeInterpreterRequest.Builder description(String description)

      The description of the code interpreter.

      Parameters:
      description - The description of the code interpreter.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionRoleArn

      CreateCodeInterpreterRequest.Builder executionRoleArn(String executionRoleArn)

      The Amazon Resource Name (ARN) of the IAM role that provides permissions for the code interpreter to access Amazon Web Services services.

      Parameters:
      executionRoleArn - The Amazon Resource Name (ARN) of the IAM role that provides permissions for the code interpreter to access Amazon Web Services services.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkConfiguration

      The network configuration for the code interpreter. This configuration specifies the network mode for the code interpreter.

      Parameters:
      networkConfiguration - The network configuration for the code interpreter. This configuration specifies the network mode for the code interpreter.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkConfiguration

      The network configuration for the code interpreter. This configuration specifies the network mode for the code interpreter.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to networkConfiguration(CodeInterpreterNetworkConfiguration).

      Parameters:
      networkConfiguration - a consumer that will call methods on CodeInterpreterNetworkConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • certificates

      A list of certificates to install in the code interpreter.

      Parameters:
      certificates - A list of certificates to install in the code interpreter.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • certificates

      CreateCodeInterpreterRequest.Builder certificates(Certificate... certificates)

      A list of certificates to install in the code interpreter.

      Parameters:
      certificates - A list of certificates to install in the code interpreter.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • certificates

      A list of certificates to install in the code interpreter.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to certificates(List<Certificate>).

      Parameters:
      certificates - a consumer that will call methods on Certificate.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • filesystemConfigurations

      CreateCodeInterpreterRequest.Builder filesystemConfigurations(Collection<ToolsFileSystemConfiguration> filesystemConfigurations)

      The file system configurations to mount into the code interpreter. Use these configurations to mount your own Amazon Simple Storage Service (Amazon S3) Files or Amazon Elastic File System (Amazon EFS) access points. Your sessions can then access your data. If you don't specify this field, no file systems are mounted.

      Parameters:
      filesystemConfigurations - The file system configurations to mount into the code interpreter. Use these configurations to mount your own Amazon Simple Storage Service (Amazon S3) Files or Amazon Elastic File System (Amazon EFS) access points. Your sessions can then access your data. If you don't specify this field, no file systems are mounted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filesystemConfigurations

      CreateCodeInterpreterRequest.Builder filesystemConfigurations(ToolsFileSystemConfiguration... filesystemConfigurations)

      The file system configurations to mount into the code interpreter. Use these configurations to mount your own Amazon Simple Storage Service (Amazon S3) Files or Amazon Elastic File System (Amazon EFS) access points. Your sessions can then access your data. If you don't specify this field, no file systems are mounted.

      Parameters:
      filesystemConfigurations - The file system configurations to mount into the code interpreter. Use these configurations to mount your own Amazon Simple Storage Service (Amazon S3) Files or Amazon Elastic File System (Amazon EFS) access points. Your sessions can then access your data. If you don't specify this field, no file systems are mounted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filesystemConfigurations

      CreateCodeInterpreterRequest.Builder filesystemConfigurations(Consumer<ToolsFileSystemConfiguration.Builder>... filesystemConfigurations)

      The file system configurations to mount into the code interpreter. Use these configurations to mount your own Amazon Simple Storage Service (Amazon S3) Files or Amazon Elastic File System (Amazon EFS) access points. Your sessions can then access your data. If you don't specify this field, no file systems are mounted.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to filesystemConfigurations(List<ToolsFileSystemConfiguration>).

      Parameters:
      filesystemConfigurations - a consumer that will call methods on ToolsFileSystemConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clientToken

      CreateCodeInterpreterRequest.Builder clientToken(String clientToken)

      A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock AgentCore ignores the request but does not return an error.

      Parameters:
      clientToken - A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock AgentCore ignores the request but does not return an error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      A map of tag keys and values to assign to the code interpreter. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.

      Parameters:
      tags - A map of tag keys and values to assign to the code interpreter. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CreateCodeInterpreterRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.