GetDeploymentGroup SQL Server Example
CREATE PROCEDURE ChilkatSample
AS
BEGIN
DECLARE @hr int
DECLARE @iTmp0 int
DECLARE @sTmp0 nvarchar(max)
-- This example requires the Chilkat API to have been previously unlocked.
-- See Global Unlock Sample for sample code.
DECLARE @rest int
EXEC @hr = sp_OACreate 'Chilkat_9_5_0.Rest', @rest OUT
IF @hr <> 0
BEGIN
PRINT 'Failed to create ActiveX component'
RETURN
END
DECLARE @success int
DECLARE @authAws int
EXEC @hr = sp_OACreate 'Chilkat_9_5_0.AuthAws', @authAws OUT
EXEC sp_OASetProperty @authAws, 'AccessKey', 'AWS_ACCESS_KEY'
EXEC sp_OASetProperty @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.)
EXEC sp_OASetProperty @authAws, 'Region', 'us-west-2'
EXEC sp_OASetProperty @authAws, 'ServiceName', 'codedeploy'
-- SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
EXEC sp_OAMethod @rest, 'SetAuthAws', @success OUT, @authAws
-- URL: https://codedeploy.us-west-2.amazonaws.com/
-- Use the same region as specified above.
EXEC sp_OAMethod @rest, 'Connect', @success OUT, 'codedeploy.us-west-2.amazonaws.com', 443, 1, 1
IF @success <> 1
BEGIN
EXEC sp_OAGetProperty @rest, 'ConnectFailReason', @iTmp0 OUT
PRINT 'ConnectFailReason: ' + @iTmp0
EXEC sp_OAGetProperty @rest, 'LastErrorText', @sTmp0 OUT
PRINT @sTmp0
EXEC @hr = sp_OADestroy @rest
EXEC @hr = sp_OADestroy @authAws
RETURN
END
-- 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
DECLARE @json int
EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @json OUT
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'applicationName', 'string'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'deploymentGroupName', 'string'
-- The JSON request body created by the above code:
-- {
-- "applicationName": "string",
-- "deploymentGroupName": "string"
-- }
EXEC sp_OAMethod @rest, 'AddHeader', @success OUT, 'Content-Type', 'application/x-amz-json-1.1'
EXEC sp_OAMethod @rest, 'AddHeader', @success OUT, 'X-Amz-Target', 'CodeDeploy_20141006.GetDeploymentGroup'
DECLARE @sbRequestBody int
EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbRequestBody OUT
EXEC sp_OAMethod @json, 'EmitSb', @success OUT, @sbRequestBody
DECLARE @sbResponseBody int
EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbResponseBody OUT
EXEC sp_OAMethod @rest, 'FullRequestSb', @success OUT, 'POST', '/', @sbRequestBody, @sbResponseBody
IF @success <> 1
BEGIN
EXEC sp_OAGetProperty @rest, 'LastErrorText', @sTmp0 OUT
PRINT @sTmp0
EXEC @hr = sp_OADestroy @rest
EXEC @hr = sp_OADestroy @authAws
EXEC @hr = sp_OADestroy @json
EXEC @hr = sp_OADestroy @sbRequestBody
EXEC @hr = sp_OADestroy @sbResponseBody
RETURN
END
DECLARE @respStatusCode int
EXEC sp_OAGetProperty @rest, 'ResponseStatusCode', @respStatusCode OUT
PRINT 'response status code = ' + @respStatusCode
IF @respStatusCode <> 200
BEGIN
PRINT 'Response Header:'
EXEC sp_OAGetProperty @rest, 'ResponseHeader', @sTmp0 OUT
PRINT @sTmp0
PRINT 'Response Body:'
EXEC sp_OAMethod @sbResponseBody, 'GetAsString', @sTmp0 OUT
PRINT @sTmp0
EXEC @hr = sp_OADestroy @rest
EXEC @hr = sp_OADestroy @authAws
EXEC @hr = sp_OADestroy @json
EXEC @hr = sp_OADestroy @sbRequestBody
EXEC @hr = sp_OADestroy @sbResponseBody
RETURN
END
DECLARE @jResp int
EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jResp OUT
EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @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
DECLARE @name nvarchar(max)
DECLARE @strVal nvarchar(max)
DECLARE @hook nvarchar(max)
DECLARE @v_Type nvarchar(max)
DECLARE @Value nvarchar(max)
DECLARE @j int
DECLARE @count_j int
DECLARE @clusterName nvarchar(max)
DECLARE @serviceName nvarchar(max)
DECLARE @triggerName nvarchar(max)
DECLARE @triggerTargetArn nvarchar(max)
DECLARE @Enabled int
EXEC sp_OAMethod @jResp, 'IntOf', @Enabled OUT, 'deploymentGroupInfo.alarmConfiguration.enabled'
DECLARE @IgnorePollAlarmFailure int
EXEC sp_OAMethod @jResp, 'IntOf', @IgnorePollAlarmFailure OUT, 'deploymentGroupInfo.alarmConfiguration.ignorePollAlarmFailure'
DECLARE @ApplicationName nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @ApplicationName OUT, 'deploymentGroupInfo.applicationName'
DECLARE @AutoRollbackConfigurationEnabled int
EXEC sp_OAMethod @jResp, 'IntOf', @AutoRollbackConfigurationEnabled OUT, 'deploymentGroupInfo.autoRollbackConfiguration.enabled'
DECLARE @ActionOnTimeout nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @ActionOnTimeout OUT, 'deploymentGroupInfo.blueGreenDeploymentConfiguration.deploymentReadyOption.actionOnTimeout'
DECLARE @WaitTimeInMinutes int
EXEC sp_OAMethod @jResp, 'IntOf', @WaitTimeInMinutes OUT, 'deploymentGroupInfo.blueGreenDeploymentConfiguration.deploymentReadyOption.waitTimeInMinutes'
DECLARE @Action nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Action OUT, 'deploymentGroupInfo.blueGreenDeploymentConfiguration.greenFleetProvisioningOption.action'
DECLARE @TerminateBlueInstancesOnDeploymentSuccessAction nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @TerminateBlueInstancesOnDeploymentSuccessAction OUT, 'deploymentGroupInfo.blueGreenDeploymentConfiguration.terminateBlueInstancesOnDeploymentSuccess.action'
DECLARE @TerminationWaitTimeInMinutes int
EXEC sp_OAMethod @jResp, 'IntOf', @TerminationWaitTimeInMinutes OUT, 'deploymentGroupInfo.blueGreenDeploymentConfiguration.terminateBlueInstancesOnDeploymentSuccess.terminationWaitTimeInMinutes'
DECLARE @ComputePlatform nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @ComputePlatform OUT, 'deploymentGroupInfo.computePlatform'
DECLARE @DeploymentConfigName nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @DeploymentConfigName OUT, 'deploymentGroupInfo.deploymentConfigName'
DECLARE @DeploymentGroupId nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @DeploymentGroupId OUT, 'deploymentGroupInfo.deploymentGroupId'
DECLARE @DeploymentGroupName nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @DeploymentGroupName OUT, 'deploymentGroupInfo.deploymentGroupName'
DECLARE @DeploymentOption nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @DeploymentOption OUT, 'deploymentGroupInfo.deploymentStyle.deploymentOption'
DECLARE @DeploymentType nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @DeploymentType OUT, 'deploymentGroupInfo.deploymentStyle.deploymentType'
DECLARE @CreateTime int
EXEC sp_OAMethod @jResp, 'IntOf', @CreateTime OUT, 'deploymentGroupInfo.lastAttemptedDeployment.createTime'
DECLARE @DeploymentId nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @DeploymentId OUT, 'deploymentGroupInfo.lastAttemptedDeployment.deploymentId'
DECLARE @EndTime int
EXEC sp_OAMethod @jResp, 'IntOf', @EndTime OUT, 'deploymentGroupInfo.lastAttemptedDeployment.endTime'
DECLARE @Status nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Status OUT, 'deploymentGroupInfo.lastAttemptedDeployment.status'
DECLARE @LastSuccessfulDeploymentCreateTime int
EXEC sp_OAMethod @jResp, 'IntOf', @LastSuccessfulDeploymentCreateTime OUT, 'deploymentGroupInfo.lastSuccessfulDeployment.createTime'
DECLARE @LastSuccessfulDeploymentDeploymentId nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @LastSuccessfulDeploymentDeploymentId OUT, 'deploymentGroupInfo.lastSuccessfulDeployment.deploymentId'
DECLARE @LastSuccessfulDeploymentEndTime int
EXEC sp_OAMethod @jResp, 'IntOf', @LastSuccessfulDeploymentEndTime OUT, 'deploymentGroupInfo.lastSuccessfulDeployment.endTime'
DECLARE @LastSuccessfulDeploymentStatus nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @LastSuccessfulDeploymentStatus OUT, 'deploymentGroupInfo.lastSuccessfulDeployment.status'
DECLARE @OutdatedInstancesStrategy nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @OutdatedInstancesStrategy OUT, 'deploymentGroupInfo.outdatedInstancesStrategy'
DECLARE @ServiceRoleArn nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @ServiceRoleArn OUT, 'deploymentGroupInfo.serviceRoleArn'
DECLARE @Content nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Content OUT, 'deploymentGroupInfo.targetRevision.appSpecContent.content'
DECLARE @Sha256 nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Sha256 OUT, 'deploymentGroupInfo.targetRevision.appSpecContent.sha256'
DECLARE @CommitId nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @CommitId OUT, 'deploymentGroupInfo.targetRevision.gitHubLocation.commitId'
DECLARE @Repository nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Repository OUT, 'deploymentGroupInfo.targetRevision.gitHubLocation.repository'
DECLARE @RevisionType nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @RevisionType OUT, 'deploymentGroupInfo.targetRevision.revisionType'
DECLARE @Bucket nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Bucket OUT, 'deploymentGroupInfo.targetRevision.s3Location.bucket'
DECLARE @BundleType nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @BundleType OUT, 'deploymentGroupInfo.targetRevision.s3Location.bundleType'
DECLARE @ETag nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @ETag OUT, 'deploymentGroupInfo.targetRevision.s3Location.eTag'
DECLARE @Key nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Key OUT, 'deploymentGroupInfo.targetRevision.s3Location.key'
DECLARE @Version nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Version OUT, 'deploymentGroupInfo.targetRevision.s3Location.version'
DECLARE @StringContent nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @StringContent OUT, 'deploymentGroupInfo.targetRevision.string.content'
DECLARE @StringSha256 nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @StringSha256 OUT, 'deploymentGroupInfo.targetRevision.string.sha256'
DECLARE @i int
SELECT @i = 0
DECLARE @count_i int
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'deploymentGroupInfo.alarmConfiguration.alarms'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @name OUT, 'deploymentGroupInfo.alarmConfiguration.alarms[i].name'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'deploymentGroupInfo.autoRollbackConfiguration.events'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'deploymentGroupInfo.autoRollbackConfiguration.events[i]'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'deploymentGroupInfo.autoScalingGroups'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @hook OUT, 'deploymentGroupInfo.autoScalingGroups[i].hook'
EXEC sp_OAMethod @jResp, 'StringOf', @name OUT, 'deploymentGroupInfo.autoScalingGroups[i].name'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'deploymentGroupInfo.ec2TagFilters'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @Key OUT, 'deploymentGroupInfo.ec2TagFilters[i].Key'
EXEC sp_OAMethod @jResp, 'StringOf', @v_Type OUT, 'deploymentGroupInfo.ec2TagFilters[i].Type'
EXEC sp_OAMethod @jResp, 'StringOf', @Value OUT, 'deploymentGroupInfo.ec2TagFilters[i].Value'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'deploymentGroupInfo.ec2TagSet.ec2TagSetList'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'deploymentGroupInfo.ec2TagSet.ec2TagSetList[i]'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @Key OUT, 'deploymentGroupInfo.ec2TagSet.ec2TagSetList[i][j].Key'
EXEC sp_OAMethod @jResp, 'StringOf', @v_Type OUT, 'deploymentGroupInfo.ec2TagSet.ec2TagSetList[i][j].Type'
EXEC sp_OAMethod @jResp, 'StringOf', @Value OUT, 'deploymentGroupInfo.ec2TagSet.ec2TagSetList[i][j].Value'
SELECT @j = @j + 1
END
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'deploymentGroupInfo.ecsServices'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @clusterName OUT, 'deploymentGroupInfo.ecsServices[i].clusterName'
EXEC sp_OAMethod @jResp, 'StringOf', @serviceName OUT, 'deploymentGroupInfo.ecsServices[i].serviceName'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'deploymentGroupInfo.loadBalancerInfo.elbInfoList'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @name OUT, 'deploymentGroupInfo.loadBalancerInfo.elbInfoList[i].name'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'deploymentGroupInfo.loadBalancerInfo.targetGroupInfoList'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @name OUT, 'deploymentGroupInfo.loadBalancerInfo.targetGroupInfoList[i].name'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'deploymentGroupInfo.loadBalancerInfo.targetGroupPairInfoList'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'deploymentGroupInfo.loadBalancerInfo.targetGroupPairInfoList[i].prodTrafficRoute.listenerArns'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'deploymentGroupInfo.loadBalancerInfo.targetGroupPairInfoList[i].prodTrafficRoute.listenerArns[j]'
SELECT @j = @j + 1
END
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'deploymentGroupInfo.loadBalancerInfo.targetGroupPairInfoList[i].targetGroups'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @name OUT, 'deploymentGroupInfo.loadBalancerInfo.targetGroupPairInfoList[i].targetGroups[j].name'
SELECT @j = @j + 1
END
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'deploymentGroupInfo.loadBalancerInfo.targetGroupPairInfoList[i].testTrafficRoute.listenerArns'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'deploymentGroupInfo.loadBalancerInfo.targetGroupPairInfoList[i].testTrafficRoute.listenerArns[j]'
SELECT @j = @j + 1
END
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'deploymentGroupInfo.onPremisesInstanceTagFilters'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @Key OUT, 'deploymentGroupInfo.onPremisesInstanceTagFilters[i].Key'
EXEC sp_OAMethod @jResp, 'StringOf', @v_Type OUT, 'deploymentGroupInfo.onPremisesInstanceTagFilters[i].Type'
EXEC sp_OAMethod @jResp, 'StringOf', @Value OUT, 'deploymentGroupInfo.onPremisesInstanceTagFilters[i].Value'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'deploymentGroupInfo.onPremisesTagSet.onPremisesTagSetList'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'deploymentGroupInfo.onPremisesTagSet.onPremisesTagSetList[i]'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @Key OUT, 'deploymentGroupInfo.onPremisesTagSet.onPremisesTagSetList[i][j].Key'
EXEC sp_OAMethod @jResp, 'StringOf', @v_Type OUT, 'deploymentGroupInfo.onPremisesTagSet.onPremisesTagSetList[i][j].Type'
EXEC sp_OAMethod @jResp, 'StringOf', @Value OUT, 'deploymentGroupInfo.onPremisesTagSet.onPremisesTagSetList[i][j].Value'
SELECT @j = @j + 1
END
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'deploymentGroupInfo.triggerConfigurations'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @triggerName OUT, 'deploymentGroupInfo.triggerConfigurations[i].triggerName'
EXEC sp_OAMethod @jResp, 'StringOf', @triggerTargetArn OUT, 'deploymentGroupInfo.triggerConfigurations[i].triggerTargetArn'
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'deploymentGroupInfo.triggerConfigurations[i].triggerEvents'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'deploymentGroupInfo.triggerConfigurations[i].triggerEvents[j]'
SELECT @j = @j + 1
END
SELECT @i = @i + 1
END
-- A sample JSON response body parsed by the above code:
-- {
-- "deploymentGroupInfo": {
-- "alarmConfiguration": {
-- "alarms": [
-- {
-- "name": "string"
-- }
-- ],
-- "enabled": boolean,
-- "ignorePollAlarmFailure": boolean
-- },
-- "applicationName": "string",
-- "autoRollbackConfiguration": {
-- "enabled": boolean,
-- "events": [
-- "string"
-- ]
-- },
-- "autoScalingGroups": [
-- {
-- "hook": "string",
-- "name": "string"
-- }
-- ],
-- "blueGreenDeploymentConfiguration": {
-- "deploymentReadyOption": {
-- "actionOnTimeout": "string",
-- "waitTimeInMinutes": number
-- },
-- "greenFleetProvisioningOption": {
-- "action": "string"
-- },
-- "terminateBlueInstancesOnDeploymentSuccess": {
-- "action": "string",
-- "terminationWaitTimeInMinutes": number
-- }
-- },
-- "computePlatform": "string",
-- "deploymentConfigName": "string",
-- "deploymentGroupId": "string",
-- "deploymentGroupName": "string",
-- "deploymentStyle": {
-- "deploymentOption": "string",
-- "deploymentType": "string"
-- },
-- "ec2TagFilters": [
-- {
-- "Key": "string",
-- "Type": "string",
-- "Value": "string"
-- }
-- ],
-- "ec2TagSet": {
-- "ec2TagSetList": [
-- [
-- {
-- "Key": "string",
-- "Type": "string",
-- "Value": "string"
-- }
-- ]
-- ]
-- },
-- "ecsServices": [
-- {
-- "clusterName": "string",
-- "serviceName": "string"
-- }
-- ],
-- "lastAttemptedDeployment": {
-- "createTime": number,
-- "deploymentId": "string",
-- "endTime": number,
-- "status": "string"
-- },
-- "lastSuccessfulDeployment": {
-- "createTime": number,
-- "deploymentId": "string",
-- "endTime": number,
-- "status": "string"
-- },
-- "loadBalancerInfo": {
-- "elbInfoList": [
-- {
-- "name": "string"
-- }
-- ],
-- "targetGroupInfoList": [
-- {
-- "name": "string"
-- }
-- ],
-- "targetGroupPairInfoList": [
-- {
-- "prodTrafficRoute": {
-- "listenerArns": [
-- "string"
-- ]
-- },
-- "targetGroups": [
-- {
-- "name": "string"
-- }
-- ],
-- "testTrafficRoute": {
-- "listenerArns": [
-- "string"
-- ]
-- }
-- }
-- ]
-- },
-- "onPremisesInstanceTagFilters": [
-- {
-- "Key": "string",
-- "Type": "string",
-- "Value": "string"
-- }
-- ],
-- "onPremisesTagSet": {
-- "onPremisesTagSetList": [
-- [
-- {
-- "Key": "string",
-- "Type": "string",
-- "Value": "string"
-- }
-- ]
-- ]
-- },
-- "outdatedInstancesStrategy": "string",
-- "serviceRoleArn": "string",
-- "targetRevision": {
-- "appSpecContent": {
-- "content": "string",
-- "sha256": "string"
-- },
-- "gitHubLocation": {
-- "commitId": "string",
-- "repository": "string"
-- },
-- "revisionType": "string",
-- "s3Location": {
-- "bucket": "string",
-- "bundleType": "string",
-- "eTag": "string",
-- "key": "string",
-- "version": "string"
-- },
-- "string": {
-- "content": "string",
-- "sha256": "string"
-- }
-- },
-- "triggerConfigurations": [
-- {
-- "triggerEvents": [
-- "string"
-- ],
-- "triggerName": "string",
-- "triggerTargetArn": "string"
-- }
-- ]
-- }
-- }
EXEC @hr = sp_OADestroy @rest
EXEC @hr = sp_OADestroy @authAws
EXEC @hr = sp_OADestroy @json
EXEC @hr = sp_OADestroy @sbRequestBody
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
END
GO