naftiko: 1.0.0-alpha2 info: label: AWS CloudFormation API — Stack Drift description: 'AWS CloudFormation API — Stack Drift. 4 operations. Lead operation: Check Status of Drift Detection. Self-contained Naftiko capability covering one Cloudformation business surface.' tags: - Cloudformation - Stack Drift created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CLOUDFORMATION_API_KEY: CLOUDFORMATION_API_KEY capability: consumes: - type: http namespace: cloudformation-stack-drift baseUri: https://cloudformation.{region}.amazonaws.com description: AWS CloudFormation API — Stack Drift business capability. Self-contained, no shared references. resources: - name: ?Action=DescribeStackDriftDetectionStatus path: /?Action=DescribeStackDriftDetectionStatus operations: - name: describestackdriftdetectionstatus method: POST description: Check Status of Drift Detection outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: ?Action=DescribeStackResourceDrifts path: /?Action=DescribeStackResourceDrifts operations: - name: describestackresourcedrifts method: POST description: Get Drift Information for Stack Resources outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: ?Action=DetectStackDrift path: /?Action=DetectStackDrift operations: - name: detectstackdrift method: POST description: Detect Configuration Drift on a Stack outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: ?Action=DetectStackResourceDrift path: /?Action=DetectStackResourceDrift operations: - name: detectstackresourcedrift method: POST description: Detect Drift on a Specific Resource outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: Authorization value: '{{env.CLOUDFORMATION_API_KEY}}' placement: header exposes: - type: rest namespace: cloudformation-stack-drift-rest port: 8080 description: REST adapter for AWS CloudFormation API — Stack Drift. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/action-describestackdriftdetectionstatus name: action-describestackdriftdetectionstatus description: REST surface for ?Action=DescribeStackDriftDetectionStatus. operations: - method: POST name: describestackdriftdetectionstatus description: Check Status of Drift Detection call: cloudformation-stack-drift.describestackdriftdetectionstatus with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/action-describestackresourcedrifts name: action-describestackresourcedrifts description: REST surface for ?Action=DescribeStackResourceDrifts. operations: - method: POST name: describestackresourcedrifts description: Get Drift Information for Stack Resources call: cloudformation-stack-drift.describestackresourcedrifts with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/action-detectstackdrift name: action-detectstackdrift description: REST surface for ?Action=DetectStackDrift. operations: - method: POST name: detectstackdrift description: Detect Configuration Drift on a Stack call: cloudformation-stack-drift.detectstackdrift with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/action-detectstackresourcedrift name: action-detectstackresourcedrift description: REST surface for ?Action=DetectStackResourceDrift. operations: - method: POST name: detectstackresourcedrift description: Detect Drift on a Specific Resource call: cloudformation-stack-drift.detectstackresourcedrift with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: cloudformation-stack-drift-mcp port: 9090 transport: http description: MCP adapter for AWS CloudFormation API — Stack Drift. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: check-status-drift-detection description: Check Status of Drift Detection hints: readOnly: true destructive: false idempotent: false call: cloudformation-stack-drift.describestackdriftdetectionstatus with: body: tools.body outputParameters: - type: object mapping: $. - name: get-drift-information-stack-resources description: Get Drift Information for Stack Resources hints: readOnly: true destructive: false idempotent: false call: cloudformation-stack-drift.describestackresourcedrifts with: body: tools.body outputParameters: - type: object mapping: $. - name: detect-configuration-drift-stack description: Detect Configuration Drift on a Stack hints: readOnly: false destructive: false idempotent: false call: cloudformation-stack-drift.detectstackdrift with: body: tools.body outputParameters: - type: object mapping: $. - name: detect-drift-specific-resource description: Detect Drift on a Specific Resource hints: readOnly: false destructive: false idempotent: false call: cloudformation-stack-drift.detectstackresourcedrift with: body: tools.body outputParameters: - type: object mapping: $.