You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"aws_ssm_maintenance_window_task" {
source="./modules/aws/r/aws_ssm_maintenance_window_task"# description - (optional) is a type of stringdescription=null# max_concurrency - (required) is a type of stringmax_concurrency=null# max_errors - (required) is a type of stringmax_errors=null# name - (optional) is a type of stringname=null# priority - (optional) is a type of numberpriority=null# service_role_arn - (optional) is a type of stringservice_role_arn=null# task_arn - (required) is a type of stringtask_arn=null# task_type - (required) is a type of stringtask_type=null# window_id - (required) is a type of stringwindow_id=nulltargets=[{
key =null
values = []
}]
task_invocation_parameters=[{
automation_parameters = [{
document_version =null
parameter = [{
name =null
values = []
}]
}]
lambda_parameters = [{
client_context =null
payload =null
qualifier =null
}]
run_command_parameters = [{
cloudwatch_config = [{
cloudwatch_log_group_name =null
cloudwatch_output_enabled =null
}]
comment =null
document_hash =null
document_hash_type =null
document_version =null
notification_config = [{
notification_arn =null
notification_events = []
notification_type =null
}]
output_s3_bucket =null
output_s3_key_prefix =null
parameter = [{
name =null
values = []
}]
service_role_arn =null
timeout_seconds =null
}]
step_functions_parameters = [{
input =null
name =null
}]
}]
}
resource"aws_ssm_maintenance_window_task""this" {
# description - (optional) is a type of stringdescription=var.description# max_concurrency - (required) is a type of stringmax_concurrency=var.max_concurrency# max_errors - (required) is a type of stringmax_errors=var.max_errors# name - (optional) is a type of stringname=var.name# priority - (optional) is a type of numberpriority=var.priority# service_role_arn - (optional) is a type of stringservice_role_arn=var.service_role_arn# task_arn - (required) is a type of stringtask_arn=var.task_arn# task_type - (required) is a type of stringtask_type=var.task_type# window_id - (required) is a type of stringwindow_id=var.window_iddynamic"targets" {
for_each=var.targetscontent {
# key - (required) is a type of stringkey=targets.value["key"]
# values - (required) is a type of list of stringvalues=targets.value["values"]
}
}
dynamic"task_invocation_parameters" {
for_each=var.task_invocation_parameterscontent {
dynamic"automation_parameters" {
for_each=task_invocation_parameters.value.automation_parameterscontent {
# document_version - (optional) is a type of stringdocument_version=automation_parameters.value["document_version"]
dynamic"parameter" {
for_each=automation_parameters.value.parametercontent {
# name - (required) is a type of stringname=parameter.value["name"]
# values - (required) is a type of list of stringvalues=parameter.value["values"]
}
}
}
}
dynamic"lambda_parameters" {
for_each=task_invocation_parameters.value.lambda_parameterscontent {
# client_context - (optional) is a type of stringclient_context=lambda_parameters.value["client_context"]
# payload - (optional) is a type of stringpayload=lambda_parameters.value["payload"]
# qualifier - (optional) is a type of stringqualifier=lambda_parameters.value["qualifier"]
}
}
dynamic"run_command_parameters" {
for_each=task_invocation_parameters.value.run_command_parameterscontent {
# comment - (optional) is a type of stringcomment=run_command_parameters.value["comment"]
# document_hash - (optional) is a type of stringdocument_hash=run_command_parameters.value["document_hash"]
# document_hash_type - (optional) is a type of stringdocument_hash_type=run_command_parameters.value["document_hash_type"]
# document_version - (optional) is a type of stringdocument_version=run_command_parameters.value["document_version"]
# output_s3_bucket - (optional) is a type of stringoutput_s3_bucket=run_command_parameters.value["output_s3_bucket"]
# output_s3_key_prefix - (optional) is a type of stringoutput_s3_key_prefix=run_command_parameters.value["output_s3_key_prefix"]
# service_role_arn - (optional) is a type of stringservice_role_arn=run_command_parameters.value["service_role_arn"]
# timeout_seconds - (optional) is a type of numbertimeout_seconds=run_command_parameters.value["timeout_seconds"]
dynamic"cloudwatch_config" {
for_each=run_command_parameters.value.cloudwatch_configcontent {
# cloudwatch_log_group_name - (optional) is a type of stringcloudwatch_log_group_name=cloudwatch_config.value["cloudwatch_log_group_name"]
# cloudwatch_output_enabled - (optional) is a type of boolcloudwatch_output_enabled=cloudwatch_config.value["cloudwatch_output_enabled"]
}
}
dynamic"notification_config" {
for_each=run_command_parameters.value.notification_configcontent {
# notification_arn - (optional) is a type of stringnotification_arn=notification_config.value["notification_arn"]
# notification_events - (optional) is a type of list of stringnotification_events=notification_config.value["notification_events"]
# notification_type - (optional) is a type of stringnotification_type=notification_config.value["notification_type"]
}
}
dynamic"parameter" {
for_each=run_command_parameters.value.parametercontent {
# name - (required) is a type of stringname=parameter.value["name"]
# values - (required) is a type of list of stringvalues=parameter.value["values"]
}
}
}
}
dynamic"step_functions_parameters" {
for_each=task_invocation_parameters.value.step_functions_parameterscontent {
# input - (optional) is a type of stringinput=step_functions_parameters.value["input"]
# name - (optional) is a type of stringname=step_functions_parameters.value["name"]
}
}
}
}
}