com.pulumi.aws.sagemaker.outputs.CodeRepositoryGitConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.sagemaker.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CodeRepositoryGitConfig {
/**
* @return The default branch for the Git repository.
*
*/
private @Nullable String branch;
/**
* @return The URL where the Git repository is located.
*
*/
private String repositoryUrl;
/**
* @return The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository. The secret must have a staging label of AWSCURRENT and must be in the following format: `{"username": UserName, "password": Password}`
*
*/
private @Nullable String secretArn;
private CodeRepositoryGitConfig() {}
/**
* @return The default branch for the Git repository.
*
*/
public Optional branch() {
return Optional.ofNullable(this.branch);
}
/**
* @return The URL where the Git repository is located.
*
*/
public String repositoryUrl() {
return this.repositoryUrl;
}
/**
* @return The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository. The secret must have a staging label of AWSCURRENT and must be in the following format: `{"username": UserName, "password": Password}`
*
*/
public Optional secretArn() {
return Optional.ofNullable(this.secretArn);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CodeRepositoryGitConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String branch;
private String repositoryUrl;
private @Nullable String secretArn;
public Builder() {}
public Builder(CodeRepositoryGitConfig defaults) {
Objects.requireNonNull(defaults);
this.branch = defaults.branch;
this.repositoryUrl = defaults.repositoryUrl;
this.secretArn = defaults.secretArn;
}
@CustomType.Setter
public Builder branch(@Nullable String branch) {
this.branch = branch;
return this;
}
@CustomType.Setter
public Builder repositoryUrl(String repositoryUrl) {
if (repositoryUrl == null) {
throw new MissingRequiredPropertyException("CodeRepositoryGitConfig", "repositoryUrl");
}
this.repositoryUrl = repositoryUrl;
return this;
}
@CustomType.Setter
public Builder secretArn(@Nullable String secretArn) {
this.secretArn = secretArn;
return this;
}
public CodeRepositoryGitConfig build() {
final var _resultValue = new CodeRepositoryGitConfig();
_resultValue.branch = branch;
_resultValue.repositoryUrl = repositoryUrl;
_resultValue.secretArn = secretArn;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy