CreateProject autoit Example
; This example requires the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
$oRest = ObjCreate("Chilkat_9_5_0.Rest")
Local $bSuccess
$oAuthAws = ObjCreate("Chilkat_9_5_0.AuthAws")
$oAuthAws.AccessKey = "AWS_ACCESS_KEY"
$oAuthAws.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.)
$oAuthAws.Region = "us-west-2"
$oAuthAws.ServiceName = "codebuild"
; SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
$oRest.SetAuthAws($oAuthAws)
; URL: https://codebuild.us-west-2.amazonaws.com/
; Use the same region as specified above.
$bSuccess = $oRest.Connect("codebuild.us-west-2.amazonaws.com",443,True,True)
If ($bSuccess <> True) Then
ConsoleWrite("ConnectFailReason: " & $oRest.ConnectFailReason & @CRLF)
ConsoleWrite($oRest.LastErrorText & @CRLF)
Exit
EndIf
; 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
$oJson = ObjCreate("Chilkat_9_5_0.JsonObject")
$oJson.UpdateString("artifacts.artifactIdentifier","string")
$oJson.UpdateString("artifacts.bucketOwnerAccess","string")
$oJson.UpdateInt("artifacts.encryptionDisabled",123)
$oJson.UpdateString("artifacts.location","string")
$oJson.UpdateString("artifacts.name","string")
$oJson.UpdateString("artifacts.namespaceType","string")
$oJson.UpdateInt("artifacts.overrideArtifactName",123)
$oJson.UpdateString("artifacts.packaging","string")
$oJson.UpdateString("artifacts.path","string")
$oJson.UpdateString("artifacts.type","string")
$oJson.UpdateInt("badgeEnabled",123)
$oJson.UpdateString("buildBatchConfig.batchReportMode","string")
$oJson.UpdateInt("buildBatchConfig.combineArtifacts",123)
$oJson.UpdateString("buildBatchConfig.restrictions.computeTypesAllowed[0]","string")
$oJson.UpdateInt("buildBatchConfig.restrictions.maximumBuildsAllowed",123)
$oJson.UpdateString("buildBatchConfig.serviceRole","string")
$oJson.UpdateInt("buildBatchConfig.timeoutInMins",123)
$oJson.UpdateString("cache.location","string")
$oJson.UpdateString("cache.modes[0]","string")
$oJson.UpdateString("cache.type","string")
$oJson.UpdateInt("concurrentBuildLimit",123)
$oJson.UpdateString("description","string")
$oJson.UpdateString("encryptionKey","string")
$oJson.UpdateString("environment.certificate","string")
$oJson.UpdateString("environment.computeType","string")
$oJson.UpdateString("environment.environmentVariables[0].name","string")
$oJson.UpdateString("environment.environmentVariables[0].type","string")
$oJson.UpdateString("environment.environmentVariables[0].value","string")
$oJson.UpdateString("environment.image","string")
$oJson.UpdateString("environment.imagePullCredentialsType","string")
$oJson.UpdateInt("environment.privilegedMode",123)
$oJson.UpdateString("environment.registryCredential.credential","string")
$oJson.UpdateString("environment.registryCredential.credentialProvider","string")
$oJson.UpdateString("environment.type","string")
$oJson.UpdateString("fileSystemLocations[0].identifier","string")
$oJson.UpdateString("fileSystemLocations[0].location","string")
$oJson.UpdateString("fileSystemLocations[0].mountOptions","string")
$oJson.UpdateString("fileSystemLocations[0].mountPoint","string")
$oJson.UpdateString("fileSystemLocations[0].type","string")
$oJson.UpdateString("logsConfig.cloudWatchLogs.groupName","string")
$oJson.UpdateString("logsConfig.cloudWatchLogs.status","string")
$oJson.UpdateString("logsConfig.cloudWatchLogs.streamName","string")
$oJson.UpdateString("logsConfig.s3Logs.bucketOwnerAccess","string")
$oJson.UpdateInt("logsConfig.s3Logs.encryptionDisabled",123)
$oJson.UpdateString("logsConfig.s3Logs.location","string")
$oJson.UpdateString("logsConfig.s3Logs.status","string")
$oJson.UpdateString("name","string")
$oJson.UpdateInt("queuedTimeoutInMinutes",123)
$oJson.UpdateString("secondaryArtifacts[0].artifactIdentifier","string")
$oJson.UpdateString("secondaryArtifacts[0].bucketOwnerAccess","string")
$oJson.UpdateInt("secondaryArtifacts[0].encryptionDisabled",123)
$oJson.UpdateString("secondaryArtifacts[0].location","string")
$oJson.UpdateString("secondaryArtifacts[0].name","string")
$oJson.UpdateString("secondaryArtifacts[0].namespaceType","string")
$oJson.UpdateInt("secondaryArtifacts[0].overrideArtifactName",123)
$oJson.UpdateString("secondaryArtifacts[0].packaging","string")
$oJson.UpdateString("secondaryArtifacts[0].path","string")
$oJson.UpdateString("secondaryArtifacts[0].type","string")
$oJson.UpdateString("secondarySources[0].auth.resource","string")
$oJson.UpdateString("secondarySources[0].auth.type","string")
$oJson.UpdateString("secondarySources[0].buildspec","string")
$oJson.UpdateString("secondarySources[0].buildStatusConfig.context","string")
$oJson.UpdateString("secondarySources[0].buildStatusConfig.targetUrl","string")
$oJson.UpdateInt("secondarySources[0].gitCloneDepth",123)
$oJson.UpdateInt("secondarySources[0].gitSubmodulesConfig.fetchSubmodules",123)
$oJson.UpdateInt("secondarySources[0].insecureSsl",123)
$oJson.UpdateString("secondarySources[0].location","string")
$oJson.UpdateInt("secondarySources[0].reportBuildStatus",123)
$oJson.UpdateString("secondarySources[0].sourceIdentifier","string")
$oJson.UpdateString("secondarySources[0].type","string")
$oJson.UpdateString("secondarySourceVersions[0].sourceIdentifier","string")
$oJson.UpdateString("secondarySourceVersions[0].sourceVersion","string")
$oJson.UpdateString("serviceRole","string")
$oJson.UpdateString("source.auth.resource","string")
$oJson.UpdateString("source.auth.type","string")
$oJson.UpdateString("source.buildspec","string")
$oJson.UpdateString("source.buildStatusConfig.context","string")
$oJson.UpdateString("source.buildStatusConfig.targetUrl","string")
$oJson.UpdateInt("source.gitCloneDepth",123)
$oJson.UpdateInt("source.gitSubmodulesConfig.fetchSubmodules",123)
$oJson.UpdateInt("source.insecureSsl",123)
$oJson.UpdateString("source.location","string")
$oJson.UpdateInt("source.reportBuildStatus",123)
$oJson.UpdateString("source.sourceIdentifier","string")
$oJson.UpdateString("source.type","string")
$oJson.UpdateString("sourceVersion","string")
$oJson.UpdateString("tags[0].key","string")
$oJson.UpdateString("tags[0].value","string")
$oJson.UpdateInt("timeoutInMinutes",123)
$oJson.UpdateString("vpcConfig.securityGroupIds[0]","string")
$oJson.UpdateString("vpcConfig.subnets[0]","string")
$oJson.UpdateString("vpcConfig.vpcId","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"
; }
; }
$oRest.AddHeader("Content-Type","application/x-amz-json-1.1")
$oRest.AddHeader("X-Amz-Target","CodeBuild_20161006.CreateProject")
$oSbRequestBody = ObjCreate("Chilkat_9_5_0.StringBuilder")
$oJson.EmitSb($oSbRequestBody)
$oSbResponseBody = ObjCreate("Chilkat_9_5_0.StringBuilder")
$bSuccess = $oRest.FullRequestSb("POST","/",$oSbRequestBody,$oSbResponseBody)
If ($bSuccess <> True) Then
ConsoleWrite($oRest.LastErrorText & @CRLF)
Exit
EndIf
Local $iRespStatusCode = $oRest.ResponseStatusCode
ConsoleWrite("response status code = " & $iRespStatusCode & @CRLF)
If ($iRespStatusCode <> 200) Then
ConsoleWrite("Response Header:" & @CRLF)
ConsoleWrite($oRest.ResponseHeader & @CRLF)
ConsoleWrite("Response Body:" & @CRLF)
ConsoleWrite($oSbResponseBody.GetAsString() & @CRLF)
Exit
EndIf
$oJResp = ObjCreate("Chilkat_9_5_0.JsonObject")
$oJResp.LoadSb($oSbResponseBody)
; 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
Local $strVal
Local $sName
Local $sV_type
Local $sValue
Local $sIdentifier
Local $sLocation
Local $sMountOptions
Local $sMountPoint
Local $sArtifactIdentifier
Local $sBucketOwnerAccess
Local $iEncryptionDisabled
Local $sNamespaceType
Local $iOverrideArtifactName
Local $sPackaging
Local $sPath
Local $sAuthResource
Local $sAuthType
Local $sBuildspec
Local $sBuildStatusConfigContext
Local $sBuildStatusConfigTargetUrl
Local $iGitCloneDepth
Local $iGitSubmodulesConfigFetchSubmodules
Local $insecureSsl
Local $iReportBuildStatus
Local $sourceIdentifier
Local $sourceVersion
Local $sKey
Local $iJ
Local $iCount_j
Local $iExcludeMatchedPattern
Local $sPattern
Local $sArn = $oJResp.StringOf("project.arn")
Local $sArtifactIdentifier = $oJResp.StringOf("project.artifacts.artifactIdentifier")
Local $sBucketOwnerAccess = $oJResp.StringOf("project.artifacts.bucketOwnerAccess")
Local $iEncryptionDisabled = $oJResp.IntOf("project.artifacts.encryptionDisabled")
Local $sLocation = $oJResp.StringOf("project.artifacts.location")
Local $sName = $oJResp.StringOf("project.artifacts.name")
Local $sNamespaceType = $oJResp.StringOf("project.artifacts.namespaceType")
Local $iOverrideArtifactName = $oJResp.IntOf("project.artifacts.overrideArtifactName")
Local $sPackaging = $oJResp.StringOf("project.artifacts.packaging")
Local $sPath = $oJResp.StringOf("project.artifacts.path")
Local $sV_Type = $oJResp.StringOf("project.artifacts.type")
Local $iBadgeEnabled = $oJResp.IntOf("project.badge.badgeEnabled")
Local $sBadgeRequestUrl = $oJResp.StringOf("project.badge.badgeRequestUrl")
Local $sBatchReportMode = $oJResp.StringOf("project.buildBatchConfig.batchReportMode")
Local $iCombineArtifacts = $oJResp.IntOf("project.buildBatchConfig.combineArtifacts")
Local $iMaximumBuildsAllowed = $oJResp.IntOf("project.buildBatchConfig.restrictions.maximumBuildsAllowed")
Local $sServiceRole = $oJResp.StringOf("project.buildBatchConfig.serviceRole")
Local $iTimeoutInMins = $oJResp.IntOf("project.buildBatchConfig.timeoutInMins")
Local $sCacheLocation = $oJResp.StringOf("project.cache.location")
Local $sCacheType = $oJResp.StringOf("project.cache.type")
Local $iConcurrentBuildLimit = $oJResp.IntOf("project.concurrentBuildLimit")
Local $iCreated = $oJResp.IntOf("project.created")
Local $sDescription = $oJResp.StringOf("project.description")
Local $sEncryptionKey = $oJResp.StringOf("project.encryptionKey")
Local $sCertificate = $oJResp.StringOf("project.environment.certificate")
Local $sComputeType = $oJResp.StringOf("project.environment.computeType")
Local $sImage = $oJResp.StringOf("project.environment.image")
Local $sImagePullCredentialsType = $oJResp.StringOf("project.environment.imagePullCredentialsType")
Local $iPrivilegedMode = $oJResp.IntOf("project.environment.privilegedMode")
Local $sCredential = $oJResp.StringOf("project.environment.registryCredential.credential")
Local $sCredentialProvider = $oJResp.StringOf("project.environment.registryCredential.credentialProvider")
Local $sEnvironmentType = $oJResp.StringOf("project.environment.type")
Local $iLastModified = $oJResp.IntOf("project.lastModified")
Local $sGroupName = $oJResp.StringOf("project.logsConfig.cloudWatchLogs.groupName")
Local $sStatus = $oJResp.StringOf("project.logsConfig.cloudWatchLogs.status")
Local $sStreamName = $oJResp.StringOf("project.logsConfig.cloudWatchLogs.streamName")
Local $sS3LogsBucketOwnerAccess = $oJResp.StringOf("project.logsConfig.s3Logs.bucketOwnerAccess")
Local $iS3LogsEncryptionDisabled = $oJResp.IntOf("project.logsConfig.s3Logs.encryptionDisabled")
Local $sS3LogsLocation = $oJResp.StringOf("project.logsConfig.s3Logs.location")
Local $sS3LogsStatus = $oJResp.StringOf("project.logsConfig.s3Logs.status")
Local $sProjectName = $oJResp.StringOf("project.name")
Local $sProjectVisibility = $oJResp.StringOf("project.projectVisibility")
Local $sPublicProjectAlias = $oJResp.StringOf("project.publicProjectAlias")
Local $iQueuedTimeoutInMinutes = $oJResp.IntOf("project.queuedTimeoutInMinutes")
Local $sResourceAccessRole = $oJResp.StringOf("project.resourceAccessRole")
Local $sProjectServiceRole = $oJResp.StringOf("project.serviceRole")
Local $sResource = $oJResp.StringOf("project.source.auth.resource")
Local $sAuthType = $oJResp.StringOf("project.source.auth.type")
Local $sBuildspec = $oJResp.StringOf("project.source.buildspec")
Local $sContext = $oJResp.StringOf("project.source.buildStatusConfig.context")
Local $sTargetUrl = $oJResp.StringOf("project.source.buildStatusConfig.targetUrl")
Local $iGitCloneDepth = $oJResp.IntOf("project.source.gitCloneDepth")
Local $iFetchSubmodules = $oJResp.IntOf("project.source.gitSubmodulesConfig.fetchSubmodules")
Local $iInsecureSsl = $oJResp.IntOf("project.source.insecureSsl")
Local $sSourceLocation = $oJResp.StringOf("project.source.location")
Local $iReportBuildStatus = $oJResp.IntOf("project.source.reportBuildStatus")
Local $sSourceIdentifier = $oJResp.StringOf("project.source.sourceIdentifier")
Local $sSourceType = $oJResp.StringOf("project.source.type")
Local $sSourceVersion = $oJResp.StringOf("project.sourceVersion")
Local $iTimeoutInMinutes = $oJResp.IntOf("project.timeoutInMinutes")
Local $sVpcId = $oJResp.StringOf("project.vpcConfig.vpcId")
Local $sBranchFilter = $oJResp.StringOf("project.webhook.branchFilter")
Local $sBuildType = $oJResp.StringOf("project.webhook.buildType")
Local $iLastModifiedSecret = $oJResp.IntOf("project.webhook.lastModifiedSecret")
Local $sPayloadUrl = $oJResp.StringOf("project.webhook.payloadUrl")
Local $sSecret = $oJResp.StringOf("project.webhook.secret")
Local $sV_Url = $oJResp.StringOf("project.webhook.url")
Local $i = 0
Local $iCount_i = $oJResp.SizeOfArray("project.buildBatchConfig.restrictions.computeTypesAllowed")
While $i < $iCount_i
$oJResp.I = $i
$strVal = $oJResp.StringOf("project.buildBatchConfig.restrictions.computeTypesAllowed[i]")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("project.cache.modes")
While $i < $iCount_i
$oJResp.I = $i
$strVal = $oJResp.StringOf("project.cache.modes[i]")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("project.environment.environmentVariables")
While $i < $iCount_i
$oJResp.I = $i
$sName = $oJResp.StringOf("project.environment.environmentVariables[i].name")
$sV_type = $oJResp.StringOf("project.environment.environmentVariables[i].type")
$sValue = $oJResp.StringOf("project.environment.environmentVariables[i].value")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("project.fileSystemLocations")
While $i < $iCount_i
$oJResp.I = $i
$sIdentifier = $oJResp.StringOf("project.fileSystemLocations[i].identifier")
$sLocation = $oJResp.StringOf("project.fileSystemLocations[i].location")
$sMountOptions = $oJResp.StringOf("project.fileSystemLocations[i].mountOptions")
$sMountPoint = $oJResp.StringOf("project.fileSystemLocations[i].mountPoint")
$sV_type = $oJResp.StringOf("project.fileSystemLocations[i].type")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("project.secondaryArtifacts")
While $i < $iCount_i
$oJResp.I = $i
$sArtifactIdentifier = $oJResp.StringOf("project.secondaryArtifacts[i].artifactIdentifier")
$sBucketOwnerAccess = $oJResp.StringOf("project.secondaryArtifacts[i].bucketOwnerAccess")
$iEncryptionDisabled = $oJResp.IntOf("project.secondaryArtifacts[i].encryptionDisabled")
$sLocation = $oJResp.StringOf("project.secondaryArtifacts[i].location")
$sName = $oJResp.StringOf("project.secondaryArtifacts[i].name")
$sNamespaceType = $oJResp.StringOf("project.secondaryArtifacts[i].namespaceType")
$iOverrideArtifactName = $oJResp.IntOf("project.secondaryArtifacts[i].overrideArtifactName")
$sPackaging = $oJResp.StringOf("project.secondaryArtifacts[i].packaging")
$sPath = $oJResp.StringOf("project.secondaryArtifacts[i].path")
$sV_type = $oJResp.StringOf("project.secondaryArtifacts[i].type")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("project.secondarySources")
While $i < $iCount_i
$oJResp.I = $i
$sAuthResource = $oJResp.StringOf("project.secondarySources[i].auth.resource")
$sAuthType = $oJResp.StringOf("project.secondarySources[i].auth.type")
$sBuildspec = $oJResp.StringOf("project.secondarySources[i].buildspec")
$sBuildStatusConfigContext = $oJResp.StringOf("project.secondarySources[i].buildStatusConfig.context")
$sBuildStatusConfigTargetUrl = $oJResp.StringOf("project.secondarySources[i].buildStatusConfig.targetUrl")
$iGitCloneDepth = $oJResp.IntOf("project.secondarySources[i].gitCloneDepth")
$iGitSubmodulesConfigFetchSubmodules = $oJResp.IntOf("project.secondarySources[i].gitSubmodulesConfig.fetchSubmodules")
$insecureSsl = $oJResp.IntOf("project.secondarySources[i].insecureSsl")
$sLocation = $oJResp.StringOf("project.secondarySources[i].location")
$iReportBuildStatus = $oJResp.IntOf("project.secondarySources[i].reportBuildStatus")
$sourceIdentifier = $oJResp.StringOf("project.secondarySources[i].sourceIdentifier")
$sV_type = $oJResp.StringOf("project.secondarySources[i].type")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("project.secondarySourceVersions")
While $i < $iCount_i
$oJResp.I = $i
$sourceIdentifier = $oJResp.StringOf("project.secondarySourceVersions[i].sourceIdentifier")
$sourceVersion = $oJResp.StringOf("project.secondarySourceVersions[i].sourceVersion")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("project.tags")
While $i < $iCount_i
$oJResp.I = $i
$sKey = $oJResp.StringOf("project.tags[i].key")
$sValue = $oJResp.StringOf("project.tags[i].value")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("project.vpcConfig.securityGroupIds")
While $i < $iCount_i
$oJResp.I = $i
$strVal = $oJResp.StringOf("project.vpcConfig.securityGroupIds[i]")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("project.vpcConfig.subnets")
While $i < $iCount_i
$oJResp.I = $i
$strVal = $oJResp.StringOf("project.vpcConfig.subnets[i]")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("project.webhook.filterGroups")
While $i < $iCount_i
$oJResp.I = $i
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("project.webhook.filterGroups[i]")
While $iJ < $iCount_j
$oJResp.J = $iJ
$iExcludeMatchedPattern = $oJResp.IntOf("project.webhook.filterGroups[i][j].excludeMatchedPattern")
$sPattern = $oJResp.StringOf("project.webhook.filterGroups[i][j].pattern")
$sV_type = $oJResp.StringOf("project.webhook.filterGroups[i][j].type")
$iJ = $iJ + 1
Wend
$i = $i + 1
Wend
; 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"
; }
; }
; }