cloudworker-proxy
Version:
An api gateway for cloudflare workers
529 lines • 12.6 kB
JSON
{
"version": "2.0",
"metadata": {
"apiVersion": "2019-11-01",
"endpointPrefix": "compute-optimizer",
"jsonVersion": "1.0",
"protocol": "json",
"serviceFullName": "AWS Compute Optimizer",
"serviceId": "Compute Optimizer",
"signatureVersion": "v4",
"signingName": "compute-optimizer",
"targetPrefix": "ComputeOptimizerService",
"uid": "compute-optimizer-2019-11-01"
},
"operations": {
"DescribeRecommendationExportJobs": {
"input": {
"type": "structure",
"members": {
"jobIds": {
"type": "list",
"member": {}
},
"filters": {
"type": "list",
"member": {
"type": "structure",
"members": {
"name": {},
"values": {
"shape": "S7"
}
}
}
},
"nextToken": {},
"maxResults": {
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"recommendationExportJobs": {
"type": "list",
"member": {
"type": "structure",
"members": {
"jobId": {},
"destination": {
"type": "structure",
"members": {
"s3": {
"shape": "Sf"
}
}
},
"resourceType": {},
"status": {},
"creationTimestamp": {
"type": "timestamp"
},
"lastUpdatedTimestamp": {
"type": "timestamp"
},
"failureReason": {}
}
}
},
"nextToken": {}
}
}
},
"ExportAutoScalingGroupRecommendations": {
"input": {
"type": "structure",
"required": [
"s3DestinationConfig"
],
"members": {
"accountIds": {
"shape": "Sp"
},
"filters": {
"shape": "Sr"
},
"fieldsToExport": {
"type": "list",
"member": {}
},
"s3DestinationConfig": {
"shape": "Sw"
},
"fileFormat": {},
"includeMemberAccounts": {
"type": "boolean"
}
}
},
"output": {
"type": "structure",
"members": {
"jobId": {},
"s3Destination": {
"shape": "Sf"
}
}
}
},
"ExportEC2InstanceRecommendations": {
"input": {
"type": "structure",
"required": [
"s3DestinationConfig"
],
"members": {
"accountIds": {
"shape": "Sp"
},
"filters": {
"shape": "Sr"
},
"fieldsToExport": {
"type": "list",
"member": {}
},
"s3DestinationConfig": {
"shape": "Sw"
},
"fileFormat": {},
"includeMemberAccounts": {
"type": "boolean"
}
}
},
"output": {
"type": "structure",
"members": {
"jobId": {},
"s3Destination": {
"shape": "Sf"
}
}
}
},
"GetAutoScalingGroupRecommendations": {
"input": {
"type": "structure",
"members": {
"accountIds": {
"shape": "Sp"
},
"autoScalingGroupArns": {
"type": "list",
"member": {}
},
"nextToken": {},
"maxResults": {
"type": "integer"
},
"filters": {
"shape": "Sr"
}
}
},
"output": {
"type": "structure",
"members": {
"nextToken": {},
"autoScalingGroupRecommendations": {
"type": "list",
"member": {
"type": "structure",
"members": {
"accountId": {},
"autoScalingGroupArn": {},
"autoScalingGroupName": {},
"finding": {},
"utilizationMetrics": {
"shape": "S1d"
},
"lookBackPeriodInDays": {
"type": "double"
},
"currentConfiguration": {
"shape": "S1j"
},
"recommendationOptions": {
"type": "list",
"member": {
"type": "structure",
"members": {
"configuration": {
"shape": "S1j"
},
"projectedUtilizationMetrics": {
"shape": "S1q"
},
"performanceRisk": {
"type": "double"
},
"rank": {
"type": "integer"
}
}
}
},
"lastRefreshTimestamp": {
"type": "timestamp"
}
}
}
},
"errors": {
"shape": "S1u"
}
}
}
},
"GetEC2InstanceRecommendations": {
"input": {
"type": "structure",
"members": {
"instanceArns": {
"type": "list",
"member": {}
},
"nextToken": {},
"maxResults": {
"type": "integer"
},
"filters": {
"shape": "Sr"
},
"accountIds": {
"shape": "Sp"
}
}
},
"output": {
"type": "structure",
"members": {
"nextToken": {},
"instanceRecommendations": {
"type": "list",
"member": {
"type": "structure",
"members": {
"instanceArn": {},
"accountId": {},
"instanceName": {},
"currentInstanceType": {},
"finding": {},
"utilizationMetrics": {
"shape": "S1d"
},
"lookBackPeriodInDays": {
"type": "double"
},
"recommendationOptions": {
"type": "list",
"member": {
"type": "structure",
"members": {
"instanceType": {},
"projectedUtilizationMetrics": {
"shape": "S1q"
},
"performanceRisk": {
"type": "double"
},
"rank": {
"type": "integer"
}
}
}
},
"recommendationSources": {
"type": "list",
"member": {
"type": "structure",
"members": {
"recommendationSourceArn": {},
"recommendationSourceType": {}
}
}
},
"lastRefreshTimestamp": {
"type": "timestamp"
}
}
}
},
"errors": {
"shape": "S1u"
}
}
}
},
"GetEC2RecommendationProjectedMetrics": {
"input": {
"type": "structure",
"required": [
"instanceArn",
"stat",
"period",
"startTime",
"endTime"
],
"members": {
"instanceArn": {},
"stat": {},
"period": {
"type": "integer"
},
"startTime": {
"type": "timestamp"
},
"endTime": {
"type": "timestamp"
}
}
},
"output": {
"type": "structure",
"members": {
"recommendedOptionProjectedMetrics": {
"type": "list",
"member": {
"type": "structure",
"members": {
"recommendedInstanceType": {},
"rank": {
"type": "integer"
},
"projectedMetrics": {
"type": "list",
"member": {
"type": "structure",
"members": {
"name": {},
"timestamps": {
"type": "list",
"member": {
"type": "timestamp"
}
},
"values": {
"type": "list",
"member": {
"type": "double"
}
}
}
}
}
}
}
}
}
}
},
"GetEnrollmentStatus": {
"input": {
"type": "structure",
"members": {}
},
"output": {
"type": "structure",
"members": {
"status": {},
"statusReason": {},
"memberAccountsEnrolled": {
"type": "boolean"
}
}
}
},
"GetRecommendationSummaries": {
"input": {
"type": "structure",
"members": {
"accountIds": {
"shape": "Sp"
},
"nextToken": {},
"maxResults": {
"type": "integer"
}
}
},
"output": {
"type": "structure",
"members": {
"nextToken": {},
"recommendationSummaries": {
"type": "list",
"member": {
"type": "structure",
"members": {
"summaries": {
"type": "list",
"member": {
"type": "structure",
"members": {
"name": {},
"value": {
"type": "double"
}
}
}
},
"recommendationResourceType": {},
"accountId": {}
}
}
}
}
}
},
"UpdateEnrollmentStatus": {
"input": {
"type": "structure",
"required": [
"status"
],
"members": {
"status": {},
"includeMemberAccounts": {
"type": "boolean"
}
}
},
"output": {
"type": "structure",
"members": {
"status": {},
"statusReason": {}
}
}
}
},
"shapes": {
"S7": {
"type": "list",
"member": {}
},
"Sf": {
"type": "structure",
"members": {
"bucket": {},
"key": {},
"metadataKey": {}
}
},
"Sp": {
"type": "list",
"member": {}
},
"Sr": {
"type": "list",
"member": {
"type": "structure",
"members": {
"name": {},
"values": {
"shape": "S7"
}
}
}
},
"Sw": {
"type": "structure",
"members": {
"bucket": {},
"keyPrefix": {}
}
},
"S1d": {
"type": "list",
"member": {
"shape": "S1e"
}
},
"S1e": {
"type": "structure",
"members": {
"name": {},
"statistic": {},
"value": {
"type": "double"
}
}
},
"S1j": {
"type": "structure",
"members": {
"desiredCapacity": {
"type": "integer"
},
"minSize": {
"type": "integer"
},
"maxSize": {
"type": "integer"
},
"instanceType": {}
}
},
"S1q": {
"type": "list",
"member": {
"shape": "S1e"
}
},
"S1u": {
"type": "list",
"member": {
"type": "structure",
"members": {
"identifier": {},
"code": {},
"message": {}
}
}
}
}
}