Class EnvironmentAccountConnection

    • Method Detail

      • arn

        public final String arn()

        The Amazon Resource Name (ARN) of the environment account connection.

        Returns:
        The Amazon Resource Name (ARN) of the environment account connection.
      • codebuildRoleArn

        public final String codebuildRoleArn()

        The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources using CodeBuild-based provisioning in the associated environment account.

        Returns:
        The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources using CodeBuild-based provisioning in the associated environment account.
      • componentRoleArn

        public final String componentRoleArn()

        The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in the associated environment account. It determines the scope of infrastructure that a component can provision in the account.

        The environment account connection must have a componentRoleArn to allow directly defined components to be associated with any environments running in the account.

        For more information about components, see Proton components in the Proton User Guide.

        Returns:
        The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in the associated environment account. It determines the scope of infrastructure that a component can provision in the account.

        The environment account connection must have a componentRoleArn to allow directly defined components to be associated with any environments running in the account.

        For more information about components, see Proton components in the Proton User Guide.

      • environmentAccountId

        public final String environmentAccountId()

        The environment account that's connected to the environment account connection.

        Returns:
        The environment account that's connected to the environment account connection.
      • environmentName

        public final String environmentName()

        The name of the environment that's associated with the environment account connection.

        Returns:
        The name of the environment that's associated with the environment account connection.
      • id

        public final String id()

        The ID of the environment account connection.

        Returns:
        The ID of the environment account connection.
      • lastModifiedAt

        public final Instant lastModifiedAt()

        The time when the environment account connection was last modified.

        Returns:
        The time when the environment account connection was last modified.
      • managementAccountId

        public final String managementAccountId()

        The ID of the management account that's connected to the environment account connection.

        Returns:
        The ID of the management account that's connected to the environment account connection.
      • requestedAt

        public final Instant requestedAt()

        The time when the environment account connection request was made.

        Returns:
        The time when the environment account connection request was made.
      • roleArn

        public final String roleArn()

        The IAM service role that's associated with the environment account connection.

        Returns:
        The IAM service role that's associated with the environment account connection.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)