{
  "opencollection": "1.0.0",
  "info": {
    "name": "CodeArtifact Authorization Token#domain API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Authorization Token#domain",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Amazon CodeArtifact Get Authorization Token",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://codeartifact.{region}.amazonaws.com/v1/authorization-token#domain",
            "headers": [
              {
                "name": "X-Amz-Content-Sha256",
                "value": ""
              },
              {
                "name": "X-Amz-Date",
                "value": ""
              },
              {
                "name": "X-Amz-Algorithm",
                "value": ""
              },
              {
                "name": "X-Amz-Credential",
                "value": ""
              },
              {
                "name": "X-Amz-Security-Token",
                "value": ""
              },
              {
                "name": "X-Amz-Signature",
                "value": ""
              },
              {
                "name": "X-Amz-SignedHeaders",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "domain",
                "value": "",
                "type": "query",
                "description": " The name of the domain that is in scope for the generated authorization token. "
              },
              {
                "name": "domain-owner",
                "value": "",
                "type": "query",
                "description": " The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. "
              },
              {
                "name": "duration",
                "value": "",
                "type": "query",
                "description": "The time, in seconds, that the generated authorization token is valid. Valid values are <code>0</code> and any number between <code>900</code> (15 minutes) and <code>43200</code> (12 hours). A value of <code>0</code> will set the expiration of the authorization token to the same expiration of the user's role's temporary credentials."
              }
            ]
          },
          "docs": "<p> Generates a temporary authorization token for accessing repositories in the domain. This API requires the <code>codeartifact:GetAuthorizationToken</code> and <code>sts:GetServiceBearerToken</code> permissions. For more information about authorization tokens, see <a href=\"https://docs.aws.amazon.com/codeartifact/latest/ug/tokens-authentication.html\">CodeArtifact authentication and tokens</a>. </p> <note> <p>CodeArtifact authorization tokens are valid for a period of 12 hours when created with"
        }
      ]
    }
  ],
  "bundled": true
}