Unverified Commit bf25694c authored by Russell Cohen's avatar Russell Cohen Committed by GitHub
Browse files

Release 6/22 (#1486)

* Update models

* Update versions
parent 9f470718
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ class Route53Decorator : RustCodegenDecorator<ClientCodegenContext> {
    override val name: String = "Route53"
    override val order: Byte = 0
    private val logger: Logger = Logger.getLogger(javaClass.name)
    private val resourceShapes = setOf(ShapeId.from("com.amazonaws.route53#ResourceId"), ShapeId.from("com.amazonaws.route53#ChangeId"))

    private fun applies(service: ServiceShape) = service.id == Route53

@@ -59,7 +60,7 @@ class Route53Decorator : RustCodegenDecorator<ClientCodegenContext> {
    }

    private fun isResourceId(shape: Shape): Boolean {
        return (shape is MemberShape && shape.target == ShapeId.from("com.amazonaws.route53#ResourceId")) && shape.hasTrait<HttpLabelTrait>()
        return (shape is MemberShape && resourceShapes.contains(shape.target)) && shape.hasTrait<HttpLabelTrait>()
    }
}

+146 −95

File changed.

Preview size limit exceeded, changes collapsed.

+26 −5
Original line number Diff line number Diff line
@@ -461,7 +461,7 @@
                "evidenceByTypeConfigurationDataCount": {
                    "target": "com.amazonaws.auditmanager#Integer",
                    "traits": {
                        "smithy.api#documentation": "<p> The number of evidence that falls under the configuration data category. This\n            evidence is collected from configuration snapshots of other Amazon Web Services services such as Amazon EC2, Amazon S3, or IAM. </p>"
                        "smithy.api#documentation": "<p> The number of evidence that falls under the configuration data category. This\n            evidence is collected from configuration snapshots of other Amazon Web Services such as Amazon EC2, Amazon S3, or IAM. </p>"
                    }
                },
                "evidenceByTypeManualCount": {
@@ -4956,7 +4956,7 @@
                }
            ],
            "traits": {
                "smithy.api#documentation": "<p> Returns a list of the in-scope Amazon Web Services services for the specified\n         assessment. </p>",
                "smithy.api#documentation": "<p> Returns a list of the in-scope Amazon Web Services for the specified\n         assessment. </p>",
                "smithy.api#http": {
                    "method": "GET",
                    "uri": "/services",
@@ -6274,6 +6274,9 @@
                {
                    "target": "com.amazonaws.auditmanager#ResourceNotFoundException"
                },
                {
                    "target": "com.amazonaws.auditmanager#ThrottlingException"
                },
                {
                    "target": "com.amazonaws.auditmanager#ValidationException"
                }
@@ -6437,13 +6440,15 @@
                "roleType": {
                    "target": "com.amazonaws.auditmanager#RoleType",
                    "traits": {
                        "smithy.api#documentation": "<p> The type of customer persona. </p>\n         <note>\n            <p>In <code>CreateAssessment</code>, <code>roleType</code> can only be\n               <code>PROCESS_OWNER</code>. </p>\n            <p>In <code>UpdateSettings</code>, <code>roleType</code> can only be\n               <code>PROCESS_OWNER</code>.</p>\n            <p>In <code>BatchCreateDelegationByAssessment</code>, <code>roleType</code> can only be\n               <code>RESOURCE_OWNER</code>.</p>\n         </note>"
                        "smithy.api#documentation": "<p> The type of customer persona. </p>\n         <note>\n            <p>In <code>CreateAssessment</code>, <code>roleType</code> can only be\n               <code>PROCESS_OWNER</code>. </p>\n            <p>In <code>UpdateSettings</code>, <code>roleType</code> can only be\n               <code>PROCESS_OWNER</code>.</p>\n            <p>In <code>BatchCreateDelegationByAssessment</code>, <code>roleType</code> can only be\n               <code>RESOURCE_OWNER</code>.</p>\n         </note>",
                        "smithy.api#required": {}
                    }
                },
                "roleArn": {
                    "target": "com.amazonaws.auditmanager#IamArn",
                    "traits": {
                        "smithy.api#documentation": "<p> The Amazon Resource Name (ARN) of the IAM role. </p>"
                        "smithy.api#documentation": "<p> The Amazon Resource Name (ARN) of the IAM role. </p>",
                        "smithy.api#required": {}
                    }
                }
            },
@@ -6831,7 +6836,7 @@
                }
            ],
            "traits": {
                "smithy.api#documentation": "<p> Creates a share request for a custom framework in Audit Manager. </p>\n         <p>The share request specifies a recipient and notifies them that a custom framework is available. Recipients have 120 days to accept or decline the request. If no action is taken, the share request expires.</p>\n         <important>\n            <p>When you invoke the <code>StartAssessmentFrameworkShare</code> API, you are about to\n            share a custom framework with another Amazon Web Services account. You may not share a\n            custom framework that is derived from a standard framework if the standard framework is\n            designated as not eligible for sharing by Amazon Web Services, unless you have obtained\n            permission to do so from the owner of the standard framework. To learn more about which\n            standard frameworks are eligible for sharing, see <a href=\"https://docs.aws.amazon.com/audit-manager/latest/userguide/share-custom-framework-concepts-and-terminology.html#eligibility\">Framework sharing eligibility</a> in the <i>Audit Manager User\n               Guide</i>.</p>\n         </important>",
                "smithy.api#documentation": "<p> Creates a share request for a custom framework in Audit Manager. </p>\n         <p>The share request specifies a recipient and notifies them that a custom framework is available. Recipients have 120 days to accept or decline the request. If no action is taken, the share request expires.</p>\n         <p>When you create a share request, Audit Manager stores a snapshot of your custom\n         framework in the US East (N. Virginia) Amazon Web Services Region. Audit Manager also\n         stores a backup of the same snapshot in the US West (Oregon) Amazon Web Services Region.</p>\n         <p>Audit Manager deletes the snapshot and the backup snapshot when one of the following\n         events occurs:</p>\n         <ul>\n            <li>\n               <p>The sender revokes the share request.</p>\n            </li>\n            <li>\n               <p>The recipient declines the share request.</p>\n            </li>\n            <li>\n               <p>The recipient encounters an error and doesn't successfully accept the share\n               request.</p>\n            </li>\n            <li>\n               <p>The share request expires before the recipient responds to the request.</p>\n            </li>\n         </ul>\n         <p>When a sender <a href=\"https://docs.aws.amazon.com/audit-manager/latest/userguide/framework-sharing.html#framework-sharing-resend\">resends a share request</a>, the snapshot is replaced with an updated version that\n         corresponds with the latest version of the custom framework. </p>\n         <p>When a recipient accepts a share request, the snapshot is replicated into their\n            Amazon Web Services account under the Amazon Web Services Region that was specified in the share request. </p>\n         <important>\n            <p>When you invoke the <code>StartAssessmentFrameworkShare</code> API, you are about to\n            share a custom framework with another Amazon Web Services account. You may not share a\n            custom framework that is derived from a standard framework if the standard framework is\n            designated as not eligible for sharing by Amazon Web Services, unless you have obtained\n            permission to do so from the owner of the standard framework. To learn more about which\n            standard frameworks are eligible for sharing, see <a href=\"https://docs.aws.amazon.com/audit-manager/latest/userguide/share-custom-framework-concepts-and-terminology.html#eligibility\">Framework sharing eligibility</a> in the <i>Audit Manager User\n               Guide</i>.</p>\n         </important>",
                "smithy.api#http": {
                    "method": "POST",
                    "uri": "/assessmentFrameworks/{frameworkId}/shareRequests",
@@ -7002,6 +7007,22 @@
                "smithy.api#pattern": "^[\\w\\W\\s\\S]*$"
            }
        },
        "com.amazonaws.auditmanager#ThrottlingException": {
            "type": "structure",
            "members": {
                "message": {
                    "target": "com.amazonaws.auditmanager#String",
                    "traits": {
                        "smithy.api#required": {}
                    }
                }
            },
            "traits": {
                "smithy.api#documentation": "<p>The request was denied due to request throttling.</p>",
                "smithy.api#error": "client",
                "smithy.api#httpError": 400
            }
        },
        "com.amazonaws.auditmanager#Timestamp": {
            "type": "timestamp"
        },
