Chilkat Online Tools

CreateProject Swift3 Example

AWS CodeBuild

func chilkatTest() {
    // This example requires the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    let rest = CkoRest()!
    var success: Bool

    let authAws = CkoAuthAws()!
    authAws.accessKey = "AWS_ACCESS_KEY"
    authAws.secretKey = "AWS_SECRET_KEY"

    // Don't forget to change the region to your particular region. (Also make the same change in the call to Connect below.)
    authAws.region = "us-west-2"
    authAws.serviceName = "codebuild"
    // SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
    rest.setAuthAws(authAws)

    // URL: https://codebuild.us-west-2.amazonaws.com/
    // Use the same region as specified above.
    success = rest.connect("codebuild.us-west-2.amazonaws.com", port: 443, tls: true, autoReconnect: true)
    if success != true {
        print("ConnectFailReason: \(rest.connectFailReason.intValue)")
        print("\(rest.lastErrorText!)")
        return
    }

    // The following code creates the JSON request body.
    // The JSON created by this code is shown below.

    // Use this online tool to generate code from sample JSON:
    // Generate Code to Create JSON

    let json = CkoJsonObject()!
    json.update("artifacts.artifactIdentifier", value: "string")
    json.update("artifacts.bucketOwnerAccess", value: "string")
    json.updateInt("artifacts.encryptionDisabled", value: 123)
    json.update("artifacts.location", value: "string")
    json.update("artifacts.name", value: "string")
    json.update("artifacts.namespaceType", value: "string")
    json.updateInt("artifacts.overrideArtifactName", value: 123)
    json.update("artifacts.packaging", value: "string")
    json.update("artifacts.path", value: "string")
    json.update("artifacts.type", value: "string")
    json.updateInt("badgeEnabled", value: 123)
    json.update("buildBatchConfig.batchReportMode", value: "string")
    json.updateInt("buildBatchConfig.combineArtifacts", value: 123)
    json.update("buildBatchConfig.restrictions.computeTypesAllowed[0]", value: "string")
    json.updateInt("buildBatchConfig.restrictions.maximumBuildsAllowed", value: 123)
    json.update("buildBatchConfig.serviceRole", value: "string")
    json.updateInt("buildBatchConfig.timeoutInMins", value: 123)
    json.update("cache.location", value: "string")
    json.update("cache.modes[0]", value: "string")
    json.update("cache.type", value: "string")
    json.updateInt("concurrentBuildLimit", value: 123)
    json.update("description", value: "string")
    json.update("encryptionKey", value: "string")
    json.update("environment.certificate", value: "string")
    json.update("environment.computeType", value: "string")
    json.update("environment.environmentVariables[0].name", value: "string")
    json.update("environment.environmentVariables[0].type", value: "string")
    json.update("environment.environmentVariables[0].value", value: "string")
    json.update("environment.image", value: "string")
    json.update("environment.imagePullCredentialsType", value: "string")
    json.updateInt("environment.privilegedMode", value: 123)
    json.update("environment.registryCredential.credential", value: "string")
    json.update("environment.registryCredential.credentialProvider", value: "string")
    json.update("environment.type", value: "string")
    json.update("fileSystemLocations[0].identifier", value: "string")
    json.update("fileSystemLocations[0].location", value: "string")
    json.update("fileSystemLocations[0].mountOptions", value: "string")
    json.update("fileSystemLocations[0].mountPoint", value: "string")
    json.update("fileSystemLocations[0].type", value: "string")
    json.update("logsConfig.cloudWatchLogs.groupName", value: "string")
    json.update("logsConfig.cloudWatchLogs.status", value: "string")
    json.update("logsConfig.cloudWatchLogs.streamName", value: "string")
    json.update("logsConfig.s3Logs.bucketOwnerAccess", value: "string")
    json.updateInt("logsConfig.s3Logs.encryptionDisabled", value: 123)
    json.update("logsConfig.s3Logs.location", value: "string")
    json.update("logsConfig.s3Logs.status", value: "string")
    json.update("name", value: "string")
    json.updateInt("queuedTimeoutInMinutes", value: 123)
    json.update("secondaryArtifacts[0].artifactIdentifier", value: "string")
    json.update("secondaryArtifacts[0].bucketOwnerAccess", value: "string")
    json.updateInt("secondaryArtifacts[0].encryptionDisabled", value: 123)
    json.update("secondaryArtifacts[0].location", value: "string")
    json.update("secondaryArtifacts[0].name", value: "string")
    json.update("secondaryArtifacts[0].namespaceType", value: "string")
    json.updateInt("secondaryArtifacts[0].overrideArtifactName", value: 123)
    json.update("secondaryArtifacts[0].packaging", value: "string")
    json.update("secondaryArtifacts[0].path", value: "string")
    json.update("secondaryArtifacts[0].type", value: "string")
    json.update("secondarySources[0].auth.resource", value: "string")
    json.update("secondarySources[0].auth.type", value: "string")
    json.update("secondarySources[0].buildspec", value: "string")
    json.update("secondarySources[0].buildStatusConfig.context", value: "string")
    json.update("secondarySources[0].buildStatusConfig.targetUrl", value: "string")
    json.updateInt("secondarySources[0].gitCloneDepth", value: 123)
    json.updateInt("secondarySources[0].gitSubmodulesConfig.fetchSubmodules", value: 123)
    json.updateInt("secondarySources[0].insecureSsl", value: 123)
    json.update("secondarySources[0].location", value: "string")
    json.updateInt("secondarySources[0].reportBuildStatus", value: 123)
    json.update("secondarySources[0].sourceIdentifier", value: "string")
    json.update("secondarySources[0].type", value: "string")
    json.update("secondarySourceVersions[0].sourceIdentifier", value: "string")
    json.update("secondarySourceVersions[0].sourceVersion", value: "string")
    json.update("serviceRole", value: "string")
    json.update("source.auth.resource", value: "string")
    json.update("source.auth.type", value: "string")
    json.update("source.buildspec", value: "string")
    json.update("source.buildStatusConfig.context", value: "string")
    json.update("source.buildStatusConfig.targetUrl", value: "string")
    json.updateInt("source.gitCloneDepth", value: 123)
    json.updateInt("source.gitSubmodulesConfig.fetchSubmodules", value: 123)
    json.updateInt("source.insecureSsl", value: 123)
    json.update("source.location", value: "string")
    json.updateInt("source.reportBuildStatus", value: 123)
    json.update("source.sourceIdentifier", value: "string")
    json.update("source.type", value: "string")
    json.update("sourceVersion", value: "string")
    json.update("tags[0].key", value: "string")
    json.update("tags[0].value", value: "string")
    json.updateInt("timeoutInMinutes", value: 123)
    json.update("vpcConfig.securityGroupIds[0]", value: "string")
    json.update("vpcConfig.subnets[0]", value: "string")
    json.update("vpcConfig.vpcId", value: "string")

    // The JSON request body created by the above code:

    // {
    //   "artifacts": {
    //     "artifactIdentifier": "string",
    //     "bucketOwnerAccess": "string",
    //     "encryptionDisabled": boolean,
    //     "location": "string",
    //     "name": "string",
    //     "namespaceType": "string",
    //     "overrideArtifactName": boolean,
    //     "packaging": "string",
    //     "path": "string",
    //     "type": "string"
    //   },
    //   "badgeEnabled": boolean,
    //   "buildBatchConfig": {
    //     "batchReportMode": "string",
    //     "combineArtifacts": boolean,
    //     "restrictions": {
    //       "computeTypesAllowed": [
    //         "string"
    //       ],
    //       "maximumBuildsAllowed": number
    //     },
    //     "serviceRole": "string",
    //     "timeoutInMins": number
    //   },
    //   "cache": {
    //     "location": "string",
    //     "modes": [
    //       "string"
    //     ],
    //     "type": "string"
    //   },
    //   "concurrentBuildLimit": number,
    //   "description": "string",
    //   "encryptionKey": "string",
    //   "environment": {
    //     "certificate": "string",
    //     "computeType": "string",
    //     "environmentVariables": [
    //       {
    //         "name": "string",
    //         "type": "string",
    //         "value": "string"
    //       }
    //     ],
    //     "image": "string",
    //     "imagePullCredentialsType": "string",
    //     "privilegedMode": boolean,
    //     "registryCredential": {
    //       "credential": "string",
    //       "credentialProvider": "string"
    //     },
    //     "type": "string"
    //   },
    //   "fileSystemLocations": [
    //     {
    //       "identifier": "string",
    //       "location": "string",
    //       "mountOptions": "string",
    //       "mountPoint": "string",
    //       "type": "string"
    //     }
    //   ],
    //   "logsConfig": {
    //     "cloudWatchLogs": {
    //       "groupName": "string",
    //       "status": "string",
    //       "streamName": "string"
    //     },
    //     "s3Logs": {
    //       "bucketOwnerAccess": "string",
    //       "encryptionDisabled": boolean,
    //       "location": "string",
    //       "status": "string"
    //     }
    //   },
    //   "name": "string",
    //   "queuedTimeoutInMinutes": number,
    //   "secondaryArtifacts": [
    //     {
    //       "artifactIdentifier": "string",
    //       "bucketOwnerAccess": "string",
    //       "encryptionDisabled": boolean,
    //       "location": "string",
    //       "name": "string",
    //       "namespaceType": "string",
    //       "overrideArtifactName": boolean,
    //       "packaging": "string",
    //       "path": "string",
    //       "type": "string"
    //     }
    //   ],
    //   "secondarySources": [
    //     {
    //       "auth": {
    //         "resource": "string",
    //         "type": "string"
    //       },
    //       "buildspec": "string",
    //       "buildStatusConfig": {
    //         "context": "string",
    //         "targetUrl": "string"
    //       },
    //       "gitCloneDepth": number,
    //       "gitSubmodulesConfig": {
    //         "fetchSubmodules": boolean
    //       },
    //       "insecureSsl": boolean,
    //       "location": "string",
    //       "reportBuildStatus": boolean,
    //       "sourceIdentifier": "string",
    //       "type": "string"
    //     }
    //   ],
    //   "secondarySourceVersions": [
    //     {
    //       "sourceIdentifier": "string",
    //       "sourceVersion": "string"
    //     }
    //   ],
    //   "serviceRole": "string",
    //   "source": {
    //     "auth": {
    //       "resource": "string",
    //       "type": "string"
    //     },
    //     "buildspec": "string",
    //     "buildStatusConfig": {
    //       "context": "string",
    //       "targetUrl": "string"
    //     },
    //     "gitCloneDepth": number,
    //     "gitSubmodulesConfig": {
    //       "fetchSubmodules": boolean
    //     },
    //     "insecureSsl": boolean,
    //     "location": "string",
    //     "reportBuildStatus": boolean,
    //     "sourceIdentifier": "string",
    //     "type": "string"
    //   },
    //   "sourceVersion": "string",
    //   "tags": [
    //     {
    //       "key": "string",
    //       "value": "string"
    //     }
    //   ],
    //   "timeoutInMinutes": number,
    //   "vpcConfig": {
    //     "securityGroupIds": [
    //       "string"
    //     ],
    //     "subnets": [
    //       "string"
    //     ],
    //     "vpcId": "string"
    //   }
    // }

    rest.addHeader("Content-Type", value: "application/x-amz-json-1.1")
    rest.addHeader("X-Amz-Target", value: "CodeBuild_20161006.CreateProject")

    let sbRequestBody = CkoStringBuilder()!
    json.emitSb(sbRequestBody)
    let sbResponseBody = CkoStringBuilder()!
    success = rest.fullRequestSb("POST", uriPath: "/", requestBody: sbRequestBody, responseBody: sbResponseBody)
    if success != true {
        print("\(rest.lastErrorText!)")
        return
    }

    var respStatusCode: Int = rest.responseStatusCode.intValue
    print("response status code = \(respStatusCode)")
    if respStatusCode != 200 {
        print("Response Header:")
        print("\(rest.responseHeader!)")
        print("Response Body:")
        print("\(sbResponseBody.getAsString()!)")
        return
    }

    let jResp = CkoJsonObject()!
    jResp.loadSb(sbResponseBody)

    // The following code parses the JSON response.
    // A sample JSON response is shown below the sample code.

    // Use this online tool to generate parsing code from sample JSON:
    // Generate Parsing Code from JSON

    var strVal: String?
    var name: String?
    var v_type: String?
    var value: String?
    var identifier: String?
    var location: String?
    var mountOptions: String?
    var mountPoint: String?
    var artifactIdentifier: String?
    var bucketOwnerAccess: String?
    var encryptionDisabled: Int
    var namespaceType: String?
    var overrideArtifactName: Int
    var packaging: String?
    var path: String?
    var authResource: String?
    var authType: String?
    var buildspec: String?
    var buildStatusConfigContext: String?
    var buildStatusConfigTargetUrl: String?
    var gitCloneDepth: Int
    var gitSubmodulesConfigFetchSubmodules: Int
    var insecureSsl: Int
    var reportBuildStatus: Int
    var sourceIdentifier: String?
    var sourceVersion: String?
    var key: String?
    var j: Int
    var count_j: Int
    var excludeMatchedPattern: Int
    var pattern: String?

    var Arn: String? = jResp.string(of: "project.arn")
    var ArtifactIdentifier: String? = jResp.string(of: "project.artifacts.artifactIdentifier")
    var BucketOwnerAccess: String? = jResp.string(of: "project.artifacts.bucketOwnerAccess")
    var EncryptionDisabled: Int = jResp.int(of: "project.artifacts.encryptionDisabled").intValue
    var Location: String? = jResp.string(of: "project.artifacts.location")
    var Name: String? = jResp.string(of: "project.artifacts.name")
    var NamespaceType: String? = jResp.string(of: "project.artifacts.namespaceType")
    var OverrideArtifactName: Int = jResp.int(of: "project.artifacts.overrideArtifactName").intValue
    var Packaging: String? = jResp.string(of: "project.artifacts.packaging")
    var Path: String? = jResp.string(of: "project.artifacts.path")
    var v_Type: String? = jResp.string(of: "project.artifacts.type")
    var BadgeEnabled: Int = jResp.int(of: "project.badge.badgeEnabled").intValue
    var BadgeRequestUrl: String? = jResp.string(of: "project.badge.badgeRequestUrl")
    var BatchReportMode: String? = jResp.string(of: "project.buildBatchConfig.batchReportMode")
    var CombineArtifacts: Int = jResp.int(of: "project.buildBatchConfig.combineArtifacts").intValue
    var MaximumBuildsAllowed: Int = jResp.int(of: "project.buildBatchConfig.restrictions.maximumBuildsAllowed").intValue
    var ServiceRole: String? = jResp.string(of: "project.buildBatchConfig.serviceRole")
    var TimeoutInMins: Int = jResp.int(of: "project.buildBatchConfig.timeoutInMins").intValue
    var CacheLocation: String? = jResp.string(of: "project.cache.location")
    var CacheType: String? = jResp.string(of: "project.cache.type")
    var ConcurrentBuildLimit: Int = jResp.int(of: "project.concurrentBuildLimit").intValue
    var Created: Int = jResp.int(of: "project.created").intValue
    var Description: String? = jResp.string(of: "project.description")
    var EncryptionKey: String? = jResp.string(of: "project.encryptionKey")
    var Certificate: String? = jResp.string(of: "project.environment.certificate")
    var ComputeType: String? = jResp.string(of: "project.environment.computeType")
    var Image: String? = jResp.string(of: "project.environment.image")
    var ImagePullCredentialsType: String? = jResp.string(of: "project.environment.imagePullCredentialsType")
    var PrivilegedMode: Int = jResp.int(of: "project.environment.privilegedMode").intValue
    var Credential: String? = jResp.string(of: "project.environment.registryCredential.credential")
    var CredentialProvider: String? = jResp.string(of: "project.environment.registryCredential.credentialProvider")
    var EnvironmentType: String? = jResp.string(of: "project.environment.type")
    var LastModified: Int = jResp.int(of: "project.lastModified").intValue
    var GroupName: String? = jResp.string(of: "project.logsConfig.cloudWatchLogs.groupName")
    var Status: String? = jResp.string(of: "project.logsConfig.cloudWatchLogs.status")
    var StreamName: String? = jResp.string(of: "project.logsConfig.cloudWatchLogs.streamName")
    var S3LogsBucketOwnerAccess: String? = jResp.string(of: "project.logsConfig.s3Logs.bucketOwnerAccess")
    var S3LogsEncryptionDisabled: Int = jResp.int(of: "project.logsConfig.s3Logs.encryptionDisabled").intValue
    var S3LogsLocation: String? = jResp.string(of: "project.logsConfig.s3Logs.location")
    var S3LogsStatus: String? = jResp.string(of: "project.logsConfig.s3Logs.status")
    var projectName: String? = jResp.string(of: "project.name")
    var ProjectVisibility: String? = jResp.string(of: "project.projectVisibility")
    var PublicProjectAlias: String? = jResp.string(of: "project.publicProjectAlias")
    var QueuedTimeoutInMinutes: Int = jResp.int(of: "project.queuedTimeoutInMinutes").intValue
    var ResourceAccessRole: String? = jResp.string(of: "project.resourceAccessRole")
    var projectServiceRole: String? = jResp.string(of: "project.serviceRole")
    var Resource: String? = jResp.string(of: "project.source.auth.resource")
    var AuthType: String? = jResp.string(of: "project.source.auth.type")
    var Buildspec: String? = jResp.string(of: "project.source.buildspec")
    var Context: String? = jResp.string(of: "project.source.buildStatusConfig.context")
    var TargetUrl: String? = jResp.string(of: "project.source.buildStatusConfig.targetUrl")
    var GitCloneDepth: Int = jResp.int(of: "project.source.gitCloneDepth").intValue
    var FetchSubmodules: Int = jResp.int(of: "project.source.gitSubmodulesConfig.fetchSubmodules").intValue
    var InsecureSsl: Int = jResp.int(of: "project.source.insecureSsl").intValue
    var SourceLocation: String? = jResp.string(of: "project.source.location")
    var ReportBuildStatus: Int = jResp.int(of: "project.source.reportBuildStatus").intValue
    var SourceIdentifier: String? = jResp.string(of: "project.source.sourceIdentifier")
    var SourceType: String? = jResp.string(of: "project.source.type")
    var SourceVersion: String? = jResp.string(of: "project.sourceVersion")
    var TimeoutInMinutes: Int = jResp.int(of: "project.timeoutInMinutes").intValue
    var VpcId: String? = jResp.string(of: "project.vpcConfig.vpcId")
    var BranchFilter: String? = jResp.string(of: "project.webhook.branchFilter")
    var BuildType: String? = jResp.string(of: "project.webhook.buildType")
    var LastModifiedSecret: Int = jResp.int(of: "project.webhook.lastModifiedSecret").intValue
    var PayloadUrl: String? = jResp.string(of: "project.webhook.payloadUrl")
    var Secret: String? = jResp.string(of: "project.webhook.secret")
    var v_Url: String? = jResp.string(of: "project.webhook.url")
    var i: Int = 0
    var count_i: Int = jResp.size(ofArray: "project.buildBatchConfig.restrictions.computeTypesAllowed").intValue
    while i < count_i {
        jResp.i = i
        strVal = jResp.string(of: "project.buildBatchConfig.restrictions.computeTypesAllowed[i]")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "project.cache.modes").intValue
    while i < count_i {
        jResp.i = i
        strVal = jResp.string(of: "project.cache.modes[i]")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "project.environment.environmentVariables").intValue
    while i < count_i {
        jResp.i = i
        name = jResp.string(of: "project.environment.environmentVariables[i].name")
        v_type = jResp.string(of: "project.environment.environmentVariables[i].type")
        value = jResp.string(of: "project.environment.environmentVariables[i].value")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "project.fileSystemLocations").intValue
    while i < count_i {
        jResp.i = i
        identifier = jResp.string(of: "project.fileSystemLocations[i].identifier")
        location = jResp.string(of: "project.fileSystemLocations[i].location")
        mountOptions = jResp.string(of: "project.fileSystemLocations[i].mountOptions")
        mountPoint = jResp.string(of: "project.fileSystemLocations[i].mountPoint")
        v_type = jResp.string(of: "project.fileSystemLocations[i].type")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "project.secondaryArtifacts").intValue
    while i < count_i {
        jResp.i = i
        artifactIdentifier = jResp.string(of: "project.secondaryArtifacts[i].artifactIdentifier")
        bucketOwnerAccess = jResp.string(of: "project.secondaryArtifacts[i].bucketOwnerAccess")
        encryptionDisabled = jResp.int(of: "project.secondaryArtifacts[i].encryptionDisabled").intValue
        location = jResp.string(of: "project.secondaryArtifacts[i].location")
        name = jResp.string(of: "project.secondaryArtifacts[i].name")
        namespaceType = jResp.string(of: "project.secondaryArtifacts[i].namespaceType")
        overrideArtifactName = jResp.int(of: "project.secondaryArtifacts[i].overrideArtifactName").intValue
        packaging = jResp.string(of: "project.secondaryArtifacts[i].packaging")
        path = jResp.string(of: "project.secondaryArtifacts[i].path")
        v_type = jResp.string(of: "project.secondaryArtifacts[i].type")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "project.secondarySources").intValue
    while i < count_i {
        jResp.i = i
        authResource = jResp.string(of: "project.secondarySources[i].auth.resource")
        authType = jResp.string(of: "project.secondarySources[i].auth.type")
        buildspec = jResp.string(of: "project.secondarySources[i].buildspec")
        buildStatusConfigContext = jResp.string(of: "project.secondarySources[i].buildStatusConfig.context")
        buildStatusConfigTargetUrl = jResp.string(of: "project.secondarySources[i].buildStatusConfig.targetUrl")
        gitCloneDepth = jResp.int(of: "project.secondarySources[i].gitCloneDepth").intValue
        gitSubmodulesConfigFetchSubmodules = jResp.int(of: "project.secondarySources[i].gitSubmodulesConfig.fetchSubmodules").intValue
        insecureSsl = jResp.int(of: "project.secondarySources[i].insecureSsl").intValue
        location = jResp.string(of: "project.secondarySources[i].location")
        reportBuildStatus = jResp.int(of: "project.secondarySources[i].reportBuildStatus").intValue
        sourceIdentifier = jResp.string(of: "project.secondarySources[i].sourceIdentifier")
        v_type = jResp.string(of: "project.secondarySources[i].type")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "project.secondarySourceVersions").intValue
    while i < count_i {
        jResp.i = i
        sourceIdentifier = jResp.string(of: "project.secondarySourceVersions[i].sourceIdentifier")
        sourceVersion = jResp.string(of: "project.secondarySourceVersions[i].sourceVersion")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "project.tags").intValue
    while i < count_i {
        jResp.i = i
        key = jResp.string(of: "project.tags[i].key")
        value = jResp.string(of: "project.tags[i].value")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "project.vpcConfig.securityGroupIds").intValue
    while i < count_i {
        jResp.i = i
        strVal = jResp.string(of: "project.vpcConfig.securityGroupIds[i]")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "project.vpcConfig.subnets").intValue
    while i < count_i {
        jResp.i = i
        strVal = jResp.string(of: "project.vpcConfig.subnets[i]")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "project.webhook.filterGroups").intValue
    while i < count_i {
        jResp.i = i
        j = 0
        count_j = jResp.size(ofArray: "project.webhook.filterGroups[i]").intValue
        while j < count_j {
            jResp.j = j
            excludeMatchedPattern = jResp.int(of: "project.webhook.filterGroups[i][j].excludeMatchedPattern").intValue
            pattern = jResp.string(of: "project.webhook.filterGroups[i][j].pattern")
            v_type = jResp.string(of: "project.webhook.filterGroups[i][j].type")
            j = j + 1
        }

        i = i + 1
    }

    // A sample JSON response body parsed by the above code:

    // {
    //   "project": {
    //     "arn": "string",
    //     "artifacts": {
    //       "artifactIdentifier": "string",
    //       "bucketOwnerAccess": "string",
    //       "encryptionDisabled": boolean,
    //       "location": "string",
    //       "name": "string",
    //       "namespaceType": "string",
    //       "overrideArtifactName": boolean,
    //       "packaging": "string",
    //       "path": "string",
    //       "type": "string"
    //     },
    //     "badge": {
    //       "badgeEnabled": boolean,
    //       "badgeRequestUrl": "string"
    //     },
    //     "buildBatchConfig": {
    //       "batchReportMode": "string",
    //       "combineArtifacts": boolean,
    //       "restrictions": {
    //         "computeTypesAllowed": [
    //           "string"
    //         ],
    //         "maximumBuildsAllowed": number
    //       },
    //       "serviceRole": "string",
    //       "timeoutInMins": number
    //     },
    //     "cache": {
    //       "location": "string",
    //       "modes": [
    //         "string"
    //       ],
    //       "type": "string"
    //     },
    //     "concurrentBuildLimit": number,
    //     "created": number,
    //     "description": "string",
    //     "encryptionKey": "string",
    //     "environment": {
    //       "certificate": "string",
    //       "computeType": "string",
    //       "environmentVariables": [
    //         {
    //           "name": "string",
    //           "type": "string",
    //           "value": "string"
    //         }
    //       ],
    //       "image": "string",
    //       "imagePullCredentialsType": "string",
    //       "privilegedMode": boolean,
    //       "registryCredential": {
    //         "credential": "string",
    //         "credentialProvider": "string"
    //       },
    //       "type": "string"
    //     },
    //     "fileSystemLocations": [
    //       {
    //         "identifier": "string",
    //         "location": "string",
    //         "mountOptions": "string",
    //         "mountPoint": "string",
    //         "type": "string"
    //       }
    //     ],
    //     "lastModified": number,
    //     "logsConfig": {
    //       "cloudWatchLogs": {
    //         "groupName": "string",
    //         "status": "string",
    //         "streamName": "string"
    //       },
    //       "s3Logs": {
    //         "bucketOwnerAccess": "string",
    //         "encryptionDisabled": boolean,
    //         "location": "string",
    //         "status": "string"
    //       }
    //     },
    //     "name": "string",
    //     "projectVisibility": "string",
    //     "publicProjectAlias": "string",
    //     "queuedTimeoutInMinutes": number,
    //     "resourceAccessRole": "string",
    //     "secondaryArtifacts": [
    //       {
    //         "artifactIdentifier": "string",
    //         "bucketOwnerAccess": "string",
    //         "encryptionDisabled": boolean,
    //         "location": "string",
    //         "name": "string",
    //         "namespaceType": "string",
    //         "overrideArtifactName": boolean,
    //         "packaging": "string",
    //         "path": "string",
    //         "type": "string"
    //       }
    //     ],
    //     "secondarySources": [
    //       {
    //         "auth": {
    //           "resource": "string",
    //           "type": "string"
    //         },
    //         "buildspec": "string",
    //         "buildStatusConfig": {
    //           "context": "string",
    //           "targetUrl": "string"
    //         },
    //         "gitCloneDepth": number,
    //         "gitSubmodulesConfig": {
    //           "fetchSubmodules": boolean
    //         },
    //         "insecureSsl": boolean,
    //         "location": "string",
    //         "reportBuildStatus": boolean,
    //         "sourceIdentifier": "string",
    //         "type": "string"
    //       }
    //     ],
    //     "secondarySourceVersions": [
    //       {
    //         "sourceIdentifier": "string",
    //         "sourceVersion": "string"
    //       }
    //     ],
    //     "serviceRole": "string",
    //     "source": {
    //       "auth": {
    //         "resource": "string",
    //         "type": "string"
    //       },
    //       "buildspec": "string",
    //       "buildStatusConfig": {
    //         "context": "string",
    //         "targetUrl": "string"
    //       },
    //       "gitCloneDepth": number,
    //       "gitSubmodulesConfig": {
    //         "fetchSubmodules": boolean
    //       },
    //       "insecureSsl": boolean,
    //       "location": "string",
    //       "reportBuildStatus": boolean,
    //       "sourceIdentifier": "string",
    //       "type": "string"
    //     },
    //     "sourceVersion": "string",
    //     "tags": [
    //       {
    //         "key": "string",
    //         "value": "string"
    //       }
    //     ],
    //     "timeoutInMinutes": number,
    //     "vpcConfig": {
    //       "securityGroupIds": [
    //         "string"
    //       ],
    //       "subnets": [
    //         "string"
    //       ],
    //       "vpcId": "string"
    //     },
    //     "webhook": {
    //       "branchFilter": "string",
    //       "buildType": "string",
    //       "filterGroups": [
    //         [
    //           {
    //             "excludeMatchedPattern": boolean,
    //             "pattern": "string",
    //             "type": "string"
    //           }
    //         ]
    //       ],
    //       "lastModifiedSecret": number,
    //       "payloadUrl": "string",
    //       "secret": "string",
    //       "url": "string"
    //     }
    //   }
    // }

}