naftiko: 1.0.0-alpha2 info: label: AWS CloudFormation API — Stack Policies description: 'AWS CloudFormation API — Stack Policies. 2 operations. Lead operation: Retrieve a Stack Policy. Self-contained Naftiko capability covering one Cloudformation business surface.' tags: - Cloudformation - Stack Policies 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-policies baseUri: https://cloudformation.{region}.amazonaws.com description: AWS CloudFormation API — Stack Policies business capability. Self-contained, no shared references. resources: - name: ?Action=GetStackPolicy path: /?Action=GetStackPolicy operations: - name: getstackpolicy method: POST description: Retrieve a Stack Policy outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: ?Action=SetStackPolicy path: /?Action=SetStackPolicy operations: - name: setstackpolicy method: POST description: Set a Stack Policy 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-policies-rest port: 8080 description: REST adapter for AWS CloudFormation API — Stack Policies. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/action-getstackpolicy name: action-getstackpolicy description: REST surface for ?Action=GetStackPolicy. operations: - method: POST name: getstackpolicy description: Retrieve a Stack Policy call: cloudformation-stack-policies.getstackpolicy with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/action-setstackpolicy name: action-setstackpolicy description: REST surface for ?Action=SetStackPolicy. operations: - method: POST name: setstackpolicy description: Set a Stack Policy call: cloudformation-stack-policies.setstackpolicy with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: cloudformation-stack-policies-mcp port: 9090 transport: http description: MCP adapter for AWS CloudFormation API — Stack Policies. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: retrieve-stack-policy description: Retrieve a Stack Policy hints: readOnly: true destructive: false idempotent: false call: cloudformation-stack-policies.getstackpolicy with: body: tools.body outputParameters: - type: object mapping: $. - name: set-stack-policy description: Set a Stack Policy hints: readOnly: false destructive: false idempotent: false call: cloudformation-stack-policies.setstackpolicy with: body: tools.body outputParameters: - type: object mapping: $.