create_cis_scan_configuration
async
¶
create_cis_scan_configuration(
scan_name: CisScanName,
security_level: CisSecurityLevel,
schedule: Schedule,
targets: CreateCisTargets,
*,
config_overrides: Optional[AsyncInspector2ClientConfig] = None,
tags: Optional[CisTagMap] = None,
) -> CreateCisScanConfigurationResponse
Creates a CIS scan configuration.
Parameters:
-
scan_name(CisScanName) –The scan name for the CIS scan configuration.
-
security_level(CisSecurityLevel) –The security level for the CIS scan configuration. Security level refers to the Benchmark levels that CIS assigns to a profile.
-
schedule(Schedule) –The schedule for the CIS scan configuration.
-
targets(CreateCisTargets) –The targets for the CIS scan configuration.
-
tags(Optional[CisTagMap], default:None) –The tags for the CIS scan configuration.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
For
Enable, you receive this error if you attempt to use a feature in an unsupported Amazon Web Services Region. -
InternalServerException–The request has failed due to an internal failure of the Amazon Inspector service.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation due to missing required fields or having invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Sample CreateCisScanConfiguration Call
>>> await client.create_cis_scan_configuration(scan_name='sample', security_level='LEVEL_1', schedule={'daily': {'startTime': {'timeOfDay': '12:34', 'timezone': 'UTC'}}}, targets={'accountIds': ['SELF'], 'targetResourceTags': {'key': ['value']}})
Source code in docs_src/capo_inspector2/_services/async_inspector2.py
997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 | |