+166 −2
Original line number Diff line number Diff line
@@ -427,6 +427,56 @@
                "smithy.api#pattern": "^arn:(aws|aws-cn|aws-us-gov):backup-gateway(:[a-zA-Z-0-9]+){3}\\/[a-zA-Z-0-9]+$"
            }
        },
        "com.amazonaws.backupgateway#GatewayDetails": {
            "type": "structure",
            "members": {
                "GatewayArn": {
                    "target": "com.amazonaws.backupgateway#GatewayArn",
                    "traits": {
                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the \n      gateway. Use the <code>ListGateways</code> operation\n      to return a list of gateways for your account and \n      Amazon Web Services Region.</p>"
                    }
                },
                "GatewayDisplayName": {
                    "target": "com.amazonaws.backupgateway#Name",
                    "traits": {
                        "smithy.api#documentation": "<p>The display name of the gateway.</p>"
                    }
                },
                "GatewayType": {
                    "target": "com.amazonaws.backupgateway#GatewayType",
                    "traits": {
                        "smithy.api#documentation": "<p>The type of the gateway type.</p>"
                    }
                },
                "HypervisorId": {
                    "target": "com.amazonaws.backupgateway#HypervisorId",
                    "traits": {
                        "smithy.api#documentation": "<p>The hypervisor ID of the gateway.</p>"
                    }
                },
                "LastSeenTime": {
                    "target": "com.amazonaws.backupgateway#Time",
                    "traits": {
                        "smithy.api#documentation": "<p>Details showing the last time Backup gateway communicated\n      with the cloud, in Unix format and UTC time.</p>"
                    }
                },
                "NextUpdateAvailabilityTime": {
                    "target": "com.amazonaws.backupgateway#Time",
                    "traits": {
                        "smithy.api#documentation": "<p>Details showing the next update availability time of the \n      gateway.</p>"
                    }
                },
                "VpcEndpoint": {
                    "target": "com.amazonaws.backupgateway#VpcEndpoint",
                    "traits": {
                        "smithy.api#documentation": "<p>The DNS name for the virtual private cloud (VPC) endpoint the gateway \n      uses to connect to the cloud for backup gateway.</p>"
                    }
                }
            },
            "traits": {
                "smithy.api#documentation": "<p>The details of gateway.</p>"
            }
        },
        "com.amazonaws.backupgateway#GatewayResource": {
            "type": "resource",
            "identifiers": {
@@ -437,6 +487,9 @@
            "create": {
                "target": "com.amazonaws.backupgateway#CreateGateway"
            },
            "read": {
                "target": "com.amazonaws.backupgateway#GetGateway"
            },
            "update": {
                "target": "com.amazonaws.backupgateway#UpdateGatewayInformation"
            },
@@ -458,6 +511,9 @@
                },
                {
                    "target": "com.amazonaws.backupgateway#TestHypervisorConfiguration"
                },
                {
                    "target": "com.amazonaws.backupgateway#UpdateGatewaySoftwareNow"
                }
            ],
            "traits": {
@@ -483,6 +539,53 @@
                "target": "com.amazonaws.backupgateway#Gateway"
            }
        },
        "com.amazonaws.backupgateway#GetGateway": {
            "type": "operation",
            "input": {
                "target": "com.amazonaws.backupgateway#GetGatewayInput"
            },
            "output": {
                "target": "com.amazonaws.backupgateway#GetGatewayOutput"
            },
            "errors": [
                {
                    "target": "com.amazonaws.backupgateway#InternalServerException"
                },
                {
                    "target": "com.amazonaws.backupgateway#ResourceNotFoundException"
                },
                {
                    "target": "com.amazonaws.backupgateway#ValidationException"
                }
            ],
            "traits": {
                "smithy.api#documentation": "<p>By providing the ARN (Amazon Resource Name), this\n      API returns the gateway.</p>",
                "smithy.api#readonly": {}
            }
        },
        "com.amazonaws.backupgateway#GetGatewayInput": {
            "type": "structure",
            "members": {
                "GatewayArn": {
                    "target": "com.amazonaws.backupgateway#GatewayArn",
                    "traits": {
                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the gateway.</p>",
                        "smithy.api#required": {}
                    }
                }
            }
        },
        "com.amazonaws.backupgateway#GetGatewayOutput": {
            "type": "structure",
            "members": {
                "Gateway": {
                    "target": "com.amazonaws.backupgateway#GatewayDetails",
                    "traits": {
                        "smithy.api#documentation": "<p>By providing the ARN (Amazon Resource Name), this\n      API returns the gateway.</p>"
                    }
                }
            }
        },
        "com.amazonaws.backupgateway#Host": {
            "type": "string",
            "traits": {
@@ -1123,7 +1226,7 @@
                "Value": {
                    "target": "com.amazonaws.backupgateway#TagValue",
                    "traits": {
                        "smithy.api#documentation": "<p>The key part of a value's key-value pair.</p>",
                        "smithy.api#documentation": "<p>The value part of a tag's key-value pair.</p>",
                        "smithy.api#required": {}
                    }
                }
@@ -1389,6 +1492,52 @@
                }
            }
        },
        "com.amazonaws.backupgateway#UpdateGatewaySoftwareNow": {
            "type": "operation",
            "input": {
                "target": "com.amazonaws.backupgateway#UpdateGatewaySoftwareNowInput"
            },
            "output": {
                "target": "com.amazonaws.backupgateway#UpdateGatewaySoftwareNowOutput"
            },
            "errors": [
                {
                    "target": "com.amazonaws.backupgateway#InternalServerException"
                },
                {
                    "target": "com.amazonaws.backupgateway#ResourceNotFoundException"
                },
                {
                    "target": "com.amazonaws.backupgateway#ValidationException"
                }
            ],
            "traits": {
                "smithy.api#documentation": "<p>Updates the gateway virtual machine (VM) software. \n      The request immediately triggers the software update.</p>\n         <note>\n            <p>When you make this request, you get a <code>200 OK</code>\n        success response immediately. However, it might take some \n        time for the update to complete.</p>\n         </note>"
            }
        },
        "com.amazonaws.backupgateway#UpdateGatewaySoftwareNowInput": {
            "type": "structure",
            "members": {
                "GatewayArn": {
                    "target": "com.amazonaws.backupgateway#GatewayArn",
                    "traits": {
                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the gateway\n      to be updated.</p>",
                        "smithy.api#required": {}
                    }
                }
            }
        },
        "com.amazonaws.backupgateway#UpdateGatewaySoftwareNowOutput": {
            "type": "structure",
            "members": {
                "GatewayArn": {
                    "target": "com.amazonaws.backupgateway#GatewayArn",
                    "traits": {
                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the gateway\n      you updated.</p>"
                    }
                }
            }
        },
        "com.amazonaws.backupgateway#UpdateHypervisor": {
            "type": "operation",
            "input": {
@@ -1442,6 +1591,12 @@
                    "traits": {
                        "smithy.api#documentation": "<p>The updated password for the hypervisor.</p>"
                    }
                },
                "Name": {
                    "target": "com.amazonaws.backupgateway#Name",
                    "traits": {
                        "smithy.api#documentation": "<p>The updated name for the hypervisor</p>"
                    }
                }
            }
        },
@@ -1516,7 +1671,7 @@
                "ResourceArn": {
                    "target": "com.amazonaws.backupgateway#ResourceArn",
                    "traits": {
                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the virtual machine.</p>"
                        "smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the virtual machine. For example,\n        <code>arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL</code>.</p>"
                    }
                },
                "LastBackupDate": {
@@ -1536,6 +1691,15 @@
                "target": "com.amazonaws.backupgateway#VirtualMachine"
            }
        },
        "com.amazonaws.backupgateway#VpcEndpoint": {
            "type": "string",
            "traits": {
                "smithy.api#length": {
                    "min": 1,
                    "max": 255
                }
            }
        },
        "com.amazonaws.backupgateway#string": {
            "type": "string"
        }
+94 −2

File changed.

Preview size limit exceeded, changes collapsed.

Loading