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
Description: "Creates a new Fleet Agent Policy. See https://www.elastic.co/guide/en/fleet/current/agent-policy.html",
22
+
Attributes: map[string]schema.Attribute{
23
+
"id": schema.StringAttribute{
24
+
Description: "The ID of this resource.",
25
+
Computed: true,
26
+
PlanModifiers: []planmodifier.String{
27
+
stringplanmodifier.UseStateForUnknown(),
28
+
},
29
+
},
30
+
"policy_id": schema.StringAttribute{
31
+
Description: "Unique identifier of the agent policy.",
32
+
Computed: true,
33
+
Optional: true,
34
+
PlanModifiers: []planmodifier.String{
35
+
stringplanmodifier.UseStateForUnknown(),
36
+
stringplanmodifier.RequiresReplace(),
37
+
},
38
+
},
39
+
"name": schema.StringAttribute{
40
+
Description: "The name of the agent policy.",
41
+
Required: true,
42
+
},
43
+
"namespace": schema.StringAttribute{
44
+
Description: "The namespace of the agent policy.",
45
+
Required: true,
46
+
},
47
+
"description": schema.StringAttribute{
48
+
Description: "The description of the agent policy.",
49
+
Optional: true,
50
+
},
51
+
"data_output_id": schema.StringAttribute{
52
+
Description: "The identifier for the data output.",
53
+
Optional: true,
54
+
},
55
+
"monitoring_output_id": schema.StringAttribute{
56
+
Description: "The identifier for monitoring output.",
57
+
Optional: true,
22
58
},
23
-
},
24
-
"policy_id": schema.StringAttribute{
25
-
Description: "Unique identifier of the agent policy.",
26
-
Computed: true,
27
-
Optional: true,
28
-
PlanModifiers: []planmodifier.String{
29
-
stringplanmodifier.UseStateForUnknown(),
30
-
stringplanmodifier.RequiresReplace(),
59
+
"fleet_server_host_id": schema.StringAttribute{
60
+
Description: "The identifier for the Fleet server host.",
61
+
Optional: true,
31
62
},
32
-
},
33
-
"name": schema.StringAttribute{
34
-
Description: "The name of the agent policy.",
35
-
Required: true,
36
-
},
37
-
"namespace": schema.StringAttribute{
38
-
Description: "The namespace of the agent policy.",
39
-
Required: true,
40
-
},
41
-
"description": schema.StringAttribute{
42
-
Description: "The description of the agent policy.",
43
-
Optional: true,
44
-
},
45
-
"data_output_id": schema.StringAttribute{
46
-
Description: "The identifier for the data output.",
47
-
Optional: true,
48
-
},
49
-
"monitoring_output_id": schema.StringAttribute{
50
-
Description: "The identifier for monitoring output.",
51
-
Optional: true,
52
-
},
53
-
"fleet_server_host_id": schema.StringAttribute{
54
-
Description: "The identifier for the Fleet server host.",
55
-
Optional: true,
56
-
},
57
-
"download_source_id": schema.StringAttribute{
58
-
Description: "The identifier for the Elastic Agent binary download server.",
59
-
Optional: true,
60
-
},
61
-
"monitor_logs": schema.BoolAttribute{
62
-
Description: "Enable collection of agent logs.",
63
-
Computed: true,
64
-
Optional: true,
65
-
Default: booldefault.StaticBool(false),
66
-
},
67
-
"monitor_metrics": schema.BoolAttribute{
68
-
Description: "Enable collection of agent metrics.",
69
-
Computed: true,
70
-
Optional: true,
71
-
Default: booldefault.StaticBool(false),
72
-
},
73
-
"skip_destroy": schema.BoolAttribute{
74
-
Description: "Set to true if you do not wish the agent policy to be deleted at destroy time, and instead just remove the agent policy from the Terraform state.",
75
-
Optional: true,
76
-
},
77
-
"sys_monitoring": schema.BoolAttribute{
78
-
Description: "Enable collection of system logs and metrics.",
79
-
Optional: true,
80
-
PlanModifiers: []planmodifier.Bool{
81
-
boolplanmodifier.RequiresReplace(),
63
+
"download_source_id": schema.StringAttribute{
64
+
Description: "The identifier for the Elastic Agent binary download server.",
65
+
Optional: true,
82
66
},
83
-
},
84
-
}
67
+
"monitor_logs": schema.BoolAttribute{
68
+
Description: "Enable collection of agent logs.",
69
+
Computed: true,
70
+
Optional: true,
71
+
Default: booldefault.StaticBool(false),
72
+
},
73
+
"monitor_metrics": schema.BoolAttribute{
74
+
Description: "Enable collection of agent metrics.",
75
+
Computed: true,
76
+
Optional: true,
77
+
Default: booldefault.StaticBool(false),
78
+
},
79
+
"skip_destroy": schema.BoolAttribute{
80
+
Description: "Set to true if you do not wish the agent policy to be deleted at destroy time, and instead just remove the agent policy from the Terraform state.",
81
+
Optional: true,
82
+
},
83
+
"sys_monitoring": schema.BoolAttribute{
84
+
Description: "Enable collection of system logs and metrics.",
85
+
Optional: true,
86
+
PlanModifiers: []planmodifier.Bool{
87
+
boolplanmodifier.RequiresReplace(),
88
+
},
89
+
},
90
+
"global_data_tags": schema.ListNestedAttribute{
91
+
Description: "User defined data tags to apply to all inputs. Values can be strings, or numbers",
0 commit comments