Continuum / Client / create_supply_chain_policy_exception
create_supply_chain_policy_exception¶
- Continuum.Client.create_supply_chain_policy_exception(**kwargs)¶
Creates a policy exception that suppresses specific rules of one policy, customer-managed or service-managed, for packages that match a package identity, until the exception expires. An exception never produces an allow decision on its own.
See also: AWS API Documentation
Request Syntax
response = client.create_supply_chain_policy_exception( exception={ 'name': 'string', 'policyArn': 'string', 'ruleIds': [ 'string', ], 'package': { 'ecosystem': 'string', 'name': 'string', 'version': 'string', 'versionRange': 'string' }, 'justification': 'string', 'expiresAt': datetime(2015, 1, 1) }, tags={ 'string': 'string' }, clientToken='string' )
- Parameters:
exception (dict) –
[REQUIRED]
The exception to create: the policy and rules it suppresses, the package it applies to, a justification, and an expiry time.
name (string) – [REQUIRED]
Customer-chosen display name.
policyArn (string) – [REQUIRED]
The ARN of the policy that the exception applies to, either a customer-managed or a service-managed policy in the same account and Region.
ruleIds (list) – [REQUIRED]
The IDs of the rules in that policy to suppress.
(string) –
The ID of a rule within a policy.
package (dict) – [REQUIRED]
The package that the exception applies to. Rules are suppressed only for packages that match this identity.
ecosystem (string) – [REQUIRED]
The package ecosystem, such as
npmorpypi.name (string) – [REQUIRED]
The package name, as used in its ecosystem.
version (string) –
Exact version. Mutually exclusive with versionRange, validated server-side.
versionRange (string) –
A version range as one or more comparisons separated by commas, such as
>=1.0, <2.0. Each comparison is=,>,>=,<, or<=followed by a version in the ecosystem’s own format. Ecosystem shorthands such as^1.0or~=1.2aren’t accepted. Mutually exclusive with version.
justification (string) – [REQUIRED]
Why the exception is needed.
expiresAt (datetime) – [REQUIRED]
Must be in the future and no later than 365 days after the exception was originally created.
tags (dict) –
Tags to add to the policy exception when it’s created.
(string) –
The key of a tag.
(string) –
The value of a tag.
clientToken (string) –
Idempotency token. Generated SDKs fill it automatically. Within one hour, the same token with the same exception returns the exception it created. The same token with a different exception, or after that exception was deleted, returns ConflictException. Tags are not compared, and a repeated create leaves the exception’s tags unchanged.
This field is autopopulated if not provided.
- Return type:
dict
- Returns:
Response Syntax
{ 'id': 'string', 'arn': 'string', 'exception': { 'name': 'string', 'policyArn': 'string', 'ruleIds': [ 'string', ], 'package': { 'ecosystem': 'string', 'name': 'string', 'version': 'string', 'versionRange': 'string' }, 'justification': 'string', 'expiresAt': datetime(2015, 1, 1) }, 'status': 'ACTIVE'|'EXPIRED', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1), 'tags': { 'string': 'string' } }
Response Structure
(dict) –
Output for
CreateSupplyChainPolicyException.id (string) –
Opaque identifier generated by the service.
arn (string) –
The ARN of the policy exception.
exception (dict) –
The policy exception as stored.
name (string) –
Customer-chosen display name.
policyArn (string) –
The ARN of the policy that the exception applies to, either a customer-managed or a service-managed policy in the same account and Region.
ruleIds (list) –
The IDs of the rules in that policy to suppress.
(string) –
The ID of a rule within a policy.
package (dict) –
The package that the exception applies to. Rules are suppressed only for packages that match this identity.
ecosystem (string) –
The package ecosystem, such as
npmorpypi.name (string) –
The package name, as used in its ecosystem.
version (string) –
Exact version. Mutually exclusive with versionRange, validated server-side.
versionRange (string) –
A version range as one or more comparisons separated by commas, such as
>=1.0, <2.0. Each comparison is=,>,>=,<, or<=followed by a version in the ecosystem’s own format. Ecosystem shorthands such as^1.0or~=1.2aren’t accepted. Mutually exclusive with version.
justification (string) –
Why the exception is needed.
expiresAt (datetime) –
Must be in the future and no later than 365 days after the exception was originally created.
status (string) –
Computed from expiresAt at read time.
createdAt (datetime) –
The time the policy exception was created.
updatedAt (datetime) –
The time the policy exception was last updated. Equal to createdAt for a new exception.
tags (dict) –
The tags on the policy exception.
(string) –
The key of a tag.
(string) –
The value of a tag.
Exceptions