/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the securityhub-2018-10-26.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.SecurityHub.Model { /// /// Information about the build environment for this build project. /// public partial class AwsCodeBuildProjectEnvironment { private string _certificate; private List _environmentVariables = new List(); private string _imagePullCredentialsType; private bool? _privilegedMode; private AwsCodeBuildProjectEnvironmentRegistryCredential _registryCredential; private string _type; /// /// Gets and sets the property Certificate. /// /// The certificate to use with this build project. /// /// public string Certificate { get { return this._certificate; } set { this._certificate = value; } } // Check to see if Certificate property is set internal bool IsSetCertificate() { return this._certificate != null; } /// /// Gets and sets the property EnvironmentVariables. /// /// A set of environment variables to make available to builds for the build project. /// /// public List EnvironmentVariables { get { return this._environmentVariables; } set { this._environmentVariables = value; } } // Check to see if EnvironmentVariables property is set internal bool IsSetEnvironmentVariables() { return this._environmentVariables != null && this._environmentVariables.Count > 0; } /// /// Gets and sets the property ImagePullCredentialsType. /// /// The type of credentials CodeBuild uses to pull images in your build. /// /// /// /// Valid values: /// ///
  • /// /// CODEBUILD specifies that CodeBuild uses its own credentials. This requires /// that you modify your ECR repository policy to trust the CodeBuild service principal. /// ///
  • /// /// SERVICE_ROLE specifies that CodeBuild uses your build project's service /// role. /// ///
/// /// When you use a cross-account or private registry image, you must use SERVICE_ROLE /// credentials. When you use an CodeBuild curated image, you must use CODEBUILD /// credentials. /// ///
public string ImagePullCredentialsType { get { return this._imagePullCredentialsType; } set { this._imagePullCredentialsType = value; } } // Check to see if ImagePullCredentialsType property is set internal bool IsSetImagePullCredentialsType() { return this._imagePullCredentialsType != null; } /// /// Gets and sets the property PrivilegedMode. /// /// Whether to allow the Docker daemon to run inside a Docker container. Set to true /// if the build project is used to build Docker images. /// /// public bool PrivilegedMode { get { return this._privilegedMode.GetValueOrDefault(); } set { this._privilegedMode = value; } } // Check to see if PrivilegedMode property is set internal bool IsSetPrivilegedMode() { return this._privilegedMode.HasValue; } /// /// Gets and sets the property RegistryCredential. /// /// The credentials for access to a private registry. /// /// public AwsCodeBuildProjectEnvironmentRegistryCredential RegistryCredential { get { return this._registryCredential; } set { this._registryCredential = value; } } // Check to see if RegistryCredential property is set internal bool IsSetRegistryCredential() { return this._registryCredential != null; } /// /// Gets and sets the property Type. /// /// The type of build environment to use for related builds. /// /// /// /// The environment type ARM_CONTAINER is available only in Regions US East /// (N. Virginia), US East (Ohio), US West (Oregon), Europe (Ireland), Asia Pacific (Mumbai), /// Asia Pacific (Tokyo), Asia Pacific (Sydney), and Europe (Frankfurt). /// /// /// /// The environment type LINUX_CONTAINER with compute type build.general1.2xlarge /// is available only in Regions US East (N. Virginia), US East (N. Virginia), US West /// (Oregon), Canada (Central), Europe (Ireland), Europe (London), Europe (Frankfurt), /// Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific /// (Sydney), China (Beijing), and China (Ningxia). /// /// /// /// The environment type LINUX_GPU_CONTAINER is available only in Regions /// US East (N. Virginia), US East (N. Virginia), US West (Oregon), Canada (Central), /// Europe (Ireland), Europe (London), Europe (Frankfurt), Asia Pacific (Tokyo), Asia /// Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney), China (Beijing), /// and China (Ningxia). /// /// /// /// Valid values: WINDOWS_CONTAINER | LINUX_CONTAINER | LINUX_GPU_CONTAINER /// | ARM_CONTAINER /// /// public string Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }