arazzo: 1.0.1
info:
title: Amazon Firewall Manager Create And Verify Policy
summary: Create or update a Firewall Manager policy and confirm it persisted by reading it back.
description: >-
Creates or updates an AWS Firewall Manager security policy with PutPolicy,
then reads the stored policy back with GetPolicy using the returned policy
id to confirm the write succeeded. Each step inlines its request so the flow
can be read and executed without opening the underlying OpenAPI description.
version: 1.0.0
x-realizes-capability-ids:
- BC-620
x-capability-derivation:
method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
min_confidence: 0.7
sources:
- capability_id: BC-620
capability_name: Cybersecurity Management
spec: amazon-firewall-manager-policies-api-openapi.yml
confidence: 0.82
model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: policiesApi
url: ../openapi/amazon-firewall-manager-policies-api-openapi.yml
type: openapi
workflows:
- workflowId: create-and-verify-policy
summary: Put a Firewall Manager policy and read it back to confirm it persisted.
description: >-
Submits a policy definition to PutPolicy and then fetches the same policy
by its id to verify the create-or-update operation took effect.
inputs:
type: object
required:
- policyName
- securityServiceType
- resourceType
properties:
policyName:
type: string
description: The friendly name of the Firewall Manager policy.
securityServiceType:
type: string
description: The security service type, e.g. WAFV2 or SHIELD_ADVANCED.
resourceType:
type: string
description: The resource type the policy applies to, e.g. AWS::ElasticLoadBalancingV2::LoadBalancer.
excludeResourceTags:
type: boolean
description: Whether to exclude rather than include the tagged resources.
remediationEnabled:
type: boolean
description: Whether Firewall Manager automatically remediates noncompliant resources.
steps:
- stepId: PutPolicy
description: >-
Create or update the Firewall Manager policy from the supplied policy
definition.
operationId: PutPolicy
requestBody:
contentType: application/json
payload:
Policy:
PolicyName: $inputs.policyName
SecurityServicePolicyData:
Type: $inputs.securityServiceType
ResourceType: $inputs.resourceType
ExcludeResourceTags: $inputs.excludeResourceTags
RemediationEnabled: $inputs.remediationEnabled
successCriteria:
- condition: $statusCode == 200
outputs:
policyId: $response.body#/Policy/PolicyId
policyArn: $response.body#/PolicyArn
policyUpdateToken: $response.body#/Policy/PolicyUpdateToken
- stepId: verifyPolicy
description: >-
Read the policy back by its id to confirm the create-or-update succeeded.
operationId: GetPolicy
requestBody:
contentType: application/x-amz-json-1.1
payload:
PolicyId: $steps.PutPolicy.outputs.policyId
successCriteria:
- condition: $statusCode == 200
outputs:
policyName: $response.body#/Policy/PolicyName
policyArn: $response.body#/PolicyArn
outputs:
policyId: $steps.PutPolicy.outputs.policyId
policyArn: $steps.verifyPolicy.outputs.policyArn
policyName: $steps.verifyPolicy.outputs.policyName
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.