Struct aws_sdk_codebuild::types::BuildArtifacts
source · #[non_exhaustive]pub struct BuildArtifacts {
pub location: Option<String>,
pub sha256_sum: Option<String>,
pub md5_sum: Option<String>,
pub override_artifact_name: Option<bool>,
pub encryption_disabled: Option<bool>,
pub artifact_identifier: Option<String>,
pub bucket_owner_access: Option<BucketOwnerAccess>,
}
Expand description
Information about build output artifacts.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.location: Option<String>
Information about the location of the build artifacts.
sha256_sum: Option<String>
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
.
md5_sum: Option<String>
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
.
override_artifact_name: Option<bool>
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.
encryption_disabled: Option<bool>
Information that tells you if encryption for build artifacts is disabled.
artifact_identifier: Option<String>
An identifier for this artifact definition.
bucket_owner_access: Option<BucketOwnerAccess>
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.
-
Implementations§
source§impl BuildArtifacts
impl BuildArtifacts
sourcepub fn sha256_sum(&self) -> Option<&str>
pub fn sha256_sum(&self) -> Option<&str>
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 md5_sum(&self) -> Option<&str>
pub fn md5_sum(&self) -> Option<&str>
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) -> Option<bool>
pub fn override_artifact_name(&self) -> Option<bool>
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) -> Option<bool>
pub fn encryption_disabled(&self) -> Option<bool>
Information that tells you if encryption for build artifacts is disabled.
sourcepub fn artifact_identifier(&self) -> Option<&str>
pub fn artifact_identifier(&self) -> Option<&str>
An identifier for this artifact definition.
sourcepub fn bucket_owner_access(&self) -> Option<&BucketOwnerAccess>
pub fn bucket_owner_access(&self) -> Option<&BucketOwnerAccess>
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.
-
source§impl BuildArtifacts
impl BuildArtifacts
sourcepub fn builder() -> BuildArtifactsBuilder
pub fn builder() -> BuildArtifactsBuilder
Creates a new builder-style object to manufacture BuildArtifacts
.
Trait Implementations§
source§impl Clone for BuildArtifacts
impl Clone for BuildArtifacts
source§fn clone(&self) -> BuildArtifacts
fn clone(&self) -> BuildArtifacts
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BuildArtifacts
impl Debug for BuildArtifacts
source§impl PartialEq for BuildArtifacts
impl PartialEq for BuildArtifacts
source§fn eq(&self, other: &BuildArtifacts) -> bool
fn eq(&self, other: &BuildArtifacts) -> bool
self
and other
values to be equal, and is used
by ==
.