Struct aws_sdk_codebuild::model::build_artifacts::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for BuildArtifacts
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn location(self, input: impl Into<String>) -> Self
pub fn location(self, input: impl Into<String>) -> Self
Information about the location of the build artifacts.
sourcepub fn set_location(self, input: Option<String>) -> Self
pub fn set_location(self, input: Option<String>) -> Self
Information about the location of the build artifacts.
sourcepub fn sha256sum(self, input: impl Into<String>) -> Self
pub fn sha256sum(self, input: impl Into<String>) -> Self
The SHA-256 hash of the build artifact.
You can use this hash along with a checksum tool to confirm file integrity and authenticity.
This value is available only if the build project's packaging
value is set to ZIP
.
sourcepub fn set_sha256sum(self, input: Option<String>) -> Self
pub fn set_sha256sum(self, input: Option<String>) -> Self
The SHA-256 hash of the build artifact.
You can use this hash along with a checksum tool to confirm file integrity and authenticity.
This value is available only if the build project's packaging
value is set to ZIP
.
sourcepub fn md5sum(self, input: impl Into<String>) -> Self
pub fn md5sum(self, input: impl Into<String>) -> Self
The MD5 hash of the build artifact.
You can use this hash along with a checksum tool to confirm file integrity and authenticity.
This value is available only if the build project's packaging
value is set to ZIP
.
sourcepub fn set_md5sum(self, input: Option<String>) -> Self
pub fn set_md5sum(self, input: Option<String>) -> Self
The MD5 hash of the build artifact.
You can use this hash along with a checksum tool to confirm file integrity and authenticity.
This value is available only if the build project's packaging
value is set to ZIP
.
sourcepub fn override_artifact_name(self, input: bool) -> Self
pub fn override_artifact_name(self, input: bool) -> Self
If this flag is set, a name specified in the buildspec file overrides the artifact name. The name specified in a buildspec file is calculated at build time and uses the Shell Command Language. For example, you can append a date and time to your artifact name so that it is always unique.
sourcepub fn set_override_artifact_name(self, input: Option<bool>) -> Self
pub fn set_override_artifact_name(self, input: Option<bool>) -> Self
If this flag is set, a name specified in the buildspec file overrides the artifact name. The name specified in a buildspec file is calculated at build time and uses the Shell Command Language. For example, you can append a date and time to your artifact name so that it is always unique.
sourcepub fn encryption_disabled(self, input: bool) -> Self
pub fn encryption_disabled(self, input: bool) -> Self
Information that tells you if encryption for build artifacts is disabled.
sourcepub fn set_encryption_disabled(self, input: Option<bool>) -> Self
pub fn set_encryption_disabled(self, input: Option<bool>) -> Self
Information that tells you if encryption for build artifacts is disabled.
sourcepub fn artifact_identifier(self, input: impl Into<String>) -> Self
pub fn artifact_identifier(self, input: impl Into<String>) -> Self
An identifier for this artifact definition.
sourcepub fn set_artifact_identifier(self, input: Option<String>) -> Self
pub fn set_artifact_identifier(self, input: Option<String>) -> Self
An identifier for this artifact definition.
sourcepub fn bucket_owner_access(self, input: BucketOwnerAccess) -> Self
pub fn bucket_owner_access(self, input: BucketOwnerAccess) -> Self
Specifies the bucket owner's access for objects that another account uploads to their Amazon S3 bucket. By default, only the account that uploads the objects to the bucket has access to these objects. This property allows you to give the bucket owner access to these objects.
To use this property, your CodeBuild service role must have the s3:PutBucketAcl
permission. This permission allows CodeBuild to modify the access control list for the bucket.
This property can be one of the following values:
- NONE
-
The bucket owner does not have access to the objects. This is the default.
- READ_ONLY
-
The bucket owner has read-only access to the objects. The uploading account retains ownership of the objects.
- FULL
-
The bucket owner has full access to the objects. Object ownership is determined by the following criteria:
-
If the bucket is configured with the Bucket owner preferred setting, the bucket owner owns the objects. The uploading account will have object access as specified by the bucket's policy.
-
Otherwise, the uploading account retains ownership of the objects.
For more information about Amazon S3 object ownership, see Controlling ownership of uploaded objects using S3 Object Ownership in the Amazon Simple Storage Service User Guide.
-
sourcepub fn set_bucket_owner_access(self, input: Option<BucketOwnerAccess>) -> Self
pub fn set_bucket_owner_access(self, input: Option<BucketOwnerAccess>) -> Self
Specifies the bucket owner's access for objects that another account uploads to their Amazon S3 bucket. By default, only the account that uploads the objects to the bucket has access to these objects. This property allows you to give the bucket owner access to these objects.
To use this property, your CodeBuild service role must have the s3:PutBucketAcl
permission. This permission allows CodeBuild to modify the access control list for the bucket.
This property can be one of the following values:
- NONE
-
The bucket owner does not have access to the objects. This is the default.
- READ_ONLY
-
The bucket owner has read-only access to the objects. The uploading account retains ownership of the objects.
- FULL
-
The bucket owner has full access to the objects. Object ownership is determined by the following criteria:
-
If the bucket is configured with the Bucket owner preferred setting, the bucket owner owns the objects. The uploading account will have object access as specified by the bucket's policy.
-
Otherwise, the uploading account retains ownership of the objects.
For more information about Amazon S3 object ownership, see Controlling ownership of uploaded objects using S3 Object Ownership in the Amazon Simple Storage Service User Guide.
-
sourcepub fn build(self) -> BuildArtifacts
pub fn build(self) -> BuildArtifacts
Consumes the builder and constructs a BuildArtifacts
.