1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateOpsItem`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`description(impl Into<String>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::set_description):<br>required: **true**<br><p>User-defined text that contains information about the OpsItem, in Markdown format.</p><note>  <p>Provide enough information so that users viewing this OpsItem for the first time understand the issue.</p> </note><br>
    ///   - [`ops_item_type(impl Into<String>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::ops_item_type) / [`set_ops_item_type(Option<String>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::set_ops_item_type):<br>required: **false**<br><p>The type of OpsItem to create. Systems Manager supports the following types of OpsItems:</p> <ul>  <li>   <p><code>/aws/issue</code></p>   <p>This type of OpsItem is used for default OpsItems created by OpsCenter.</p></li>  <li>   <p><code>/aws/changerequest</code></p>   <p>This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change requests.</p></li>  <li>   <p><code>/aws/insight</code></p>   <p>This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate OpsItems.</p></li> </ul><br>
    ///   - [`operational_data(impl Into<String>, OpsItemDataValue)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::operational_data) / [`set_operational_data(Option<HashMap::<String, OpsItemDataValue>>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::set_operational_data):<br>required: **false**<br><p>Operational data is custom data that provides useful reference details about the OpsItem. For example, you can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a maximum size of 20 KB.</p><important>  <p>Operational data keys <i>can't</i> begin with the following: <code>amazon</code>, <code>aws</code>, <code>amzn</code>, <code>ssm</code>, <code>/amazon</code>, <code>/aws</code>, <code>/amzn</code>, <code>/ssm</code>.</p> </important> <p>You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with access to the OpsItem Overview page (as provided by the <code>DescribeOpsItems</code> API operation) can view and search on the specified data. Operational data that isn't searchable is only viewable by users who have access to the OpsItem (as provided by the <code>GetOpsItem</code> API operation).</p> <p>Use the <code>/aws/resources</code> key in OperationalData to specify a related resource in the request. Use the <code>/aws/automations</code> key in OperationalData to associate an Automation runbook with the OpsItem. To view Amazon Web Services CLI example commands that use these keys, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-manually-create-OpsItems.html">Create OpsItems manually</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p><br>
    ///   - [`notifications(OpsItemNotification)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::notifications) / [`set_notifications(Option<Vec::<OpsItemNotification>>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::set_notifications):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed.</p><br>
    ///   - [`priority(i32)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::priority) / [`set_priority(Option<i32>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::set_priority):<br>required: **false**<br><p>The importance of this OpsItem in relation to other OpsItems in the system.</p><br>
    ///   - [`related_ops_items(RelatedOpsItem)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::related_ops_items) / [`set_related_ops_items(Option<Vec::<RelatedOpsItem>>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::set_related_ops_items):<br>required: **false**<br><p>One or more OpsItems that share something in common with the current OpsItems. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.</p><br>
    ///   - [`source(impl Into<String>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::source) / [`set_source(Option<String>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::set_source):<br>required: **true**<br><p>The origin of the OpsItem, such as Amazon EC2 or Systems Manager.</p><note>  <p>The source name can't contain the following strings: <code>aws</code>, <code>amazon</code>, and <code>amzn</code>.</p> </note><br>
    ///   - [`title(impl Into<String>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::title) / [`set_title(Option<String>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::set_title):<br>required: **true**<br><p>A short heading that describes the nature of the OpsItem and the impacted resource.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::set_tags):<br>required: **false**<br><p>Optional metadata that you assign to a resource.</p> <p>Tags use a key-value pair. For example:</p> <p><code>Key=Department,Value=Finance</code></p><important>  <p>To add tags to a new OpsItem, a user must have IAM permissions for both the <code>ssm:CreateOpsItems</code> operation and the <code>ssm:AddTagsToResource</code> operation. To add tags to an existing OpsItem, use the <code>AddTagsToResource</code> operation.</p> </important><br>
    ///   - [`category(impl Into<String>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::category) / [`set_category(Option<String>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::set_category):<br>required: **false**<br><p>Specify a category to assign to an OpsItem.</p><br>
    ///   - [`severity(impl Into<String>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::severity) / [`set_severity(Option<String>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::set_severity):<br>required: **false**<br><p>Specify a severity to assign to an OpsItem.</p><br>
    ///   - [`actual_start_time(DateTime)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::actual_start_time) / [`set_actual_start_time(Option<DateTime>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::set_actual_start_time):<br>required: **false**<br><p>The time a runbook workflow started. Currently reported only for the OpsItem type <code>/aws/changerequest</code>.</p><br>
    ///   - [`actual_end_time(DateTime)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::actual_end_time) / [`set_actual_end_time(Option<DateTime>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::set_actual_end_time):<br>required: **false**<br><p>The time a runbook workflow ended. Currently reported only for the OpsItem type <code>/aws/changerequest</code>.</p><br>
    ///   - [`planned_start_time(DateTime)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::planned_start_time) / [`set_planned_start_time(Option<DateTime>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::set_planned_start_time):<br>required: **false**<br><p>The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem type <code>/aws/changerequest</code>.</p><br>
    ///   - [`planned_end_time(DateTime)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::planned_end_time) / [`set_planned_end_time(Option<DateTime>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::set_planned_end_time):<br>required: **false**<br><p>The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem type <code>/aws/changerequest</code>.</p><br>
    ///   - [`account_id(impl Into<String>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::account_id) / [`set_account_id(Option<String>)`](crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::set_account_id):<br>required: **false**<br><p>The target Amazon Web Services account where you want to create an OpsItem. To make this call, your account must be configured to work with OpsItems across accounts. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-setup.html">Set up OpsCenter</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p><br>
    /// - On success, responds with [`CreateOpsItemOutput`](crate::operation::create_ops_item::CreateOpsItemOutput) with field(s):
    ///   - [`ops_item_id(Option<String>)`](crate::operation::create_ops_item::CreateOpsItemOutput::ops_item_id): <p>The ID of the OpsItem.</p>
    ///   - [`ops_item_arn(Option<String>)`](crate::operation::create_ops_item::CreateOpsItemOutput::ops_item_arn): <p>The OpsItem Amazon Resource Name (ARN).</p>
    /// - On failure, responds with [`SdkError<CreateOpsItemError>`](crate::operation::create_ops_item::CreateOpsItemError)
    pub fn create_ops_item(&self) -> crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder {
        crate::operation::create_ops_item::builders::CreateOpsItemFluentBuilder::new(self.handle.clone())
    }
}