diff --git a/CHANGELOG.md b/CHANGELOG.md
index 514a005c891..72862a7dcbb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,30 @@
+Release v1.47.12 (2023-11-15)
+===
+
+### Service Client Updates
+* `service/autoscaling`: Updates service API, documentation, and examples
+ * This release introduces Instance Maintenance Policy, a new EC2 Auto Scaling capability that allows customers to define whether instances are launched before or after existing instances are terminated during instance replacement operations.
+* `service/cloudtrail`: Updates service API and documentation
+ * The Lake Repricing feature lets customers configure a BillingMode for an event data store. The BillingMode determines the cost for ingesting and storing events and the default and maximum retention period for the event data store.
+* `service/ec2`: Updates service API and documentation
+ * AWS EBS now supports Snapshot Lock, giving users the ability to lock an EBS Snapshot to prohibit deletion of the snapshot. This release introduces the LockSnapshot, UnlockSnapshot & DescribeLockedSnapshots APIs to manage lock configuration for snapshots. The release also includes the dl2q_24xlarge.
+* `service/finspace`: Updates service API
+* `service/finspace-data`: Updates service API
+* `service/lambda`: Updates service API
+ * Add Java 21 (java21) support to AWS Lambda
+* `service/mwaa`: Updates service API and documentation
+* `service/rds`: Updates service API, documentation, waiters, paginators, and examples
+ * Updates Amazon RDS documentation for support for upgrading RDS for MySQL snapshots from version 5.7 to version 8.0.
+* `service/redshift`: Updates service API and documentation
+ * The custom domain name SDK for Amazon Redshift provisioned clusters is updated with additional required parameters for modify and delete operations. Additionally, users can provide domain names with longer top-level domains.
+* `service/s3control`: Updates service API, documentation, and paginators
+ * Add 5 APIs to create, update, get, list, delete S3 Storage Lens group(eg. CreateStorageLensGroup), 3 APIs for tagging(TagResource,UntagResource,ListTagsForResource), and update to StorageLensConfiguration to allow metrics to be aggregated on Storage Lens groups.
+* `service/ssm-sap`: Updates service API
+
+### SDK Bugs
+* Don't generate cloudwatchlogs event streams tests for now.
+ * The test harness does not handle event stream APIs with a host prefix at this time.
+
Release v1.47.11 (2023-11-14)
===
diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md
index 4f689e6a3a9..8a1927a39ca 100644
--- a/CHANGELOG_PENDING.md
+++ b/CHANGELOG_PENDING.md
@@ -3,5 +3,3 @@
### SDK Enhancements
### SDK Bugs
-* Don't generate cloudwatchlogs event streams tests for now.
- * The test harness does not handle event stream APIs with a host prefix at this time.
diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go
index ee86c50ee1f..1a59bd2ed4c 100644
--- a/aws/endpoints/defaults.go
+++ b/aws/endpoints/defaults.go
@@ -40464,6 +40464,24 @@ var awsusgovPartition = partition{
Region: "us-gov-east-1",
},
},
+ endpointKey{
+ Region: "us-gov-east-1",
+ Variant: fipsVariant,
+ }: endpoint{
+ Hostname: "sso.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ },
+ endpointKey{
+ Region: "us-gov-east-1-fips",
+ }: endpoint{
+ Hostname: "sso.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-east-1",
+ },
+ Deprecated: boxedTrue,
+ },
endpointKey{
Region: "us-gov-west-1",
}: endpoint{
@@ -40472,6 +40490,24 @@ var awsusgovPartition = partition{
Region: "us-gov-west-1",
},
},
+ endpointKey{
+ Region: "us-gov-west-1",
+ Variant: fipsVariant,
+ }: endpoint{
+ Hostname: "sso.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
+ endpointKey{
+ Region: "us-gov-west-1-fips",
+ }: endpoint{
+ Hostname: "sso.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ Deprecated: boxedTrue,
+ },
},
},
"states": service{
diff --git a/aws/version.go b/aws/version.go
index 7fa477b8323..423e11d6712 100644
--- a/aws/version.go
+++ b/aws/version.go
@@ -5,4 +5,4 @@ package aws
const SDKName = "aws-sdk-go"
// SDKVersion is the version of this SDK
-const SDKVersion = "1.47.11"
+const SDKVersion = "1.47.12"
diff --git a/models/apis/autoscaling/2011-01-01/api-2.json b/models/apis/autoscaling/2011-01-01/api-2.json
index 36cf78e1957..ecfca513944 100644
--- a/models/apis/autoscaling/2011-01-01/api-2.json
+++ b/models/apis/autoscaling/2011-01-01/api-2.json
@@ -1244,7 +1244,8 @@
"Context":{"shape":"Context"},
"DesiredCapacityType":{"shape":"XmlStringMaxLen255"},
"DefaultInstanceWarmup":{"shape":"DefaultInstanceWarmup"},
- "TrafficSources":{"shape":"TrafficSources"}
+ "TrafficSources":{"shape":"TrafficSources"},
+ "InstanceMaintenancePolicy":{"shape":"InstanceMaintenancePolicy"}
}
},
"AutoScalingGroupDesiredCapacity":{"type":"integer"},
@@ -1522,7 +1523,8 @@
"Context":{"shape":"Context"},
"DesiredCapacityType":{"shape":"XmlStringMaxLen255"},
"DefaultInstanceWarmup":{"shape":"DefaultInstanceWarmup"},
- "TrafficSources":{"shape":"TrafficSources"}
+ "TrafficSources":{"shape":"TrafficSources"},
+ "InstanceMaintenancePolicy":{"shape":"InstanceMaintenancePolicy"}
}
},
"CreateLaunchConfigurationType":{
@@ -2110,6 +2112,13 @@
"type":"list",
"member":{"shape":"XmlStringMaxLen19"}
},
+ "InstanceMaintenancePolicy":{
+ "type":"structure",
+ "members":{
+ "MinHealthyPercentage":{"shape":"IntPercentResettable"},
+ "MaxHealthyPercentage":{"shape":"IntPercent100To200Resettable"}
+ }
+ },
"InstanceMetadataEndpointState":{
"type":"string",
"enum":[
@@ -2278,6 +2287,21 @@
"max":100,
"min":0
},
+ "IntPercent100To200":{
+ "type":"integer",
+ "max":200,
+ "min":100
+ },
+ "IntPercent100To200Resettable":{
+ "type":"integer",
+ "max":200,
+ "min":-1
+ },
+ "IntPercentResettable":{
+ "type":"integer",
+ "max":100,
+ "min":-1
+ },
"InvalidNextToken":{
"type":"structure",
"members":{
@@ -3057,7 +3081,8 @@
"AutoRollback":{"shape":"AutoRollback"},
"ScaleInProtectedInstances":{"shape":"ScaleInProtectedInstances"},
"StandbyInstances":{"shape":"StandbyInstances"},
- "AlarmSpecification":{"shape":"AlarmSpecification"}
+ "AlarmSpecification":{"shape":"AlarmSpecification"},
+ "MaxHealthyPercentage":{"shape":"IntPercent100To200"}
}
},
"RefreshStrategy":{
@@ -3520,7 +3545,8 @@
"CapacityRebalance":{"shape":"CapacityRebalanceEnabled"},
"Context":{"shape":"Context"},
"DesiredCapacityType":{"shape":"XmlStringMaxLen255"},
- "DefaultInstanceWarmup":{"shape":"DefaultInstanceWarmup"}
+ "DefaultInstanceWarmup":{"shape":"DefaultInstanceWarmup"},
+ "InstanceMaintenancePolicy":{"shape":"InstanceMaintenancePolicy"}
}
},
"VCpuCountRequest":{
diff --git a/models/apis/autoscaling/2011-01-01/docs-2.json b/models/apis/autoscaling/2011-01-01/docs-2.json
index 5a46054650a..70751d31c87 100644
--- a/models/apis/autoscaling/2011-01-01/docs-2.json
+++ b/models/apis/autoscaling/2011-01-01/docs-2.json
@@ -63,7 +63,7 @@
"SetDesiredCapacity": "
Sets the size of the specified Auto Scaling group.
If a scale-in activity occurs as a result of a new DesiredCapacity
value that is lower than the current size of the group, the Auto Scaling group uses its termination policy to determine which instances to terminate.
For more information, see Manual scaling in the Amazon EC2 Auto Scaling User Guide.
",
"SetInstanceHealth": "Sets the health status of the specified instance.
For more information, see Health checks for Auto Scaling instances in the Amazon EC2 Auto Scaling User Guide.
",
"SetInstanceProtection": "Updates the instance protection settings of the specified instances. This operation cannot be called on instances in a warm pool.
For more information about preventing instances that are part of an Auto Scaling group from terminating on scale in, see Using instance scale-in protection in the Amazon EC2 Auto Scaling User Guide.
If you exceed your maximum limit of instance IDs, which is 50 per Auto Scaling group, the call fails.
",
- "StartInstanceRefresh": "Starts an instance refresh. During an instance refresh, Amazon EC2 Auto Scaling performs a rolling update of instances in an Auto Scaling group. Instances are terminated first and then replaced, which temporarily reduces the capacity available within your Auto Scaling group.
This operation is part of the instance refresh feature in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group. This feature is helpful, for example, when you have a new AMI or a new user data script. You just need to create a new launch template that specifies the new AMI or user data script. Then start an instance refresh to immediately begin the process of updating instances in the group.
If successful, the request's response contains a unique ID that you can use to track the progress of the instance refresh. To query its status, call the DescribeInstanceRefreshes API. To describe the instance refreshes that have already run, call the DescribeInstanceRefreshes API. To cancel an instance refresh that is in progress, use the CancelInstanceRefresh API.
An instance refresh might fail for several reasons, such as EC2 launch failures, misconfigured health checks, or not ignoring or allowing the termination of instances that are in Standby
state or protected from scale in. You can monitor for failed EC2 launches using the scaling activities. To find the scaling activities, call the DescribeScalingActivities API.
If you enable auto rollback, your Auto Scaling group will be rolled back automatically when the instance refresh fails. You can enable this feature before starting an instance refresh by specifying the AutoRollback
property in the instance refresh preferences. Otherwise, to roll back an instance refresh before it finishes, use the RollbackInstanceRefresh API.
",
+ "StartInstanceRefresh": "Starts an instance refresh.
This operation is part of the instance refresh feature in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group. This feature is helpful, for example, when you have a new AMI or a new user data script. You just need to create a new launch template that specifies the new AMI or user data script. Then start an instance refresh to immediately begin the process of updating instances in the group.
If successful, the request's response contains a unique ID that you can use to track the progress of the instance refresh. To query its status, call the DescribeInstanceRefreshes API. To describe the instance refreshes that have already run, call the DescribeInstanceRefreshes API. To cancel an instance refresh that is in progress, use the CancelInstanceRefresh API.
An instance refresh might fail for several reasons, such as EC2 launch failures, misconfigured health checks, or not ignoring or allowing the termination of instances that are in Standby
state or protected from scale in. You can monitor for failed EC2 launches using the scaling activities. To find the scaling activities, call the DescribeScalingActivities API.
If you enable auto rollback, your Auto Scaling group will be rolled back automatically when the instance refresh fails. You can enable this feature before starting an instance refresh by specifying the AutoRollback
property in the instance refresh preferences. Otherwise, to roll back an instance refresh before it finishes, use the RollbackInstanceRefresh API.
",
"SuspendProcesses": "Suspends the specified auto scaling processes, or all processes, for the specified Auto Scaling group.
If you suspend either the Launch
or Terminate
process types, it can prevent other process types from functioning properly. For more information, see Suspending and resuming scaling processes in the Amazon EC2 Auto Scaling User Guide.
To resume processes that have been suspended, call the ResumeProcesses API.
",
"TerminateInstanceInAutoScalingGroup": "Terminates the specified instance and optionally adjusts the desired group size. This operation cannot be called on instances in a warm pool.
This call simply makes a termination request. The instance is not terminated immediately. When an instance is terminated, the instance status changes to terminated
. You can't connect to or start an instance after you've terminated it.
If you do not specify the option to decrement the desired capacity, Amazon EC2 Auto Scaling launches instances to replace the ones that are terminated.
By default, Amazon EC2 Auto Scaling balances instances across all Availability Zones. If you decrement the desired capacity, your Auto Scaling group can become unbalanced between Availability Zones. Amazon EC2 Auto Scaling tries to rebalance the group, and rebalancing might terminate instances in other zones. For more information, see Rebalancing activities in the Amazon EC2 Auto Scaling User Guide.
",
"UpdateAutoScalingGroup": " We strongly recommend that all Auto Scaling groups use launch templates to ensure full functionality for Amazon EC2 Auto Scaling and Amazon EC2.
Updates the configuration for the specified Auto Scaling group.
To update an Auto Scaling group, specify the name of the group and the property that you want to change. Any properties that you don't specify are not changed by this update request. The new settings take effect on any scaling activities after this call returns.
If you associate a new launch configuration or template with an Auto Scaling group, all new instances will get the updated configuration. Existing instances continue to run with the configuration that they were originally launched with. When you update a group to specify a mixed instances policy instead of a launch configuration or template, existing instances may be replaced to match the new purchasing options that you specified in the policy. For example, if the group currently has 100% On-Demand capacity and the policy specifies 50% Spot capacity, this means that half of your instances will be gradually terminated and relaunched as Spot Instances. When replacing instances, Amazon EC2 Auto Scaling launches new instances before terminating the old ones, so that updating your group does not compromise the performance or availability of your application.
Note the following about changing DesiredCapacity
, MaxSize
, or MinSize
:
-
If a scale-in activity occurs as a result of a new DesiredCapacity
value that is lower than the current size of the group, the Auto Scaling group uses its termination policy to determine which instances to terminate.
-
If you specify a new value for MinSize
without specifying a value for DesiredCapacity
, and the new MinSize
is larger than the current size of the group, this sets the group's DesiredCapacity
to the new MinSize
value.
-
If you specify a new value for MaxSize
without specifying a value for DesiredCapacity
, and the new MaxSize
is smaller than the current size of the group, this sets the group's DesiredCapacity
to the new MaxSize
value.
To see which properties have been set, call the DescribeAutoScalingGroups API. To view the scaling policies for an Auto Scaling group, call the DescribePolicies API. If the group has scaling policies, you can update them by calling the PutScalingPolicy API.
"
@@ -992,6 +992,14 @@
"SetInstanceProtectionQuery$InstanceIds": "One or more instance IDs. You can specify up to 50 instances.
"
}
},
+ "InstanceMaintenancePolicy": {
+ "base": "Describes an instance maintenance policy.
For more information, see Set instance maintenance policy in the Amazon EC2 Auto Scaling User Guide.
",
+ "refs": {
+ "AutoScalingGroup$InstanceMaintenancePolicy": "An instance maintenance policy.
",
+ "CreateAutoScalingGroupType$InstanceMaintenancePolicy": "An instance maintenance policy. For more information, see Set instance maintenance policy in the Amazon EC2 Auto Scaling User Guide.
",
+ "UpdateAutoScalingGroupType$InstanceMaintenancePolicy": "An instance maintenance policy. For more information, see Set instance maintenance policy in the Amazon EC2 Auto Scaling User Guide.
"
+ }
+ },
"InstanceMetadataEndpointState": {
"base": null,
"refs": {
@@ -1123,10 +1131,28 @@
"InstanceRefresh$PercentageComplete": "The percentage of the instance refresh that is complete. For each instance replacement, Amazon EC2 Auto Scaling tracks the instance's health status and warm-up time. When the instance's health status changes to healthy and the specified warm-up time passes, the instance is considered updated and is added to the percentage complete.
PercentageComplete
does not include instances that are replaced during a rollback. This value gradually goes back down to zero during a rollback.
",
"InstanceRefreshLivePoolProgress$PercentageComplete": "The percentage of instances in the Auto Scaling group that have been replaced. For each instance replacement, Amazon EC2 Auto Scaling tracks the instance's health status and warm-up time. When the instance's health status changes to healthy and the specified warm-up time passes, the instance is considered updated and is added to the percentage complete.
",
"InstanceRefreshWarmPoolProgress$PercentageComplete": "The percentage of instances in the warm pool that have been replaced. For each instance replacement, Amazon EC2 Auto Scaling tracks the instance's health status and warm-up time. When the instance's health status changes to healthy and the specified warm-up time passes, the instance is considered updated and is added to the percentage complete.
",
- "RefreshPreferences$MinHealthyPercentage": "The amount of capacity in the Auto Scaling group that must pass your group's health checks to allow the operation to continue. The value is expressed as a percentage of the desired capacity of the Auto Scaling group (rounded up to the nearest integer). The default is 90
.
Setting the minimum healthy percentage to 100 percent limits the rate of replacement to one instance at a time. In contrast, setting it to 0 percent has the effect of replacing all instances at the same time.
",
+ "RefreshPreferences$MinHealthyPercentage": "Specifies the minimum percentage of the group to keep in service, healthy, and ready to use to support your workload to allow the operation to continue. The value is expressed as a percentage of the desired capacity of the Auto Scaling group. Value range is 0 to 100.
If you do not specify this property, the default is 90 percent, or the percentage set in the instance maintenance policy for the Auto Scaling group, if defined.
",
"RollbackDetails$PercentageCompleteOnRollback": "Indicates the value of PercentageComplete
at the time the rollback started.
"
}
},
+ "IntPercent100To200": {
+ "base": null,
+ "refs": {
+ "RefreshPreferences$MaxHealthyPercentage": "Specifies the maximum percentage of the group that can be in service and healthy, or pending, to support your workload when replacing instances. The value is expressed as a percentage of the desired capacity of the Auto Scaling group. Value range is 100 to 200.
If you specify MaxHealthyPercentage
, you must also specify MinHealthyPercentage
, and the difference between them cannot be greater than 100. A larger range increases the number of instances that can be replaced at the same time.
If you do not specify this property, the default is 100 percent, or the percentage set in the instance maintenance policy for the Auto Scaling group, if defined.
"
+ }
+ },
+ "IntPercent100To200Resettable": {
+ "base": null,
+ "refs": {
+ "InstanceMaintenancePolicy$MaxHealthyPercentage": "Specifies the upper threshold as a percentage of the desired capacity of the Auto Scaling group. It represents the maximum percentage of the group that can be in service and healthy, or pending, to support your workload when replacing instances. Value range is 100 to 200. After it's set, a value of -1
will clear the previously set value.
Both MinHealthyPercentage
and MaxHealthyPercentage
must be specified, and the difference between them cannot be greater than 100. A large range increases the number of instances that can be replaced at the same time.
"
+ }
+ },
+ "IntPercentResettable": {
+ "base": null,
+ "refs": {
+ "InstanceMaintenancePolicy$MinHealthyPercentage": "Specifies the lower threshold as a percentage of the desired capacity of the Auto Scaling group. It represents the minimum percentage of the group to keep in service, healthy, and ready to use to support your workload when replacing instances. Value range is 0 to 100. After it's set, a value of -1
will clear the previously set value.
"
+ }
+ },
"InvalidNextToken": {
"base": "The NextToken
value is not valid.
",
"refs": {
@@ -1905,7 +1931,7 @@
"base": "Describes the preferences for an instance refresh.
",
"refs": {
"InstanceRefresh$Preferences": "The preferences for an instance refresh.
",
- "StartInstanceRefreshType$Preferences": "Sets your preferences for the instance refresh so that it performs as expected when you start it. Includes the instance warmup time, the minimum healthy percentage, and the behaviors that you want Amazon EC2 Auto Scaling to use if instances that are in Standby
state or protected from scale in are found. You can also choose to enable additional features, such as the following:
-
Auto rollback
-
Checkpoints
-
CloudWatch alarms
-
Skip matching
"
+ "StartInstanceRefreshType$Preferences": "Sets your preferences for the instance refresh so that it performs as expected when you start it. Includes the instance warmup time, the minimum and maximum healthy percentages, and the behaviors that you want Amazon EC2 Auto Scaling to use if instances that are in Standby
state or protected from scale in are found. You can also choose to enable additional features, such as the following:
-
Auto rollback
-
Checkpoints
-
CloudWatch alarms
-
Skip matching
"
}
},
"RefreshStrategy": {
diff --git a/models/apis/autoscaling/2011-01-01/endpoint-rule-set-1.json b/models/apis/autoscaling/2011-01-01/endpoint-rule-set-1.json
index 37ca93e9346..89d0e13a7df 100644
--- a/models/apis/autoscaling/2011-01-01/endpoint-rule-set-1.json
+++ b/models/apis/autoscaling/2011-01-01/endpoint-rule-set-1.json
@@ -40,7 +40,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -83,7 +82,8 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -96,7 +96,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -110,7 +109,6 @@
"assign": "PartitionResult"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -133,7 +131,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -168,7 +165,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [],
@@ -179,14 +175,16 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -200,14 +198,12 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
{
"fn": "booleanEquals",
"argv": [
- true,
{
"fn": "getAttr",
"argv": [
@@ -216,18 +212,17 @@
},
"supportsFIPS"
]
- }
+ },
+ true
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
{
"fn": "stringEquals",
"argv": [
- "aws-us-gov",
{
"fn": "getAttr",
"argv": [
@@ -236,7 +231,8 @@
},
"name"
]
- }
+ },
+ "aws-us-gov"
]
}
],
@@ -256,14 +252,16 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "FIPS is enabled but this partition does not support FIPS",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -277,7 +275,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -297,7 +294,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [],
@@ -308,14 +304,16 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "DualStack is enabled but this partition does not support DualStack",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
@@ -326,9 +324,11 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
diff --git a/models/apis/autoscaling/2011-01-01/examples-1.json b/models/apis/autoscaling/2011-01-01/examples-1.json
index af6929b4232..f97e0bff4fa 100644
--- a/models/apis/autoscaling/2011-01-01/examples-1.json
+++ b/models/apis/autoscaling/2011-01-01/examples-1.json
@@ -656,6 +656,7 @@
},
"AutoRollback": true,
"InstanceWarmup": 200,
+ "MaxHealthyPercentage": 120,
"MinHealthyPercentage": 90,
"ScaleInProtectedInstances": "Ignore",
"SkipMatching": false,
@@ -679,6 +680,7 @@
},
"AutoRollback": true,
"InstanceWarmup": 200,
+ "MaxHealthyPercentage": 120,
"MinHealthyPercentage": 90,
"ScaleInProtectedInstances": "Ignore",
"SkipMatching": false,
@@ -1616,6 +1618,7 @@
},
"AutoRollback": true,
"InstanceWarmup": 200,
+ "MaxHealthyPercentage": 120,
"MinHealthyPercentage": 90
}
},
diff --git a/models/apis/cloudtrail/2013-11-01/api-2.json b/models/apis/cloudtrail/2013-11-01/api-2.json
index 032dead450a..556b88aeda8 100644
--- a/models/apis/cloudtrail/2013-11-01/api-2.json
+++ b/models/apis/cloudtrail/2013-11-01/api-2.json
@@ -1096,6 +1096,13 @@
"member":{"shape":"AdvancedFieldSelector"},
"min":1
},
+ "BillingMode":{
+ "type":"string",
+ "enum":[
+ "EXTENDABLE_RETENTION_PRICING",
+ "FIXED_RETENTION_PRICING"
+ ]
+ },
"Boolean":{"type":"boolean"},
"ByteBuffer":{"type":"blob"},
"CancelQueryRequest":{
@@ -1246,7 +1253,8 @@
"TerminationProtectionEnabled":{"shape":"TerminationProtectionEnabled"},
"TagsList":{"shape":"TagsList"},
"KmsKeyId":{"shape":"EventDataStoreKmsKeyId"},
- "StartIngestion":{"shape":"Boolean"}
+ "StartIngestion":{"shape":"Boolean"},
+ "BillingMode":{"shape":"BillingMode"}
}
},
"CreateEventDataStoreResponse":{
@@ -1263,7 +1271,8 @@
"TagsList":{"shape":"TagsList"},
"CreatedTimestamp":{"shape":"Date"},
"UpdatedTimestamp":{"shape":"Date"},
- "KmsKeyId":{"shape":"EventDataStoreKmsKeyId"}
+ "KmsKeyId":{"shape":"EventDataStoreKmsKeyId"},
+ "BillingMode":{"shape":"BillingMode"}
}
},
"CreateTrailRequest":{
@@ -1669,7 +1678,8 @@
"TerminationProtectionEnabled":{"shape":"TerminationProtectionEnabled"},
"CreatedTimestamp":{"shape":"Date"},
"UpdatedTimestamp":{"shape":"Date"},
- "KmsKeyId":{"shape":"EventDataStoreKmsKeyId"}
+ "KmsKeyId":{"shape":"EventDataStoreKmsKeyId"},
+ "BillingMode":{"shape":"BillingMode"}
}
},
"GetEventSelectorsRequest":{
@@ -2681,12 +2691,13 @@
"TerminationProtectionEnabled":{"shape":"TerminationProtectionEnabled"},
"CreatedTimestamp":{"shape":"Date"},
"UpdatedTimestamp":{"shape":"Date"},
- "KmsKeyId":{"shape":"EventDataStoreKmsKeyId"}
+ "KmsKeyId":{"shape":"EventDataStoreKmsKeyId"},
+ "BillingMode":{"shape":"BillingMode"}
}
},
"RetentionPeriod":{
"type":"integer",
- "max":2557,
+ "max":3653,
"min":7
},
"S3BucketDoesNotExistException":{
@@ -2980,7 +2991,8 @@
"OrganizationEnabled":{"shape":"Boolean"},
"RetentionPeriod":{"shape":"RetentionPeriod"},
"TerminationProtectionEnabled":{"shape":"TerminationProtectionEnabled"},
- "KmsKeyId":{"shape":"EventDataStoreKmsKeyId"}
+ "KmsKeyId":{"shape":"EventDataStoreKmsKeyId"},
+ "BillingMode":{"shape":"BillingMode"}
}
},
"UpdateEventDataStoreResponse":{
@@ -2996,7 +3008,8 @@
"TerminationProtectionEnabled":{"shape":"TerminationProtectionEnabled"},
"CreatedTimestamp":{"shape":"Date"},
"UpdatedTimestamp":{"shape":"Date"},
- "KmsKeyId":{"shape":"EventDataStoreKmsKeyId"}
+ "KmsKeyId":{"shape":"EventDataStoreKmsKeyId"},
+ "BillingMode":{"shape":"BillingMode"}
}
},
"UpdateTrailRequest":{
diff --git a/models/apis/cloudtrail/2013-11-01/docs-2.json b/models/apis/cloudtrail/2013-11-01/docs-2.json
index 87e35f5b663..adb707f25de 100644
--- a/models/apis/cloudtrail/2013-11-01/docs-2.json
+++ b/models/apis/cloudtrail/2013-11-01/docs-2.json
@@ -46,7 +46,7 @@
"StopImport": " Stops a specified import.
",
"StopLogging": "Suspends the recording of Amazon Web Services API calls and log file delivery for the specified trail. Under most circumstances, there is no need to use this action. You can update a trail without stopping it first. This action is the only way to stop recording. For a trail enabled in all Regions, this operation must be called from the Region in which the trail was created, or an InvalidHomeRegionException
will occur. This operation cannot be called on the shadow trails (replicated trails in other Regions) of a trail enabled in all Regions.
",
"UpdateChannel": "Updates a channel specified by a required channel ARN or UUID.
",
- "UpdateEventDataStore": "Updates an event data store. The required EventDataStore
value is an ARN or the ID portion of the ARN. Other parameters are optional, but at least one optional parameter must be specified, or CloudTrail throws an error. RetentionPeriod
is in days, and valid values are integers between 90 and 2557. By default, TerminationProtection
is enabled.
For event data stores for CloudTrail events, AdvancedEventSelectors
includes or excludes management, data, or Insights events in your event data store. For more information about AdvancedEventSelectors
, see AdvancedEventSelectors.
For event data stores for Config configuration items, Audit Manager evidence, or non-Amazon Web Services events, AdvancedEventSelectors
includes events of that type in your event data store.
",
+ "UpdateEventDataStore": "Updates an event data store. The required EventDataStore
value is an ARN or the ID portion of the ARN. Other parameters are optional, but at least one optional parameter must be specified, or CloudTrail throws an error. RetentionPeriod
is in days, and valid values are integers between 7 and 3653 if the BillingMode
is set to EXTENDABLE_RETENTION_PRICING
, or between 7 and 2557 if BillingMode
is set to FIXED_RETENTION_PRICING
. By default, TerminationProtection
is enabled.
For event data stores for CloudTrail events, AdvancedEventSelectors
includes or excludes management, data, or Insights events in your event data store. For more information about AdvancedEventSelectors
, see AdvancedEventSelectors.
For event data stores for Config configuration items, Audit Manager evidence, or non-Amazon Web Services events, AdvancedEventSelectors
includes events of that type in your event data store.
",
"UpdateTrail": "Updates trail settings that control what events you are logging, and how to handle log files. Changes to a trail do not require stopping the CloudTrail service. Use this action to designate an existing bucket for log delivery. If the existing bucket has previously been a target for CloudTrail log files, an IAM policy exists for the bucket. UpdateTrail
must be called from the Region in which the trail was created; otherwise, an InvalidHomeRegionException
is thrown.
"
},
"shapes": {
@@ -121,6 +121,17 @@
"AdvancedEventSelector$FieldSelectors": "Contains all selector statements in an advanced event selector.
"
}
},
+ "BillingMode": {
+ "base": null,
+ "refs": {
+ "CreateEventDataStoreRequest$BillingMode": "The billing mode for the event data store determines the cost for ingesting events and the default and maximum retention period for the event data store.
The following are the possible values:
-
EXTENDABLE_RETENTION_PRICING
- This billing mode is generally recommended if you want a flexible retention period of up to 3653 days (about 10 years). The default retention period for this billing mode is 366 days.
-
FIXED_RETENTION_PRICING
- This billing mode is recommended if you expect to ingest more than 25 TB of event data per month and need a retention period of up to 2557 days (about 7 years). The default retention period for this billing mode is 2557 days.
The default value is EXTENDABLE_RETENTION_PRICING
.
For more information about CloudTrail pricing, see CloudTrail Pricing and Managing CloudTrail Lake costs.
",
+ "CreateEventDataStoreResponse$BillingMode": "The billing mode for the event data store.
",
+ "GetEventDataStoreResponse$BillingMode": "The billing mode for the event data store.
",
+ "RestoreEventDataStoreResponse$BillingMode": "The billing mode for the event data store.
",
+ "UpdateEventDataStoreRequest$BillingMode": " You can't change the billing mode from EXTENDABLE_RETENTION_PRICING
to FIXED_RETENTION_PRICING
. If BillingMode
is set to EXTENDABLE_RETENTION_PRICING
and you want to use FIXED_RETENTION_PRICING
instead, you'll need to stop ingestion on the event data store and create a new event data store that uses FIXED_RETENTION_PRICING
.
The billing mode for the event data store determines the cost for ingesting events and the default and maximum retention period for the event data store.
The following are the possible values:
-
EXTENDABLE_RETENTION_PRICING
- This billing mode is generally recommended if you want a flexible retention period of up to 3653 days (about 10 years). The default retention period for this billing mode is 366 days.
-
FIXED_RETENTION_PRICING
- This billing mode is recommended if you expect to ingest more than 25 TB of event data per month and need a retention period of up to 2557 days (about 7 years). The default retention period for this billing mode is 2557 days.
For more information about CloudTrail pricing, see CloudTrail Pricing and Managing CloudTrail Lake costs.
",
+ "UpdateEventDataStoreResponse$BillingMode": "The billing mode for the event data store.
"
+ }
+ },
"Boolean": {
"base": null,
"refs": {
@@ -503,7 +514,7 @@
}
},
"EventDataStore": {
- "base": "A storage lake of event data against which you can run complex SQL-based queries. An event data store can include events that you have logged on your account from the last 90 to 2557 days (about three months to up to seven years). To select events for an event data store, use advanced event selectors.
",
+ "base": "A storage lake of event data against which you can run complex SQL-based queries. An event data store can include events that you have logged on your account. To select events for an event data store, use advanced event selectors.
",
"refs": {
"EventDataStores$member": null
}
@@ -1513,12 +1524,12 @@
"RetentionPeriod": {
"base": null,
"refs": {
- "CreateEventDataStoreRequest$RetentionPeriod": "The retention period of the event data store, in days. You can set a retention period of up to 2557 days, the equivalent of seven years. CloudTrail Lake determines whether to retain an event by checking if the eventTime
of the event is within the specified retention period. For example, if you set a retention period of 90 days, CloudTrail will remove events when the eventTime
is older than 90 days.
If you plan to copy trail events to this event data store, we recommend that you consider both the age of the events that you want to copy as well as how long you want to keep the copied events in your event data store. For example, if you copy trail events that are 5 years old and specify a retention period of 7 years, the event data store will retain those events for two years.
",
+ "CreateEventDataStoreRequest$RetentionPeriod": "The retention period of the event data store, in days. If BillingMode
is set to EXTENDABLE_RETENTION_PRICING
, you can set a retention period of up to 3653 days, the equivalent of 10 years. If BillingMode
is set to FIXED_RETENTION_PRICING
, you can set a retention period of up to 2557 days, the equivalent of seven years.
CloudTrail Lake determines whether to retain an event by checking if the eventTime
of the event is within the specified retention period. For example, if you set a retention period of 90 days, CloudTrail will remove events when the eventTime
is older than 90 days.
If you plan to copy trail events to this event data store, we recommend that you consider both the age of the events that you want to copy as well as how long you want to keep the copied events in your event data store. For example, if you copy trail events that are 5 years old and specify a retention period of 7 years, the event data store will retain those events for two years.
",
"CreateEventDataStoreResponse$RetentionPeriod": "The retention period of an event data store, in days.
",
"EventDataStore$RetentionPeriod": "The retention period, in days.
",
"GetEventDataStoreResponse$RetentionPeriod": "The retention period of the event data store, in days.
",
"RestoreEventDataStoreResponse$RetentionPeriod": "The retention period, in days.
",
- "UpdateEventDataStoreRequest$RetentionPeriod": "The retention period of the event data store, in days. You can set a retention period of up to 2557 days, the equivalent of seven years. CloudTrail Lake determines whether to retain an event by checking if the eventTime
of the event is within the specified retention period. For example, if you set a retention period of 90 days, CloudTrail will remove events when the eventTime
is older than 90 days.
If you decrease the retention period of an event data store, CloudTrail will remove any events with an eventTime
older than the new retention period. For example, if the previous retention period was 365 days and you decrease it to 100 days, CloudTrail will remove events with an eventTime
older than 100 days.
",
+ "UpdateEventDataStoreRequest$RetentionPeriod": "The retention period of the event data store, in days. If BillingMode
is set to EXTENDABLE_RETENTION_PRICING
, you can set a retention period of up to 3653 days, the equivalent of 10 years. If BillingMode
is set to FIXED_RETENTION_PRICING
, you can set a retention period of up to 2557 days, the equivalent of seven years.
CloudTrail Lake determines whether to retain an event by checking if the eventTime
of the event is within the specified retention period. For example, if you set a retention period of 90 days, CloudTrail will remove events when the eventTime
is older than 90 days.
If you decrease the retention period of an event data store, CloudTrail will remove any events with an eventTime
older than the new retention period. For example, if the previous retention period was 365 days and you decrease it to 100 days, CloudTrail will remove events with an eventTime
older than 100 days.
",
"UpdateEventDataStoreResponse$RetentionPeriod": "The retention period, in days.
"
}
},
diff --git a/models/apis/ec2/2016-11-15/api-2.json b/models/apis/ec2/2016-11-15/api-2.json
index 176a413d20a..5c81fb8c545 100755
--- a/models/apis/ec2/2016-11-15/api-2.json
+++ b/models/apis/ec2/2016-11-15/api-2.json
@@ -2577,6 +2577,15 @@
"input":{"shape":"DescribeLocalGatewaysRequest"},
"output":{"shape":"DescribeLocalGatewaysResult"}
},
+ "DescribeLockedSnapshots":{
+ "name":"DescribeLockedSnapshots",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DescribeLockedSnapshotsRequest"},
+ "output":{"shape":"DescribeLockedSnapshotsResult"}
+ },
"DescribeManagedPrefixLists":{
"name":"DescribeManagedPrefixLists",
"http":{
@@ -4243,6 +4252,15 @@
"input":{"shape":"ListSnapshotsInRecycleBinRequest"},
"output":{"shape":"ListSnapshotsInRecycleBinResult"}
},
+ "LockSnapshot":{
+ "name":"LockSnapshot",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"LockSnapshotRequest"},
+ "output":{"shape":"LockSnapshotResult"}
+ },
"ModifyAddressAttribute":{
"name":"ModifyAddressAttribute",
"http":{
@@ -5375,6 +5393,15 @@
"input":{"shape":"UnassignPrivateNatGatewayAddressRequest"},
"output":{"shape":"UnassignPrivateNatGatewayAddressResult"}
},
+ "UnlockSnapshot":{
+ "name":"UnlockSnapshot",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"UnlockSnapshotRequest"},
+ "output":{"shape":"UnlockSnapshotResult"}
+ },
"UnmonitorInstances":{
"name":"UnmonitorInstances",
"http":{
@@ -9713,6 +9740,12 @@
"completed"
]
},
+ "CoolOffPeriodRequestHours":{
+ "type":"integer",
+ "max":72,
+ "min":1
+ },
+ "CoolOffPeriodResponseHours":{"type":"integer"},
"CopyFpgaImageRequest":{
"type":"structure",
"required":[
@@ -16629,6 +16662,40 @@
}
}
},
+ "DescribeLockedSnapshotsMaxResults":{
+ "type":"integer",
+ "max":1000,
+ "min":5
+ },
+ "DescribeLockedSnapshotsRequest":{
+ "type":"structure",
+ "members":{
+ "Filters":{
+ "shape":"FilterList",
+ "locationName":"Filter"
+ },
+ "MaxResults":{"shape":"DescribeLockedSnapshotsMaxResults"},
+ "NextToken":{"shape":"String"},
+ "SnapshotIds":{
+ "shape":"SnapshotIdStringList",
+ "locationName":"SnapshotId"
+ },
+ "DryRun":{"shape":"Boolean"}
+ }
+ },
+ "DescribeLockedSnapshotsResult":{
+ "type":"structure",
+ "members":{
+ "Snapshots":{
+ "shape":"LockedSnapshotsInfoList",
+ "locationName":"snapshotSet"
+ },
+ "NextToken":{
+ "shape":"String",
+ "locationName":"nextToken"
+ }
+ }
+ },
"DescribeManagedPrefixListsRequest":{
"type":"structure",
"members":{
@@ -27961,7 +28028,8 @@
"r7i.12xlarge",
"r7i.16xlarge",
"r7i.24xlarge",
- "r7i.48xlarge"
+ "r7i.48xlarge",
+ "dl2q.24xlarge"
]
},
"InstanceTypeHypervisor":{
@@ -31152,6 +31220,122 @@
"outpost"
]
},
+ "LockMode":{
+ "type":"string",
+ "enum":[
+ "compliance",
+ "governance"
+ ]
+ },
+ "LockSnapshotRequest":{
+ "type":"structure",
+ "required":[
+ "SnapshotId",
+ "LockMode"
+ ],
+ "members":{
+ "SnapshotId":{"shape":"SnapshotId"},
+ "DryRun":{"shape":"Boolean"},
+ "LockMode":{"shape":"LockMode"},
+ "CoolOffPeriod":{"shape":"CoolOffPeriodRequestHours"},
+ "LockDuration":{"shape":"RetentionPeriodRequestDays"},
+ "ExpirationDate":{"shape":"MillisecondDateTime"}
+ }
+ },
+ "LockSnapshotResult":{
+ "type":"structure",
+ "members":{
+ "SnapshotId":{
+ "shape":"String",
+ "locationName":"snapshotId"
+ },
+ "LockState":{
+ "shape":"LockState",
+ "locationName":"lockState"
+ },
+ "LockDuration":{
+ "shape":"RetentionPeriodResponseDays",
+ "locationName":"lockDuration"
+ },
+ "CoolOffPeriod":{
+ "shape":"CoolOffPeriodResponseHours",
+ "locationName":"coolOffPeriod"
+ },
+ "CoolOffPeriodExpiresOn":{
+ "shape":"MillisecondDateTime",
+ "locationName":"coolOffPeriodExpiresOn"
+ },
+ "LockCreatedOn":{
+ "shape":"MillisecondDateTime",
+ "locationName":"lockCreatedOn"
+ },
+ "LockExpiresOn":{
+ "shape":"MillisecondDateTime",
+ "locationName":"lockExpiresOn"
+ },
+ "LockDurationStartTime":{
+ "shape":"MillisecondDateTime",
+ "locationName":"lockDurationStartTime"
+ }
+ }
+ },
+ "LockState":{
+ "type":"string",
+ "enum":[
+ "compliance",
+ "governance",
+ "compliance-cooloff",
+ "expired"
+ ]
+ },
+ "LockedSnapshotsInfo":{
+ "type":"structure",
+ "members":{
+ "OwnerId":{
+ "shape":"String",
+ "locationName":"ownerId"
+ },
+ "SnapshotId":{
+ "shape":"String",
+ "locationName":"snapshotId"
+ },
+ "LockState":{
+ "shape":"LockState",
+ "locationName":"lockState"
+ },
+ "LockDuration":{
+ "shape":"RetentionPeriodResponseDays",
+ "locationName":"lockDuration"
+ },
+ "CoolOffPeriod":{
+ "shape":"CoolOffPeriodResponseHours",
+ "locationName":"coolOffPeriod"
+ },
+ "CoolOffPeriodExpiresOn":{
+ "shape":"MillisecondDateTime",
+ "locationName":"coolOffPeriodExpiresOn"
+ },
+ "LockCreatedOn":{
+ "shape":"MillisecondDateTime",
+ "locationName":"lockCreatedOn"
+ },
+ "LockDurationStartTime":{
+ "shape":"MillisecondDateTime",
+ "locationName":"lockDurationStartTime"
+ },
+ "LockExpiresOn":{
+ "shape":"MillisecondDateTime",
+ "locationName":"lockExpiresOn"
+ }
+ }
+ },
+ "LockedSnapshotsInfoList":{
+ "type":"list",
+ "member":{
+ "shape":"LockedSnapshotsInfo",
+ "locationName":"item"
+ }
+ },
"LogDestinationType":{
"type":"string",
"enum":[
@@ -38113,6 +38297,12 @@
"max":500,
"min":20
},
+ "RetentionPeriodRequestDays":{
+ "type":"integer",
+ "max":36500,
+ "min":1
+ },
+ "RetentionPeriodResponseDays":{"type":"integer"},
"RevokeClientVpnIngressRequest":{
"type":"structure",
"required":[
@@ -43652,6 +43842,23 @@
"t4g"
]
},
+ "UnlockSnapshotRequest":{
+ "type":"structure",
+ "required":["SnapshotId"],
+ "members":{
+ "SnapshotId":{"shape":"SnapshotId"},
+ "DryRun":{"shape":"Boolean"}
+ }
+ },
+ "UnlockSnapshotResult":{
+ "type":"structure",
+ "members":{
+ "SnapshotId":{
+ "shape":"String",
+ "locationName":"snapshotId"
+ }
+ }
+ },
"UnmonitorInstancesRequest":{
"type":"structure",
"required":["InstanceIds"],
diff --git a/models/apis/ec2/2016-11-15/docs-2.json b/models/apis/ec2/2016-11-15/docs-2.json
index f91b02cf0f4..c9d46683c4e 100755
--- a/models/apis/ec2/2016-11-15/docs-2.json
+++ b/models/apis/ec2/2016-11-15/docs-2.json
@@ -290,6 +290,7 @@
"DescribeLocalGatewayVirtualInterfaceGroups": "Describes the specified local gateway virtual interface groups.
",
"DescribeLocalGatewayVirtualInterfaces": "Describes the specified local gateway virtual interfaces.
",
"DescribeLocalGateways": "Describes one or more local gateways. By default, all local gateways are described. Alternatively, you can filter the results.
",
+ "DescribeLockedSnapshots": "Describes the lock status for a snapshot.
",
"DescribeManagedPrefixLists": "Describes your managed prefix lists and any Amazon Web Services-managed prefix lists.
To view the entries for your prefix list, use GetManagedPrefixListEntries.
",
"DescribeMovingAddresses": " This action is deprecated.
Describes your Elastic IP addresses that are being moved from or being restored to the EC2-Classic platform. This request does not return information about any other Elastic IP addresses in your account.
",
"DescribeNatGateways": "Describes one or more of your NAT gateways.
",
@@ -476,6 +477,7 @@
"ImportVolume": "Creates an import volume task using metadata from the specified disk image.
This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead. To import a disk to a snapshot, use ImportSnapshot instead.
This API action is not supported by the Command Line Interface (CLI). For information about using the Amazon EC2 CLI, which is deprecated, see Importing Disks to Amazon EBS in the Amazon EC2 CLI Reference PDF file.
For information about the import manifest referenced by this API action, see VM Import Manifest.
",
"ListImagesInRecycleBin": "Lists one or more AMIs that are currently in the Recycle Bin. For more information, see Recycle Bin in the Amazon EC2 User Guide.
",
"ListSnapshotsInRecycleBin": "Lists one or more snapshots that are currently in the Recycle Bin.
",
+ "LockSnapshot": "Locks an Amazon EBS snapshot in either governance or compliance mode to protect it against accidental or malicious deletions for a specific duration. A locked snapshot can't be deleted.
You can also use this action to modify the lock settings for a snapshot that is already locked. The allowed modifications depend on the lock mode and lock state:
-
If the snapshot is locked in governance mode, you can modify the lock mode and the lock duration or lock expiration date.
-
If the snapshot is locked in compliance mode and it is in the cooling-off period, you can modify the lock mode and the lock duration or lock expiration date.
-
If the snapshot is locked in compliance mode and the cooling-off period has lapsed, you can only increase the lock duration or extend the lock expiration date.
",
"ModifyAddressAttribute": "Modifies an attribute of the specified Elastic IP address. For requirements, see Using reverse DNS for email applications.
",
"ModifyAvailabilityZoneGroup": "Changes the opt-in status of the Local Zone and Wavelength Zone group for your account.
Use DescribeAvailabilityZones to view the value for GroupName
.
",
"ModifyCapacityReservation": "Modifies a Capacity Reservation's capacity and the conditions under which it is to be released. You cannot change a Capacity Reservation's instance type, EBS optimization, instance store settings, platform, Availability Zone, or instance eligibility. If you need to modify any of these attributes, we recommend that you cancel the Capacity Reservation, and then create a new one with the required attributes.
",
@@ -604,6 +606,7 @@
"UnassignIpv6Addresses": "Unassigns one or more IPv6 addresses IPv4 Prefix Delegation prefixes from a network interface.
",
"UnassignPrivateIpAddresses": "Unassigns one or more secondary private IP addresses, or IPv4 Prefix Delegation prefixes from a network interface.
",
"UnassignPrivateNatGatewayAddress": "Unassigns secondary private IPv4 addresses from a private NAT gateway. You cannot unassign your primary private IP. For more information, see Edit secondary IP address associations in the Amazon VPC User Guide.
While unassigning is in progress, you cannot assign/unassign additional IP addresses while the connections are being drained. You are, however, allowed to delete the NAT gateway.
A private IP address will only be released at the end of MaxDrainDurationSeconds. The private IP addresses stay associated and support the existing connections, but do not support any new connections (new connections are distributed across the remaining assigned private IP address). After the existing connections drain out, the private IP addresses are released.
",
+ "UnlockSnapshot": "Unlocks a snapshot that is locked in governance mode or that is locked in compliance mode but still in the cooling-off period. You can't unlock a snapshot that is locked in compliance mode after the cooling-off period has expired.
",
"UnmonitorInstances": "Disables detailed monitoring for a running instance. For more information, see Monitoring your instances and volumes in the Amazon EC2 User Guide.
",
"UpdateSecurityGroupRuleDescriptionsEgress": "Updates the description of an egress (outbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously. You can remove a description for a security group rule by omitting the description parameter in the request.
",
"UpdateSecurityGroupRuleDescriptionsIngress": "Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously. You can remove a description for a security group rule by omitting the description parameter in the request.
",
@@ -2246,6 +2249,7 @@
"DescribeLocalGatewayVirtualInterfaceGroupsRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"DescribeLocalGatewayVirtualInterfacesRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"DescribeLocalGatewaysRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
+ "DescribeLockedSnapshotsRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"DescribeManagedPrefixListsRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"DescribeMovingAddressesRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"DescribeNatGatewaysRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
@@ -2537,6 +2541,7 @@
"LaunchTemplatesMonitoringRequest$Enabled": "Specify true
to enable detailed monitoring. Otherwise, basic monitoring is enabled.
",
"ListImagesInRecycleBinRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"ListSnapshotsInRecycleBinRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
+ "LockSnapshotRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"ModifyAddressAttributeRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"ModifyAvailabilityZoneGroupRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"ModifyAvailabilityZoneGroupResult$Return": "Is true
if the request succeeds, and an error otherwise.
",
@@ -2798,6 +2803,7 @@
"TransitGatewayRouteTable$DefaultPropagationRouteTable": "Indicates whether this is the default propagation route table for the transit gateway.
",
"TunnelOption$EnableTunnelLifecycleControl": "Status of tunnel endpoint lifecycle control feature.
",
"UnassignPrivateNatGatewayAddressRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
+ "UnlockSnapshotRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"UnmonitorInstancesRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"UpdateSecurityGroupRuleDescriptionsEgressRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"UpdateSecurityGroupRuleDescriptionsEgressResult$Return": "Returns true
if the request succeeds; otherwise, returns an error.
",
@@ -3846,6 +3852,19 @@
"ConversionTask$State": "The state of the conversion task.
"
}
},
+ "CoolOffPeriodRequestHours": {
+ "base": null,
+ "refs": {
+ "LockSnapshotRequest$CoolOffPeriod": "The cooling-off period during which you can unlock the snapshot or modify the lock settings after locking the snapshot in compliance mode, in hours. After the cooling-off period expires, you can't unlock or delete the snapshot, decrease the lock duration, or change the lock mode. You can increase the lock duration after the cooling-off period expires.
The cooling-off period is optional when locking a snapshot in compliance mode. If you are locking the snapshot in governance mode, omit this parameter.
To lock the snapshot in compliance mode immediately without a cooling-off period, omit this parameter.
If you are extending the lock duration for a snapshot that is locked in compliance mode after the cooling-off period has expired, omit this parameter. If you specify a cooling-period in a such a request, the request fails.
Allowed values: Min 1, max 72.
"
+ }
+ },
+ "CoolOffPeriodResponseHours": {
+ "base": null,
+ "refs": {
+ "LockSnapshotResult$CoolOffPeriod": "The compliance mode cooling-off period, in hours.
",
+ "LockedSnapshotsInfo$CoolOffPeriod": "The compliance mode cooling-off period, in hours.
"
+ }
+ },
"CopyFpgaImageRequest": {
"base": null,
"refs": {
@@ -6801,6 +6820,22 @@
"refs": {
}
},
+ "DescribeLockedSnapshotsMaxResults": {
+ "base": null,
+ "refs": {
+ "DescribeLockedSnapshotsRequest$MaxResults": "The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
"
+ }
+ },
+ "DescribeLockedSnapshotsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeLockedSnapshotsResult": {
+ "base": null,
+ "refs": {
+ }
+ },
"DescribeManagedPrefixListsRequest": {
"base": null,
"refs": {
@@ -9259,6 +9294,7 @@
"DescribeLocalGatewayVirtualInterfaceGroupsRequest$Filters": "One or more filters.
-
local-gateway-id
- The ID of a local gateway.
-
local-gateway-virtual-interface-group-id
- The ID of the virtual interface group.
-
local-gateway-virtual-interface-id
- The ID of the virtual interface.
-
owner-id
- The ID of the Amazon Web Services account that owns the local gateway virtual interface group.
",
"DescribeLocalGatewayVirtualInterfacesRequest$Filters": "One or more filters.
-
local-address
- The local address.
-
local-bgp-asn
- The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local gateway.
-
local-gateway-id
- The ID of the local gateway.
-
local-gateway-virtual-interface-id
- The ID of the virtual interface.
-
owner-id
- The ID of the Amazon Web Services account that owns the local gateway virtual interface.
-
peer-address
- The peer address.
-
peer-bgp-asn
- The peer BGP ASN.
-
vlan
- The ID of the VLAN.
",
"DescribeLocalGatewaysRequest$Filters": "One or more filters.
-
local-gateway-id
- The ID of a local gateway.
-
outpost-arn
- The Amazon Resource Name (ARN) of the Outpost.
-
owner-id
- The ID of the Amazon Web Services account that owns the local gateway.
-
state
- The state of the association.
",
+ "DescribeLockedSnapshotsRequest$Filters": "The filters.
",
"DescribeManagedPrefixListsRequest$Filters": "One or more filters.
-
owner-id
- The ID of the prefix list owner.
-
prefix-list-id
- The ID of the prefix list.
-
prefix-list-name
- The name of the prefix list.
",
"DescribeMovingAddressesRequest$Filters": "One or more filters.
",
"DescribeNatGatewaysRequest$Filter": "The filters.
-
nat-gateway-id
- The ID of the NAT gateway.
-
state
- The state of the NAT gateway (pending
| failed
| available
| deleting
| deleted
).
-
subnet-id
- The ID of the subnet in which the NAT gateway resides.
-
tag
:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner
and the value TeamA
, specify tag:Owner
for the filter name and TeamA
for the filter value.
-
tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
-
vpc-id
- The ID of the VPC in which the NAT gateway resides.
",
@@ -13898,6 +13934,41 @@
"InstanceTypeOffering$LocationType": "The location type.
"
}
},
+ "LockMode": {
+ "base": null,
+ "refs": {
+ "LockSnapshotRequest$LockMode": "The mode in which to lock the snapshot. Specify one of the following:
-
governance
- Locks the snapshot in governance mode. Snapshots locked in governance mode can't be deleted until one of the following conditions are met:
Users with the appropriate IAM permissions can unlock the snapshot, increase or decrease the lock duration, and change the lock mode to compliance
at any time.
If you lock a snapshot in governance
mode, omit CoolOffPeriod.
-
compliance
- Locks the snapshot in compliance mode. Snapshots locked in compliance mode can't be unlocked by any user. They can be deleted only after the lock duration expires. Users can't decrease the lock duration or change the lock mode to governance
. However, users with appropriate IAM permissions can increase the lock duration at any time.
If you lock a snapshot in compliance
mode, you can optionally specify CoolOffPeriod.
"
+ }
+ },
+ "LockSnapshotRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "LockSnapshotResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "LockState": {
+ "base": null,
+ "refs": {
+ "LockSnapshotResult$LockState": "The state of the snapshot lock. Valid states include:
-
compliance-cooloff
- The snapshot has been locked in compliance mode but it is still within the cooling-off period. The snapshot can't be deleted, but it can be unlocked and the lock settings can be modified by users with appropriate permissions.
-
governance
- The snapshot is locked in governance mode. The snapshot can't be deleted, but it can be unlocked and the lock settings can be modified by users with appropriate permissions.
-
compliance
- The snapshot is locked in compliance mode and the cooling-off period has expired. The snapshot can't be unlocked or deleted. The lock duration can only be increased by users with appropriate permissions.
-
expired
- The snapshot was locked in compliance or governance mode but the lock duration has expired. The snapshot is not locked and can be deleted.
",
+ "LockedSnapshotsInfo$LockState": "The state of the snapshot lock. Valid states include:
-
compliance-cooloff
- The snapshot has been locked in compliance mode but it is still within the cooling-off period. The snapshot can't be deleted, but it can be unlocked and the lock settings can be modified by users with appropriate permissions.
-
governance
- The snapshot is locked in governance mode. The snapshot can't be deleted, but it can be unlocked and the lock settings can be modified by users with appropriate permissions.
-
compliance
- The snapshot is locked in compliance mode and the cooling-off period has expired. The snapshot can't be unlocked or deleted. The lock duration can only be increased by users with appropriate permissions.
-
expired
- The snapshot was locked in compliance or governance mode but the lock duration has expired. The snapshot is not locked and can be deleted.
"
+ }
+ },
+ "LockedSnapshotsInfo": {
+ "base": "Information about a locked snapshot.
",
+ "refs": {
+ "LockedSnapshotsInfoList$member": null
+ }
+ },
+ "LockedSnapshotsInfoList": {
+ "base": null,
+ "refs": {
+ "DescribeLockedSnapshotsResult$Snapshots": "Information about the snapshots.
"
+ }
+ },
"LogDestinationType": {
"base": null,
"refs": {
@@ -14153,6 +14224,15 @@
"IpamDiscoveredAccount$LastSuccessfulDiscoveryTime": "The last successful resource discovery time.
",
"IpamDiscoveredResourceCidr$SampleTime": "The last successful resource discovery time.
",
"KeyPairInfo$CreateTime": "If you used Amazon EC2 to create the key pair, this is the date and time when the key was created, in ISO 8601 date-time format, in the UTC time zone.
If you imported an existing key pair to Amazon EC2, this is the date and time the key was imported, in ISO 8601 date-time format, in the UTC time zone.
",
+ "LockSnapshotRequest$ExpirationDate": "The date and time at which the snapshot lock is to automatically expire, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
You must specify either this parameter or LockDuration, but not both.
",
+ "LockSnapshotResult$CoolOffPeriodExpiresOn": "The date and time at which the compliance mode cooling-off period expires, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
",
+ "LockSnapshotResult$LockCreatedOn": "The date and time at which the snapshot was locked, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
",
+ "LockSnapshotResult$LockExpiresOn": "The date and time at which the lock will expire, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
",
+ "LockSnapshotResult$LockDurationStartTime": "The date and time at which the lock duration started, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
",
+ "LockedSnapshotsInfo$CoolOffPeriodExpiresOn": "The date and time at which the compliance mode cooling-off period expires, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
",
+ "LockedSnapshotsInfo$LockCreatedOn": "The date and time at which the snapshot was locked, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
",
+ "LockedSnapshotsInfo$LockDurationStartTime": "The date and time at which the lock duration started, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
If you lock a snapshot that is in the pending
state, the lock duration starts only once the snapshot enters the completed
state.
",
+ "LockedSnapshotsInfo$LockExpiresOn": "The date and time at which the lock will expire, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ
).
",
"MaintenanceDetails$MaintenanceAutoAppliedAfter": "The timestamp after which Amazon Web Services will automatically apply maintenance.
",
"MaintenanceDetails$LastMaintenanceApplied": "Timestamp of last applied maintenance.
",
"MetricPoint$StartDate": "The start date for the metric point. The starting date for the metric point. The starting time must be formatted as yyyy-mm-ddThh:mm:ss
. For example, 2022-06-10T12:00:00.000Z
.
",
@@ -17443,6 +17523,19 @@
"DescribeInstanceEventWindowsRequest$MaxResults": "The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken
value. This value can be between 20 and 500. You cannot specify this parameter and the event window IDs parameter in the same call.
"
}
},
+ "RetentionPeriodRequestDays": {
+ "base": null,
+ "refs": {
+ "LockSnapshotRequest$LockDuration": "The period of time for which to lock the snapshot, in days. The snapshot lock will automatically expire after this period lapses.
You must specify either this parameter or ExpirationDate, but not both.
Allowed values: Min: 1, max 36500
"
+ }
+ },
+ "RetentionPeriodResponseDays": {
+ "base": null,
+ "refs": {
+ "LockSnapshotResult$LockDuration": "The period of time for which the snapshot is locked, in days.
",
+ "LockedSnapshotsInfo$LockDuration": "The period of time for which the snapshot is locked, in days.
"
+ }
+ },
"RevokeClientVpnIngressRequest": {
"base": null,
"refs": {
@@ -18204,6 +18297,7 @@
"ImageDiskContainer$SnapshotId": "The ID of the EBS snapshot to be used for importing the snapshot.
",
"LaunchTemplateEbsBlockDevice$SnapshotId": "The ID of the snapshot.
",
"LaunchTemplateEbsBlockDeviceRequest$SnapshotId": "The ID of the snapshot.
",
+ "LockSnapshotRequest$SnapshotId": "The ID of the snapshot to lock.
",
"ModifySnapshotAttributeRequest$SnapshotId": "The ID of the snapshot.
",
"ModifySnapshotTierRequest$SnapshotId": "The ID of the snapshot.
",
"ReplaceRootVolumeTask$SnapshotId": "The ID of the snapshot used to create the replacement root volume.
",
@@ -18212,12 +18306,14 @@
"RestoreSnapshotTierRequest$SnapshotId": "The ID of the snapshot to restore.
",
"ScheduledInstancesEbs$SnapshotId": "The ID of the snapshot.
",
"SnapshotIdStringList$member": null,
- "SnapshotTierStatus$SnapshotId": "The ID of the snapshot.
"
+ "SnapshotTierStatus$SnapshotId": "The ID of the snapshot.
",
+ "UnlockSnapshotRequest$SnapshotId": "The ID of the snapshot to unlock.
"
}
},
"SnapshotIdStringList": {
"base": null,
"refs": {
+ "DescribeLockedSnapshotsRequest$SnapshotIds": "The IDs of the snapshots for which to view the lock status.
",
"DescribeSnapshotsRequest$SnapshotIds": "The snapshot IDs.
Default: Describes the snapshots for which you have create volume permissions.
",
"DisableFastSnapshotRestoresRequest$SourceSnapshotIds": "The IDs of one or more snapshots. For example, snap-1234567890abcdef0
.
",
"EnableFastSnapshotRestoresRequest$SourceSnapshotIds": "The IDs of one or more snapshots. For example, snap-1234567890abcdef0
. You can specify a snapshot that was shared with you from another Amazon Web Services account.
",
@@ -19214,6 +19310,8 @@
"DescribeLocalGatewayVirtualInterfacesResult$NextToken": "The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
",
"DescribeLocalGatewaysRequest$NextToken": "The token for the next page of results.
",
"DescribeLocalGatewaysResult$NextToken": "The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
",
+ "DescribeLockedSnapshotsRequest$NextToken": "The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
",
+ "DescribeLockedSnapshotsResult$NextToken": "The token to include in another request to get the next page of items. This value is null
when there are no more items to return.
",
"DescribeMovingAddressesRequest$NextToken": "The token for the next page of results.
",
"DescribeMovingAddressesResult$NextToken": "The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
",
"DescribeNatGatewaysRequest$NextToken": "The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
",
@@ -19890,6 +19988,9 @@
"LocalGatewayVirtualInterface$OwnerId": "The ID of the Amazon Web Services account that owns the local gateway virtual interface.
",
"LocalGatewayVirtualInterfaceGroup$LocalGatewayId": "The ID of the local gateway.
",
"LocalGatewayVirtualInterfaceGroup$OwnerId": "The ID of the Amazon Web Services account that owns the local gateway virtual interface group.
",
+ "LockSnapshotResult$SnapshotId": "The ID of the snapshot
",
+ "LockedSnapshotsInfo$OwnerId": "The account ID of the Amazon Web Services account that owns the snapshot.
",
+ "LockedSnapshotsInfo$SnapshotId": "The ID of the snapshot.
",
"MaintenanceDetails$PendingMaintenance": "Verify existence of a pending maintenance.
",
"ManagedPrefixList$AddressFamily": "The IP address version.
",
"ManagedPrefixList$StateMessage": "The state message.
",
@@ -20553,6 +20654,7 @@
"TunnelOption$DpdTimeoutAction": "The action to take after a DPD timeout occurs.
",
"TunnelOption$StartupAction": "The action to take when the establishing the VPN tunnels for a VPN connection.
",
"UnassignIpv6AddressesResult$NetworkInterfaceId": "The ID of the network interface.
",
+ "UnlockSnapshotResult$SnapshotId": "The ID of the snapshot.
",
"UnsuccessfulInstanceCreditSpecificationItem$InstanceId": "The ID of the instance.
",
"UnsuccessfulInstanceCreditSpecificationItemError$Message": "The applicable error message.
",
"UnsuccessfulItem$ResourceId": "The ID of the resource.
",
@@ -22429,6 +22531,16 @@
"ModifyDefaultCreditSpecificationRequest$InstanceFamily": "The instance family.
"
}
},
+ "UnlockSnapshotRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UnlockSnapshotResult": {
+ "base": null,
+ "refs": {
+ }
+ },
"UnmonitorInstancesRequest": {
"base": null,
"refs": {
diff --git a/models/apis/finspace-data/2020-07-13/api-2.json b/models/apis/finspace-data/2020-07-13/api-2.json
index 982a00984b6..96689b4df26 100644
--- a/models/apis/finspace-data/2020-07-13/api-2.json
+++ b/models/apis/finspace-data/2020-07-13/api-2.json
@@ -28,7 +28,9 @@
{"shape":"AccessDeniedException"},
{"shape":"ResourceNotFoundException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"CreateChangeset":{
"name":"CreateChangeset",
@@ -46,7 +48,9 @@
{"shape":"AccessDeniedException"},
{"shape":"LimitExceededException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"CreateDataView":{
"name":"CreateDataView",
@@ -63,7 +67,9 @@
{"shape":"LimitExceededException"},
{"shape":"ConflictException"},
{"shape":"ResourceNotFoundException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"CreateDataset":{
"name":"CreateDataset",
@@ -81,7 +87,9 @@
{"shape":"LimitExceededException"},
{"shape":"ConflictException"},
{"shape":"ResourceNotFoundException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"CreatePermissionGroup":{
"name":"CreatePermissionGroup",
@@ -98,7 +106,9 @@
{"shape":"AccessDeniedException"},
{"shape":"LimitExceededException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"CreateUser":{
"name":"CreateUser",
@@ -115,7 +125,9 @@
{"shape":"AccessDeniedException"},
{"shape":"LimitExceededException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"DeleteDataset":{
"name":"DeleteDataset",
@@ -133,7 +145,9 @@
{"shape":"ResourceNotFoundException"},
{"shape":"LimitExceededException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"DeletePermissionGroup":{
"name":"DeletePermissionGroup",
@@ -151,7 +165,9 @@
{"shape":"ResourceNotFoundException"},
{"shape":"LimitExceededException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"DisableUser":{
"name":"DisableUser",
@@ -168,7 +184,9 @@
{"shape":"AccessDeniedException"},
{"shape":"ResourceNotFoundException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"DisassociateUserFromPermissionGroup":{
"name":"DisassociateUserFromPermissionGroup",
@@ -185,7 +203,9 @@
{"shape":"AccessDeniedException"},
{"shape":"ResourceNotFoundException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"EnableUser":{
"name":"EnableUser",
@@ -203,7 +223,9 @@
{"shape":"ResourceNotFoundException"},
{"shape":"LimitExceededException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"GetChangeset":{
"name":"GetChangeset",
@@ -220,7 +242,9 @@
{"shape":"ThrottlingException"},
{"shape":"AccessDeniedException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"GetDataView":{
"name":"GetDataView",
@@ -236,7 +260,9 @@
{"shape":"ThrottlingException"},
{"shape":"ValidationException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"GetDataset":{
"name":"GetDataset",
@@ -253,7 +279,9 @@
{"shape":"AccessDeniedException"},
{"shape":"ResourceNotFoundException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"GetExternalDataViewAccessDetails":{
"name":"GetExternalDataViewAccessDetails",
@@ -269,7 +297,9 @@
{"shape":"ThrottlingException"},
{"shape":"ValidationException"},
{"shape":"AccessDeniedException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"GetPermissionGroup":{
"name":"GetPermissionGroup",
@@ -285,7 +315,9 @@
{"shape":"ThrottlingException"},
{"shape":"AccessDeniedException"},
{"shape":"ResourceNotFoundException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"GetProgrammaticAccessCredentials":{
"name":"GetProgrammaticAccessCredentials",
@@ -300,7 +332,9 @@
{"shape":"ValidationException"},
{"shape":"ThrottlingException"},
{"shape":"AccessDeniedException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"GetUser":{
"name":"GetUser",
@@ -316,7 +350,9 @@
{"shape":"ThrottlingException"},
{"shape":"AccessDeniedException"},
{"shape":"ResourceNotFoundException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"GetWorkingLocation":{
"name":"GetWorkingLocation",
@@ -331,7 +367,9 @@
{"shape":"AccessDeniedException"},
{"shape":"ThrottlingException"},
{"shape":"ValidationException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"ListChangesets":{
"name":"ListChangesets",
@@ -348,7 +386,9 @@
{"shape":"ThrottlingException"},
{"shape":"AccessDeniedException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"ListDataViews":{
"name":"ListDataViews",
@@ -364,7 +404,9 @@
{"shape":"ThrottlingException"},
{"shape":"ValidationException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"ListDatasets":{
"name":"ListDatasets",
@@ -380,7 +422,9 @@
{"shape":"ValidationException"},
{"shape":"ConflictException"},
{"shape":"ResourceNotFoundException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"ListPermissionGroups":{
"name":"ListPermissionGroups",
@@ -395,7 +439,9 @@
{"shape":"ValidationException"},
{"shape":"ThrottlingException"},
{"shape":"AccessDeniedException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"ListPermissionGroupsByUser":{
"name":"ListPermissionGroupsByUser",
@@ -411,7 +457,9 @@
{"shape":"ThrottlingException"},
{"shape":"AccessDeniedException"},
{"shape":"ResourceNotFoundException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"ListUsers":{
"name":"ListUsers",
@@ -426,7 +474,9 @@
{"shape":"ValidationException"},
{"shape":"ThrottlingException"},
{"shape":"AccessDeniedException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"ListUsersByPermissionGroup":{
"name":"ListUsersByPermissionGroup",
@@ -442,7 +492,9 @@
{"shape":"ThrottlingException"},
{"shape":"AccessDeniedException"},
{"shape":"ResourceNotFoundException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"ResetUserPassword":{
"name":"ResetUserPassword",
@@ -459,7 +511,9 @@
{"shape":"AccessDeniedException"},
{"shape":"ResourceNotFoundException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"UpdateChangeset":{
"name":"UpdateChangeset",
@@ -476,7 +530,9 @@
{"shape":"ThrottlingException"},
{"shape":"AccessDeniedException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"UpdateDataset":{
"name":"UpdateDataset",
@@ -493,7 +549,9 @@
{"shape":"AccessDeniedException"},
{"shape":"ConflictException"},
{"shape":"ResourceNotFoundException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"UpdatePermissionGroup":{
"name":"UpdatePermissionGroup",
@@ -510,7 +568,9 @@
{"shape":"AccessDeniedException"},
{"shape":"ResourceNotFoundException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"UpdateUser":{
"name":"UpdateUser",
@@ -527,7 +587,9 @@
{"shape":"AccessDeniedException"},
{"shape":"ResourceNotFoundException"},
{"shape":"ConflictException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
}
},
"shapes":{
diff --git a/models/apis/finspace-data/2020-07-13/endpoint-rule-set-1.json b/models/apis/finspace-data/2020-07-13/endpoint-rule-set-1.json
index eb316299687..4385d87739e 100644
--- a/models/apis/finspace-data/2020-07-13/endpoint-rule-set-1.json
+++ b/models/apis/finspace-data/2020-07-13/endpoint-rule-set-1.json
@@ -40,7 +40,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -83,7 +82,8 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -96,7 +96,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -110,7 +109,6 @@
"assign": "PartitionResult"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -133,7 +131,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -168,7 +165,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [],
@@ -179,14 +175,16 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -200,14 +198,12 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
{
"fn": "booleanEquals",
"argv": [
- true,
{
"fn": "getAttr",
"argv": [
@@ -216,11 +212,11 @@
},
"supportsFIPS"
]
- }
+ },
+ true
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [],
@@ -231,14 +227,16 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "FIPS is enabled but this partition does not support FIPS",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -252,7 +250,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -272,7 +269,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [],
@@ -283,14 +279,16 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "DualStack is enabled but this partition does not support DualStack",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
@@ -301,9 +299,11 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
diff --git a/models/apis/finspace/2021-03-12/api-2.json b/models/apis/finspace/2021-03-12/api-2.json
index 113761d7a7a..8154a3ace1f 100644
--- a/models/apis/finspace/2021-03-12/api-2.json
+++ b/models/apis/finspace/2021-03-12/api-2.json
@@ -28,7 +28,9 @@
{"shape":"ThrottlingException"},
{"shape":"ServiceQuotaExceededException"},
{"shape":"LimitExceededException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"CreateKxChangeset":{
"name":"CreateKxChangeset",
@@ -137,7 +139,9 @@
{"shape":"AccessDeniedException"},
{"shape":"ThrottlingException"},
{"shape":"ValidationException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"DeleteKxCluster":{
"name":"DeleteKxCluster",
@@ -219,7 +223,9 @@
{"shape":"InternalServerException"},
{"shape":"ValidationException"},
{"shape":"AccessDeniedException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"GetKxChangeset":{
"name":"GetKxChangeset",
@@ -329,7 +335,9 @@
"errors":[
{"shape":"InternalServerException"},
{"shape":"ValidationException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"ListKxChangesets":{
"name":"ListKxChangesets",
@@ -483,7 +491,9 @@
{"shape":"AccessDeniedException"},
{"shape":"ThrottlingException"},
{"shape":"ValidationException"}
- ]
+ ],
+ "deprecated":true,
+ "deprecatedMessage":"This method will be discontinued."
},
"UpdateKxClusterCodeConfiguration":{
"name":"UpdateKxClusterCodeConfiguration",
diff --git a/models/apis/lambda/2015-03-31/api-2.json b/models/apis/lambda/2015-03-31/api-2.json
index b8e0a0bb567..d6b1f481a98 100644
--- a/models/apis/lambda/2015-03-31/api-2.json
+++ b/models/apis/lambda/2015-03-31/api-2.json
@@ -3867,7 +3867,8 @@
"python3.11",
"nodejs20.x",
"provided.al2023",
- "python3.12"
+ "python3.12",
+ "java21"
]
},
"RuntimeVersionArn":{
diff --git a/models/apis/mwaa/2020-07-01/api-2.json b/models/apis/mwaa/2020-07-01/api-2.json
index 1ccd7e99fea..c12e49a2d58 100644
--- a/models/apis/mwaa/2020-07-01/api-2.json
+++ b/models/apis/mwaa/2020-07-01/api-2.json
@@ -215,6 +215,12 @@
"min":1,
"pattern":"^[0-9a-z.]+$"
},
+ "CeleryExecutorQueue":{
+ "type":"string",
+ "max":1224,
+ "min":1,
+ "pattern":"^arn:aws(-[a-z]+)?:sqs:[a-z0-9\\-]+:\\d{12}:[a-zA-Z_0-9+=,.@\\-_/]+$"
+ },
"CloudWatchLogGroupArn":{
"type":"string",
"max":1224,
@@ -265,6 +271,7 @@
"AirflowConfigurationOptions":{"shape":"AirflowConfigurationOptions"},
"AirflowVersion":{"shape":"AirflowVersion"},
"DagS3Path":{"shape":"RelativePath"},
+ "EndpointManagement":{"shape":"EndpointManagement"},
"EnvironmentClass":{"shape":"EnvironmentClass"},
"ExecutionRoleArn":{"shape":"IamRoleArn"},
"KmsKey":{"shape":"KmsKey"},
@@ -354,14 +361,24 @@
"type":"double",
"box":true
},
+ "EndpointManagement":{
+ "type":"string",
+ "enum":[
+ "CUSTOMER",
+ "SERVICE"
+ ]
+ },
"Environment":{
"type":"structure",
"members":{
"AirflowConfigurationOptions":{"shape":"AirflowConfigurationOptions"},
"AirflowVersion":{"shape":"AirflowVersion"},
"Arn":{"shape":"EnvironmentArn"},
+ "CeleryExecutorQueue":{"shape":"CeleryExecutorQueue"},
"CreatedAt":{"shape":"CreatedAt"},
"DagS3Path":{"shape":"RelativePath"},
+ "DatabaseVpcEndpointService":{"shape":"VpcEndpointServiceName"},
+ "EndpointManagement":{"shape":"EndpointManagement"},
"EnvironmentClass":{"shape":"EnvironmentClass"},
"ExecutionRoleArn":{"shape":"IamRoleArn"},
"KmsKey":{"shape":"KmsKey"},
@@ -384,6 +401,7 @@
"Tags":{"shape":"TagMap"},
"WebserverAccessMode":{"shape":"WebserverAccessMode"},
"WebserverUrl":{"shape":"WebserverUrl"},
+ "WebserverVpcEndpointService":{"shape":"VpcEndpointServiceName"},
"WeeklyMaintenanceWindowStart":{"shape":"WeeklyMaintenanceWindowStart"}
}
},
@@ -420,7 +438,8 @@
"UNAVAILABLE",
"UPDATE_FAILED",
"ROLLING_BACK",
- "CREATING_SNAPSHOT"
+ "CREATING_SNAPSHOT",
+ "PENDING"
]
},
"ErrorCode":{"type":"string"},
@@ -906,6 +925,12 @@
},
"exception":true
},
+ "VpcEndpointServiceName":{
+ "type":"string",
+ "max":1224,
+ "min":1,
+ "pattern":"^([a-z.-]+)?com\\.amazonaws\\.vpce\\.[a-z0-9\\-]+\\.[a-zA-Z_0-9+=,.@\\-_/]+$"
+ },
"WebserverAccessMode":{
"type":"string",
"enum":[
diff --git a/models/apis/mwaa/2020-07-01/docs-2.json b/models/apis/mwaa/2020-07-01/docs-2.json
index bf1f39b2958..27ec018e404 100644
--- a/models/apis/mwaa/2020-07-01/docs-2.json
+++ b/models/apis/mwaa/2020-07-01/docs-2.json
@@ -31,11 +31,17 @@
"AirflowVersion": {
"base": null,
"refs": {
- "CreateEnvironmentInput$AirflowVersion": "The Apache Airflow version for your environment. If no value is specified, it defaults to the latest version. For more information, see Apache Airflow versions on Amazon Managed Workflows for Apache Airflow (MWAA).
Valid values: 1.10.12
, 2.0.2
, 2.2.2
, 2.4.3
, 2.5.1
, 2.6.3
, 2.7.2
.
",
+ "CreateEnvironmentInput$AirflowVersion": "The Apache Airflow version for your environment. If no value is specified, it defaults to the latest version. For more information, see Apache Airflow versions on Amazon Managed Workflows for Apache Airflow (MWAA).
Valid values: 1.10.12
, 2.0.2
, 2.2.2
, 2.4.3
, 2.5.1
, 2.6.3
, 2.7.2
",
"Environment$AirflowVersion": "The Apache Airflow version on your environment.
Valid values: 1.10.12
, 2.0.2
, 2.2.2
, 2.4.3
, 2.5.1
, 2.6.3
, 2.7.2
.
",
"UpdateEnvironmentInput$AirflowVersion": "The Apache Airflow version for your environment. To upgrade your environment, specify a newer version of Apache Airflow supported by Amazon MWAA.
Before you upgrade an environment, make sure your requirements, DAGs, plugins, and other resources used in your workflows are compatible with the new Apache Airflow version. For more information about updating your resources, see Upgrading an Amazon MWAA environment.
Valid values: 1.10.12
, 2.0.2
, 2.2.2
, 2.4.3
, 2.5.1
, 2.6.3
, 2.7.2
.
"
}
},
+ "CeleryExecutorQueue": {
+ "base": null,
+ "refs": {
+ "Environment$CeleryExecutorQueue": "The queue ARN for the environment's Celery Executor. Amazon MWAA uses a Celery Executor to distribute tasks across multiple workers. When you create an environment in a shared VPC, you must provide access to the Celery Executor queue from your VPC.
"
+ }
+ },
"CloudWatchLogGroupArn": {
"base": null,
"refs": {
@@ -121,6 +127,13 @@
"StatisticSet$Sum": " Internal only. The sum of values for the sample set.
"
}
},
+ "EndpointManagement": {
+ "base": null,
+ "refs": {
+ "CreateEnvironmentInput$EndpointManagement": "Defines whether the VPC endpoints configured for the environment are created, and managed, by the customer or by Amazon MWAA. If set to SERVICE
, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set to CUSTOMER
, you must create, and manage, the VPC endpoints for your VPC. If you choose to create an environment in a shared VPC, you must set this value to CUSTOMER
. In a shared VPC deployment, the environment will remain in PENDING
status until you create the VPC endpoints. If you do not take action to create the endpoints within 72 hours, the status will change to CREATE_FAILED
. You can delete the failed environment and create a new one.
",
+ "Environment$EndpointManagement": "Defines whether the VPC endpoints configured for the environment are created, and managed, by the customer or by Amazon MWAA. If set to SERVICE
, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set to CUSTOMER
, you must create, and manage, the VPC endpoints in your VPC.
"
+ }
+ },
"Environment": {
"base": "Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
",
"refs": {
@@ -169,7 +182,7 @@
"EnvironmentStatus": {
"base": null,
"refs": {
- "Environment$Status": "The status of the Amazon MWAA environment. Valid values:
-
CREATING
- Indicates the request to create the environment is in progress.
-
CREATING_SNAPSHOT
- Indicates the request to update environment details, or upgrade the environment version, is in progress and Amazon MWAA is creating a storage volume snapshot of the Amazon RDS database cluster associated with the environment. A database snapshot is a backup created at a specific point in time. Amazon MWAA uses snapshots to recover environment metadata if the process to update or upgrade an environment fails.
-
CREATE_FAILED
- Indicates the request to create the environment failed, and the environment could not be created.
-
AVAILABLE
- Indicates the request was successful and the environment is ready to use.
-
UPDATING
- Indicates the request to update the environment is in progress.
-
ROLLING_BACK
- Indicates the request to update environment details, or upgrade the environment version, failed and Amazon MWAA is restoring the environment using the latest storage volume snapshot.
-
DELETING
- Indicates the request to delete the environment is in progress.
-
DELETED
- Indicates the request to delete the environment is complete, and the environment has been deleted.
-
UNAVAILABLE
- Indicates the request failed, but the environment was unable to rollback and is not in a stable state.
-
UPDATE_FAILED
- Indicates the request to update the environment failed, and the environment has rolled back successfully and is ready to use.
We recommend reviewing our troubleshooting guide for a list of common errors and their solutions. For more information, see Amazon MWAA troubleshooting.
"
+ "Environment$Status": "The status of the Amazon MWAA environment.
Valid values:
-
CREATING
- Indicates the request to create the environment is in progress.
-
CREATING_SNAPSHOT
- Indicates the request to update environment details, or upgrade the environment version, is in progress and Amazon MWAA is creating a storage volume snapshot of the Amazon RDS database cluster associated with the environment. A database snapshot is a backup created at a specific point in time. Amazon MWAA uses snapshots to recover environment metadata if the process to update or upgrade an environment fails.
-
CREATE_FAILED
- Indicates the request to create the environment failed, and the environment could not be created.
-
AVAILABLE
- Indicates the request was successful and the environment is ready to use.
-
PENDING
- Indicates the request was successful, but the process to create the environment is paused until you create the required VPC endpoints in your VPC. After you create the VPC endpoints, the process resumes.
-
UPDATING
- Indicates the request to update the environment is in progress.
-
ROLLING_BACK
- Indicates the request to update environment details, or upgrade the environment version, failed and Amazon MWAA is restoring the environment using the latest storage volume snapshot.
-
DELETING
- Indicates the request to delete the environment is in progress.
-
DELETED
- Indicates the request to delete the environment is complete, and the environment has been deleted.
-
UNAVAILABLE
- Indicates the request failed, but the environment was unable to rollback and is not in a stable state.
-
UPDATE_FAILED
- Indicates the request to update the environment failed, and the environment has rolled back successfully and is ready to use.
We recommend reviewing our troubleshooting guide for a list of common errors and their solutions. For more information, see Amazon MWAA troubleshooting.
"
}
},
"ErrorCode": {
@@ -566,11 +579,18 @@
"refs": {
}
},
+ "VpcEndpointServiceName": {
+ "base": null,
+ "refs": {
+ "Environment$DatabaseVpcEndpointService": "The VPC endpoint for the environment's Amazon RDS database.
",
+ "Environment$WebserverVpcEndpointService": "The VPC endpoint for the environment's web server.
"
+ }
+ },
"WebserverAccessMode": {
"base": null,
"refs": {
- "CreateEnvironmentInput$WebserverAccessMode": "The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.
",
- "Environment$WebserverAccessMode": "The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.
",
+ "CreateEnvironmentInput$WebserverAccessMode": "Defines the access mode for the Apache Airflow web server. For more information, see Apache Airflow access modes.
",
+ "Environment$WebserverAccessMode": "The Apache Airflow web server access mode. For more information, see Apache Airflow access modes.
",
"UpdateEnvironmentInput$WebserverAccessMode": "The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.
"
}
},
diff --git a/models/apis/rds/2014-10-31/docs-2.json b/models/apis/rds/2014-10-31/docs-2.json
index b68e1da9427..4586bc7bf78 100644
--- a/models/apis/rds/2014-10-31/docs-2.json
+++ b/models/apis/rds/2014-10-31/docs-2.json
@@ -4981,7 +4981,7 @@
"ModifyDBSnapshotAttributeMessage$DBSnapshotIdentifier": "The identifier for the DB snapshot to modify the attributes for.
",
"ModifyDBSnapshotAttributeMessage$AttributeName": "The name of the DB snapshot attribute to modify.
To manage authorization for other Amazon Web Services accounts to copy or restore a manual DB snapshot, set this value to restore
.
To view the list of attributes available to modify, use the DescribeDBSnapshotAttributes API operation.
",
"ModifyDBSnapshotMessage$DBSnapshotIdentifier": "The identifier of the DB snapshot to modify.
",
- "ModifyDBSnapshotMessage$EngineVersion": "The engine version to upgrade the DB snapshot to.
The following are the database engines and engine versions that are available when you upgrade a DB snapshot.
MySQL
Oracle
-
19.0.0.0.ru-2022-01.rur-2022-01.r1
(supported for 12.2.0.1 DB snapshots)
-
19.0.0.0.ru-2022-07.rur-2022-07.r1
(supported for 12.1.0.2 DB snapshots)
-
12.1.0.2.v8
(supported for 12.1.0.1 DB snapshots)
-
11.2.0.4.v12
(supported for 11.2.0.2 DB snapshots)
-
11.2.0.4.v11
(supported for 11.2.0.3 DB snapshots)
PostgreSQL
For the list of engine versions that are available for upgrading a DB snapshot, see Upgrading the PostgreSQL DB Engine for Amazon RDS.
",
+ "ModifyDBSnapshotMessage$EngineVersion": "The engine version to upgrade the DB snapshot to.
The following are the database engines and engine versions that are available when you upgrade a DB snapshot.
MySQL
For the list of engine versions that are available for upgrading a DB snapshot, see Upgrading a MySQL DB snapshot engine version in the Amazon RDS User Guide.
Oracle
-
19.0.0.0.ru-2022-01.rur-2022-01.r1
(supported for 12.2.0.1 DB snapshots)
-
19.0.0.0.ru-2022-07.rur-2022-07.r1
(supported for 12.1.0.2 DB snapshots)
-
12.1.0.2.v8
(supported for 12.1.0.1 DB snapshots)
-
11.2.0.4.v12
(supported for 11.2.0.2 DB snapshots)
-
11.2.0.4.v11
(supported for 11.2.0.3 DB snapshots)
PostgreSQL
For the list of engine versions that are available for upgrading a DB snapshot, see Upgrading a PostgreSQL DB snapshot engine version in the Amazon RDS User Guide.
",
"ModifyDBSnapshotMessage$OptionGroupName": "The option group to identify with the upgraded DB snapshot.
You can specify this parameter when you upgrade an Oracle DB snapshot. The same option group considerations apply when upgrading a DB snapshot as when upgrading a DB instance. For more information, see Option group considerations in the Amazon RDS User Guide.
",
"ModifyDBSubnetGroupMessage$DBSubnetGroupName": "The name for the DB subnet group. This value is stored as a lowercase string. You can't modify the default subnet group.
Constraints: Must match the name of an existing DBSubnetGroup. Must not be default.
Example: mydbsubnetgroup
",
"ModifyDBSubnetGroupMessage$DBSubnetGroupDescription": "The description for the DB subnet group.
",
diff --git a/models/apis/redshift/2012-12-01/api-2.json b/models/apis/redshift/2012-12-01/api-2.json
index 656ce552dfc..7487e260eab 100644
--- a/models/apis/redshift/2012-12-01/api-2.json
+++ b/models/apis/redshift/2012-12-01/api-2.json
@@ -655,7 +655,8 @@
"errors":[
{"shape":"UnsupportedOperationFault"},
{"shape":"ClusterNotFoundFault"},
- {"shape":"CustomCnameAssociationFault"}
+ {"shape":"CustomCnameAssociationFault"},
+ {"shape":"CustomDomainAssociationNotFoundFault"}
]
},
"DeleteEndpointAccess":{
@@ -1808,7 +1809,8 @@
"errors":[
{"shape":"UnsupportedOperationFault"},
{"shape":"ClusterNotFoundFault"},
- {"shape":"CustomCnameAssociationFault"}
+ {"shape":"CustomCnameAssociationFault"},
+ {"shape":"CustomDomainAssociationNotFoundFault"}
]
},
"ModifyEndpointAccess":{
@@ -3554,7 +3556,7 @@
"type":"string",
"max":253,
"min":1,
- "pattern":"^((?!-)[A-Za-z0-9-]{1,63}(?The custom domain name for a custom domain association.",
"CreateCustomDomainAssociationResult$CustomDomainName": "The custom domain name for the association result.
",
+ "DeleteCustomDomainAssociationMessage$CustomDomainName": "The custom domain name for the custom domain association.
",
"DescribeCustomDomainAssociationsMessage$CustomDomainName": "The custom domain name for the custom domain association.
",
"ModifyCustomDomainAssociationMessage$CustomDomainName": "The custom domain name for a changed custom domain association.
",
"ModifyCustomDomainAssociationResult$CustomDomainName": "The custom domain name associated with the result for the changed custom domain association.
"
diff --git a/models/apis/s3control/2018-08-20/api-2.json b/models/apis/s3control/2018-08-20/api-2.json
index 18a7745fe47..39416114df8 100644
--- a/models/apis/s3control/2018-08-20/api-2.json
+++ b/models/apis/s3control/2018-08-20/api-2.json
@@ -108,6 +108,25 @@
"RequiresAccountId":{"value":true}
}
},
+ "CreateStorageLensGroup":{
+ "name":"CreateStorageLensGroup",
+ "http":{
+ "method":"POST",
+ "requestUri":"/v20180820/storagelensgroup",
+ "responseCode":204
+ },
+ "input":{
+ "shape":"CreateStorageLensGroupRequest",
+ "locationName":"CreateStorageLensGroupRequest",
+ "xmlNamespace":{"uri":"http://awss3control.amazonaws.com/doc/2018-08-20/"}
+ },
+ "endpoint":{
+ "hostPrefix":"{AccountId}."
+ },
+ "staticContextParams":{
+ "RequiresAccountId":{"value":true}
+ }
+ },
"DeleteAccessPoint":{
"name":"DeleteAccessPoint",
"http":{
@@ -318,6 +337,21 @@
"RequiresAccountId":{"value":true}
}
},
+ "DeleteStorageLensGroup":{
+ "name":"DeleteStorageLensGroup",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/v20180820/storagelensgroup/{name}",
+ "responseCode":204
+ },
+ "input":{"shape":"DeleteStorageLensGroupRequest"},
+ "endpoint":{
+ "hostPrefix":"{AccountId}."
+ },
+ "staticContextParams":{
+ "RequiresAccountId":{"value":true}
+ }
+ },
"DescribeJob":{
"name":"DescribeJob",
"http":{
@@ -682,6 +716,21 @@
"RequiresAccountId":{"value":true}
}
},
+ "GetStorageLensGroup":{
+ "name":"GetStorageLensGroup",
+ "http":{
+ "method":"GET",
+ "requestUri":"/v20180820/storagelensgroup/{name}"
+ },
+ "input":{"shape":"GetStorageLensGroupRequest"},
+ "output":{"shape":"GetStorageLensGroupResult"},
+ "endpoint":{
+ "hostPrefix":"{AccountId}."
+ },
+ "staticContextParams":{
+ "RequiresAccountId":{"value":true}
+ }
+ },
"ListAccessPoints":{
"name":"ListAccessPoints",
"http":{
@@ -778,6 +827,36 @@
"RequiresAccountId":{"value":true}
}
},
+ "ListStorageLensGroups":{
+ "name":"ListStorageLensGroups",
+ "http":{
+ "method":"GET",
+ "requestUri":"/v20180820/storagelensgroup"
+ },
+ "input":{"shape":"ListStorageLensGroupsRequest"},
+ "output":{"shape":"ListStorageLensGroupsResult"},
+ "endpoint":{
+ "hostPrefix":"{AccountId}."
+ },
+ "staticContextParams":{
+ "RequiresAccountId":{"value":true}
+ }
+ },
+ "ListTagsForResource":{
+ "name":"ListTagsForResource",
+ "http":{
+ "method":"GET",
+ "requestUri":"/v20180820/tags/{resourceArn+}"
+ },
+ "input":{"shape":"ListTagsForResourceRequest"},
+ "output":{"shape":"ListTagsForResourceResult"},
+ "endpoint":{
+ "hostPrefix":"{AccountId}."
+ },
+ "staticContextParams":{
+ "RequiresAccountId":{"value":true}
+ }
+ },
"PutAccessPointConfigurationForObjectLambda":{
"name":"PutAccessPointConfigurationForObjectLambda",
"http":{
@@ -1027,6 +1106,42 @@
"RequiresAccountId":{"value":true}
}
},
+ "TagResource":{
+ "name":"TagResource",
+ "http":{
+ "method":"POST",
+ "requestUri":"/v20180820/tags/{resourceArn+}",
+ "responseCode":204
+ },
+ "input":{
+ "shape":"TagResourceRequest",
+ "locationName":"TagResourceRequest",
+ "xmlNamespace":{"uri":"http://awss3control.amazonaws.com/doc/2018-08-20/"}
+ },
+ "output":{"shape":"TagResourceResult"},
+ "endpoint":{
+ "hostPrefix":"{AccountId}."
+ },
+ "staticContextParams":{
+ "RequiresAccountId":{"value":true}
+ }
+ },
+ "UntagResource":{
+ "name":"UntagResource",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/v20180820/tags/{resourceArn+}",
+ "responseCode":204
+ },
+ "input":{"shape":"UntagResourceRequest"},
+ "output":{"shape":"UntagResourceResult"},
+ "endpoint":{
+ "hostPrefix":"{AccountId}."
+ },
+ "staticContextParams":{
+ "RequiresAccountId":{"value":true}
+ }
+ },
"UpdateJobPriority":{
"name":"UpdateJobPriority",
"http":{
@@ -1069,6 +1184,25 @@
"staticContextParams":{
"RequiresAccountId":{"value":true}
}
+ },
+ "UpdateStorageLensGroup":{
+ "name":"UpdateStorageLensGroup",
+ "http":{
+ "method":"PUT",
+ "requestUri":"/v20180820/storagelensgroup/{name}",
+ "responseCode":204
+ },
+ "input":{
+ "shape":"UpdateStorageLensGroupRequest",
+ "locationName":"UpdateStorageLensGroupRequest",
+ "xmlNamespace":{"uri":"http://awss3control.amazonaws.com/doc/2018-08-20/"}
+ },
+ "endpoint":{
+ "hostPrefix":"{AccountId}."
+ },
+ "staticContextParams":{
+ "RequiresAccountId":{"value":true}
+ }
}
},
"shapes":{
@@ -1127,7 +1261,8 @@
"BucketLevel":{"shape":"BucketLevel"},
"AdvancedCostOptimizationMetrics":{"shape":"AdvancedCostOptimizationMetrics"},
"AdvancedDataProtectionMetrics":{"shape":"AdvancedDataProtectionMetrics"},
- "DetailedStatusCodesMetrics":{"shape":"DetailedStatusCodesMetrics"}
+ "DetailedStatusCodesMetrics":{"shape":"DetailedStatusCodesMetrics"},
+ "StorageLensGroupLevel":{"shape":"StorageLensGroupLevel"}
}
},
"ActivityMetrics":{
@@ -1537,6 +1672,24 @@
"RequestTokenARN":{"shape":"AsyncRequestTokenARN"}
}
},
+ "CreateStorageLensGroupRequest":{
+ "type":"structure",
+ "required":[
+ "AccountId",
+ "StorageLensGroup"
+ ],
+ "members":{
+ "AccountId":{
+ "shape":"AccountId",
+ "contextParam":{"name":"AccountId"},
+ "hostLabel":true,
+ "location":"header",
+ "locationName":"x-amz-account-id"
+ },
+ "StorageLensGroup":{"shape":"StorageLensGroup"},
+ "Tags":{"shape":"TagList"}
+ }
+ },
"CreationDate":{"type":"timestamp"},
"CreationTimestamp":{"type":"timestamp"},
"Date":{"type":"timestamp"},
@@ -1873,6 +2026,27 @@
"members":{
}
},
+ "DeleteStorageLensGroupRequest":{
+ "type":"structure",
+ "required":[
+ "Name",
+ "AccountId"
+ ],
+ "members":{
+ "Name":{
+ "shape":"StorageLensGroupName",
+ "location":"uri",
+ "locationName":"name"
+ },
+ "AccountId":{
+ "shape":"AccountId",
+ "contextParam":{"name":"AccountId"},
+ "hostLabel":true,
+ "location":"header",
+ "locationName":"x-amz-account-id"
+ }
+ }
+ },
"DescribeJobRequest":{
"type":"structure",
"required":[
@@ -2620,6 +2794,34 @@
"Tags":{"shape":"StorageLensTags"}
}
},
+ "GetStorageLensGroupRequest":{
+ "type":"structure",
+ "required":[
+ "Name",
+ "AccountId"
+ ],
+ "members":{
+ "Name":{
+ "shape":"StorageLensGroupName",
+ "location":"uri",
+ "locationName":"name"
+ },
+ "AccountId":{
+ "shape":"AccountId",
+ "contextParam":{"name":"AccountId"},
+ "hostLabel":true,
+ "location":"header",
+ "locationName":"x-amz-account-id"
+ }
+ }
+ },
+ "GetStorageLensGroupResult":{
+ "type":"structure",
+ "members":{
+ "StorageLensGroup":{"shape":"StorageLensGroup"}
+ },
+ "payload":"StorageLensGroup"
+ },
"GrantFullControl":{"type":"string"},
"GrantRead":{"type":"string"},
"GrantReadACP":{"type":"string"},
@@ -3302,6 +3504,71 @@
"StorageLensConfigurationList":{"shape":"StorageLensConfigurationList"}
}
},
+ "ListStorageLensGroupEntry":{
+ "type":"structure",
+ "required":[
+ "Name",
+ "StorageLensGroupArn",
+ "HomeRegion"
+ ],
+ "members":{
+ "Name":{"shape":"StorageLensGroupName"},
+ "StorageLensGroupArn":{"shape":"StorageLensGroupArn"},
+ "HomeRegion":{"shape":"S3AWSRegion"}
+ }
+ },
+ "ListStorageLensGroupsRequest":{
+ "type":"structure",
+ "required":["AccountId"],
+ "members":{
+ "AccountId":{
+ "shape":"AccountId",
+ "contextParam":{"name":"AccountId"},
+ "hostLabel":true,
+ "location":"header",
+ "locationName":"x-amz-account-id"
+ },
+ "NextToken":{
+ "shape":"ContinuationToken",
+ "location":"querystring",
+ "locationName":"nextToken"
+ }
+ }
+ },
+ "ListStorageLensGroupsResult":{
+ "type":"structure",
+ "members":{
+ "NextToken":{"shape":"ContinuationToken"},
+ "StorageLensGroupList":{"shape":"StorageLensGroupList"}
+ }
+ },
+ "ListTagsForResourceRequest":{
+ "type":"structure",
+ "required":[
+ "AccountId",
+ "ResourceArn"
+ ],
+ "members":{
+ "AccountId":{
+ "shape":"AccountId",
+ "contextParam":{"name":"AccountId"},
+ "hostLabel":true,
+ "location":"header",
+ "locationName":"x-amz-account-id"
+ },
+ "ResourceArn":{
+ "shape":"S3ResourceArn",
+ "location":"uri",
+ "locationName":"resourceArn"
+ }
+ }
+ },
+ "ListTagsForResourceResult":{
+ "type":"structure",
+ "members":{
+ "Tags":{"shape":"TagList"}
+ }
+ },
"Location":{"type":"string"},
"MFA":{"type":"string"},
"MFADelete":{
@@ -3323,6 +3590,41 @@
"max":512,
"min":1
},
+ "MatchAnyPrefix":{
+ "type":"list",
+ "member":{
+ "shape":"Prefix",
+ "locationName":"Prefix"
+ }
+ },
+ "MatchAnySuffix":{
+ "type":"list",
+ "member":{
+ "shape":"Suffix",
+ "locationName":"Suffix"
+ }
+ },
+ "MatchAnyTag":{
+ "type":"list",
+ "member":{
+ "shape":"S3Tag",
+ "locationName":"Tag"
+ }
+ },
+ "MatchObjectAge":{
+ "type":"structure",
+ "members":{
+ "DaysGreaterThan":{"shape":"ObjectAgeValue"},
+ "DaysLessThan":{"shape":"ObjectAgeValue"}
+ }
+ },
+ "MatchObjectSize":{
+ "type":"structure",
+ "members":{
+ "BytesGreaterThan":{"shape":"ObjectSizeValue"},
+ "BytesLessThan":{"shape":"ObjectSizeValue"}
+ }
+ },
"MaxLength1024String":{
"type":"string",
"max":1024
@@ -3506,6 +3808,7 @@
},
"exception":true
},
+ "ObjectAgeValue":{"type":"integer"},
"ObjectCreationTime":{"type":"timestamp"},
"ObjectLambdaAccessPoint":{
"type":"structure",
@@ -3637,6 +3940,7 @@
"ObjectLockEnabledForBucket":{"type":"boolean"},
"ObjectSizeGreaterThanBytes":{"type":"long"},
"ObjectSizeLessThanBytes":{"type":"long"},
+ "ObjectSizeValue":{"type":"long"},
"OperationName":{
"type":"string",
"enum":[
@@ -4585,6 +4889,11 @@
"members":{
}
},
+ "S3ResourceArn":{
+ "type":"string",
+ "max":1011,
+ "pattern":"arn:[^:]+:s3:[^:].*"
+ },
"S3Retention":{
"type":"structure",
"members":{
@@ -4780,6 +5089,97 @@
}
}
},
+ "StorageLensGroup":{
+ "type":"structure",
+ "required":[
+ "Name",
+ "Filter"
+ ],
+ "members":{
+ "Name":{"shape":"StorageLensGroupName"},
+ "Filter":{"shape":"StorageLensGroupFilter"},
+ "StorageLensGroupArn":{"shape":"StorageLensGroupArn"}
+ }
+ },
+ "StorageLensGroupAndOperator":{
+ "type":"structure",
+ "members":{
+ "MatchAnyPrefix":{"shape":"MatchAnyPrefix"},
+ "MatchAnySuffix":{"shape":"MatchAnySuffix"},
+ "MatchAnyTag":{"shape":"MatchAnyTag"},
+ "MatchObjectAge":{"shape":"MatchObjectAge"},
+ "MatchObjectSize":{"shape":"MatchObjectSize"}
+ }
+ },
+ "StorageLensGroupArn":{
+ "type":"string",
+ "max":1024,
+ "min":4,
+ "pattern":"arn:[a-z\\-]+:s3:[a-z0-9\\-]+:\\d{12}:storage\\-lens\\-group\\/.*"
+ },
+ "StorageLensGroupFilter":{
+ "type":"structure",
+ "members":{
+ "MatchAnyPrefix":{"shape":"MatchAnyPrefix"},
+ "MatchAnySuffix":{"shape":"MatchAnySuffix"},
+ "MatchAnyTag":{"shape":"MatchAnyTag"},
+ "MatchObjectAge":{"shape":"MatchObjectAge"},
+ "MatchObjectSize":{"shape":"MatchObjectSize"},
+ "And":{"shape":"StorageLensGroupAndOperator"},
+ "Or":{"shape":"StorageLensGroupOrOperator"}
+ }
+ },
+ "StorageLensGroupLevel":{
+ "type":"structure",
+ "members":{
+ "SelectionCriteria":{"shape":"StorageLensGroupLevelSelectionCriteria"}
+ }
+ },
+ "StorageLensGroupLevelExclude":{
+ "type":"list",
+ "member":{
+ "shape":"StorageLensGroupArn",
+ "locationName":"Arn"
+ }
+ },
+ "StorageLensGroupLevelInclude":{
+ "type":"list",
+ "member":{
+ "shape":"StorageLensGroupArn",
+ "locationName":"Arn"
+ }
+ },
+ "StorageLensGroupLevelSelectionCriteria":{
+ "type":"structure",
+ "members":{
+ "Include":{"shape":"StorageLensGroupLevelInclude"},
+ "Exclude":{"shape":"StorageLensGroupLevelExclude"}
+ }
+ },
+ "StorageLensGroupList":{
+ "type":"list",
+ "member":{
+ "shape":"ListStorageLensGroupEntry",
+ "locationName":"StorageLensGroup"
+ },
+ "flattened":true
+ },
+ "StorageLensGroupName":{
+ "type":"string",
+ "max":64,
+ "min":1,
+ "pattern":"[a-zA-Z0-9\\-\\_]+"
+ },
+ "StorageLensGroupOrOperator":{
+ "type":"structure",
+ "members":{
+ "MatchAnyPrefix":{"shape":"MatchAnyPrefix"},
+ "MatchAnySuffix":{"shape":"MatchAnySuffix"},
+ "MatchAnyTag":{"shape":"MatchAnyTag"},
+ "MatchObjectAge":{"shape":"MatchObjectAge"},
+ "MatchObjectSize":{"shape":"MatchObjectSize"}
+ }
+ },
"StorageLensPrefixLevelDelimiter":{
"type":"string",
"max":1
@@ -4841,21 +5241,77 @@
"members":{
}
},
+ "Suffix":{"type":"string"},
"SuspendedCause":{
"type":"string",
"max":1024,
"min":1
},
"SuspendedDate":{"type":"timestamp"},
+ "Tag":{
+ "type":"structure",
+ "required":[
+ "Key",
+ "Value"
+ ],
+ "members":{
+ "Key":{"shape":"TagKeyString"},
+ "Value":{"shape":"TagValueString"}
+ }
+ },
+ "TagKeyList":{
+ "type":"list",
+ "member":{"shape":"TagKeyString"},
+ "max":50,
+ "min":0
+ },
"TagKeyString":{
"type":"string",
- "max":1024,
+ "max":128,
"min":1,
"pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
},
+ "TagList":{
+ "type":"list",
+ "member":{
+ "shape":"Tag",
+ "locationName":"Tag"
+ },
+ "max":50,
+ "min":0
+ },
+ "TagResourceRequest":{
+ "type":"structure",
+ "required":[
+ "AccountId",
+ "ResourceArn",
+ "Tags"
+ ],
+ "members":{
+ "AccountId":{
+ "shape":"AccountId",
+ "contextParam":{"name":"AccountId"},
+ "hostLabel":true,
+ "location":"header",
+ "locationName":"x-amz-account-id"
+ },
+ "ResourceArn":{
+ "shape":"S3ResourceArn",
+ "location":"uri",
+ "locationName":"resourceArn"
+ },
+ "Tags":{"shape":"TagList"}
+ }
+ },
+ "TagResourceResult":{
+ "type":"structure",
+ "members":{
+ }
+ },
"TagValueString":{
"type":"string",
- "max":1024,
+ "max":256,
+ "min":0,
"pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
},
"Tagging":{
@@ -4910,6 +5366,38 @@
"DEEP_ARCHIVE"
]
},
+ "UntagResourceRequest":{
+ "type":"structure",
+ "required":[
+ "AccountId",
+ "ResourceArn",
+ "TagKeys"
+ ],
+ "members":{
+ "AccountId":{
+ "shape":"AccountId",
+ "contextParam":{"name":"AccountId"},
+ "hostLabel":true,
+ "location":"header",
+ "locationName":"x-amz-account-id"
+ },
+ "ResourceArn":{
+ "shape":"S3ResourceArn",
+ "location":"uri",
+ "locationName":"resourceArn"
+ },
+ "TagKeys":{
+ "shape":"TagKeyList",
+ "location":"querystring",
+ "locationName":"tagKeys"
+ }
+ }
+ },
+ "UntagResourceResult":{
+ "type":"structure",
+ "members":{
+ }
+ },
"UpdateJobPriorityRequest":{
"type":"structure",
"required":[
@@ -4988,6 +5476,29 @@
"StatusUpdateReason":{"shape":"JobStatusUpdateReason"}
}
},
+ "UpdateStorageLensGroupRequest":{
+ "type":"structure",
+ "required":[
+ "Name",
+ "AccountId",
+ "StorageLensGroup"
+ ],
+ "members":{
+ "Name":{
+ "shape":"StorageLensGroupName",
+ "location":"uri",
+ "locationName":"name"
+ },
+ "AccountId":{
+ "shape":"AccountId",
+ "contextParam":{"name":"AccountId"},
+ "hostLabel":true,
+ "location":"header",
+ "locationName":"x-amz-account-id"
+ },
+ "StorageLensGroup":{"shape":"StorageLensGroup"}
+ }
+ },
"VersioningConfiguration":{
"type":"structure",
"members":{
diff --git a/models/apis/s3control/2018-08-20/docs-2.json b/models/apis/s3control/2018-08-20/docs-2.json
index 8a27d4dcde0..892dcece411 100644
--- a/models/apis/s3control/2018-08-20/docs-2.json
+++ b/models/apis/s3control/2018-08-20/docs-2.json
@@ -7,12 +7,13 @@
"CreateBucket": " This action creates an Amazon S3 on Outposts bucket. To create an S3 bucket, see Create Bucket in the Amazon S3 API Reference.
Creates a new Outposts bucket. By creating the bucket, you become the bucket owner. To create an Outposts bucket, you must have S3 on Outposts. For more information, see Using Amazon S3 on Outposts in Amazon S3 User Guide.
Not every string is an acceptable bucket name. For information on bucket naming restrictions, see Working with Amazon S3 Buckets.
S3 on Outposts buckets support:
For a complete list of restrictions and Amazon S3 feature limitations on S3 on Outposts, see Amazon S3 on Outposts Restrictions and Limitations.
For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and x-amz-outpost-id
in your API request, see the Examples section.
The following actions are related to CreateBucket
for Amazon S3 on Outposts:
",
"CreateJob": "You can use S3 Batch Operations to perform large-scale batch actions on Amazon S3 objects. Batch Operations can run a single action on lists of Amazon S3 objects that you specify. For more information, see S3 Batch Operations in the Amazon S3 User Guide.
This action creates a S3 Batch Operations job.
Related actions include:
",
"CreateMultiRegionAccessPoint": "Creates a Multi-Region Access Point and associates it with the specified buckets. For more information about creating Multi-Region Access Points, see Creating Multi-Region Access Points in the Amazon S3 User Guide.
This action will always be routed to the US West (Oregon) Region. For more information about the restrictions around managing Multi-Region Access Points, see Managing Multi-Region Access Points in the Amazon S3 User Guide.
This request is asynchronous, meaning that you might receive a response before the command has completed. When this request provides a response, it provides a token that you can use to monitor the status of the request with DescribeMultiRegionAccessPointOperation
.
The following actions are related to CreateMultiRegionAccessPoint
:
",
+ "CreateStorageLensGroup": " Creates a new S3 Storage Lens group and associates it with the specified Amazon Web Services account ID. An S3 Storage Lens group is a custom grouping of objects based on prefix, suffix, object tags, object size, object age, or a combination of these filters. For each Storage Lens group that you’ve created, you can also optionally add Amazon Web Services resource tags. For more information about S3 Storage Lens groups, see Working with S3 Storage Lens groups.
To use this operation, you must have the permission to perform the s3:CreateStorageLensGroup
action. If you’re trying to create a Storage Lens group with Amazon Web Services resource tags, you must also have permission to perform the s3:TagResource
action. For more information about the required Storage Lens Groups permissions, see Setting account permissions to use S3 Storage Lens groups.
For information about Storage Lens groups errors, see List of Amazon S3 Storage Lens error codes.
",
"DeleteAccessPoint": "Deletes the specified access point.
All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id
to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of s3-control
. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id
derived by using the access point ARN, see the Examples section.
The following actions are related to DeleteAccessPoint
:
",
"DeleteAccessPointForObjectLambda": "Deletes the specified Object Lambda Access Point.
The following actions are related to DeleteAccessPointForObjectLambda
:
",
"DeleteAccessPointPolicy": "Deletes the access point policy for the specified access point.
All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id
to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of s3-control
. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id
derived by using the access point ARN, see the Examples section.
The following actions are related to DeleteAccessPointPolicy
:
",
"DeleteAccessPointPolicyForObjectLambda": "Removes the resource policy for an Object Lambda Access Point.
The following actions are related to DeleteAccessPointPolicyForObjectLambda
:
",
"DeleteBucket": " This action deletes an Amazon S3 on Outposts bucket. To delete an S3 bucket, see DeleteBucket in the Amazon S3 API Reference.
Deletes the Amazon S3 on Outposts bucket. All objects (including all object versions and delete markers) in the bucket must be deleted before the bucket itself can be deleted. For more information, see Using Amazon S3 on Outposts in Amazon S3 User Guide.
All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id
to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of s3-control
. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id
derived by using the access point ARN, see the Examples section.
Related Resources
",
- "DeleteBucketLifecycleConfiguration": " This action deletes an Amazon S3 on Outposts bucket's lifecycle configuration. To delete an S3 bucket's lifecycle configuration, see DeleteBucketLifecycle in the Amazon S3 API Reference.
Deletes the lifecycle configuration from the specified Outposts bucket. Amazon S3 on Outposts removes all the lifecycle configuration rules in the lifecycle subresource associated with the bucket. Your objects never expire, and Amazon S3 on Outposts no longer automatically deletes any objects on the basis of rules contained in the deleted lifecycle configuration. For more information, see Using Amazon S3 on Outposts in Amazon S3 User Guide.
To use this action, you must have permission to perform the s3-outposts:DeleteLifecycleConfiguration
action. By default, the bucket owner has this permission and the Outposts bucket owner can grant this permission to others.
All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id
to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of s3-control
. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id
derived by using the access point ARN, see the Examples section.
For more information about object expiration, see Elements to Describe Lifecycle Actions.
Related actions include:
",
+ "DeleteBucketLifecycleConfiguration": " This action deletes an Amazon S3 on Outposts bucket's lifecycle configuration. To delete an S3 bucket's lifecycle configuration, see DeleteBucketLifecycle in the Amazon S3 API Reference.
Deletes the lifecycle configuration from the specified Outposts bucket. Amazon S3 on Outposts removes all the lifecycle configuration rules in the lifecycle subresource associated with the bucket. Your objects never expire, and Amazon S3 on Outposts no longer automatically deletes any objects on the basis of rules contained in the deleted lifecycle configuration. For more information, see Using Amazon S3 on Outposts in Amazon S3 User Guide.
To use this operation, you must have permission to perform the s3-outposts:PutLifecycleConfiguration
action. By default, the bucket owner has this permission and the Outposts bucket owner can grant this permission to others.
All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id
to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of s3-control
. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id
derived by using the access point ARN, see the Examples section.
For more information about object expiration, see Elements to Describe Lifecycle Actions.
Related actions include:
",
"DeleteBucketPolicy": " This action deletes an Amazon S3 on Outposts bucket policy. To delete an S3 bucket policy, see DeleteBucketPolicy in the Amazon S3 API Reference.
This implementation of the DELETE action uses the policy subresource to delete the policy of a specified Amazon S3 on Outposts bucket. If you are using an identity other than the root user of the Amazon Web Services account that owns the bucket, the calling identity must have the s3-outposts:DeleteBucketPolicy
permissions on the specified Outposts bucket and belong to the bucket owner's account to use this action. For more information, see Using Amazon S3 on Outposts in Amazon S3 User Guide.
If you don't have DeleteBucketPolicy
permissions, Amazon S3 returns a 403 Access Denied
error. If you have the correct permissions, but you're not using an identity that belongs to the bucket owner's account, Amazon S3 returns a 405 Method Not Allowed
error.
As a security precaution, the root user of the Amazon Web Services account that owns a bucket can always use this action, even if the policy explicitly denies the root user the ability to perform this action.
For more information about bucket policies, see Using Bucket Policies and User Policies.
All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id
to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of s3-control
. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id
derived by using the access point ARN, see the Examples section.
The following actions are related to DeleteBucketPolicy
:
",
"DeleteBucketReplication": " This operation deletes an Amazon S3 on Outposts bucket's replication configuration. To delete an S3 bucket's replication configuration, see DeleteBucketReplication in the Amazon S3 API Reference.
Deletes the replication configuration from the specified S3 on Outposts bucket.
To use this operation, you must have permissions to perform the s3-outposts:PutReplicationConfiguration
action. The Outposts bucket owner has this permission by default and can grant it to others. For more information about permissions, see Setting up IAM with S3 on Outposts and Managing access to S3 on Outposts buckets in the Amazon S3 User Guide.
It can take a while to propagate PUT
or DELETE
requests for a replication configuration to all S3 on Outposts systems. Therefore, the replication configuration that's returned by a GET
request soon after a PUT
or DELETE
request might return a more recent result than what's on the Outpost. If an Outpost is offline, the delay in updating the replication configuration on that Outpost can be significant.
All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id
to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of s3-control
. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id
derived by using the access point ARN, see the Examples section.
For information about S3 replication on Outposts configuration, see Replicating objects for S3 on Outposts in the Amazon S3 User Guide.
The following operations are related to DeleteBucketReplication
:
",
"DeleteBucketTagging": " This action deletes an Amazon S3 on Outposts bucket's tags. To delete an S3 bucket tags, see DeleteBucketTagging in the Amazon S3 API Reference.
Deletes the tags from the Outposts bucket. For more information, see Using Amazon S3 on Outposts in Amazon S3 User Guide.
To use this action, you must have permission to perform the PutBucketTagging
action. By default, the bucket owner has this permission and can grant this permission to others.
All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id
to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of s3-control
. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id
derived by using the access point ARN, see the Examples section.
The following actions are related to DeleteBucketTagging
:
",
@@ -21,6 +22,7 @@
"DeletePublicAccessBlock": "Removes the PublicAccessBlock
configuration for an Amazon Web Services account. For more information, see Using Amazon S3 block public access.
Related actions include:
",
"DeleteStorageLensConfiguration": "Deletes the Amazon S3 Storage Lens configuration. For more information about S3 Storage Lens, see Assessing your storage activity and usage with Amazon S3 Storage Lens in the Amazon S3 User Guide.
To use this action, you must have permission to perform the s3:DeleteStorageLensConfiguration
action. For more information, see Setting permissions to use Amazon S3 Storage Lens in the Amazon S3 User Guide.
",
"DeleteStorageLensConfigurationTagging": "Deletes the Amazon S3 Storage Lens configuration tags. For more information about S3 Storage Lens, see Assessing your storage activity and usage with Amazon S3 Storage Lens in the Amazon S3 User Guide.
To use this action, you must have permission to perform the s3:DeleteStorageLensConfigurationTagging
action. For more information, see Setting permissions to use Amazon S3 Storage Lens in the Amazon S3 User Guide.
",
+ "DeleteStorageLensGroup": " Deletes an existing S3 Storage Lens group.
To use this operation, you must have the permission to perform the s3:DeleteStorageLensGroup
action. For more information about the required Storage Lens Groups permissions, see Setting account permissions to use S3 Storage Lens groups.
For information about Storage Lens groups errors, see List of Amazon S3 Storage Lens error codes.
",
"DescribeJob": "Retrieves the configuration parameters and status for a Batch Operations job. For more information, see S3 Batch Operations in the Amazon S3 User Guide.
Related actions include:
",
"DescribeMultiRegionAccessPointOperation": "Retrieves the status of an asynchronous request to manage a Multi-Region Access Point. For more information about managing Multi-Region Access Points and how asynchronous requests work, see Managing Multi-Region Access Points in the Amazon S3 User Guide.
The following actions are related to GetMultiRegionAccessPoint
:
",
"GetAccessPoint": "Returns configuration information about the specified access point.
All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id
to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of s3-control
. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id
derived by using the access point ARN, see the Examples section.
The following actions are related to GetAccessPoint
:
",
@@ -44,12 +46,15 @@
"GetPublicAccessBlock": "Retrieves the PublicAccessBlock
configuration for an Amazon Web Services account. For more information, see Using Amazon S3 block public access.
Related actions include:
",
"GetStorageLensConfiguration": "Gets the Amazon S3 Storage Lens configuration. For more information, see Assessing your storage activity and usage with Amazon S3 Storage Lens in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics, see S3 Storage Lens metrics glossary in the Amazon S3 User Guide.
To use this action, you must have permission to perform the s3:GetStorageLensConfiguration
action. For more information, see Setting permissions to use Amazon S3 Storage Lens in the Amazon S3 User Guide.
",
"GetStorageLensConfigurationTagging": "Gets the tags of Amazon S3 Storage Lens configuration. For more information about S3 Storage Lens, see Assessing your storage activity and usage with Amazon S3 Storage Lens in the Amazon S3 User Guide.
To use this action, you must have permission to perform the s3:GetStorageLensConfigurationTagging
action. For more information, see Setting permissions to use Amazon S3 Storage Lens in the Amazon S3 User Guide.
",
+ "GetStorageLensGroup": " Retrieves the Storage Lens group configuration details.
To use this operation, you must have the permission to perform the s3:GetStorageLensGroup
action. For more information about the required Storage Lens Groups permissions, see Setting account permissions to use S3 Storage Lens groups.
For information about Storage Lens groups errors, see List of Amazon S3 Storage Lens error codes.
",
"ListAccessPoints": "Returns a list of the access points that are owned by the current account that's associated with the specified bucket. You can retrieve up to 1000 access points per call. If the specified bucket has more than 1,000 access points (or the number specified in maxResults
, whichever is less), the response will include a continuation token that you can use to list the additional access points.
All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id
to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of s3-control
. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id
derived by using the access point ARN, see the Examples section.
The following actions are related to ListAccessPoints
:
",
"ListAccessPointsForObjectLambda": "Returns some or all (up to 1,000) access points associated with the Object Lambda Access Point per call. If there are more access points than what can be returned in one call, the response will include a continuation token that you can use to list the additional access points.
The following actions are related to ListAccessPointsForObjectLambda
:
",
"ListJobs": "Lists current S3 Batch Operations jobs and jobs that have ended within the last 30 days for the Amazon Web Services account making the request. For more information, see S3 Batch Operations in the Amazon S3 User Guide.
Related actions include:
",
"ListMultiRegionAccessPoints": "Returns a list of the Multi-Region Access Points currently associated with the specified Amazon Web Services account. Each call can return up to 100 Multi-Region Access Points, the maximum number of Multi-Region Access Points that can be associated with a single account.
This action will always be routed to the US West (Oregon) Region. For more information about the restrictions around managing Multi-Region Access Points, see Managing Multi-Region Access Points in the Amazon S3 User Guide.
The following actions are related to ListMultiRegionAccessPoint
:
",
"ListRegionalBuckets": "Returns a list of all Outposts buckets in an Outpost that are owned by the authenticated sender of the request. For more information, see Using Amazon S3 on Outposts in the Amazon S3 User Guide.
For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and x-amz-outpost-id
in your request, see the Examples section.
",
"ListStorageLensConfigurations": "Gets a list of Amazon S3 Storage Lens configurations. For more information about S3 Storage Lens, see Assessing your storage activity and usage with Amazon S3 Storage Lens in the Amazon S3 User Guide.
To use this action, you must have permission to perform the s3:ListStorageLensConfigurations
action. For more information, see Setting permissions to use Amazon S3 Storage Lens in the Amazon S3 User Guide.
",
+ "ListStorageLensGroups": " Lists all the Storage Lens groups in the specified home Region.
To use this operation, you must have the permission to perform the s3:ListStorageLensGroups
action. For more information about the required Storage Lens Groups permissions, see Setting account permissions to use S3 Storage Lens groups.
For information about Storage Lens groups errors, see List of Amazon S3 Storage Lens error codes.
",
+ "ListTagsForResource": " This operation allows you to list all the Amazon Web Services resource tags for the specified resource.
To use this operation, you must have the permission to perform the s3:ListTagsForResource
action. For more information about the required Storage Lens Groups permissions, see Setting account permissions to use S3 Storage Lens groups.
For information about S3 Tagging errors, see List of Amazon S3 Tagging error codes.
This operation is only supported for S3 Storage Lens groups.
",
"PutAccessPointConfigurationForObjectLambda": "Replaces configuration for an Object Lambda Access Point.
The following actions are related to PutAccessPointConfigurationForObjectLambda
:
",
"PutAccessPointPolicy": "Associates an access policy with the specified access point. Each access point can have only one policy, so a request made to this API replaces any existing policy associated with the specified access point.
All Amazon S3 on Outposts REST API requests for this action require an additional parameter of x-amz-outpost-id
to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of s3-control
. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the x-amz-outpost-id
derived by using the access point ARN, see the Examples section.
The following actions are related to PutAccessPointPolicy
:
",
"PutAccessPointPolicyForObjectLambda": "Creates or replaces resource policy for an Object Lambda Access Point. For an example policy, see Creating Object Lambda Access Points in the Amazon S3 User Guide.
The following actions are related to PutAccessPointPolicyForObjectLambda
:
",
@@ -64,8 +69,11 @@
"PutStorageLensConfiguration": "Puts an Amazon S3 Storage Lens configuration. For more information about S3 Storage Lens, see Working with Amazon S3 Storage Lens in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics, see S3 Storage Lens metrics glossary in the Amazon S3 User Guide.
To use this action, you must have permission to perform the s3:PutStorageLensConfiguration
action. For more information, see Setting permissions to use Amazon S3 Storage Lens in the Amazon S3 User Guide.
",
"PutStorageLensConfigurationTagging": "Put or replace tags on an existing Amazon S3 Storage Lens configuration. For more information about S3 Storage Lens, see Assessing your storage activity and usage with Amazon S3 Storage Lens in the Amazon S3 User Guide.
To use this action, you must have permission to perform the s3:PutStorageLensConfigurationTagging
action. For more information, see Setting permissions to use Amazon S3 Storage Lens in the Amazon S3 User Guide.
",
"SubmitMultiRegionAccessPointRoutes": "Submits an updated route configuration for a Multi-Region Access Point. This API operation updates the routing status for the specified Regions from active to passive, or from passive to active. A value of 0
indicates a passive status, which means that traffic won't be routed to the specified Region. A value of 100
indicates an active status, which means that traffic will be routed to the specified Region. At least one Region must be active at all times.
When the routing configuration is changed, any in-progress operations (uploads, copies, deletes, and so on) to formerly active Regions will continue to run to their final completion state (success or failure). The routing configurations of any Regions that aren’t specified remain unchanged.
Updated routing configurations might not be immediately applied. It can take up to 2 minutes for your changes to take effect.
To submit routing control changes and failover requests, use the Amazon S3 failover control infrastructure endpoints in these five Amazon Web Services Regions:
-
us-east-1
-
us-west-2
-
ap-southeast-2
-
ap-northeast-1
-
eu-west-1
Your Amazon S3 bucket does not need to be in these five Regions.
",
+ "TagResource": " Creates a new Amazon Web Services resource tag or updates an existing resource tag. You can add up to 50 Amazon Web Services resource tags for each S3 resource.
To use this operation, you must have the permission to perform the s3:TagResource
action. For more information about the required Storage Lens Groups permissions, see Setting account permissions to use S3 Storage Lens groups.
For information about S3 Tagging errors, see List of Amazon S3 Tagging error codes.
This operation is only supported for S3 Storage Lens groups.
",
+ "UntagResource": " This operation removes the specified Amazon Web Services resource tags from an S3 resource.
To use this operation, you must have the permission to perform the s3:UntagResource
action. For more information about the required Storage Lens Groups permissions, see Setting account permissions to use S3 Storage Lens groups.
For information about S3 Tagging errors, see List of Amazon S3 Tagging error codes.
This operation is only supported for S3 Storage Lens groups.
",
"UpdateJobPriority": "Updates an existing S3 Batch Operations job's priority. For more information, see S3 Batch Operations in the Amazon S3 User Guide.
Related actions include:
",
- "UpdateJobStatus": "Updates the status for the specified job. Use this action to confirm that you want to run a job or to cancel an existing job. For more information, see S3 Batch Operations in the Amazon S3 User Guide.
Related actions include:
"
+ "UpdateJobStatus": "Updates the status for the specified job. Use this action to confirm that you want to run a job or to cancel an existing job. For more information, see S3 Batch Operations in the Amazon S3 User Guide.
Related actions include:
",
+ "UpdateStorageLensGroup": " Updates the existing Storage Lens group.
To use this operation, you must have the permission to perform the s3:UpdateStorageLensGroup
action. For more information about the required Storage Lens Groups permissions, see Setting account permissions to use S3 Storage Lens groups.
For information about Storage Lens groups errors, see List of Amazon S3 Storage Lens error codes.
"
},
"shapes": {
"AbortIncompleteMultipartUpload": {
@@ -115,6 +123,7 @@
"CreateAccessPointRequest$BucketAccountId": "The Amazon Web Services account ID associated with the S3 bucket associated with this access point.
",
"CreateJobRequest$AccountId": "The Amazon Web Services account ID that creates the job.
",
"CreateMultiRegionAccessPointRequest$AccountId": "The Amazon Web Services account ID for the owner of the Multi-Region Access Point. The owner of the Multi-Region Access Point also must own the underlying buckets.
",
+ "CreateStorageLensGroupRequest$AccountId": " The Amazon Web Services account ID that the Storage Lens group is created from and associated with.
",
"DeleteAccessPointForObjectLambdaRequest$AccountId": "The account ID for the account that owns the specified Object Lambda Access Point.
",
"DeleteAccessPointPolicyForObjectLambdaRequest$AccountId": "The account ID for the account that owns the specified Object Lambda Access Point.
",
"DeleteAccessPointPolicyRequest$AccountId": "The account ID for the account that owns the specified access point.
",
@@ -129,6 +138,7 @@
"DeletePublicAccessBlockRequest$AccountId": "The account ID for the Amazon Web Services account whose PublicAccessBlock
configuration you want to remove.
",
"DeleteStorageLensConfigurationRequest$AccountId": "The account ID of the requester.
",
"DeleteStorageLensConfigurationTaggingRequest$AccountId": "The account ID of the requester.
",
+ "DeleteStorageLensGroupRequest$AccountId": " The Amazon Web Services account ID used to create the Storage Lens group that you're trying to delete.
",
"DescribeJobRequest$AccountId": "The Amazon Web Services account ID associated with the S3 Batch Operations job.
",
"DescribeMultiRegionAccessPointOperationRequest$AccountId": "The Amazon Web Services account ID for the owner of the Multi-Region Access Point.
",
"Destination$Account": "The destination bucket owner's account ID.
",
@@ -154,12 +164,15 @@
"GetPublicAccessBlockRequest$AccountId": "The account ID for the Amazon Web Services account whose PublicAccessBlock
configuration you want to retrieve.
",
"GetStorageLensConfigurationRequest$AccountId": "The account ID of the requester.
",
"GetStorageLensConfigurationTaggingRequest$AccountId": "The account ID of the requester.
",
+ "GetStorageLensGroupRequest$AccountId": " The Amazon Web Services account ID associated with the Storage Lens group that you're trying to retrieve the details for.
",
"ListAccessPointsForObjectLambdaRequest$AccountId": "The account ID for the account that owns the specified Object Lambda Access Point.
",
"ListAccessPointsRequest$AccountId": "The Amazon Web Services account ID for the account that owns the specified access points.
",
"ListJobsRequest$AccountId": "The Amazon Web Services account ID associated with the S3 Batch Operations job.
",
"ListMultiRegionAccessPointsRequest$AccountId": "The Amazon Web Services account ID for the owner of the Multi-Region Access Point.
",
"ListRegionalBucketsRequest$AccountId": "The Amazon Web Services account ID of the Outposts bucket.
",
"ListStorageLensConfigurationsRequest$AccountId": "The account ID of the requester.
",
+ "ListStorageLensGroupsRequest$AccountId": " The Amazon Web Services account ID that owns the Storage Lens groups.
",
+ "ListTagsForResourceRequest$AccountId": " The Amazon Web Services account ID of the resource owner.
",
"PutAccessPointConfigurationForObjectLambdaRequest$AccountId": "The account ID for the account that owns the specified Object Lambda Access Point.
",
"PutAccessPointPolicyForObjectLambdaRequest$AccountId": "The account ID for the account that owns the specified Object Lambda Access Point.
",
"PutAccessPointPolicyRequest$AccountId": "The Amazon Web Services account ID for owner of the bucket associated with the specified access point.
",
@@ -179,12 +192,15 @@
"S3JobManifestGenerator$ExpectedBucketOwner": "The Amazon Web Services account ID that owns the bucket the generated manifest is written to. If provided the generated manifest bucket's owner Amazon Web Services account ID must match this value, else the job fails.
",
"S3ManifestOutputLocation$ExpectedManifestBucketOwner": "The Account ID that owns the bucket the generated manifest is written to.
",
"SubmitMultiRegionAccessPointRoutesRequest$AccountId": "The Amazon Web Services account ID for the owner of the Multi-Region Access Point.
",
+ "TagResourceRequest$AccountId": " The Amazon Web Services account ID that created the S3 resource that you're trying to add tags to.
",
+ "UntagResourceRequest$AccountId": " The Amazon Web Services account ID that owns the resource that you're trying to remove the tags from.
",
"UpdateJobPriorityRequest$AccountId": "The Amazon Web Services account ID associated with the S3 Batch Operations job.
",
- "UpdateJobStatusRequest$AccountId": "The Amazon Web Services account ID associated with the S3 Batch Operations job.
"
+ "UpdateJobStatusRequest$AccountId": "The Amazon Web Services account ID associated with the S3 Batch Operations job.
",
+ "UpdateStorageLensGroupRequest$AccountId": " The Amazon Web Services account ID of the Storage Lens group owner.
"
}
},
"AccountLevel": {
- "base": "A container for the account-level Amazon S3 Storage Lens configuration.
For more information about S3 Storage Lens, see Assessing your storage activity and usage with S3 Storage Lens in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics, see S3 Storage Lens metrics glossary in the Amazon S3 User Guide.
",
+ "base": "A container element for the account-level Amazon S3 Storage Lens configuration.
For more information about S3 Storage Lens, see Assessing your storage activity and usage with S3 Storage Lens in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics, see S3 Storage Lens metrics glossary in the Amazon S3 User Guide.
",
"refs": {
"StorageLensConfiguration$AccountLevel": "A container for all the account-level configurations of your S3 Storage Lens configuration.
"
}
@@ -192,21 +208,21 @@
"ActivityMetrics": {
"base": "The container element for Amazon S3 Storage Lens activity metrics. Activity metrics show details about how your storage is requested, such as requests (for example, All requests, Get requests, Put requests), bytes uploaded or downloaded, and errors.
For more information about S3 Storage Lens, see Assessing your storage activity and usage with S3 Storage Lens in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics, see S3 Storage Lens metrics glossary in the Amazon S3 User Guide.
",
"refs": {
- "AccountLevel$ActivityMetrics": "A container for S3 Storage Lens activity metrics.
",
+ "AccountLevel$ActivityMetrics": "A container element for S3 Storage Lens activity metrics.
",
"BucketLevel$ActivityMetrics": "A container for the bucket-level activity metrics for S3 Storage Lens.
"
}
},
"AdvancedCostOptimizationMetrics": {
"base": "The container element for Amazon S3 Storage Lens advanced cost-optimization metrics. Advanced cost-optimization metrics provide insights that you can use to manage and optimize your storage costs, for example, lifecycle rule counts for transitions, expirations, and incomplete multipart uploads.
For more information about S3 Storage Lens, see Assessing your storage activity and usage with S3 Storage Lens in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics, see S3 Storage Lens metrics glossary in the Amazon S3 User Guide.
",
"refs": {
- "AccountLevel$AdvancedCostOptimizationMetrics": "A container for S3 Storage Lens advanced cost-optimization metrics.
",
+ "AccountLevel$AdvancedCostOptimizationMetrics": "A container element for S3 Storage Lens advanced cost-optimization metrics.
",
"BucketLevel$AdvancedCostOptimizationMetrics": "A container for bucket-level advanced cost-optimization metrics for S3 Storage Lens.
"
}
},
"AdvancedDataProtectionMetrics": {
"base": "The container element for Amazon S3 Storage Lens advanced data-protection metrics. Advanced data-protection metrics provide insights that you can use to perform audits and protect your data, for example replication rule counts within and across Regions.
For more information about S3 Storage Lens, see Assessing your storage activity and usage with S3 Storage Lens in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics, see S3 Storage Lens metrics glossary in the Amazon S3 User Guide.
",
"refs": {
- "AccountLevel$AdvancedDataProtectionMetrics": "A container for S3 Storage Lens advanced data-protection metrics.
",
+ "AccountLevel$AdvancedDataProtectionMetrics": "A container element for S3 Storage Lens advanced data-protection metrics.
",
"BucketLevel$AdvancedDataProtectionMetrics": "A container for bucket-level advanced data-protection metrics for S3 Storage Lens.
"
}
},
@@ -333,7 +349,7 @@
"BucketLevel": {
"base": "A container for the bucket-level configuration for Amazon S3 Storage Lens.
For more information about S3 Storage Lens, see Assessing your storage activity and usage with S3 Storage Lens in the Amazon S3 User Guide.
",
"refs": {
- "AccountLevel$BucketLevel": "A container for the S3 Storage Lens bucket-level configuration.
"
+ "AccountLevel$BucketLevel": "A container element for the S3 Storage Lens bucket-level configuration.
"
}
},
"BucketLocationConstraint": {
@@ -423,7 +439,9 @@
"base": null,
"refs": {
"ListStorageLensConfigurationsRequest$NextToken": "A pagination token to request the next page of results.
",
- "ListStorageLensConfigurationsResult$NextToken": "If the request produced more than the maximum number of S3 Storage Lens configuration results, you can pass this value into a subsequent request to retrieve the next page of results.
"
+ "ListStorageLensConfigurationsResult$NextToken": "If the request produced more than the maximum number of S3 Storage Lens configuration results, you can pass this value into a subsequent request to retrieve the next page of results.
",
+ "ListStorageLensGroupsRequest$NextToken": "The token for the next set of results, or null
if there are no more results.
",
+ "ListStorageLensGroupsResult$NextToken": " If NextToken
is returned, there are more Storage Lens groups results available. The value of NextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.
"
}
},
"CreateAccessPointForObjectLambdaRequest": {
@@ -489,6 +507,11 @@
"refs": {
}
},
+ "CreateStorageLensGroupRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
"CreationDate": {
"base": null,
"refs": {
@@ -630,6 +653,11 @@
"refs": {
}
},
+ "DeleteStorageLensGroupRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
"DescribeJobRequest": {
"base": null,
"refs": {
@@ -659,7 +687,7 @@
"DetailedStatusCodesMetrics": {
"base": "The container element for Amazon S3 Storage Lens detailed status code metrics. Detailed status code metrics generate metrics for HTTP status codes, such as 200 OK
, 403 Forbidden
, 503 Service Unavailable
and others.
For more information about S3 Storage Lens, see Assessing your storage activity and usage with S3 Storage Lens in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics, see S3 Storage Lens metrics glossary in the Amazon S3 User Guide.
",
"refs": {
- "AccountLevel$DetailedStatusCodesMetrics": "A container for detailed status code metrics.
",
+ "AccountLevel$DetailedStatusCodesMetrics": "A container element for detailed status code metrics.
",
"BucketLevel$DetailedStatusCodesMetrics": "A container for bucket-level detailed status code metrics for S3 Storage Lens.
"
}
},
@@ -961,6 +989,16 @@
"refs": {
}
},
+ "GetStorageLensGroupRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetStorageLensGroupResult": {
+ "base": null,
+ "refs": {
+ }
+ },
"GrantFullControl": {
"base": null,
"refs": {
@@ -1396,6 +1434,32 @@
"refs": {
}
},
+ "ListStorageLensGroupEntry": {
+ "base": " Each entry contains a Storage Lens group that exists in the specified home Region.
",
+ "refs": {
+ "StorageLensGroupList$member": null
+ }
+ },
+ "ListStorageLensGroupsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListStorageLensGroupsResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListTagsForResourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListTagsForResourceResult": {
+ "base": null,
+ "refs": {
+ }
+ },
"Location": {
"base": null,
"refs": {
@@ -1426,6 +1490,46 @@
"S3ManifestOutputLocation$ManifestPrefix": "Prefix identifying one or more objects to which the manifest applies.
"
}
},
+ "MatchAnyPrefix": {
+ "base": null,
+ "refs": {
+ "StorageLensGroupAndOperator$MatchAnyPrefix": " Contains a list of prefixes. At least one prefix must be specified. Up to 10 prefixes are allowed.
",
+ "StorageLensGroupFilter$MatchAnyPrefix": " Contains a list of prefixes. At least one prefix must be specified. Up to 10 prefixes are allowed.
",
+ "StorageLensGroupOrOperator$MatchAnyPrefix": " Filters objects that match any of the specified prefixes.
"
+ }
+ },
+ "MatchAnySuffix": {
+ "base": null,
+ "refs": {
+ "StorageLensGroupAndOperator$MatchAnySuffix": " Contains a list of suffixes. At least one suffix must be specified. Up to 10 suffixes are allowed.
",
+ "StorageLensGroupFilter$MatchAnySuffix": " Contains a list of suffixes. At least one suffix must be specified. Up to 10 suffixes are allowed.
",
+ "StorageLensGroupOrOperator$MatchAnySuffix": " Filters objects that match any of the specified suffixes.
"
+ }
+ },
+ "MatchAnyTag": {
+ "base": null,
+ "refs": {
+ "StorageLensGroupAndOperator$MatchAnyTag": " Contains the list of object tags. At least one object tag must be specified. Up to 10 object tags are allowed.
",
+ "StorageLensGroupFilter$MatchAnyTag": " Contains the list of S3 object tags. At least one object tag must be specified. Up to 10 object tags are allowed.
",
+ "StorageLensGroupOrOperator$MatchAnyTag": " Filters objects that match any of the specified S3 object tags.
"
+ }
+ },
+ "MatchObjectAge": {
+ "base": " A filter condition that specifies the object age range of included objects in days. Only integers are supported.
",
+ "refs": {
+ "StorageLensGroupAndOperator$MatchObjectAge": " Contains DaysGreaterThan
and DaysLessThan
to define the object age range (minimum and maximum number of days).
",
+ "StorageLensGroupFilter$MatchObjectAge": " Contains DaysGreaterThan
and DaysLessThan
to define the object age range (minimum and maximum number of days).
",
+ "StorageLensGroupOrOperator$MatchObjectAge": " Filters objects that match the specified object age range.
"
+ }
+ },
+ "MatchObjectSize": {
+ "base": " A filter condition that specifies the object size range of included objects in bytes. Only integers are supported.
",
+ "refs": {
+ "StorageLensGroupAndOperator$MatchObjectSize": " Contains BytesGreaterThan
and BytesLessThan
to define the object size range (minimum and maximum number of Bytes).
",
+ "StorageLensGroupFilter$MatchObjectSize": " Contains BytesGreaterThan
and BytesLessThan
to define the object size range (minimum and maximum number of Bytes).
",
+ "StorageLensGroupOrOperator$MatchObjectSize": " Filters objects that match the specified object size range.
"
+ }
+ },
"MaxLength1024String": {
"base": null,
"refs": {
@@ -1651,6 +1755,13 @@
"refs": {
}
},
+ "ObjectAgeValue": {
+ "base": null,
+ "refs": {
+ "MatchObjectAge$DaysGreaterThan": " Specifies the maximum object age in days. Must be a positive whole number, greater than the minimum object age and less than or equal to 2,147,483,647.
",
+ "MatchObjectAge$DaysLessThan": " Specifies the minimum object age in days. The value must be a positive whole number, greater than 0 and less than or equal to 2,147,483,647.
"
+ }
+ },
"ObjectCreationTime": {
"base": null,
"refs": {
@@ -1796,6 +1907,13 @@
"LifecycleRuleFilter$ObjectSizeLessThan": "Maximum object size to which the rule applies.
"
}
},
+ "ObjectSizeValue": {
+ "base": null,
+ "refs": {
+ "MatchObjectSize$BytesGreaterThan": " Specifies the minimum object size in Bytes. The value must be a positive number, greater than 0 and less than 5 TB.
",
+ "MatchObjectSize$BytesLessThan": " Specifies the maximum object size in Bytes. The value must be a positive number, greater than the minimum object size and less than 5 TB.
"
+ }
+ },
"OperationName": {
"base": null,
"refs": {
@@ -1839,6 +1957,7 @@
"refs": {
"LifecycleRuleAndOperator$Prefix": "Prefix identifying one or more objects to which the rule applies.
",
"LifecycleRuleFilter$Prefix": "Prefix identifying one or more objects to which the rule applies.
When you're using XML requests, you must replace special characters (such as carriage returns) in object keys with their equivalent XML entity codes. For more information, see XML-related object key constraints in the Amazon S3 User Guide.
",
+ "MatchAnyPrefix$member": null,
"ReplicationRule$Prefix": "An object key name prefix that identifies the object or objects to which the rule applies. The maximum prefix length is 1,024 characters. To include all objects in an Outposts bucket, specify an empty string.
When you're using XML requests, you must replace special characters (such as carriage returns) in object keys with their equivalent XML entity codes. For more information, see XML-related object key constraints in the Amazon S3 User Guide.
",
"ReplicationRuleAndOperator$Prefix": "An object key name prefix that identifies the subset of objects that the rule applies to.
",
"ReplicationRuleFilter$Prefix": "An object key name prefix that identifies the subset of objects that the rule applies to.
When you're using XML requests, you must replace special characters (such as carriage returns) in object keys with their equivalent XML entity codes. For more information, see XML-related object key constraints in the Amazon S3 User Guide.
",
@@ -2147,6 +2266,7 @@
"base": null,
"refs": {
"ListStorageLensConfigurationEntry$HomeRegion": "A container for the S3 Storage Lens home Region. Your metrics data is stored and retained in your designated S3 Storage Lens home Region.
",
+ "ListStorageLensGroupEntry$HomeRegion": " Contains the Amazon Web Services Region where the Storage Lens group was created.
",
"Regions$member": null
}
},
@@ -2197,7 +2317,7 @@
"S3ChecksumAlgorithm": {
"base": null,
"refs": {
- "S3CopyObjectOperation$ChecksumAlgorithm": "Indicates the algorithm that you want Amazon S3 to use to create the checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.
"
+ "S3CopyObjectOperation$ChecksumAlgorithm": "Indicates the algorithm that you want Amazon S3 to use to create the checksum. For more information, see Checking object integrity in the Amazon S3 User Guide.
"
}
},
"S3ContentLength": {
@@ -2353,6 +2473,14 @@
"JobOperation$S3ReplicateObject": "Directs the specified job to invoke ReplicateObject
on every object in the job's manifest.
"
}
},
+ "S3ResourceArn": {
+ "base": null,
+ "refs": {
+ "ListTagsForResourceRequest$ResourceArn": " The Amazon Resource Name (ARN) of the S3 resource that you want to list the tags for.
",
+ "TagResourceRequest$ResourceArn": " The Amazon Resource Name (ARN) of the S3 resource that you're trying to add tags to.
",
+ "UntagResourceRequest$ResourceArn": " The Amazon Resource Name (ARN) of the S3 resource that you want to remove the resource tags from.
"
+ }
+ },
"S3Retention": {
"base": "Contains the S3 Object Lock retention mode to be applied to all objects in the S3 Batch Operations job. If you don't provide Mode
and RetainUntilDate
data types in your operation, you will remove the retention from your objects. For more information, see Using S3 Object Lock retention with S3 Batch Operations in the Amazon S3 User Guide.
",
"refs": {
@@ -2399,6 +2527,7 @@
"base": "A container for a key-value name pair.
",
"refs": {
"LifecycleRuleFilter$Tag": null,
+ "MatchAnyTag$member": null,
"ReplicationRuleFilter$Tag": null,
"S3TagSet$member": null
}
@@ -2524,6 +2653,81 @@
"S3BucketDestination$Encryption": "The container for the type encryption of the metrics exports in this bucket.
"
}
},
+ "StorageLensGroup": {
+ "base": "A custom grouping of objects that include filters for prefixes, suffixes, object tags, object size, or object age. You can create an S3 Storage Lens group that includes a single filter or multiple filter conditions. To specify multiple filter conditions, you use AND
or OR
logical operators.
",
+ "refs": {
+ "CreateStorageLensGroupRequest$StorageLensGroup": " The Storage Lens group configuration.
",
+ "GetStorageLensGroupResult$StorageLensGroup": " The name of the Storage Lens group that you're trying to retrieve the configuration details for.
",
+ "UpdateStorageLensGroupRequest$StorageLensGroup": " The JSON file that contains the Storage Lens group configuration.
"
+ }
+ },
+ "StorageLensGroupAndOperator": {
+ "base": " A logical operator that allows multiple filter conditions to be joined for more complex comparisons of Storage Lens group data.
",
+ "refs": {
+ "StorageLensGroupFilter$And": "A logical operator that allows multiple filter conditions to be joined for more complex comparisons of Storage Lens group data. Objects must match all of the listed filter conditions that are joined by the And
logical operator. Only one of each filter condition is allowed.
"
+ }
+ },
+ "StorageLensGroupArn": {
+ "base": null,
+ "refs": {
+ "ListStorageLensGroupEntry$StorageLensGroupArn": " Contains the Amazon Resource Name (ARN) of the Storage Lens group. This property is read-only.
",
+ "StorageLensGroup$StorageLensGroupArn": " Contains the Amazon Resource Name (ARN) of the Storage Lens group. This property is read-only.
",
+ "StorageLensGroupLevelExclude$member": null,
+ "StorageLensGroupLevelInclude$member": null
+ }
+ },
+ "StorageLensGroupFilter": {
+ "base": "The filter element sets the criteria for the Storage Lens group data that is displayed. For multiple filter conditions, the AND
or OR
logical operator is used.
",
+ "refs": {
+ "StorageLensGroup$Filter": "Sets the criteria for the Storage Lens group data that is displayed. For multiple filter conditions, the AND
or OR
logical operator is used.
"
+ }
+ },
+ "StorageLensGroupLevel": {
+ "base": " Specifies the Storage Lens groups to include in the Storage Lens group aggregation.
",
+ "refs": {
+ "AccountLevel$StorageLensGroupLevel": " A container element for S3 Storage Lens groups metrics.
"
+ }
+ },
+ "StorageLensGroupLevelExclude": {
+ "base": null,
+ "refs": {
+ "StorageLensGroupLevelSelectionCriteria$Exclude": " Indicates which Storage Lens group ARNs to exclude from the Storage Lens group aggregation.
"
+ }
+ },
+ "StorageLensGroupLevelInclude": {
+ "base": null,
+ "refs": {
+ "StorageLensGroupLevelSelectionCriteria$Include": " Indicates which Storage Lens group ARNs to include in the Storage Lens group aggregation.
"
+ }
+ },
+ "StorageLensGroupLevelSelectionCriteria": {
+ "base": " Indicates which Storage Lens group ARNs to include or exclude in the Storage Lens group aggregation. You can only attach Storage Lens groups to your Storage Lens dashboard if they're included in your Storage Lens group aggregation. If this value is left null, then all Storage Lens groups are selected.
",
+ "refs": {
+ "StorageLensGroupLevel$SelectionCriteria": " Indicates which Storage Lens group ARNs to include or exclude in the Storage Lens group aggregation. If this value is left null, then all Storage Lens groups are selected.
"
+ }
+ },
+ "StorageLensGroupList": {
+ "base": null,
+ "refs": {
+ "ListStorageLensGroupsResult$StorageLensGroupList": " The list of Storage Lens groups that exist in the specified home Region.
"
+ }
+ },
+ "StorageLensGroupName": {
+ "base": null,
+ "refs": {
+ "DeleteStorageLensGroupRequest$Name": " The name of the Storage Lens group that you're trying to delete.
",
+ "GetStorageLensGroupRequest$Name": " The name of the Storage Lens group that you're trying to retrieve the configuration details for.
",
+ "ListStorageLensGroupEntry$Name": " Contains the name of the Storage Lens group that exists in the specified home Region.
",
+ "StorageLensGroup$Name": " Contains the name of the Storage Lens group.
",
+ "UpdateStorageLensGroupRequest$Name": " The name of the Storage Lens group that you want to update.
"
+ }
+ },
+ "StorageLensGroupOrOperator": {
+ "base": "A container element for specifying Or
rule conditions. The rule conditions determine the subset of objects to which the Or
rule applies. Objects can match any of the listed filter conditions, which are joined by the Or
logical operator. Only one of each filter condition is allowed.
",
+ "refs": {
+ "StorageLensGroupFilter$Or": "A single logical operator that allows multiple filter conditions to be joined. Objects can match any of the listed filter conditions, which are joined by the Or
logical operator. Only one of each filter condition is allowed.
"
+ }
+ },
"StorageLensPrefixLevelDelimiter": {
"base": null,
"refs": {
@@ -2567,6 +2771,12 @@
"refs": {
}
},
+ "Suffix": {
+ "base": null,
+ "refs": {
+ "MatchAnySuffix$member": null
+ }
+ },
"SuspendedCause": {
"base": null,
"refs": {
@@ -2579,18 +2789,51 @@
"JobDescriptor$SuspendedDate": "The timestamp when this job was suspended, if it has been suspended.
"
}
},
+ "Tag": {
+ "base": " An Amazon Web Services resource tag that's associated with your S3 resource. You can add tags to new objects when you upload them, or you can add object tags to existing objects.
This data type is only supported for S3 Storage Lens groups.
",
+ "refs": {
+ "TagList$member": null
+ }
+ },
+ "TagKeyList": {
+ "base": null,
+ "refs": {
+ "UntagResourceRequest$TagKeys": " The tag key pair of the S3 resource tag that you're trying to remove.
"
+ }
+ },
"TagKeyString": {
"base": null,
"refs": {
"S3Tag$Key": "Key of the tag
",
- "StorageLensTag$Key": ""
+ "StorageLensTag$Key": "",
+ "Tag$Key": " The tag key for your Amazon Web Services resource. A tag key can be up to 128 Unicode characters in length and is case-sensitive. System created tags that begin with aws:
aren’t supported.
",
+ "TagKeyList$member": null
+ }
+ },
+ "TagList": {
+ "base": null,
+ "refs": {
+ "CreateStorageLensGroupRequest$Tags": " The Amazon Web Services resource tags that you're adding to your Storage Lens group. This parameter is optional.
",
+ "ListTagsForResourceResult$Tags": " The Amazon Web Services resource tags that are associated with the resource.
",
+ "TagResourceRequest$Tags": " The Amazon Web Services resource tags that you want to add to the specified S3 resource.
"
+ }
+ },
+ "TagResourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "TagResourceResult": {
+ "base": null,
+ "refs": {
}
},
"TagValueString": {
"base": null,
"refs": {
"S3Tag$Value": "Value of the tag
",
- "StorageLensTag$Value": ""
+ "StorageLensTag$Value": "",
+ "Tag$Value": " The tag value for your Amazon Web Services resource. A tag value can be up to 256 Unicode characters in length and is case-sensitive.
"
}
},
"Tagging": {
@@ -2644,6 +2887,16 @@
"Transition$StorageClass": "The storage class to which you want the object to transition.
"
}
},
+ "UntagResourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UntagResourceResult": {
+ "base": null,
+ "refs": {
+ }
+ },
"UpdateJobPriorityRequest": {
"base": null,
"refs": {
@@ -2664,6 +2917,11 @@
"refs": {
}
},
+ "UpdateStorageLensGroupRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
"VersioningConfiguration": {
"base": "Describes the versioning state of an Amazon S3 on Outposts bucket. For more information, see PutBucketVersioning.
",
"refs": {
diff --git a/models/apis/s3control/2018-08-20/endpoint-rule-set-1.json b/models/apis/s3control/2018-08-20/endpoint-rule-set-1.json
index 8e4ec39fae7..4957a498573 100644
--- a/models/apis/s3control/2018-08-20/endpoint-rule-set-1.json
+++ b/models/apis/s3control/2018-08-20/endpoint-rule-set-1.json
@@ -71,7 +71,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -102,7 +101,6 @@
"assign": "url"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -116,7 +114,6 @@
"assign": "partitionResult"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -166,9 +163,11 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -181,7 +180,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -195,7 +193,6 @@
"assign": "partitionResult"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -323,7 +320,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -422,16 +418,19 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid region: region was not a valid DNS name.",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -453,7 +452,6 @@
"assign": "accessPointArn"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -482,7 +480,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -502,7 +499,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -532,7 +528,6 @@
"assign": "outpostId"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -546,7 +541,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -603,7 +597,6 @@
"assign": "partitionResult"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -623,7 +616,6 @@
"assign": "arnPartition"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -651,7 +643,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -671,7 +662,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -696,7 +686,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -716,7 +705,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -759,7 +747,6 @@
"assign": "outpostType"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -774,7 +761,6 @@
"assign": "accessPointName"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -788,7 +774,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -893,83 +878,97 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Expected an outpost type `accesspoint`, found `{outpostType}`",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid ARN: expected an access point name",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid ARN: Expected a 4-component resource",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointArn#accountId}`",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid ARN: missing account ID",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid region in ARN: `{accessPointArn#region}` (invalid DNS name)",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Client was configured for partition `{partitionResult#name}` but ARN has `{arnPartition#name}`",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
}
- ]
+ ],
+ "type": "tree"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`., found: `{outpostId}`",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid ARN: The Outpost Id was not set",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid ARN: No ARN type specified",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -991,7 +990,6 @@
"assign": "bucketArn"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -1020,7 +1018,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -1040,7 +1037,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -1070,7 +1066,6 @@
"assign": "outpostId"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -1084,7 +1079,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -1147,7 +1141,6 @@
"assign": "arnPartition"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -1161,7 +1154,6 @@
"assign": "partitionResult"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -1189,7 +1181,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -1209,7 +1200,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -1234,7 +1224,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -1254,7 +1243,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -1297,7 +1285,6 @@
"assign": "outpostType"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -1312,7 +1299,6 @@
"assign": "bucketName"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -1326,7 +1312,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -1431,83 +1416,97 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid ARN: Expected an outpost type `bucket`, found `{outpostType}`",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid ARN: expected a bucket name",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid ARN: Expected a 4-component resource",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid ARN: missing account ID",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Client was configured for partition `{partitionResult#name}` but ARN has `{arnPartition#name}`",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
}
- ]
+ ],
+ "type": "tree"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`., found: `{outpostId}`",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid ARN: The Outpost Id was not set",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid ARN: No ARN type specified",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -1521,7 +1520,6 @@
"assign": "partitionResult"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -1535,7 +1533,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -1651,7 +1648,6 @@
"assign": "url"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -1730,7 +1726,8 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -2128,16 +2125,19 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "Invalid region: region was not a valid DNS name.",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
diff --git a/models/apis/s3control/2018-08-20/paginators-1.json b/models/apis/s3control/2018-08-20/paginators-1.json
index dbd0835187d..a84980de75c 100644
--- a/models/apis/s3control/2018-08-20/paginators-1.json
+++ b/models/apis/s3control/2018-08-20/paginators-1.json
@@ -29,6 +29,10 @@
"ListStorageLensConfigurations": {
"input_token": "NextToken",
"output_token": "NextToken"
+ },
+ "ListStorageLensGroups": {
+ "input_token": "NextToken",
+ "output_token": "NextToken"
}
}
}
diff --git a/models/apis/ssm-sap/2018-05-10/api-2.json b/models/apis/ssm-sap/2018-05-10/api-2.json
index 097f14dc789..a4bc9dd1202 100644
--- a/models/apis/ssm-sap/2018-05-10/api-2.json
+++ b/models/apis/ssm-sap/2018-05-10/api-2.json
@@ -799,10 +799,7 @@
"type":"structure",
"members":{
"NextToken":{"shape":"NextToken"},
- "MaxResults":{
- "shape":"MaxResults",
- "box":true
- },
+ "MaxResults":{"shape":"MaxResults"},
"Filters":{"shape":"FilterList"}
}
},
@@ -818,10 +815,7 @@
"members":{
"ApplicationId":{"shape":"ApplicationId"},
"NextToken":{"shape":"NextToken"},
- "MaxResults":{
- "shape":"MaxResults",
- "box":true
- }
+ "MaxResults":{"shape":"MaxResults"}
}
},
"ListComponentsOutput":{
@@ -837,10 +831,7 @@
"ApplicationId":{"shape":"ApplicationId"},
"ComponentId":{"shape":"ComponentId"},
"NextToken":{"shape":"NextToken"},
- "MaxResults":{
- "shape":"MaxResults",
- "box":true
- }
+ "MaxResults":{"shape":"MaxResults"}
}
},
"ListDatabasesOutput":{
@@ -855,10 +846,7 @@
"required":["ApplicationId"],
"members":{
"ApplicationId":{"shape":"ApplicationId"},
- "MaxResults":{
- "shape":"MaxResults",
- "box":true
- },
+ "MaxResults":{"shape":"MaxResults"},
"NextToken":{"shape":"NextToken"},
"Filters":{"shape":"FilterList"}
}
@@ -889,6 +877,7 @@
},
"MaxResults":{
"type":"integer",
+ "box":true,
"max":50,
"min":1
},
diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json
index 89937fd1ac2..da18dcca156 100644
--- a/models/endpoints/endpoints.json
+++ b/models/endpoints/endpoints.json
@@ -24351,12 +24351,34 @@
"credentialScope" : {
"region" : "us-gov-east-1"
},
+ "hostname" : "sso.us-gov-east-1.amazonaws.com",
+ "variants" : [ {
+ "hostname" : "sso.us-gov-east-1.amazonaws.com",
+ "tags" : [ "fips" ]
+ } ]
+ },
+ "us-gov-east-1-fips" : {
+ "credentialScope" : {
+ "region" : "us-gov-east-1"
+ },
+ "deprecated" : true,
"hostname" : "sso.us-gov-east-1.amazonaws.com"
},
"us-gov-west-1" : {
"credentialScope" : {
"region" : "us-gov-west-1"
},
+ "hostname" : "sso.us-gov-west-1.amazonaws.com",
+ "variants" : [ {
+ "hostname" : "sso.us-gov-west-1.amazonaws.com",
+ "tags" : [ "fips" ]
+ } ]
+ },
+ "us-gov-west-1-fips" : {
+ "credentialScope" : {
+ "region" : "us-gov-west-1"
+ },
+ "deprecated" : true,
"hostname" : "sso.us-gov-west-1.amazonaws.com"
}
}
diff --git a/service/autoscaling/api.go b/service/autoscaling/api.go
index 2851f628f97..48d2f7d4dd0 100644
--- a/service/autoscaling/api.go
+++ b/service/autoscaling/api.go
@@ -6512,10 +6512,7 @@ func (c *AutoScaling) StartInstanceRefreshRequest(input *StartInstanceRefreshInp
// StartInstanceRefresh API operation for Auto Scaling.
//
-// Starts an instance refresh. During an instance refresh, Amazon EC2 Auto Scaling
-// performs a rolling update of instances in an Auto Scaling group. Instances
-// are terminated first and then replaced, which temporarily reduces the capacity
-// available within your Auto Scaling group.
+// Starts an instance refresh.
//
// This operation is part of the instance refresh feature (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html)
// in Amazon EC2 Auto Scaling, which helps you update instances in your Auto
@@ -8302,6 +8299,11 @@ type CreateAutoScalingGroupInput struct {
// in the Amazon EC2 Auto Scaling User Guide.
InstanceId *string `min:"1" type:"string"`
+ // An instance maintenance policy. For more information, see Set instance maintenance
+ // policy (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html)
+ // in the Amazon EC2 Auto Scaling User Guide.
+ InstanceMaintenancePolicy *InstanceMaintenancePolicy `type:"structure"`
+
// The name of the launch configuration to use to launch instances.
//
// Conditional: You must specify either a launch template (LaunchTemplate or
@@ -8480,6 +8482,11 @@ func (s *CreateAutoScalingGroupInput) Validate() error {
if s.VPCZoneIdentifier != nil && len(*s.VPCZoneIdentifier) < 1 {
invalidParams.Add(request.NewErrParamMinLen("VPCZoneIdentifier", 1))
}
+ if s.InstanceMaintenancePolicy != nil {
+ if err := s.InstanceMaintenancePolicy.Validate(); err != nil {
+ invalidParams.AddNested("InstanceMaintenancePolicy", err.(request.ErrInvalidParams))
+ }
+ }
if s.LaunchTemplate != nil {
if err := s.LaunchTemplate.Validate(); err != nil {
invalidParams.AddNested("LaunchTemplate", err.(request.ErrInvalidParams))
@@ -8593,6 +8600,12 @@ func (s *CreateAutoScalingGroupInput) SetInstanceId(v string) *CreateAutoScaling
return s
}
+// SetInstanceMaintenancePolicy sets the InstanceMaintenancePolicy field's value.
+func (s *CreateAutoScalingGroupInput) SetInstanceMaintenancePolicy(v *InstanceMaintenancePolicy) *CreateAutoScalingGroupInput {
+ s.InstanceMaintenancePolicy = v
+ return s
+}
+
// SetLaunchConfigurationName sets the LaunchConfigurationName field's value.
func (s *CreateAutoScalingGroupInput) SetLaunchConfigurationName(v string) *CreateAutoScalingGroupInput {
s.LaunchConfigurationName = &v
@@ -13605,6 +13618,9 @@ type Group struct {
// HealthCheckType is a required field
HealthCheckType *string `min:"1" type:"string" required:"true"`
+ // An instance maintenance policy.
+ InstanceMaintenancePolicy *InstanceMaintenancePolicy `type:"structure"`
+
// The EC2 instances associated with the group.
Instances []*Instance `type:"list"`
@@ -13774,6 +13790,12 @@ func (s *Group) SetHealthCheckType(v string) *Group {
return s
}
+// SetInstanceMaintenancePolicy sets the InstanceMaintenancePolicy field's value.
+func (s *Group) SetInstanceMaintenancePolicy(v *InstanceMaintenancePolicy) *Group {
+ s.InstanceMaintenancePolicy = v
+ return s
+}
+
// SetInstances sets the Instances field's value.
func (s *Group) SetInstances(v []*Instance) *Group {
s.Instances = v
@@ -14164,6 +14186,78 @@ func (s *InstanceDetails) SetWeightedCapacity(v string) *InstanceDetails {
return s
}
+// Describes an instance maintenance policy.
+//
+// For more information, see Set instance maintenance policy (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html)
+// in the Amazon EC2 Auto Scaling User Guide.
+type InstanceMaintenancePolicy struct {
+ _ struct{} `type:"structure"`
+
+ // Specifies the upper threshold as a percentage of the desired capacity of
+ // the Auto Scaling group. It represents the maximum percentage of the group
+ // that can be in service and healthy, or pending, to support your workload
+ // when replacing instances. Value range is 100 to 200. After it's set, a value
+ // of -1 will clear the previously set value.
+ //
+ // Both MinHealthyPercentage and MaxHealthyPercentage must be specified, and
+ // the difference between them cannot be greater than 100. A large range increases
+ // the number of instances that can be replaced at the same time.
+ MaxHealthyPercentage *int64 `type:"integer"`
+
+ // Specifies the lower threshold as a percentage of the desired capacity of
+ // the Auto Scaling group. It represents the minimum percentage of the group
+ // to keep in service, healthy, and ready to use to support your workload when
+ // replacing instances. Value range is 0 to 100. After it's set, a value of
+ // -1 will clear the previously set value.
+ MinHealthyPercentage *int64 `type:"integer"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s InstanceMaintenancePolicy) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s InstanceMaintenancePolicy) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *InstanceMaintenancePolicy) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "InstanceMaintenancePolicy"}
+ if s.MaxHealthyPercentage != nil && *s.MaxHealthyPercentage < -1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxHealthyPercentage", -1))
+ }
+ if s.MinHealthyPercentage != nil && *s.MinHealthyPercentage < -1 {
+ invalidParams.Add(request.NewErrParamMinValue("MinHealthyPercentage", -1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMaxHealthyPercentage sets the MaxHealthyPercentage field's value.
+func (s *InstanceMaintenancePolicy) SetMaxHealthyPercentage(v int64) *InstanceMaintenancePolicy {
+ s.MaxHealthyPercentage = &v
+ return s
+}
+
+// SetMinHealthyPercentage sets the MinHealthyPercentage field's value.
+func (s *InstanceMaintenancePolicy) SetMinHealthyPercentage(v int64) *InstanceMaintenancePolicy {
+ s.MinHealthyPercentage = &v
+ return s
+}
+
// The metadata options for the instances. For more information, see Configuring
// the Instance Metadata Options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds)
// in the Amazon EC2 Auto Scaling User Guide.
@@ -19000,14 +19094,26 @@ type RefreshPreferences struct {
// in all cases), or the HealthCheckGracePeriod property otherwise.
InstanceWarmup *int64 `type:"integer"`
- // The amount of capacity in the Auto Scaling group that must pass your group's
- // health checks to allow the operation to continue. The value is expressed
- // as a percentage of the desired capacity of the Auto Scaling group (rounded
- // up to the nearest integer). The default is 90.
+ // Specifies the maximum percentage of the group that can be in service and
+ // healthy, or pending, to support your workload when replacing instances. The
+ // value is expressed as a percentage of the desired capacity of the Auto Scaling
+ // group. Value range is 100 to 200.
+ //
+ // If you specify MaxHealthyPercentage, you must also specify MinHealthyPercentage,
+ // and the difference between them cannot be greater than 100. A larger range
+ // increases the number of instances that can be replaced at the same time.
//
- // Setting the minimum healthy percentage to 100 percent limits the rate of
- // replacement to one instance at a time. In contrast, setting it to 0 percent
- // has the effect of replacing all instances at the same time.
+ // If you do not specify this property, the default is 100 percent, or the percentage
+ // set in the instance maintenance policy for the Auto Scaling group, if defined.
+ MaxHealthyPercentage *int64 `min:"100" type:"integer"`
+
+ // Specifies the minimum percentage of the group to keep in service, healthy,
+ // and ready to use to support your workload to allow the operation to continue.
+ // The value is expressed as a percentage of the desired capacity of the Auto
+ // Scaling group. Value range is 0 to 100.
+ //
+ // If you do not specify this property, the default is 90 percent, or the percentage
+ // set in the instance maintenance policy for the Auto Scaling group, if defined.
MinHealthyPercentage *int64 `type:"integer"`
// Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances
@@ -19081,6 +19187,19 @@ func (s RefreshPreferences) GoString() string {
return s.String()
}
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *RefreshPreferences) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "RefreshPreferences"}
+ if s.MaxHealthyPercentage != nil && *s.MaxHealthyPercentage < 100 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxHealthyPercentage", 100))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
// SetAlarmSpecification sets the AlarmSpecification field's value.
func (s *RefreshPreferences) SetAlarmSpecification(v *AlarmSpecification) *RefreshPreferences {
s.AlarmSpecification = v
@@ -19111,6 +19230,12 @@ func (s *RefreshPreferences) SetInstanceWarmup(v int64) *RefreshPreferences {
return s
}
+// SetMaxHealthyPercentage sets the MaxHealthyPercentage field's value.
+func (s *RefreshPreferences) SetMaxHealthyPercentage(v int64) *RefreshPreferences {
+ s.MaxHealthyPercentage = &v
+ return s
+}
+
// SetMinHealthyPercentage sets the MinHealthyPercentage field's value.
func (s *RefreshPreferences) SetMinHealthyPercentage(v int64) *RefreshPreferences {
s.MinHealthyPercentage = &v
@@ -20170,10 +20295,11 @@ type StartInstanceRefreshInput struct {
DesiredConfiguration *DesiredConfiguration `type:"structure"`
// Sets your preferences for the instance refresh so that it performs as expected
- // when you start it. Includes the instance warmup time, the minimum healthy
- // percentage, and the behaviors that you want Amazon EC2 Auto Scaling to use
- // if instances that are in Standby state or protected from scale in are found.
- // You can also choose to enable additional features, such as the following:
+ // when you start it. Includes the instance warmup time, the minimum and maximum
+ // healthy percentages, and the behaviors that you want Amazon EC2 Auto Scaling
+ // to use if instances that are in Standby state or protected from scale in
+ // are found. You can also choose to enable additional features, such as the
+ // following:
//
// * Auto rollback
//
@@ -20220,6 +20346,11 @@ func (s *StartInstanceRefreshInput) Validate() error {
invalidParams.AddNested("DesiredConfiguration", err.(request.ErrInvalidParams))
}
}
+ if s.Preferences != nil {
+ if err := s.Preferences.Validate(); err != nil {
+ invalidParams.AddNested("Preferences", err.(request.ErrInvalidParams))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -21326,6 +21457,11 @@ type UpdateAutoScalingGroupInput struct {
// Only specify EC2 if you must clear a value that was previously set.
HealthCheckType *string `min:"1" type:"string"`
+ // An instance maintenance policy. For more information, see Set instance maintenance
+ // policy (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html)
+ // in the Amazon EC2 Auto Scaling User Guide.
+ InstanceMaintenancePolicy *InstanceMaintenancePolicy `type:"structure"`
+
// The name of the launch configuration. If you specify LaunchConfigurationName
// in your update request, you can't specify LaunchTemplate or MixedInstancesPolicy.
LaunchConfigurationName *string `min:"1" type:"string"`
@@ -21443,6 +21579,11 @@ func (s *UpdateAutoScalingGroupInput) Validate() error {
if s.VPCZoneIdentifier != nil && len(*s.VPCZoneIdentifier) < 1 {
invalidParams.Add(request.NewErrParamMinLen("VPCZoneIdentifier", 1))
}
+ if s.InstanceMaintenancePolicy != nil {
+ if err := s.InstanceMaintenancePolicy.Validate(); err != nil {
+ invalidParams.AddNested("InstanceMaintenancePolicy", err.(request.ErrInvalidParams))
+ }
+ }
if s.LaunchTemplate != nil {
if err := s.LaunchTemplate.Validate(); err != nil {
invalidParams.AddNested("LaunchTemplate", err.(request.ErrInvalidParams))
@@ -21520,6 +21661,12 @@ func (s *UpdateAutoScalingGroupInput) SetHealthCheckType(v string) *UpdateAutoSc
return s
}
+// SetInstanceMaintenancePolicy sets the InstanceMaintenancePolicy field's value.
+func (s *UpdateAutoScalingGroupInput) SetInstanceMaintenancePolicy(v *InstanceMaintenancePolicy) *UpdateAutoScalingGroupInput {
+ s.InstanceMaintenancePolicy = v
+ return s
+}
+
// SetLaunchConfigurationName sets the LaunchConfigurationName field's value.
func (s *UpdateAutoScalingGroupInput) SetLaunchConfigurationName(v string) *UpdateAutoScalingGroupInput {
s.LaunchConfigurationName = &v
diff --git a/service/autoscaling/examples_test.go b/service/autoscaling/examples_test.go
index 19b764eab03..3401d68fdd5 100644
--- a/service/autoscaling/examples_test.go
+++ b/service/autoscaling/examples_test.go
@@ -2061,6 +2061,7 @@ func ExampleAutoScaling_StartInstanceRefresh_shared00() {
},
AutoRollback: aws.Bool(true),
InstanceWarmup: aws.Int64(200),
+ MaxHealthyPercentage: aws.Int64(120),
MinHealthyPercentage: aws.Int64(90),
},
}
diff --git a/service/cloudtrail/api.go b/service/cloudtrail/api.go
index 9e713a52846..ea36bc7310e 100644
--- a/service/cloudtrail/api.go
+++ b/service/cloudtrail/api.go
@@ -6075,8 +6075,10 @@ func (c *CloudTrail) UpdateEventDataStoreRequest(input *UpdateEventDataStoreInpu
// Updates an event data store. The required EventDataStore value is an ARN
// or the ID portion of the ARN. Other parameters are optional, but at least
// one optional parameter must be specified, or CloudTrail throws an error.
-// RetentionPeriod is in days, and valid values are integers between 90 and
-// 2557. By default, TerminationProtection is enabled.
+// RetentionPeriod is in days, and valid values are integers between 7 and 3653
+// if the BillingMode is set to EXTENDABLE_RETENTION_PRICING, or between 7 and
+// 2557 if BillingMode is set to FIXED_RETENTION_PRICING. By default, TerminationProtection
+// is enabled.
//
// For event data stores for CloudTrail events, AdvancedEventSelectors includes
// or excludes management, data, or Insights events in your event data store.
@@ -8289,6 +8291,26 @@ type CreateEventDataStoreInput struct {
// in the CloudTrail User Guide.
AdvancedEventSelectors []*AdvancedEventSelector `type:"list"`
+ // The billing mode for the event data store determines the cost for ingesting
+ // events and the default and maximum retention period for the event data store.
+ //
+ // The following are the possible values:
+ //
+ // * EXTENDABLE_RETENTION_PRICING - This billing mode is generally recommended
+ // if you want a flexible retention period of up to 3653 days (about 10 years).
+ // The default retention period for this billing mode is 366 days.
+ //
+ // * FIXED_RETENTION_PRICING - This billing mode is recommended if you expect
+ // to ingest more than 25 TB of event data per month and need a retention
+ // period of up to 2557 days (about 7 years). The default retention period
+ // for this billing mode is 2557 days.
+ //
+ // The default value is EXTENDABLE_RETENTION_PRICING.
+ //
+ // For more information about CloudTrail pricing, see CloudTrail Pricing (http://aws.amazon.com/cloudtrail/pricing/)
+ // and Managing CloudTrail Lake costs (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-manage-costs.html).
+ BillingMode *string `type:"string" enum:"BillingMode"`
+
// Specifies the KMS key ID to use to encrypt the events delivered by CloudTrail.
// The value can be an alias name prefixed by alias/, a fully specified ARN
// to an alias, a fully specified ARN to a key, or a globally unique identifier.
@@ -8329,12 +8351,16 @@ type CreateEventDataStoreInput struct {
// in Organizations.
OrganizationEnabled *bool `type:"boolean"`
- // The retention period of the event data store, in days. You can set a retention
- // period of up to 2557 days, the equivalent of seven years. CloudTrail Lake
- // determines whether to retain an event by checking if the eventTime of the
- // event is within the specified retention period. For example, if you set a
- // retention period of 90 days, CloudTrail will remove events when the eventTime
- // is older than 90 days.
+ // The retention period of the event data store, in days. If BillingMode is
+ // set to EXTENDABLE_RETENTION_PRICING, you can set a retention period of up
+ // to 3653 days, the equivalent of 10 years. If BillingMode is set to FIXED_RETENTION_PRICING,
+ // you can set a retention period of up to 2557 days, the equivalent of seven
+ // years.
+ //
+ // CloudTrail Lake determines whether to retain an event by checking if the
+ // eventTime of the event is within the specified retention period. For example,
+ // if you set a retention period of 90 days, CloudTrail will remove events when
+ // the eventTime is older than 90 days.
//
// If you plan to copy trail events to this event data store, we recommend that
// you consider both the age of the events that you want to copy as well as
@@ -8423,6 +8449,12 @@ func (s *CreateEventDataStoreInput) SetAdvancedEventSelectors(v []*AdvancedEvent
return s
}
+// SetBillingMode sets the BillingMode field's value.
+func (s *CreateEventDataStoreInput) SetBillingMode(v string) *CreateEventDataStoreInput {
+ s.BillingMode = &v
+ return s
+}
+
// SetKmsKeyId sets the KmsKeyId field's value.
func (s *CreateEventDataStoreInput) SetKmsKeyId(v string) *CreateEventDataStoreInput {
s.KmsKeyId = &v
@@ -8478,6 +8510,9 @@ type CreateEventDataStoreOutput struct {
// data store.
AdvancedEventSelectors []*AdvancedEventSelector `type:"list"`
+ // The billing mode for the event data store.
+ BillingMode *string `type:"string" enum:"BillingMode"`
+
// The timestamp that shows when the event data store was created.
CreatedTimestamp *time.Time `type:"timestamp"`
@@ -8543,6 +8578,12 @@ func (s *CreateEventDataStoreOutput) SetAdvancedEventSelectors(v []*AdvancedEven
return s
}
+// SetBillingMode sets the BillingMode field's value.
+func (s *CreateEventDataStoreOutput) SetBillingMode(v string) *CreateEventDataStoreOutput {
+ s.BillingMode = &v
+ return s
+}
+
// SetCreatedTimestamp sets the CreatedTimestamp field's value.
func (s *CreateEventDataStoreOutput) SetCreatedTimestamp(v time.Time) *CreateEventDataStoreOutput {
s.CreatedTimestamp = &v
@@ -10038,8 +10079,7 @@ func (s *Event) SetUsername(v string) *Event {
// A storage lake of event data against which you can run complex SQL-based
// queries. An event data store can include events that you have logged on your
-// account from the last 90 to 2557 days (about three months to up to seven
-// years). To select events for an event data store, use advanced event selectors
+// account. To select events for an event data store, use advanced event selectors
// (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced).
type EventDataStore struct {
_ struct{} `type:"structure"`
@@ -10848,6 +10888,9 @@ type GetEventDataStoreOutput struct {
// The advanced event selectors used to select events for the data store.
AdvancedEventSelectors []*AdvancedEventSelector `type:"list"`
+ // The billing mode for the event data store.
+ BillingMode *string `type:"string" enum:"BillingMode"`
+
// The timestamp of the event data store's creation.
CreatedTimestamp *time.Time `type:"timestamp"`
@@ -10909,6 +10952,12 @@ func (s *GetEventDataStoreOutput) SetAdvancedEventSelectors(v []*AdvancedEventSe
return s
}
+// SetBillingMode sets the BillingMode field's value.
+func (s *GetEventDataStoreOutput) SetBillingMode(v string) *GetEventDataStoreOutput {
+ s.BillingMode = &v
+ return s
+}
+
// SetCreatedTimestamp sets the CreatedTimestamp field's value.
func (s *GetEventDataStoreOutput) SetCreatedTimestamp(v time.Time) *GetEventDataStoreOutput {
s.CreatedTimestamp = &v
@@ -17758,6 +17807,9 @@ type RestoreEventDataStoreOutput struct {
// The advanced event selectors that were used to select events.
AdvancedEventSelectors []*AdvancedEventSelector `type:"list"`
+ // The billing mode for the event data store.
+ BillingMode *string `type:"string" enum:"BillingMode"`
+
// The timestamp of an event data store's creation.
CreatedTimestamp *time.Time `type:"timestamp"`
@@ -17821,6 +17873,12 @@ func (s *RestoreEventDataStoreOutput) SetAdvancedEventSelectors(v []*AdvancedEve
return s
}
+// SetBillingMode sets the BillingMode field's value.
+func (s *RestoreEventDataStoreOutput) SetBillingMode(v string) *RestoreEventDataStoreOutput {
+ s.BillingMode = &v
+ return s
+}
+
// SetCreatedTimestamp sets the CreatedTimestamp field's value.
func (s *RestoreEventDataStoreOutput) SetCreatedTimestamp(v time.Time) *RestoreEventDataStoreOutput {
s.CreatedTimestamp = &v
@@ -19650,6 +19708,30 @@ type UpdateEventDataStoreInput struct {
// store.
AdvancedEventSelectors []*AdvancedEventSelector `type:"list"`
+ //
+ // You can't change the billing mode from EXTENDABLE_RETENTION_PRICING to FIXED_RETENTION_PRICING.
+ // If BillingMode is set to EXTENDABLE_RETENTION_PRICING and you want to use
+ // FIXED_RETENTION_PRICING instead, you'll need to stop ingestion on the event
+ // data store and create a new event data store that uses FIXED_RETENTION_PRICING.
+ //
+ // The billing mode for the event data store determines the cost for ingesting
+ // events and the default and maximum retention period for the event data store.
+ //
+ // The following are the possible values:
+ //
+ // * EXTENDABLE_RETENTION_PRICING - This billing mode is generally recommended
+ // if you want a flexible retention period of up to 3653 days (about 10 years).
+ // The default retention period for this billing mode is 366 days.
+ //
+ // * FIXED_RETENTION_PRICING - This billing mode is recommended if you expect
+ // to ingest more than 25 TB of event data per month and need a retention
+ // period of up to 2557 days (about 7 years). The default retention period
+ // for this billing mode is 2557 days.
+ //
+ // For more information about CloudTrail pricing, see CloudTrail Pricing (http://aws.amazon.com/cloudtrail/pricing/)
+ // and Managing CloudTrail Lake costs (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-manage-costs.html).
+ BillingMode *string `type:"string" enum:"BillingMode"`
+
// The ARN (or the ID suffix of the ARN) of the event data store that you want
// to update.
//
@@ -19698,12 +19780,16 @@ type UpdateEventDataStoreInput struct {
// event data store to an organization event data store.
OrganizationEnabled *bool `type:"boolean"`
- // The retention period of the event data store, in days. You can set a retention
- // period of up to 2557 days, the equivalent of seven years. CloudTrail Lake
- // determines whether to retain an event by checking if the eventTime of the
- // event is within the specified retention period. For example, if you set a
- // retention period of 90 days, CloudTrail will remove events when the eventTime
- // is older than 90 days.
+ // The retention period of the event data store, in days. If BillingMode is
+ // set to EXTENDABLE_RETENTION_PRICING, you can set a retention period of up
+ // to 3653 days, the equivalent of 10 years. If BillingMode is set to FIXED_RETENTION_PRICING,
+ // you can set a retention period of up to 2557 days, the equivalent of seven
+ // years.
+ //
+ // CloudTrail Lake determines whether to retain an event by checking if the
+ // eventTime of the event is within the specified retention period. For example,
+ // if you set a retention period of 90 days, CloudTrail will remove events when
+ // the eventTime is older than 90 days.
//
// If you decrease the retention period of an event data store, CloudTrail will
// remove any events with an eventTime older than the new retention period.
@@ -19776,6 +19862,12 @@ func (s *UpdateEventDataStoreInput) SetAdvancedEventSelectors(v []*AdvancedEvent
return s
}
+// SetBillingMode sets the BillingMode field's value.
+func (s *UpdateEventDataStoreInput) SetBillingMode(v string) *UpdateEventDataStoreInput {
+ s.BillingMode = &v
+ return s
+}
+
// SetEventDataStore sets the EventDataStore field's value.
func (s *UpdateEventDataStoreInput) SetEventDataStore(v string) *UpdateEventDataStoreInput {
s.EventDataStore = &v
@@ -19824,6 +19916,9 @@ type UpdateEventDataStoreOutput struct {
// The advanced event selectors that are applied to the event data store.
AdvancedEventSelectors []*AdvancedEventSelector `type:"list"`
+ // The billing mode for the event data store.
+ BillingMode *string `type:"string" enum:"BillingMode"`
+
// The timestamp that shows when an event data store was first created.
CreatedTimestamp *time.Time `type:"timestamp"`
@@ -19885,6 +19980,12 @@ func (s *UpdateEventDataStoreOutput) SetAdvancedEventSelectors(v []*AdvancedEven
return s
}
+// SetBillingMode sets the BillingMode field's value.
+func (s *UpdateEventDataStoreOutput) SetBillingMode(v string) *UpdateEventDataStoreOutput {
+ s.BillingMode = &v
+ return s
+}
+
// SetCreatedTimestamp sets the CreatedTimestamp field's value.
func (s *UpdateEventDataStoreOutput) SetCreatedTimestamp(v time.Time) *UpdateEventDataStoreOutput {
s.CreatedTimestamp = &v
@@ -20314,6 +20415,22 @@ func (s *UpdateTrailOutput) SetTrailARN(v string) *UpdateTrailOutput {
return s
}
+const (
+ // BillingModeExtendableRetentionPricing is a BillingMode enum value
+ BillingModeExtendableRetentionPricing = "EXTENDABLE_RETENTION_PRICING"
+
+ // BillingModeFixedRetentionPricing is a BillingMode enum value
+ BillingModeFixedRetentionPricing = "FIXED_RETENTION_PRICING"
+)
+
+// BillingMode_Values returns all elements of the BillingMode enum
+func BillingMode_Values() []string {
+ return []string{
+ BillingModeExtendableRetentionPricing,
+ BillingModeFixedRetentionPricing,
+ }
+}
+
const (
// DeliveryStatusSuccess is a DeliveryStatus enum value
DeliveryStatusSuccess = "SUCCESS"
diff --git a/service/ec2/api.go b/service/ec2/api.go
index 979c0a87ea8..83ed458da1c 100644
--- a/service/ec2/api.go
+++ b/service/ec2/api.go
@@ -25672,6 +25672,79 @@ func (c *EC2) DescribeLocalGatewaysPagesWithContext(ctx aws.Context, input *Desc
return p.Err()
}
+const opDescribeLockedSnapshots = "DescribeLockedSnapshots"
+
+// DescribeLockedSnapshotsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeLockedSnapshots operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeLockedSnapshots for more information on using the DescribeLockedSnapshots
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the DescribeLockedSnapshotsRequest method.
+// req, resp := client.DescribeLockedSnapshotsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLockedSnapshots
+func (c *EC2) DescribeLockedSnapshotsRequest(input *DescribeLockedSnapshotsInput) (req *request.Request, output *DescribeLockedSnapshotsOutput) {
+ op := &request.Operation{
+ Name: opDescribeLockedSnapshots,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DescribeLockedSnapshotsInput{}
+ }
+
+ output = &DescribeLockedSnapshotsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeLockedSnapshots API operation for Amazon Elastic Compute Cloud.
+//
+// Describes the lock status for a snapshot.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elastic Compute Cloud's
+// API operation DescribeLockedSnapshots for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLockedSnapshots
+func (c *EC2) DescribeLockedSnapshots(input *DescribeLockedSnapshotsInput) (*DescribeLockedSnapshotsOutput, error) {
+ req, out := c.DescribeLockedSnapshotsRequest(input)
+ return out, req.Send()
+}
+
+// DescribeLockedSnapshotsWithContext is the same as DescribeLockedSnapshots with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeLockedSnapshots for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *EC2) DescribeLockedSnapshotsWithContext(ctx aws.Context, input *DescribeLockedSnapshotsInput, opts ...request.Option) (*DescribeLockedSnapshotsOutput, error) {
+ req, out := c.DescribeLockedSnapshotsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDescribeManagedPrefixLists = "DescribeManagedPrefixLists"
// DescribeManagedPrefixListsRequest generates a "aws/request.Request" representing the
@@ -44850,6 +44923,96 @@ func (c *EC2) ListSnapshotsInRecycleBinPagesWithContext(ctx aws.Context, input *
return p.Err()
}
+const opLockSnapshot = "LockSnapshot"
+
+// LockSnapshotRequest generates a "aws/request.Request" representing the
+// client's request for the LockSnapshot operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See LockSnapshot for more information on using the LockSnapshot
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the LockSnapshotRequest method.
+// req, resp := client.LockSnapshotRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LockSnapshot
+func (c *EC2) LockSnapshotRequest(input *LockSnapshotInput) (req *request.Request, output *LockSnapshotOutput) {
+ op := &request.Operation{
+ Name: opLockSnapshot,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &LockSnapshotInput{}
+ }
+
+ output = &LockSnapshotOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// LockSnapshot API operation for Amazon Elastic Compute Cloud.
+//
+// Locks an Amazon EBS snapshot in either governance or compliance mode to protect
+// it against accidental or malicious deletions for a specific duration. A locked
+// snapshot can't be deleted.
+//
+// You can also use this action to modify the lock settings for a snapshot that
+// is already locked. The allowed modifications depend on the lock mode and
+// lock state:
+//
+// - If the snapshot is locked in governance mode, you can modify the lock
+// mode and the lock duration or lock expiration date.
+//
+// - If the snapshot is locked in compliance mode and it is in the cooling-off
+// period, you can modify the lock mode and the lock duration or lock expiration
+// date.
+//
+// - If the snapshot is locked in compliance mode and the cooling-off period
+// has lapsed, you can only increase the lock duration or extend the lock
+// expiration date.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elastic Compute Cloud's
+// API operation LockSnapshot for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LockSnapshot
+func (c *EC2) LockSnapshot(input *LockSnapshotInput) (*LockSnapshotOutput, error) {
+ req, out := c.LockSnapshotRequest(input)
+ return out, req.Send()
+}
+
+// LockSnapshotWithContext is the same as LockSnapshot with the addition of
+// the ability to pass a context and additional request options.
+//
+// See LockSnapshot for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *EC2) LockSnapshotWithContext(ctx aws.Context, input *LockSnapshotInput, opts ...request.Option) (*LockSnapshotOutput, error) {
+ req, out := c.LockSnapshotRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opModifyAddressAttribute = "ModifyAddressAttribute"
// ModifyAddressAttributeRequest generates a "aws/request.Request" representing the
@@ -55326,6 +55489,81 @@ func (c *EC2) UnassignPrivateNatGatewayAddressWithContext(ctx aws.Context, input
return out, req.Send()
}
+const opUnlockSnapshot = "UnlockSnapshot"
+
+// UnlockSnapshotRequest generates a "aws/request.Request" representing the
+// client's request for the UnlockSnapshot operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UnlockSnapshot for more information on using the UnlockSnapshot
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the UnlockSnapshotRequest method.
+// req, resp := client.UnlockSnapshotRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnlockSnapshot
+func (c *EC2) UnlockSnapshotRequest(input *UnlockSnapshotInput) (req *request.Request, output *UnlockSnapshotOutput) {
+ op := &request.Operation{
+ Name: opUnlockSnapshot,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &UnlockSnapshotInput{}
+ }
+
+ output = &UnlockSnapshotOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// UnlockSnapshot API operation for Amazon Elastic Compute Cloud.
+//
+// Unlocks a snapshot that is locked in governance mode or that is locked in
+// compliance mode but still in the cooling-off period. You can't unlock a snapshot
+// that is locked in compliance mode after the cooling-off period has expired.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elastic Compute Cloud's
+// API operation UnlockSnapshot for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnlockSnapshot
+func (c *EC2) UnlockSnapshot(input *UnlockSnapshotInput) (*UnlockSnapshotOutput, error) {
+ req, out := c.UnlockSnapshotRequest(input)
+ return out, req.Send()
+}
+
+// UnlockSnapshotWithContext is the same as UnlockSnapshot with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UnlockSnapshot for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *EC2) UnlockSnapshotWithContext(ctx aws.Context, input *UnlockSnapshotInput, opts ...request.Option) (*UnlockSnapshotOutput, error) {
+ req, out := c.UnlockSnapshotRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opUnmonitorInstances = "UnmonitorInstances"
// UnmonitorInstancesRequest generates a "aws/request.Request" representing the
@@ -99796,6 +100034,136 @@ func (s *DescribeLocalGatewaysOutput) SetNextToken(v string) *DescribeLocalGatew
return s
}
+type DescribeLockedSnapshotsInput struct {
+ _ struct{} `type:"structure"`
+
+ // Checks whether you have the required permissions for the action, without
+ // actually making the request, and provides an error response. If you have
+ // the required permissions, the error response is DryRunOperation. Otherwise,
+ // it is UnauthorizedOperation.
+ DryRun *bool `type:"boolean"`
+
+ // The filters.
+ //
+ // * lock-state - The state of the snapshot lock (compliance-cooloff | governance
+ // | compliance | expired).
+ Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
+
+ // The maximum number of items to return for this request. To get the next page
+ // of items, make another request with the token returned in the output. For
+ // more information, see Pagination (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination).
+ MaxResults *int64 `min:"5" type:"integer"`
+
+ // The token returned from a previous paginated request. Pagination continues
+ // from the end of the items returned by the previous request.
+ NextToken *string `type:"string"`
+
+ // The IDs of the snapshots for which to view the lock status.
+ SnapshotIds []*string `locationName:"SnapshotId" locationNameList:"SnapshotId" type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeLockedSnapshotsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeLockedSnapshotsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeLockedSnapshotsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeLockedSnapshotsInput"}
+ if s.MaxResults != nil && *s.MaxResults < 5 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDryRun sets the DryRun field's value.
+func (s *DescribeLockedSnapshotsInput) SetDryRun(v bool) *DescribeLockedSnapshotsInput {
+ s.DryRun = &v
+ return s
+}
+
+// SetFilters sets the Filters field's value.
+func (s *DescribeLockedSnapshotsInput) SetFilters(v []*Filter) *DescribeLockedSnapshotsInput {
+ s.Filters = v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribeLockedSnapshotsInput) SetMaxResults(v int64) *DescribeLockedSnapshotsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeLockedSnapshotsInput) SetNextToken(v string) *DescribeLockedSnapshotsInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetSnapshotIds sets the SnapshotIds field's value.
+func (s *DescribeLockedSnapshotsInput) SetSnapshotIds(v []*string) *DescribeLockedSnapshotsInput {
+ s.SnapshotIds = v
+ return s
+}
+
+type DescribeLockedSnapshotsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The token to include in another request to get the next page of items. This
+ // value is null when there are no more items to return.
+ NextToken *string `locationName:"nextToken" type:"string"`
+
+ // Information about the snapshots.
+ Snapshots []*LockedSnapshotsInfo `locationName:"snapshotSet" locationNameList:"item" type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeLockedSnapshotsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeLockedSnapshotsOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeLockedSnapshotsOutput) SetNextToken(v string) *DescribeLockedSnapshotsOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetSnapshots sets the Snapshots field's value.
+func (s *DescribeLockedSnapshotsOutput) SetSnapshots(v []*LockedSnapshotsInfo) *DescribeLockedSnapshotsOutput {
+ s.Snapshots = v
+ return s
+}
+
type DescribeManagedPrefixListsInput struct {
_ struct{} `type:"structure"`
@@ -143071,6 +143439,389 @@ func (s *LocalGatewayVirtualInterfaceGroup) SetTags(v []*Tag) *LocalGatewayVirtu
return s
}
+type LockSnapshotInput struct {
+ _ struct{} `type:"structure"`
+
+ // The cooling-off period during which you can unlock the snapshot or modify
+ // the lock settings after locking the snapshot in compliance mode, in hours.
+ // After the cooling-off period expires, you can't unlock or delete the snapshot,
+ // decrease the lock duration, or change the lock mode. You can increase the
+ // lock duration after the cooling-off period expires.
+ //
+ // The cooling-off period is optional when locking a snapshot in compliance
+ // mode. If you are locking the snapshot in governance mode, omit this parameter.
+ //
+ // To lock the snapshot in compliance mode immediately without a cooling-off
+ // period, omit this parameter.
+ //
+ // If you are extending the lock duration for a snapshot that is locked in compliance
+ // mode after the cooling-off period has expired, omit this parameter. If you
+ // specify a cooling-period in a such a request, the request fails.
+ //
+ // Allowed values: Min 1, max 72.
+ CoolOffPeriod *int64 `min:"1" type:"integer"`
+
+ // Checks whether you have the required permissions for the action, without
+ // actually making the request, and provides an error response. If you have
+ // the required permissions, the error response is DryRunOperation. Otherwise,
+ // it is UnauthorizedOperation.
+ DryRun *bool `type:"boolean"`
+
+ // The date and time at which the snapshot lock is to automatically expire,
+ // in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ).
+ //
+ // You must specify either this parameter or LockDuration, but not both.
+ ExpirationDate *time.Time `type:"timestamp"`
+
+ // The period of time for which to lock the snapshot, in days. The snapshot
+ // lock will automatically expire after this period lapses.
+ //
+ // You must specify either this parameter or ExpirationDate, but not both.
+ //
+ // Allowed values: Min: 1, max 36500
+ LockDuration *int64 `min:"1" type:"integer"`
+
+ // The mode in which to lock the snapshot. Specify one of the following:
+ //
+ // * governance - Locks the snapshot in governance mode. Snapshots locked
+ // in governance mode can't be deleted until one of the following conditions
+ // are met: The lock duration expires. The snapshot is unlocked by a user
+ // with the appropriate permissions. Users with the appropriate IAM permissions
+ // can unlock the snapshot, increase or decrease the lock duration, and change
+ // the lock mode to compliance at any time. If you lock a snapshot in governance
+ // mode, omit CoolOffPeriod.
+ //
+ // * compliance - Locks the snapshot in compliance mode. Snapshots locked
+ // in compliance mode can't be unlocked by any user. They can be deleted
+ // only after the lock duration expires. Users can't decrease the lock duration
+ // or change the lock mode to governance. However, users with appropriate
+ // IAM permissions can increase the lock duration at any time. If you lock
+ // a snapshot in compliance mode, you can optionally specify CoolOffPeriod.
+ //
+ // LockMode is a required field
+ LockMode *string `type:"string" required:"true" enum:"LockMode"`
+
+ // The ID of the snapshot to lock.
+ //
+ // SnapshotId is a required field
+ SnapshotId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s LockSnapshotInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s LockSnapshotInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *LockSnapshotInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "LockSnapshotInput"}
+ if s.CoolOffPeriod != nil && *s.CoolOffPeriod < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("CoolOffPeriod", 1))
+ }
+ if s.LockDuration != nil && *s.LockDuration < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("LockDuration", 1))
+ }
+ if s.LockMode == nil {
+ invalidParams.Add(request.NewErrParamRequired("LockMode"))
+ }
+ if s.SnapshotId == nil {
+ invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetCoolOffPeriod sets the CoolOffPeriod field's value.
+func (s *LockSnapshotInput) SetCoolOffPeriod(v int64) *LockSnapshotInput {
+ s.CoolOffPeriod = &v
+ return s
+}
+
+// SetDryRun sets the DryRun field's value.
+func (s *LockSnapshotInput) SetDryRun(v bool) *LockSnapshotInput {
+ s.DryRun = &v
+ return s
+}
+
+// SetExpirationDate sets the ExpirationDate field's value.
+func (s *LockSnapshotInput) SetExpirationDate(v time.Time) *LockSnapshotInput {
+ s.ExpirationDate = &v
+ return s
+}
+
+// SetLockDuration sets the LockDuration field's value.
+func (s *LockSnapshotInput) SetLockDuration(v int64) *LockSnapshotInput {
+ s.LockDuration = &v
+ return s
+}
+
+// SetLockMode sets the LockMode field's value.
+func (s *LockSnapshotInput) SetLockMode(v string) *LockSnapshotInput {
+ s.LockMode = &v
+ return s
+}
+
+// SetSnapshotId sets the SnapshotId field's value.
+func (s *LockSnapshotInput) SetSnapshotId(v string) *LockSnapshotInput {
+ s.SnapshotId = &v
+ return s
+}
+
+type LockSnapshotOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The compliance mode cooling-off period, in hours.
+ CoolOffPeriod *int64 `locationName:"coolOffPeriod" type:"integer"`
+
+ // The date and time at which the compliance mode cooling-off period expires,
+ // in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ).
+ CoolOffPeriodExpiresOn *time.Time `locationName:"coolOffPeriodExpiresOn" type:"timestamp"`
+
+ // The date and time at which the snapshot was locked, in the UTC time zone
+ // (YYYY-MM-DDThh:mm:ss.sssZ).
+ LockCreatedOn *time.Time `locationName:"lockCreatedOn" type:"timestamp"`
+
+ // The period of time for which the snapshot is locked, in days.
+ LockDuration *int64 `locationName:"lockDuration" type:"integer"`
+
+ // The date and time at which the lock duration started, in the UTC time zone
+ // (YYYY-MM-DDThh:mm:ss.sssZ).
+ LockDurationStartTime *time.Time `locationName:"lockDurationStartTime" type:"timestamp"`
+
+ // The date and time at which the lock will expire, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ).
+ LockExpiresOn *time.Time `locationName:"lockExpiresOn" type:"timestamp"`
+
+ // The state of the snapshot lock. Valid states include:
+ //
+ // * compliance-cooloff - The snapshot has been locked in compliance mode
+ // but it is still within the cooling-off period. The snapshot can't be deleted,
+ // but it can be unlocked and the lock settings can be modified by users
+ // with appropriate permissions.
+ //
+ // * governance - The snapshot is locked in governance mode. The snapshot
+ // can't be deleted, but it can be unlocked and the lock settings can be
+ // modified by users with appropriate permissions.
+ //
+ // * compliance - The snapshot is locked in compliance mode and the cooling-off
+ // period has expired. The snapshot can't be unlocked or deleted. The lock
+ // duration can only be increased by users with appropriate permissions.
+ //
+ // * expired - The snapshot was locked in compliance or governance mode but
+ // the lock duration has expired. The snapshot is not locked and can be deleted.
+ LockState *string `locationName:"lockState" type:"string" enum:"LockState"`
+
+ // The ID of the snapshot
+ SnapshotId *string `locationName:"snapshotId" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s LockSnapshotOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s LockSnapshotOutput) GoString() string {
+ return s.String()
+}
+
+// SetCoolOffPeriod sets the CoolOffPeriod field's value.
+func (s *LockSnapshotOutput) SetCoolOffPeriod(v int64) *LockSnapshotOutput {
+ s.CoolOffPeriod = &v
+ return s
+}
+
+// SetCoolOffPeriodExpiresOn sets the CoolOffPeriodExpiresOn field's value.
+func (s *LockSnapshotOutput) SetCoolOffPeriodExpiresOn(v time.Time) *LockSnapshotOutput {
+ s.CoolOffPeriodExpiresOn = &v
+ return s
+}
+
+// SetLockCreatedOn sets the LockCreatedOn field's value.
+func (s *LockSnapshotOutput) SetLockCreatedOn(v time.Time) *LockSnapshotOutput {
+ s.LockCreatedOn = &v
+ return s
+}
+
+// SetLockDuration sets the LockDuration field's value.
+func (s *LockSnapshotOutput) SetLockDuration(v int64) *LockSnapshotOutput {
+ s.LockDuration = &v
+ return s
+}
+
+// SetLockDurationStartTime sets the LockDurationStartTime field's value.
+func (s *LockSnapshotOutput) SetLockDurationStartTime(v time.Time) *LockSnapshotOutput {
+ s.LockDurationStartTime = &v
+ return s
+}
+
+// SetLockExpiresOn sets the LockExpiresOn field's value.
+func (s *LockSnapshotOutput) SetLockExpiresOn(v time.Time) *LockSnapshotOutput {
+ s.LockExpiresOn = &v
+ return s
+}
+
+// SetLockState sets the LockState field's value.
+func (s *LockSnapshotOutput) SetLockState(v string) *LockSnapshotOutput {
+ s.LockState = &v
+ return s
+}
+
+// SetSnapshotId sets the SnapshotId field's value.
+func (s *LockSnapshotOutput) SetSnapshotId(v string) *LockSnapshotOutput {
+ s.SnapshotId = &v
+ return s
+}
+
+// Information about a locked snapshot.
+type LockedSnapshotsInfo struct {
+ _ struct{} `type:"structure"`
+
+ // The compliance mode cooling-off period, in hours.
+ CoolOffPeriod *int64 `locationName:"coolOffPeriod" type:"integer"`
+
+ // The date and time at which the compliance mode cooling-off period expires,
+ // in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ).
+ CoolOffPeriodExpiresOn *time.Time `locationName:"coolOffPeriodExpiresOn" type:"timestamp"`
+
+ // The date and time at which the snapshot was locked, in the UTC time zone
+ // (YYYY-MM-DDThh:mm:ss.sssZ).
+ LockCreatedOn *time.Time `locationName:"lockCreatedOn" type:"timestamp"`
+
+ // The period of time for which the snapshot is locked, in days.
+ LockDuration *int64 `locationName:"lockDuration" type:"integer"`
+
+ // The date and time at which the lock duration started, in the UTC time zone
+ // (YYYY-MM-DDThh:mm:ss.sssZ).
+ //
+ // If you lock a snapshot that is in the pending state, the lock duration starts
+ // only once the snapshot enters the completed state.
+ LockDurationStartTime *time.Time `locationName:"lockDurationStartTime" type:"timestamp"`
+
+ // The date and time at which the lock will expire, in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ).
+ LockExpiresOn *time.Time `locationName:"lockExpiresOn" type:"timestamp"`
+
+ // The state of the snapshot lock. Valid states include:
+ //
+ // * compliance-cooloff - The snapshot has been locked in compliance mode
+ // but it is still within the cooling-off period. The snapshot can't be deleted,
+ // but it can be unlocked and the lock settings can be modified by users
+ // with appropriate permissions.
+ //
+ // * governance - The snapshot is locked in governance mode. The snapshot
+ // can't be deleted, but it can be unlocked and the lock settings can be
+ // modified by users with appropriate permissions.
+ //
+ // * compliance - The snapshot is locked in compliance mode and the cooling-off
+ // period has expired. The snapshot can't be unlocked or deleted. The lock
+ // duration can only be increased by users with appropriate permissions.
+ //
+ // * expired - The snapshot was locked in compliance or governance mode but
+ // the lock duration has expired. The snapshot is not locked and can be deleted.
+ LockState *string `locationName:"lockState" type:"string" enum:"LockState"`
+
+ // The account ID of the Amazon Web Services account that owns the snapshot.
+ OwnerId *string `locationName:"ownerId" type:"string"`
+
+ // The ID of the snapshot.
+ SnapshotId *string `locationName:"snapshotId" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s LockedSnapshotsInfo) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s LockedSnapshotsInfo) GoString() string {
+ return s.String()
+}
+
+// SetCoolOffPeriod sets the CoolOffPeriod field's value.
+func (s *LockedSnapshotsInfo) SetCoolOffPeriod(v int64) *LockedSnapshotsInfo {
+ s.CoolOffPeriod = &v
+ return s
+}
+
+// SetCoolOffPeriodExpiresOn sets the CoolOffPeriodExpiresOn field's value.
+func (s *LockedSnapshotsInfo) SetCoolOffPeriodExpiresOn(v time.Time) *LockedSnapshotsInfo {
+ s.CoolOffPeriodExpiresOn = &v
+ return s
+}
+
+// SetLockCreatedOn sets the LockCreatedOn field's value.
+func (s *LockedSnapshotsInfo) SetLockCreatedOn(v time.Time) *LockedSnapshotsInfo {
+ s.LockCreatedOn = &v
+ return s
+}
+
+// SetLockDuration sets the LockDuration field's value.
+func (s *LockedSnapshotsInfo) SetLockDuration(v int64) *LockedSnapshotsInfo {
+ s.LockDuration = &v
+ return s
+}
+
+// SetLockDurationStartTime sets the LockDurationStartTime field's value.
+func (s *LockedSnapshotsInfo) SetLockDurationStartTime(v time.Time) *LockedSnapshotsInfo {
+ s.LockDurationStartTime = &v
+ return s
+}
+
+// SetLockExpiresOn sets the LockExpiresOn field's value.
+func (s *LockedSnapshotsInfo) SetLockExpiresOn(v time.Time) *LockedSnapshotsInfo {
+ s.LockExpiresOn = &v
+ return s
+}
+
+// SetLockState sets the LockState field's value.
+func (s *LockedSnapshotsInfo) SetLockState(v string) *LockedSnapshotsInfo {
+ s.LockState = &v
+ return s
+}
+
+// SetOwnerId sets the OwnerId field's value.
+func (s *LockedSnapshotsInfo) SetOwnerId(v string) *LockedSnapshotsInfo {
+ s.OwnerId = &v
+ return s
+}
+
+// SetSnapshotId sets the SnapshotId field's value.
+func (s *LockedSnapshotsInfo) SetSnapshotId(v string) *LockedSnapshotsInfo {
+ s.SnapshotId = &v
+ return s
+}
+
// Details for Site-to-Site VPN tunnel endpoint maintenance events.
type MaintenanceDetails struct {
_ struct{} `type:"structure"`
@@ -180485,6 +181236,95 @@ func (s *UnassignPrivateNatGatewayAddressOutput) SetNatGatewayId(v string) *Unas
return s
}
+type UnlockSnapshotInput struct {
+ _ struct{} `type:"structure"`
+
+ // Checks whether you have the required permissions for the action, without
+ // actually making the request, and provides an error response. If you have
+ // the required permissions, the error response is DryRunOperation. Otherwise,
+ // it is UnauthorizedOperation.
+ DryRun *bool `type:"boolean"`
+
+ // The ID of the snapshot to unlock.
+ //
+ // SnapshotId is a required field
+ SnapshotId *string `type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UnlockSnapshotInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UnlockSnapshotInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UnlockSnapshotInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UnlockSnapshotInput"}
+ if s.SnapshotId == nil {
+ invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDryRun sets the DryRun field's value.
+func (s *UnlockSnapshotInput) SetDryRun(v bool) *UnlockSnapshotInput {
+ s.DryRun = &v
+ return s
+}
+
+// SetSnapshotId sets the SnapshotId field's value.
+func (s *UnlockSnapshotInput) SetSnapshotId(v string) *UnlockSnapshotInput {
+ s.SnapshotId = &v
+ return s
+}
+
+type UnlockSnapshotOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ID of the snapshot.
+ SnapshotId *string `locationName:"snapshotId" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UnlockSnapshotOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UnlockSnapshotOutput) GoString() string {
+ return s.String()
+}
+
+// SetSnapshotId sets the SnapshotId field's value.
+func (s *UnlockSnapshotOutput) SetSnapshotId(v string) *UnlockSnapshotOutput {
+ s.SnapshotId = &v
+ return s
+}
+
type UnmonitorInstancesInput struct {
_ struct{} `type:"structure"`
@@ -190979,6 +191819,9 @@ const (
// InstanceTypeR7i48xlarge is a InstanceType enum value
InstanceTypeR7i48xlarge = "r7i.48xlarge"
+
+ // InstanceTypeDl2q24xlarge is a InstanceType enum value
+ InstanceTypeDl2q24xlarge = "dl2q.24xlarge"
)
// InstanceType_Values returns all elements of the InstanceType enum
@@ -191755,6 +192598,7 @@ func InstanceType_Values() []string {
InstanceTypeR7i16xlarge,
InstanceTypeR7i24xlarge,
InstanceTypeR7i48xlarge,
+ InstanceTypeDl2q24xlarge,
}
}
@@ -192718,6 +193562,46 @@ func LocationType_Values() []string {
}
}
+const (
+ // LockModeCompliance is a LockMode enum value
+ LockModeCompliance = "compliance"
+
+ // LockModeGovernance is a LockMode enum value
+ LockModeGovernance = "governance"
+)
+
+// LockMode_Values returns all elements of the LockMode enum
+func LockMode_Values() []string {
+ return []string{
+ LockModeCompliance,
+ LockModeGovernance,
+ }
+}
+
+const (
+ // LockStateCompliance is a LockState enum value
+ LockStateCompliance = "compliance"
+
+ // LockStateGovernance is a LockState enum value
+ LockStateGovernance = "governance"
+
+ // LockStateComplianceCooloff is a LockState enum value
+ LockStateComplianceCooloff = "compliance-cooloff"
+
+ // LockStateExpired is a LockState enum value
+ LockStateExpired = "expired"
+)
+
+// LockState_Values returns all elements of the LockState enum
+func LockState_Values() []string {
+ return []string{
+ LockStateCompliance,
+ LockStateGovernance,
+ LockStateComplianceCooloff,
+ LockStateExpired,
+ }
+}
+
const (
// LogDestinationTypeCloudWatchLogs is a LogDestinationType enum value
LogDestinationTypeCloudWatchLogs = "cloud-watch-logs"
diff --git a/service/ec2/ec2iface/interface.go b/service/ec2/ec2iface/interface.go
index cfe7cdc1904..99b739a2e1c 100644
--- a/service/ec2/ec2iface/interface.go
+++ b/service/ec2/ec2iface/interface.go
@@ -1371,6 +1371,10 @@ type EC2API interface {
DescribeLocalGatewaysPages(*ec2.DescribeLocalGatewaysInput, func(*ec2.DescribeLocalGatewaysOutput, bool) bool) error
DescribeLocalGatewaysPagesWithContext(aws.Context, *ec2.DescribeLocalGatewaysInput, func(*ec2.DescribeLocalGatewaysOutput, bool) bool, ...request.Option) error
+ DescribeLockedSnapshots(*ec2.DescribeLockedSnapshotsInput) (*ec2.DescribeLockedSnapshotsOutput, error)
+ DescribeLockedSnapshotsWithContext(aws.Context, *ec2.DescribeLockedSnapshotsInput, ...request.Option) (*ec2.DescribeLockedSnapshotsOutput, error)
+ DescribeLockedSnapshotsRequest(*ec2.DescribeLockedSnapshotsInput) (*request.Request, *ec2.DescribeLockedSnapshotsOutput)
+
DescribeManagedPrefixLists(*ec2.DescribeManagedPrefixListsInput) (*ec2.DescribeManagedPrefixListsOutput, error)
DescribeManagedPrefixListsWithContext(aws.Context, *ec2.DescribeManagedPrefixListsInput, ...request.Option) (*ec2.DescribeManagedPrefixListsOutput, error)
DescribeManagedPrefixListsRequest(*ec2.DescribeManagedPrefixListsInput) (*request.Request, *ec2.DescribeManagedPrefixListsOutput)
@@ -2367,6 +2371,10 @@ type EC2API interface {
ListSnapshotsInRecycleBinPages(*ec2.ListSnapshotsInRecycleBinInput, func(*ec2.ListSnapshotsInRecycleBinOutput, bool) bool) error
ListSnapshotsInRecycleBinPagesWithContext(aws.Context, *ec2.ListSnapshotsInRecycleBinInput, func(*ec2.ListSnapshotsInRecycleBinOutput, bool) bool, ...request.Option) error
+ LockSnapshot(*ec2.LockSnapshotInput) (*ec2.LockSnapshotOutput, error)
+ LockSnapshotWithContext(aws.Context, *ec2.LockSnapshotInput, ...request.Option) (*ec2.LockSnapshotOutput, error)
+ LockSnapshotRequest(*ec2.LockSnapshotInput) (*request.Request, *ec2.LockSnapshotOutput)
+
ModifyAddressAttribute(*ec2.ModifyAddressAttributeInput) (*ec2.ModifyAddressAttributeOutput, error)
ModifyAddressAttributeWithContext(aws.Context, *ec2.ModifyAddressAttributeInput, ...request.Option) (*ec2.ModifyAddressAttributeOutput, error)
ModifyAddressAttributeRequest(*ec2.ModifyAddressAttributeInput) (*request.Request, *ec2.ModifyAddressAttributeOutput)
@@ -2885,6 +2893,10 @@ type EC2API interface {
UnassignPrivateNatGatewayAddressWithContext(aws.Context, *ec2.UnassignPrivateNatGatewayAddressInput, ...request.Option) (*ec2.UnassignPrivateNatGatewayAddressOutput, error)
UnassignPrivateNatGatewayAddressRequest(*ec2.UnassignPrivateNatGatewayAddressInput) (*request.Request, *ec2.UnassignPrivateNatGatewayAddressOutput)
+ UnlockSnapshot(*ec2.UnlockSnapshotInput) (*ec2.UnlockSnapshotOutput, error)
+ UnlockSnapshotWithContext(aws.Context, *ec2.UnlockSnapshotInput, ...request.Option) (*ec2.UnlockSnapshotOutput, error)
+ UnlockSnapshotRequest(*ec2.UnlockSnapshotInput) (*request.Request, *ec2.UnlockSnapshotOutput)
+
UnmonitorInstances(*ec2.UnmonitorInstancesInput) (*ec2.UnmonitorInstancesOutput, error)
UnmonitorInstancesWithContext(aws.Context, *ec2.UnmonitorInstancesInput, ...request.Option) (*ec2.UnmonitorInstancesOutput, error)
UnmonitorInstancesRequest(*ec2.UnmonitorInstancesInput) (*request.Request, *ec2.UnmonitorInstancesOutput)
diff --git a/service/finspace/api.go b/service/finspace/api.go
index 54cabf0d89e..cb186dca6b7 100644
--- a/service/finspace/api.go
+++ b/service/finspace/api.go
@@ -38,7 +38,12 @@ const opCreateEnvironment = "CreateEnvironment"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/CreateEnvironment
+//
+// Deprecated: This method will be discontinued.
func (c *Finspace) CreateEnvironmentRequest(input *CreateEnvironmentInput) (req *request.Request, output *CreateEnvironmentOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, CreateEnvironment, has been deprecated")
+ }
op := &request.Operation{
Name: opCreateEnvironment,
HTTPMethod: "POST",
@@ -89,6 +94,8 @@ func (c *Finspace) CreateEnvironmentRequest(input *CreateEnvironmentInput) (req
// A service limit or quota is exceeded.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/CreateEnvironment
+//
+// Deprecated: This method will be discontinued.
func (c *Finspace) CreateEnvironment(input *CreateEnvironmentInput) (*CreateEnvironmentOutput, error) {
req, out := c.CreateEnvironmentRequest(input)
return out, req.Send()
@@ -103,6 +110,8 @@ func (c *Finspace) CreateEnvironment(input *CreateEnvironmentInput) (*CreateEnvi
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *Finspace) CreateEnvironmentWithContext(ctx aws.Context, input *CreateEnvironmentInput, opts ...request.Option) (*CreateEnvironmentOutput, error) {
req, out := c.CreateEnvironmentRequest(input)
req.SetContext(ctx)
@@ -637,7 +646,12 @@ const opDeleteEnvironment = "DeleteEnvironment"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/DeleteEnvironment
+//
+// Deprecated: This method will be discontinued.
func (c *Finspace) DeleteEnvironmentRequest(input *DeleteEnvironmentInput) (req *request.Request, output *DeleteEnvironmentOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, DeleteEnvironment, has been deprecated")
+ }
op := &request.Operation{
Name: opDeleteEnvironment,
HTTPMethod: "DELETE",
@@ -684,6 +698,8 @@ func (c *Finspace) DeleteEnvironmentRequest(input *DeleteEnvironmentInput) (req
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/DeleteEnvironment
+//
+// Deprecated: This method will be discontinued.
func (c *Finspace) DeleteEnvironment(input *DeleteEnvironmentInput) (*DeleteEnvironmentOutput, error) {
req, out := c.DeleteEnvironmentRequest(input)
return out, req.Send()
@@ -698,6 +714,8 @@ func (c *Finspace) DeleteEnvironment(input *DeleteEnvironmentInput) (*DeleteEnvi
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *Finspace) DeleteEnvironmentWithContext(ctx aws.Context, input *DeleteEnvironmentInput, opts ...request.Option) (*DeleteEnvironmentOutput, error) {
req, out := c.DeleteEnvironmentRequest(input)
req.SetContext(ctx)
@@ -1115,7 +1133,12 @@ const opGetEnvironment = "GetEnvironment"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/GetEnvironment
+//
+// Deprecated: This method will be discontinued.
func (c *Finspace) GetEnvironmentRequest(input *GetEnvironmentInput) (req *request.Request, output *GetEnvironmentOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, GetEnvironment, has been deprecated")
+ }
op := &request.Operation{
Name: opGetEnvironment,
HTTPMethod: "GET",
@@ -1158,6 +1181,8 @@ func (c *Finspace) GetEnvironmentRequest(input *GetEnvironmentInput) (req *reque
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/GetEnvironment
+//
+// Deprecated: This method will be discontinued.
func (c *Finspace) GetEnvironment(input *GetEnvironmentInput) (*GetEnvironmentOutput, error) {
req, out := c.GetEnvironmentRequest(input)
return out, req.Send()
@@ -1172,6 +1197,8 @@ func (c *Finspace) GetEnvironment(input *GetEnvironmentInput) (*GetEnvironmentOu
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *Finspace) GetEnvironmentWithContext(ctx aws.Context, input *GetEnvironmentInput, opts ...request.Option) (*GetEnvironmentOutput, error) {
req, out := c.GetEnvironmentRequest(input)
req.SetContext(ctx)
@@ -1761,7 +1788,12 @@ const opListEnvironments = "ListEnvironments"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/ListEnvironments
+//
+// Deprecated: This method will be discontinued.
func (c *Finspace) ListEnvironmentsRequest(input *ListEnvironmentsInput) (req *request.Request, output *ListEnvironmentsOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, ListEnvironments, has been deprecated")
+ }
op := &request.Operation{
Name: opListEnvironments,
HTTPMethod: "GET",
@@ -1798,6 +1830,8 @@ func (c *Finspace) ListEnvironmentsRequest(input *ListEnvironmentsInput) (req *r
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/ListEnvironments
+//
+// Deprecated: This method will be discontinued.
func (c *Finspace) ListEnvironments(input *ListEnvironmentsInput) (*ListEnvironmentsOutput, error) {
req, out := c.ListEnvironmentsRequest(input)
return out, req.Send()
@@ -1812,6 +1846,8 @@ func (c *Finspace) ListEnvironments(input *ListEnvironmentsInput) (*ListEnvironm
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *Finspace) ListEnvironmentsWithContext(ctx aws.Context, input *ListEnvironmentsInput, opts ...request.Option) (*ListEnvironmentsOutput, error) {
req, out := c.ListEnvironmentsRequest(input)
req.SetContext(ctx)
@@ -2884,7 +2920,12 @@ const opUpdateEnvironment = "UpdateEnvironment"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/UpdateEnvironment
+//
+// Deprecated: This method will be discontinued.
func (c *Finspace) UpdateEnvironmentRequest(input *UpdateEnvironmentInput) (req *request.Request, output *UpdateEnvironmentOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, UpdateEnvironment, has been deprecated")
+ }
op := &request.Operation{
Name: opUpdateEnvironment,
HTTPMethod: "PUT",
@@ -2930,6 +2971,8 @@ func (c *Finspace) UpdateEnvironmentRequest(input *UpdateEnvironmentInput) (req
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/UpdateEnvironment
+//
+// Deprecated: This method will be discontinued.
func (c *Finspace) UpdateEnvironment(input *UpdateEnvironmentInput) (*UpdateEnvironmentOutput, error) {
req, out := c.UpdateEnvironmentRequest(input)
return out, req.Send()
@@ -2944,6 +2987,8 @@ func (c *Finspace) UpdateEnvironment(input *UpdateEnvironmentInput) (*UpdateEnvi
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *Finspace) UpdateEnvironmentWithContext(ctx aws.Context, input *UpdateEnvironmentInput, opts ...request.Option) (*UpdateEnvironmentOutput, error) {
req, out := c.UpdateEnvironmentRequest(input)
req.SetContext(ctx)
diff --git a/service/finspacedata/api.go b/service/finspacedata/api.go
index ee167f4a47c..bbc37dbf168 100644
--- a/service/finspacedata/api.go
+++ b/service/finspacedata/api.go
@@ -36,7 +36,12 @@ const opAssociateUserToPermissionGroup = "AssociateUserToPermissionGroup"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/AssociateUserToPermissionGroup
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) AssociateUserToPermissionGroupRequest(input *AssociateUserToPermissionGroupInput) (req *request.Request, output *AssociateUserToPermissionGroupOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, AssociateUserToPermissionGroup, has been deprecated")
+ }
op := &request.Operation{
Name: opAssociateUserToPermissionGroup,
HTTPMethod: "POST",
@@ -86,6 +91,8 @@ func (c *FinSpaceData) AssociateUserToPermissionGroupRequest(input *AssociateUse
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/AssociateUserToPermissionGroup
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) AssociateUserToPermissionGroup(input *AssociateUserToPermissionGroupInput) (*AssociateUserToPermissionGroupOutput, error) {
req, out := c.AssociateUserToPermissionGroupRequest(input)
return out, req.Send()
@@ -100,6 +107,8 @@ func (c *FinSpaceData) AssociateUserToPermissionGroup(input *AssociateUserToPerm
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) AssociateUserToPermissionGroupWithContext(ctx aws.Context, input *AssociateUserToPermissionGroupInput, opts ...request.Option) (*AssociateUserToPermissionGroupOutput, error) {
req, out := c.AssociateUserToPermissionGroupRequest(input)
req.SetContext(ctx)
@@ -132,7 +141,12 @@ const opCreateChangeset = "CreateChangeset"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/CreateChangeset
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) CreateChangesetRequest(input *CreateChangesetInput) (req *request.Request, output *CreateChangesetOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, CreateChangeset, has been deprecated")
+ }
op := &request.Operation{
Name: opCreateChangeset,
HTTPMethod: "POST",
@@ -184,6 +198,8 @@ func (c *FinSpaceData) CreateChangesetRequest(input *CreateChangesetInput) (req
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/CreateChangeset
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) CreateChangeset(input *CreateChangesetInput) (*CreateChangesetOutput, error) {
req, out := c.CreateChangesetRequest(input)
return out, req.Send()
@@ -198,6 +214,8 @@ func (c *FinSpaceData) CreateChangeset(input *CreateChangesetInput) (*CreateChan
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) CreateChangesetWithContext(ctx aws.Context, input *CreateChangesetInput, opts ...request.Option) (*CreateChangesetOutput, error) {
req, out := c.CreateChangesetRequest(input)
req.SetContext(ctx)
@@ -230,7 +248,12 @@ const opCreateDataView = "CreateDataView"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/CreateDataView
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) CreateDataViewRequest(input *CreateDataViewInput) (req *request.Request, output *CreateDataViewOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, CreateDataView, has been deprecated")
+ }
op := &request.Operation{
Name: opCreateDataView,
HTTPMethod: "POST",
@@ -279,6 +302,8 @@ func (c *FinSpaceData) CreateDataViewRequest(input *CreateDataViewInput) (req *r
// One or more resources can't be found.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/CreateDataView
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) CreateDataView(input *CreateDataViewInput) (*CreateDataViewOutput, error) {
req, out := c.CreateDataViewRequest(input)
return out, req.Send()
@@ -293,6 +318,8 @@ func (c *FinSpaceData) CreateDataView(input *CreateDataViewInput) (*CreateDataVi
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) CreateDataViewWithContext(ctx aws.Context, input *CreateDataViewInput, opts ...request.Option) (*CreateDataViewOutput, error) {
req, out := c.CreateDataViewRequest(input)
req.SetContext(ctx)
@@ -325,7 +352,12 @@ const opCreateDataset = "CreateDataset"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/CreateDataset
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) CreateDatasetRequest(input *CreateDatasetInput) (req *request.Request, output *CreateDatasetOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, CreateDataset, has been deprecated")
+ }
op := &request.Operation{
Name: opCreateDataset,
HTTPMethod: "POST",
@@ -377,6 +409,8 @@ func (c *FinSpaceData) CreateDatasetRequest(input *CreateDatasetInput) (req *req
// One or more resources can't be found.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/CreateDataset
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) CreateDataset(input *CreateDatasetInput) (*CreateDatasetOutput, error) {
req, out := c.CreateDatasetRequest(input)
return out, req.Send()
@@ -391,6 +425,8 @@ func (c *FinSpaceData) CreateDataset(input *CreateDatasetInput) (*CreateDatasetO
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) CreateDatasetWithContext(ctx aws.Context, input *CreateDatasetInput, opts ...request.Option) (*CreateDatasetOutput, error) {
req, out := c.CreateDatasetRequest(input)
req.SetContext(ctx)
@@ -423,7 +459,12 @@ const opCreatePermissionGroup = "CreatePermissionGroup"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/CreatePermissionGroup
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) CreatePermissionGroupRequest(input *CreatePermissionGroupInput) (req *request.Request, output *CreatePermissionGroupOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, CreatePermissionGroup, has been deprecated")
+ }
op := &request.Operation{
Name: opCreatePermissionGroup,
HTTPMethod: "POST",
@@ -473,6 +514,8 @@ func (c *FinSpaceData) CreatePermissionGroupRequest(input *CreatePermissionGroup
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/CreatePermissionGroup
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) CreatePermissionGroup(input *CreatePermissionGroupInput) (*CreatePermissionGroupOutput, error) {
req, out := c.CreatePermissionGroupRequest(input)
return out, req.Send()
@@ -487,6 +530,8 @@ func (c *FinSpaceData) CreatePermissionGroup(input *CreatePermissionGroupInput)
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) CreatePermissionGroupWithContext(ctx aws.Context, input *CreatePermissionGroupInput, opts ...request.Option) (*CreatePermissionGroupOutput, error) {
req, out := c.CreatePermissionGroupRequest(input)
req.SetContext(ctx)
@@ -519,7 +564,12 @@ const opCreateUser = "CreateUser"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/CreateUser
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) CreateUserRequest(input *CreateUserInput) (req *request.Request, output *CreateUserOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, CreateUser, has been deprecated")
+ }
op := &request.Operation{
Name: opCreateUser,
HTTPMethod: "POST",
@@ -568,6 +618,8 @@ func (c *FinSpaceData) CreateUserRequest(input *CreateUserInput) (req *request.R
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/CreateUser
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) {
req, out := c.CreateUserRequest(input)
return out, req.Send()
@@ -582,6 +634,8 @@ func (c *FinSpaceData) CreateUser(input *CreateUserInput) (*CreateUserOutput, er
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) CreateUserWithContext(ctx aws.Context, input *CreateUserInput, opts ...request.Option) (*CreateUserOutput, error) {
req, out := c.CreateUserRequest(input)
req.SetContext(ctx)
@@ -614,7 +668,12 @@ const opDeleteDataset = "DeleteDataset"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/DeleteDataset
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) DeleteDatasetRequest(input *DeleteDatasetInput) (req *request.Request, output *DeleteDatasetOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, DeleteDataset, has been deprecated")
+ }
op := &request.Operation{
Name: opDeleteDataset,
HTTPMethod: "DELETE",
@@ -666,6 +725,8 @@ func (c *FinSpaceData) DeleteDatasetRequest(input *DeleteDatasetInput) (req *req
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/DeleteDataset
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) DeleteDataset(input *DeleteDatasetInput) (*DeleteDatasetOutput, error) {
req, out := c.DeleteDatasetRequest(input)
return out, req.Send()
@@ -680,6 +741,8 @@ func (c *FinSpaceData) DeleteDataset(input *DeleteDatasetInput) (*DeleteDatasetO
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) DeleteDatasetWithContext(ctx aws.Context, input *DeleteDatasetInput, opts ...request.Option) (*DeleteDatasetOutput, error) {
req, out := c.DeleteDatasetRequest(input)
req.SetContext(ctx)
@@ -712,7 +775,12 @@ const opDeletePermissionGroup = "DeletePermissionGroup"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/DeletePermissionGroup
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) DeletePermissionGroupRequest(input *DeletePermissionGroupInput) (req *request.Request, output *DeletePermissionGroupOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, DeletePermissionGroup, has been deprecated")
+ }
op := &request.Operation{
Name: opDeletePermissionGroup,
HTTPMethod: "DELETE",
@@ -764,6 +832,8 @@ func (c *FinSpaceData) DeletePermissionGroupRequest(input *DeletePermissionGroup
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/DeletePermissionGroup
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) DeletePermissionGroup(input *DeletePermissionGroupInput) (*DeletePermissionGroupOutput, error) {
req, out := c.DeletePermissionGroupRequest(input)
return out, req.Send()
@@ -778,6 +848,8 @@ func (c *FinSpaceData) DeletePermissionGroup(input *DeletePermissionGroupInput)
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) DeletePermissionGroupWithContext(ctx aws.Context, input *DeletePermissionGroupInput, opts ...request.Option) (*DeletePermissionGroupOutput, error) {
req, out := c.DeletePermissionGroupRequest(input)
req.SetContext(ctx)
@@ -810,7 +882,12 @@ const opDisableUser = "DisableUser"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/DisableUser
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) DisableUserRequest(input *DisableUserInput) (req *request.Request, output *DisableUserOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, DisableUser, has been deprecated")
+ }
op := &request.Operation{
Name: opDisableUser,
HTTPMethod: "POST",
@@ -859,6 +936,8 @@ func (c *FinSpaceData) DisableUserRequest(input *DisableUserInput) (req *request
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/DisableUser
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) DisableUser(input *DisableUserInput) (*DisableUserOutput, error) {
req, out := c.DisableUserRequest(input)
return out, req.Send()
@@ -873,6 +952,8 @@ func (c *FinSpaceData) DisableUser(input *DisableUserInput) (*DisableUserOutput,
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) DisableUserWithContext(ctx aws.Context, input *DisableUserInput, opts ...request.Option) (*DisableUserOutput, error) {
req, out := c.DisableUserRequest(input)
req.SetContext(ctx)
@@ -905,7 +986,12 @@ const opDisassociateUserFromPermissionGroup = "DisassociateUserFromPermissionGro
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/DisassociateUserFromPermissionGroup
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) DisassociateUserFromPermissionGroupRequest(input *DisassociateUserFromPermissionGroupInput) (req *request.Request, output *DisassociateUserFromPermissionGroupOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, DisassociateUserFromPermissionGroup, has been deprecated")
+ }
op := &request.Operation{
Name: opDisassociateUserFromPermissionGroup,
HTTPMethod: "DELETE",
@@ -954,6 +1040,8 @@ func (c *FinSpaceData) DisassociateUserFromPermissionGroupRequest(input *Disasso
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/DisassociateUserFromPermissionGroup
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) DisassociateUserFromPermissionGroup(input *DisassociateUserFromPermissionGroupInput) (*DisassociateUserFromPermissionGroupOutput, error) {
req, out := c.DisassociateUserFromPermissionGroupRequest(input)
return out, req.Send()
@@ -968,6 +1056,8 @@ func (c *FinSpaceData) DisassociateUserFromPermissionGroup(input *DisassociateUs
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) DisassociateUserFromPermissionGroupWithContext(ctx aws.Context, input *DisassociateUserFromPermissionGroupInput, opts ...request.Option) (*DisassociateUserFromPermissionGroupOutput, error) {
req, out := c.DisassociateUserFromPermissionGroupRequest(input)
req.SetContext(ctx)
@@ -1000,7 +1090,12 @@ const opEnableUser = "EnableUser"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/EnableUser
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) EnableUserRequest(input *EnableUserInput) (req *request.Request, output *EnableUserOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, EnableUser, has been deprecated")
+ }
op := &request.Operation{
Name: opEnableUser,
HTTPMethod: "POST",
@@ -1052,6 +1147,8 @@ func (c *FinSpaceData) EnableUserRequest(input *EnableUserInput) (req *request.R
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/EnableUser
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) EnableUser(input *EnableUserInput) (*EnableUserOutput, error) {
req, out := c.EnableUserRequest(input)
return out, req.Send()
@@ -1066,6 +1163,8 @@ func (c *FinSpaceData) EnableUser(input *EnableUserInput) (*EnableUserOutput, er
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) EnableUserWithContext(ctx aws.Context, input *EnableUserInput, opts ...request.Option) (*EnableUserOutput, error) {
req, out := c.EnableUserRequest(input)
req.SetContext(ctx)
@@ -1098,7 +1197,12 @@ const opGetChangeset = "GetChangeset"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/GetChangeset
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetChangesetRequest(input *GetChangesetInput) (req *request.Request, output *GetChangesetOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, GetChangeset, has been deprecated")
+ }
op := &request.Operation{
Name: opGetChangeset,
HTTPMethod: "GET",
@@ -1147,6 +1251,8 @@ func (c *FinSpaceData) GetChangesetRequest(input *GetChangesetInput) (req *reque
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/GetChangeset
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetChangeset(input *GetChangesetInput) (*GetChangesetOutput, error) {
req, out := c.GetChangesetRequest(input)
return out, req.Send()
@@ -1161,6 +1267,8 @@ func (c *FinSpaceData) GetChangeset(input *GetChangesetInput) (*GetChangesetOutp
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetChangesetWithContext(ctx aws.Context, input *GetChangesetInput, opts ...request.Option) (*GetChangesetOutput, error) {
req, out := c.GetChangesetRequest(input)
req.SetContext(ctx)
@@ -1193,7 +1301,12 @@ const opGetDataView = "GetDataView"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/GetDataView
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetDataViewRequest(input *GetDataViewInput) (req *request.Request, output *GetDataViewOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, GetDataView, has been deprecated")
+ }
op := &request.Operation{
Name: opGetDataView,
HTTPMethod: "GET",
@@ -1239,6 +1352,8 @@ func (c *FinSpaceData) GetDataViewRequest(input *GetDataViewInput) (req *request
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/GetDataView
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetDataView(input *GetDataViewInput) (*GetDataViewOutput, error) {
req, out := c.GetDataViewRequest(input)
return out, req.Send()
@@ -1253,6 +1368,8 @@ func (c *FinSpaceData) GetDataView(input *GetDataViewInput) (*GetDataViewOutput,
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetDataViewWithContext(ctx aws.Context, input *GetDataViewInput, opts ...request.Option) (*GetDataViewOutput, error) {
req, out := c.GetDataViewRequest(input)
req.SetContext(ctx)
@@ -1285,7 +1402,12 @@ const opGetDataset = "GetDataset"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/GetDataset
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetDatasetRequest(input *GetDatasetInput) (req *request.Request, output *GetDatasetOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, GetDataset, has been deprecated")
+ }
op := &request.Operation{
Name: opGetDataset,
HTTPMethod: "GET",
@@ -1334,6 +1456,8 @@ func (c *FinSpaceData) GetDatasetRequest(input *GetDatasetInput) (req *request.R
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/GetDataset
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetDataset(input *GetDatasetInput) (*GetDatasetOutput, error) {
req, out := c.GetDatasetRequest(input)
return out, req.Send()
@@ -1348,6 +1472,8 @@ func (c *FinSpaceData) GetDataset(input *GetDatasetInput) (*GetDatasetOutput, er
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetDatasetWithContext(ctx aws.Context, input *GetDatasetInput, opts ...request.Option) (*GetDatasetOutput, error) {
req, out := c.GetDatasetRequest(input)
req.SetContext(ctx)
@@ -1380,7 +1506,12 @@ const opGetExternalDataViewAccessDetails = "GetExternalDataViewAccessDetails"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/GetExternalDataViewAccessDetails
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetExternalDataViewAccessDetailsRequest(input *GetExternalDataViewAccessDetailsInput) (req *request.Request, output *GetExternalDataViewAccessDetailsOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, GetExternalDataViewAccessDetails, has been deprecated")
+ }
op := &request.Operation{
Name: opGetExternalDataViewAccessDetails,
HTTPMethod: "POST",
@@ -1432,6 +1563,8 @@ func (c *FinSpaceData) GetExternalDataViewAccessDetailsRequest(input *GetExterna
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/GetExternalDataViewAccessDetails
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetExternalDataViewAccessDetails(input *GetExternalDataViewAccessDetailsInput) (*GetExternalDataViewAccessDetailsOutput, error) {
req, out := c.GetExternalDataViewAccessDetailsRequest(input)
return out, req.Send()
@@ -1446,6 +1579,8 @@ func (c *FinSpaceData) GetExternalDataViewAccessDetails(input *GetExternalDataVi
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetExternalDataViewAccessDetailsWithContext(ctx aws.Context, input *GetExternalDataViewAccessDetailsInput, opts ...request.Option) (*GetExternalDataViewAccessDetailsOutput, error) {
req, out := c.GetExternalDataViewAccessDetailsRequest(input)
req.SetContext(ctx)
@@ -1478,7 +1613,12 @@ const opGetPermissionGroup = "GetPermissionGroup"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/GetPermissionGroup
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetPermissionGroupRequest(input *GetPermissionGroupInput) (req *request.Request, output *GetPermissionGroupOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, GetPermissionGroup, has been deprecated")
+ }
op := &request.Operation{
Name: opGetPermissionGroup,
HTTPMethod: "GET",
@@ -1524,6 +1664,8 @@ func (c *FinSpaceData) GetPermissionGroupRequest(input *GetPermissionGroupInput)
// One or more resources can't be found.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/GetPermissionGroup
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetPermissionGroup(input *GetPermissionGroupInput) (*GetPermissionGroupOutput, error) {
req, out := c.GetPermissionGroupRequest(input)
return out, req.Send()
@@ -1538,6 +1680,8 @@ func (c *FinSpaceData) GetPermissionGroup(input *GetPermissionGroupInput) (*GetP
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetPermissionGroupWithContext(ctx aws.Context, input *GetPermissionGroupInput, opts ...request.Option) (*GetPermissionGroupOutput, error) {
req, out := c.GetPermissionGroupRequest(input)
req.SetContext(ctx)
@@ -1570,7 +1714,12 @@ const opGetProgrammaticAccessCredentials = "GetProgrammaticAccessCredentials"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/GetProgrammaticAccessCredentials
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetProgrammaticAccessCredentialsRequest(input *GetProgrammaticAccessCredentialsInput) (req *request.Request, output *GetProgrammaticAccessCredentialsOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, GetProgrammaticAccessCredentials, has been deprecated")
+ }
op := &request.Operation{
Name: opGetProgrammaticAccessCredentials,
HTTPMethod: "GET",
@@ -1615,6 +1764,8 @@ func (c *FinSpaceData) GetProgrammaticAccessCredentialsRequest(input *GetProgram
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/GetProgrammaticAccessCredentials
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetProgrammaticAccessCredentials(input *GetProgrammaticAccessCredentialsInput) (*GetProgrammaticAccessCredentialsOutput, error) {
req, out := c.GetProgrammaticAccessCredentialsRequest(input)
return out, req.Send()
@@ -1629,6 +1780,8 @@ func (c *FinSpaceData) GetProgrammaticAccessCredentials(input *GetProgrammaticAc
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetProgrammaticAccessCredentialsWithContext(ctx aws.Context, input *GetProgrammaticAccessCredentialsInput, opts ...request.Option) (*GetProgrammaticAccessCredentialsOutput, error) {
req, out := c.GetProgrammaticAccessCredentialsRequest(input)
req.SetContext(ctx)
@@ -1661,7 +1814,12 @@ const opGetUser = "GetUser"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/GetUser
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetUserRequest(input *GetUserInput) (req *request.Request, output *GetUserOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, GetUser, has been deprecated")
+ }
op := &request.Operation{
Name: opGetUser,
HTTPMethod: "GET",
@@ -1707,6 +1865,8 @@ func (c *FinSpaceData) GetUserRequest(input *GetUserInput) (req *request.Request
// One or more resources can't be found.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/GetUser
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetUser(input *GetUserInput) (*GetUserOutput, error) {
req, out := c.GetUserRequest(input)
return out, req.Send()
@@ -1721,6 +1881,8 @@ func (c *FinSpaceData) GetUser(input *GetUserInput) (*GetUserOutput, error) {
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetUserWithContext(ctx aws.Context, input *GetUserInput, opts ...request.Option) (*GetUserOutput, error) {
req, out := c.GetUserRequest(input)
req.SetContext(ctx)
@@ -1753,7 +1915,12 @@ const opGetWorkingLocation = "GetWorkingLocation"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/GetWorkingLocation
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetWorkingLocationRequest(input *GetWorkingLocationInput) (req *request.Request, output *GetWorkingLocationOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, GetWorkingLocation, has been deprecated")
+ }
op := &request.Operation{
Name: opGetWorkingLocation,
HTTPMethod: "POST",
@@ -1797,6 +1964,8 @@ func (c *FinSpaceData) GetWorkingLocationRequest(input *GetWorkingLocationInput)
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/GetWorkingLocation
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetWorkingLocation(input *GetWorkingLocationInput) (*GetWorkingLocationOutput, error) {
req, out := c.GetWorkingLocationRequest(input)
return out, req.Send()
@@ -1811,6 +1980,8 @@ func (c *FinSpaceData) GetWorkingLocation(input *GetWorkingLocationInput) (*GetW
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) GetWorkingLocationWithContext(ctx aws.Context, input *GetWorkingLocationInput, opts ...request.Option) (*GetWorkingLocationOutput, error) {
req, out := c.GetWorkingLocationRequest(input)
req.SetContext(ctx)
@@ -1843,7 +2014,12 @@ const opListChangesets = "ListChangesets"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/ListChangesets
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListChangesetsRequest(input *ListChangesetsInput) (req *request.Request, output *ListChangesetsOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, ListChangesets, has been deprecated")
+ }
op := &request.Operation{
Name: opListChangesets,
HTTPMethod: "GET",
@@ -1898,6 +2074,8 @@ func (c *FinSpaceData) ListChangesetsRequest(input *ListChangesetsInput) (req *r
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/ListChangesets
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListChangesets(input *ListChangesetsInput) (*ListChangesetsOutput, error) {
req, out := c.ListChangesetsRequest(input)
return out, req.Send()
@@ -1912,6 +2090,8 @@ func (c *FinSpaceData) ListChangesets(input *ListChangesetsInput) (*ListChangese
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListChangesetsWithContext(ctx aws.Context, input *ListChangesetsInput, opts ...request.Option) (*ListChangesetsOutput, error) {
req, out := c.ListChangesetsRequest(input)
req.SetContext(ctx)
@@ -1935,6 +2115,8 @@ func (c *FinSpaceData) ListChangesetsWithContext(ctx aws.Context, input *ListCha
// fmt.Println(page)
// return pageNum <= 3
// })
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListChangesetsPages(input *ListChangesetsInput, fn func(*ListChangesetsOutput, bool) bool) error {
return c.ListChangesetsPagesWithContext(aws.BackgroundContext(), input, fn)
}
@@ -1946,6 +2128,8 @@ func (c *FinSpaceData) ListChangesetsPages(input *ListChangesetsInput, fn func(*
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListChangesetsPagesWithContext(ctx aws.Context, input *ListChangesetsInput, fn func(*ListChangesetsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
@@ -1995,7 +2179,12 @@ const opListDataViews = "ListDataViews"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/ListDataViews
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListDataViewsRequest(input *ListDataViewsInput) (req *request.Request, output *ListDataViewsOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, ListDataViews, has been deprecated")
+ }
op := &request.Operation{
Name: opListDataViews,
HTTPMethod: "GET",
@@ -2047,6 +2236,8 @@ func (c *FinSpaceData) ListDataViewsRequest(input *ListDataViewsInput) (req *req
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/ListDataViews
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListDataViews(input *ListDataViewsInput) (*ListDataViewsOutput, error) {
req, out := c.ListDataViewsRequest(input)
return out, req.Send()
@@ -2061,6 +2252,8 @@ func (c *FinSpaceData) ListDataViews(input *ListDataViewsInput) (*ListDataViewsO
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListDataViewsWithContext(ctx aws.Context, input *ListDataViewsInput, opts ...request.Option) (*ListDataViewsOutput, error) {
req, out := c.ListDataViewsRequest(input)
req.SetContext(ctx)
@@ -2084,6 +2277,8 @@ func (c *FinSpaceData) ListDataViewsWithContext(ctx aws.Context, input *ListData
// fmt.Println(page)
// return pageNum <= 3
// })
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListDataViewsPages(input *ListDataViewsInput, fn func(*ListDataViewsOutput, bool) bool) error {
return c.ListDataViewsPagesWithContext(aws.BackgroundContext(), input, fn)
}
@@ -2095,6 +2290,8 @@ func (c *FinSpaceData) ListDataViewsPages(input *ListDataViewsInput, fn func(*Li
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListDataViewsPagesWithContext(ctx aws.Context, input *ListDataViewsInput, fn func(*ListDataViewsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
@@ -2144,7 +2341,12 @@ const opListDatasets = "ListDatasets"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/ListDatasets
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListDatasetsRequest(input *ListDatasetsInput) (req *request.Request, output *ListDatasetsOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, ListDatasets, has been deprecated")
+ }
op := &request.Operation{
Name: opListDatasets,
HTTPMethod: "GET",
@@ -2196,6 +2398,8 @@ func (c *FinSpaceData) ListDatasetsRequest(input *ListDatasetsInput) (req *reque
// One or more resources can't be found.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/ListDatasets
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListDatasets(input *ListDatasetsInput) (*ListDatasetsOutput, error) {
req, out := c.ListDatasetsRequest(input)
return out, req.Send()
@@ -2210,6 +2414,8 @@ func (c *FinSpaceData) ListDatasets(input *ListDatasetsInput) (*ListDatasetsOutp
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListDatasetsWithContext(ctx aws.Context, input *ListDatasetsInput, opts ...request.Option) (*ListDatasetsOutput, error) {
req, out := c.ListDatasetsRequest(input)
req.SetContext(ctx)
@@ -2233,6 +2439,8 @@ func (c *FinSpaceData) ListDatasetsWithContext(ctx aws.Context, input *ListDatas
// fmt.Println(page)
// return pageNum <= 3
// })
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListDatasetsPages(input *ListDatasetsInput, fn func(*ListDatasetsOutput, bool) bool) error {
return c.ListDatasetsPagesWithContext(aws.BackgroundContext(), input, fn)
}
@@ -2244,6 +2452,8 @@ func (c *FinSpaceData) ListDatasetsPages(input *ListDatasetsInput, fn func(*List
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListDatasetsPagesWithContext(ctx aws.Context, input *ListDatasetsInput, fn func(*ListDatasetsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
@@ -2293,7 +2503,12 @@ const opListPermissionGroups = "ListPermissionGroups"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/ListPermissionGroups
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListPermissionGroupsRequest(input *ListPermissionGroupsInput) (req *request.Request, output *ListPermissionGroupsOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, ListPermissionGroups, has been deprecated")
+ }
op := &request.Operation{
Name: opListPermissionGroups,
HTTPMethod: "GET",
@@ -2342,6 +2557,8 @@ func (c *FinSpaceData) ListPermissionGroupsRequest(input *ListPermissionGroupsIn
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/ListPermissionGroups
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListPermissionGroups(input *ListPermissionGroupsInput) (*ListPermissionGroupsOutput, error) {
req, out := c.ListPermissionGroupsRequest(input)
return out, req.Send()
@@ -2356,6 +2573,8 @@ func (c *FinSpaceData) ListPermissionGroups(input *ListPermissionGroupsInput) (*
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListPermissionGroupsWithContext(ctx aws.Context, input *ListPermissionGroupsInput, opts ...request.Option) (*ListPermissionGroupsOutput, error) {
req, out := c.ListPermissionGroupsRequest(input)
req.SetContext(ctx)
@@ -2379,6 +2598,8 @@ func (c *FinSpaceData) ListPermissionGroupsWithContext(ctx aws.Context, input *L
// fmt.Println(page)
// return pageNum <= 3
// })
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListPermissionGroupsPages(input *ListPermissionGroupsInput, fn func(*ListPermissionGroupsOutput, bool) bool) error {
return c.ListPermissionGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
}
@@ -2390,6 +2611,8 @@ func (c *FinSpaceData) ListPermissionGroupsPages(input *ListPermissionGroupsInpu
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListPermissionGroupsPagesWithContext(ctx aws.Context, input *ListPermissionGroupsInput, fn func(*ListPermissionGroupsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
@@ -2439,7 +2662,12 @@ const opListPermissionGroupsByUser = "ListPermissionGroupsByUser"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/ListPermissionGroupsByUser
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListPermissionGroupsByUserRequest(input *ListPermissionGroupsByUserInput) (req *request.Request, output *ListPermissionGroupsByUserOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, ListPermissionGroupsByUser, has been deprecated")
+ }
op := &request.Operation{
Name: opListPermissionGroupsByUser,
HTTPMethod: "GET",
@@ -2485,6 +2713,8 @@ func (c *FinSpaceData) ListPermissionGroupsByUserRequest(input *ListPermissionGr
// One or more resources can't be found.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/ListPermissionGroupsByUser
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListPermissionGroupsByUser(input *ListPermissionGroupsByUserInput) (*ListPermissionGroupsByUserOutput, error) {
req, out := c.ListPermissionGroupsByUserRequest(input)
return out, req.Send()
@@ -2499,6 +2729,8 @@ func (c *FinSpaceData) ListPermissionGroupsByUser(input *ListPermissionGroupsByU
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListPermissionGroupsByUserWithContext(ctx aws.Context, input *ListPermissionGroupsByUserInput, opts ...request.Option) (*ListPermissionGroupsByUserOutput, error) {
req, out := c.ListPermissionGroupsByUserRequest(input)
req.SetContext(ctx)
@@ -2531,7 +2763,12 @@ const opListUsers = "ListUsers"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/ListUsers
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, ListUsers, has been deprecated")
+ }
op := &request.Operation{
Name: opListUsers,
HTTPMethod: "GET",
@@ -2580,6 +2817,8 @@ func (c *FinSpaceData) ListUsersRequest(input *ListUsersInput) (req *request.Req
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/ListUsers
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) {
req, out := c.ListUsersRequest(input)
return out, req.Send()
@@ -2594,6 +2833,8 @@ func (c *FinSpaceData) ListUsers(input *ListUsersInput) (*ListUsersOutput, error
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersOutput, error) {
req, out := c.ListUsersRequest(input)
req.SetContext(ctx)
@@ -2617,6 +2858,8 @@ func (c *FinSpaceData) ListUsersWithContext(ctx aws.Context, input *ListUsersInp
// fmt.Println(page)
// return pageNum <= 3
// })
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListUsersPages(input *ListUsersInput, fn func(*ListUsersOutput, bool) bool) error {
return c.ListUsersPagesWithContext(aws.BackgroundContext(), input, fn)
}
@@ -2628,6 +2871,8 @@ func (c *FinSpaceData) ListUsersPages(input *ListUsersInput, fn func(*ListUsersO
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListUsersPagesWithContext(ctx aws.Context, input *ListUsersInput, fn func(*ListUsersOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
@@ -2677,7 +2922,12 @@ const opListUsersByPermissionGroup = "ListUsersByPermissionGroup"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/ListUsersByPermissionGroup
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListUsersByPermissionGroupRequest(input *ListUsersByPermissionGroupInput) (req *request.Request, output *ListUsersByPermissionGroupOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, ListUsersByPermissionGroup, has been deprecated")
+ }
op := &request.Operation{
Name: opListUsersByPermissionGroup,
HTTPMethod: "GET",
@@ -2723,6 +2973,8 @@ func (c *FinSpaceData) ListUsersByPermissionGroupRequest(input *ListUsersByPermi
// One or more resources can't be found.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/ListUsersByPermissionGroup
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListUsersByPermissionGroup(input *ListUsersByPermissionGroupInput) (*ListUsersByPermissionGroupOutput, error) {
req, out := c.ListUsersByPermissionGroupRequest(input)
return out, req.Send()
@@ -2737,6 +2989,8 @@ func (c *FinSpaceData) ListUsersByPermissionGroup(input *ListUsersByPermissionGr
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ListUsersByPermissionGroupWithContext(ctx aws.Context, input *ListUsersByPermissionGroupInput, opts ...request.Option) (*ListUsersByPermissionGroupOutput, error) {
req, out := c.ListUsersByPermissionGroupRequest(input)
req.SetContext(ctx)
@@ -2769,7 +3023,12 @@ const opResetUserPassword = "ResetUserPassword"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/ResetUserPassword
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ResetUserPasswordRequest(input *ResetUserPasswordInput) (req *request.Request, output *ResetUserPasswordOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, ResetUserPassword, has been deprecated")
+ }
op := &request.Operation{
Name: opResetUserPassword,
HTTPMethod: "POST",
@@ -2820,6 +3079,8 @@ func (c *FinSpaceData) ResetUserPasswordRequest(input *ResetUserPasswordInput) (
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/ResetUserPassword
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ResetUserPassword(input *ResetUserPasswordInput) (*ResetUserPasswordOutput, error) {
req, out := c.ResetUserPasswordRequest(input)
return out, req.Send()
@@ -2834,6 +3095,8 @@ func (c *FinSpaceData) ResetUserPassword(input *ResetUserPasswordInput) (*ResetU
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) ResetUserPasswordWithContext(ctx aws.Context, input *ResetUserPasswordInput, opts ...request.Option) (*ResetUserPasswordOutput, error) {
req, out := c.ResetUserPasswordRequest(input)
req.SetContext(ctx)
@@ -2866,7 +3129,12 @@ const opUpdateChangeset = "UpdateChangeset"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/UpdateChangeset
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) UpdateChangesetRequest(input *UpdateChangesetInput) (req *request.Request, output *UpdateChangesetOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, UpdateChangeset, has been deprecated")
+ }
op := &request.Operation{
Name: opUpdateChangeset,
HTTPMethod: "PUT",
@@ -2915,6 +3183,8 @@ func (c *FinSpaceData) UpdateChangesetRequest(input *UpdateChangesetInput) (req
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/UpdateChangeset
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) UpdateChangeset(input *UpdateChangesetInput) (*UpdateChangesetOutput, error) {
req, out := c.UpdateChangesetRequest(input)
return out, req.Send()
@@ -2929,6 +3199,8 @@ func (c *FinSpaceData) UpdateChangeset(input *UpdateChangesetInput) (*UpdateChan
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) UpdateChangesetWithContext(ctx aws.Context, input *UpdateChangesetInput, opts ...request.Option) (*UpdateChangesetOutput, error) {
req, out := c.UpdateChangesetRequest(input)
req.SetContext(ctx)
@@ -2961,7 +3233,12 @@ const opUpdateDataset = "UpdateDataset"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/UpdateDataset
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) UpdateDatasetRequest(input *UpdateDatasetInput) (req *request.Request, output *UpdateDatasetOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, UpdateDataset, has been deprecated")
+ }
op := &request.Operation{
Name: opUpdateDataset,
HTTPMethod: "PUT",
@@ -3010,6 +3287,8 @@ func (c *FinSpaceData) UpdateDatasetRequest(input *UpdateDatasetInput) (req *req
// One or more resources can't be found.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/UpdateDataset
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) UpdateDataset(input *UpdateDatasetInput) (*UpdateDatasetOutput, error) {
req, out := c.UpdateDatasetRequest(input)
return out, req.Send()
@@ -3024,6 +3303,8 @@ func (c *FinSpaceData) UpdateDataset(input *UpdateDatasetInput) (*UpdateDatasetO
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) UpdateDatasetWithContext(ctx aws.Context, input *UpdateDatasetInput, opts ...request.Option) (*UpdateDatasetOutput, error) {
req, out := c.UpdateDatasetRequest(input)
req.SetContext(ctx)
@@ -3056,7 +3337,12 @@ const opUpdatePermissionGroup = "UpdatePermissionGroup"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/UpdatePermissionGroup
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) UpdatePermissionGroupRequest(input *UpdatePermissionGroupInput) (req *request.Request, output *UpdatePermissionGroupOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, UpdatePermissionGroup, has been deprecated")
+ }
op := &request.Operation{
Name: opUpdatePermissionGroup,
HTTPMethod: "PUT",
@@ -3105,6 +3391,8 @@ func (c *FinSpaceData) UpdatePermissionGroupRequest(input *UpdatePermissionGroup
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/UpdatePermissionGroup
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) UpdatePermissionGroup(input *UpdatePermissionGroupInput) (*UpdatePermissionGroupOutput, error) {
req, out := c.UpdatePermissionGroupRequest(input)
return out, req.Send()
@@ -3119,6 +3407,8 @@ func (c *FinSpaceData) UpdatePermissionGroup(input *UpdatePermissionGroupInput)
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) UpdatePermissionGroupWithContext(ctx aws.Context, input *UpdatePermissionGroupInput, opts ...request.Option) (*UpdatePermissionGroupOutput, error) {
req, out := c.UpdatePermissionGroupRequest(input)
req.SetContext(ctx)
@@ -3151,7 +3441,12 @@ const opUpdateUser = "UpdateUser"
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/UpdateUser
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, output *UpdateUserOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, UpdateUser, has been deprecated")
+ }
op := &request.Operation{
Name: opUpdateUser,
HTTPMethod: "PUT",
@@ -3201,6 +3496,8 @@ func (c *FinSpaceData) UpdateUserRequest(input *UpdateUserInput) (req *request.R
// The request conflicts with an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2020-07-13/UpdateUser
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) UpdateUser(input *UpdateUserInput) (*UpdateUserOutput, error) {
req, out := c.UpdateUserRequest(input)
return out, req.Send()
@@ -3215,6 +3512,8 @@ func (c *FinSpaceData) UpdateUser(input *UpdateUserInput) (*UpdateUserOutput, er
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
+//
+// Deprecated: This method will be discontinued.
func (c *FinSpaceData) UpdateUserWithContext(ctx aws.Context, input *UpdateUserInput, opts ...request.Option) (*UpdateUserOutput, error) {
req, out := c.UpdateUserRequest(input)
req.SetContext(ctx)
diff --git a/service/lambda/api.go b/service/lambda/api.go
index 79c1d25b94e..d77b6c22015 100644
--- a/service/lambda/api.go
+++ b/service/lambda/api.go
@@ -23017,6 +23017,9 @@ const (
// RuntimePython312 is a Runtime enum value
RuntimePython312 = "python3.12"
+
+ // RuntimeJava21 is a Runtime enum value
+ RuntimeJava21 = "java21"
)
// Runtime_Values returns all elements of the Runtime enum
@@ -23057,6 +23060,7 @@ func Runtime_Values() []string {
RuntimeNodejs20X,
RuntimeProvidedAl2023,
RuntimePython312,
+ RuntimeJava21,
}
}
diff --git a/service/mwaa/api.go b/service/mwaa/api.go
index ae6ad925579..7dab59908d1 100644
--- a/service/mwaa/api.go
+++ b/service/mwaa/api.go
@@ -1210,7 +1210,7 @@ type CreateEnvironmentInput struct {
// it defaults to the latest version. For more information, see Apache Airflow
// versions on Amazon Managed Workflows for Apache Airflow (MWAA) (https://docs.aws.amazon.com/mwaa/latest/userguide/airflow-versions.html).
//
- // Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, 2.6.3, 2.7.2.
+ // Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, 2.6.3, 2.7.2
AirflowVersion *string `min:"1" type:"string"`
// The relative path to the DAGs folder on your Amazon S3 bucket. For example,
@@ -1219,6 +1219,17 @@ type CreateEnvironmentInput struct {
// DagS3Path is a required field
DagS3Path *string `min:"1" type:"string" required:"true"`
+ // Defines whether the VPC endpoints configured for the environment are created,
+ // and managed, by the customer or by Amazon MWAA. If set to SERVICE, Amazon
+ // MWAA will create and manage the required VPC endpoints in your VPC. If set
+ // to CUSTOMER, you must create, and manage, the VPC endpoints for your VPC.
+ // If you choose to create an environment in a shared VPC, you must set this
+ // value to CUSTOMER. In a shared VPC deployment, the environment will remain
+ // in PENDING status until you create the VPC endpoints. If you do not take
+ // action to create the endpoints within 72 hours, the status will change to
+ // CREATE_FAILED. You can delete the failed environment and create a new one.
+ EndpointManagement *string `type:"string" enum:"EndpointManagement"`
+
// The environment class type. Valid values: mw1.small, mw1.medium, mw1.large.
// For more information, see Amazon MWAA environment class (https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html).
EnvironmentClass *string `min:"1" type:"string"`
@@ -1329,8 +1340,8 @@ type CreateEnvironmentInput struct {
// resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html).
Tags map[string]*string `min:"1" type:"map"`
- // The Apache Airflow Web server access mode. For more information, see Apache
- // Airflow access modes (https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html).
+ // Defines the access mode for the Apache Airflow web server. For more information,
+ // see Apache Airflow access modes (https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html).
WebserverAccessMode *string `type:"string" enum:"WebserverAccessMode"`
// The day and time of the week in Coordinated Universal Time (UTC) 24-hour
@@ -1462,6 +1473,12 @@ func (s *CreateEnvironmentInput) SetDagS3Path(v string) *CreateEnvironmentInput
return s
}
+// SetEndpointManagement sets the EndpointManagement field's value.
+func (s *CreateEnvironmentInput) SetEndpointManagement(v string) *CreateEnvironmentInput {
+ s.EndpointManagement = &v
+ return s
+}
+
// SetEnvironmentClass sets the EnvironmentClass field's value.
func (s *CreateEnvironmentInput) SetEnvironmentClass(v string) *CreateEnvironmentInput {
s.EnvironmentClass = &v
@@ -1857,6 +1874,12 @@ type Environment struct {
// The Amazon Resource Name (ARN) of the Amazon MWAA environment.
Arn *string `min:"1" type:"string"`
+ // The queue ARN for the environment's Celery Executor (https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/executor/celery.html).
+ // Amazon MWAA uses a Celery Executor to distribute tasks across multiple workers.
+ // When you create an environment in a shared VPC, you must provide access to
+ // the Celery Executor queue from your VPC.
+ CeleryExecutorQueue *string `min:"1" type:"string"`
+
// The day and time the environment was created.
CreatedAt *time.Time `type:"timestamp"`
@@ -1865,6 +1888,15 @@ type Environment struct {
// DAGs (https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html).
DagS3Path *string `min:"1" type:"string"`
+ // The VPC endpoint for the environment's Amazon RDS database.
+ DatabaseVpcEndpointService *string `min:"1" type:"string"`
+
+ // Defines whether the VPC endpoints configured for the environment are created,
+ // and managed, by the customer or by Amazon MWAA. If set to SERVICE, Amazon
+ // MWAA will create and manage the required VPC endpoints in your VPC. If set
+ // to CUSTOMER, you must create, and manage, the VPC endpoints in your VPC.
+ EndpointManagement *string `type:"string" enum:"EndpointManagement"`
+
// The environment class type. Valid values: mw1.small, mw1.medium, mw1.large.
// For more information, see Amazon MWAA environment class (https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html).
EnvironmentClass *string `min:"1" type:"string"`
@@ -1967,7 +1999,9 @@ type Environment struct {
// For more information, see Using a startup script (https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html).
StartupScriptS3Path *string `type:"string"`
- // The status of the Amazon MWAA environment. Valid values:
+ // The status of the Amazon MWAA environment.
+ //
+ // Valid values:
//
// * CREATING - Indicates the request to create the environment is in progress.
//
@@ -1984,6 +2018,10 @@ type Environment struct {
// * AVAILABLE - Indicates the request was successful and the environment
// is ready to use.
//
+ // * PENDING - Indicates the request was successful, but the process to create
+ // the environment is paused until you create the required VPC endpoints
+ // in your VPC. After you create the VPC endpoints, the process resumes.
+ //
// * UPDATING - Indicates the request to update the environment is in progress.
//
// * ROLLING_BACK - Indicates the request to update environment details,
@@ -2011,7 +2049,7 @@ type Environment struct {
// (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html).
Tags map[string]*string `min:"1" type:"map"`
- // The Apache Airflow Web server access mode. For more information, see Apache
+ // The Apache Airflow web server access mode. For more information, see Apache
// Airflow access modes (https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html).
WebserverAccessMode *string `type:"string" enum:"WebserverAccessMode"`
@@ -2019,6 +2057,9 @@ type Environment struct {
// For more information, see Accessing the Apache Airflow UI (https://docs.aws.amazon.com/mwaa/latest/userguide/access-airflow-ui.html).
WebserverUrl *string `min:"1" type:"string"`
+ // The VPC endpoint for the environment's web server.
+ WebserverVpcEndpointService *string `min:"1" type:"string"`
+
// The day and time of the week in Coordinated Universal Time (UTC) 24-hour
// standard time that weekly maintenance updates are scheduled. For example:
// TUE:03:30.
@@ -2061,6 +2102,12 @@ func (s *Environment) SetArn(v string) *Environment {
return s
}
+// SetCeleryExecutorQueue sets the CeleryExecutorQueue field's value.
+func (s *Environment) SetCeleryExecutorQueue(v string) *Environment {
+ s.CeleryExecutorQueue = &v
+ return s
+}
+
// SetCreatedAt sets the CreatedAt field's value.
func (s *Environment) SetCreatedAt(v time.Time) *Environment {
s.CreatedAt = &v
@@ -2073,6 +2120,18 @@ func (s *Environment) SetDagS3Path(v string) *Environment {
return s
}
+// SetDatabaseVpcEndpointService sets the DatabaseVpcEndpointService field's value.
+func (s *Environment) SetDatabaseVpcEndpointService(v string) *Environment {
+ s.DatabaseVpcEndpointService = &v
+ return s
+}
+
+// SetEndpointManagement sets the EndpointManagement field's value.
+func (s *Environment) SetEndpointManagement(v string) *Environment {
+ s.EndpointManagement = &v
+ return s
+}
+
// SetEnvironmentClass sets the EnvironmentClass field's value.
func (s *Environment) SetEnvironmentClass(v string) *Environment {
s.EnvironmentClass = &v
@@ -2205,6 +2264,12 @@ func (s *Environment) SetWebserverUrl(v string) *Environment {
return s
}
+// SetWebserverVpcEndpointService sets the WebserverVpcEndpointService field's value.
+func (s *Environment) SetWebserverVpcEndpointService(v string) *Environment {
+ s.WebserverVpcEndpointService = &v
+ return s
+}
+
// SetWeeklyMaintenanceWindowStart sets the WeeklyMaintenanceWindowStart field's value.
func (s *Environment) SetWeeklyMaintenanceWindowStart(v string) *Environment {
s.WeeklyMaintenanceWindowStart = &v
@@ -3977,6 +4042,22 @@ func (s *ValidationException) RequestID() string {
return s.RespMetadata.RequestID
}
+const (
+ // EndpointManagementCustomer is a EndpointManagement enum value
+ EndpointManagementCustomer = "CUSTOMER"
+
+ // EndpointManagementService is a EndpointManagement enum value
+ EndpointManagementService = "SERVICE"
+)
+
+// EndpointManagement_Values returns all elements of the EndpointManagement enum
+func EndpointManagement_Values() []string {
+ return []string{
+ EndpointManagementCustomer,
+ EndpointManagementService,
+ }
+}
+
const (
// EnvironmentStatusCreating is a EnvironmentStatus enum value
EnvironmentStatusCreating = "CREATING"
@@ -4007,6 +4088,9 @@ const (
// EnvironmentStatusCreatingSnapshot is a EnvironmentStatus enum value
EnvironmentStatusCreatingSnapshot = "CREATING_SNAPSHOT"
+
+ // EnvironmentStatusPending is a EnvironmentStatus enum value
+ EnvironmentStatusPending = "PENDING"
)
// EnvironmentStatus_Values returns all elements of the EnvironmentStatus enum
@@ -4022,6 +4106,7 @@ func EnvironmentStatus_Values() []string {
EnvironmentStatusUpdateFailed,
EnvironmentStatusRollingBack,
EnvironmentStatusCreatingSnapshot,
+ EnvironmentStatusPending,
}
}
diff --git a/service/rds/api.go b/service/rds/api.go
index 0d46d2bfba6..f89dac88f8e 100644
--- a/service/rds/api.go
+++ b/service/rds/api.go
@@ -46988,7 +46988,9 @@ type ModifyDBSnapshotInput struct {
//
// MySQL
//
- // * 5.5.46 (supported for 5.1 DB snapshots)
+ // For the list of engine versions that are available for upgrading a DB snapshot,
+ // see Upgrading a MySQL DB snapshot engine version (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/mysql-upgrade-snapshot.html)
+ // in the Amazon RDS User Guide.
//
// Oracle
//
@@ -47005,7 +47007,8 @@ type ModifyDBSnapshotInput struct {
// PostgreSQL
//
// For the list of engine versions that are available for upgrading a DB snapshot,
- // see Upgrading the PostgreSQL DB Engine for Amazon RDS (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.PostgreSQL.html#USER_UpgradeDBInstance.PostgreSQL.MajorVersion).
+ // see Upgrading a PostgreSQL DB snapshot engine version (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBSnapshot.PostgreSQL.html)
+ // in the Amazon RDS User Guide.
EngineVersion *string `type:"string"`
// The option group to identify with the upgraded DB snapshot.
diff --git a/service/redshift/api.go b/service/redshift/api.go
index f28918386e0..fa211308d21 100644
--- a/service/redshift/api.go
+++ b/service/redshift/api.go
@@ -3435,6 +3435,9 @@ func (c *Redshift) DeleteCustomDomainAssociationRequest(input *DeleteCustomDomai
// - ErrCodeCustomCnameAssociationFault "CustomCnameAssociationFault"
// An error occurred when an attempt was made to change the custom domain association.
//
+// - ErrCodeCustomDomainAssociationNotFoundFault "CustomDomainAssociationNotFoundFault"
+// An error occurred. The custom domain name couldn't be found.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteCustomDomainAssociation
func (c *Redshift) DeleteCustomDomainAssociation(input *DeleteCustomDomainAssociationInput) (*DeleteCustomDomainAssociationOutput, error) {
req, out := c.DeleteCustomDomainAssociationRequest(input)
@@ -11774,6 +11777,9 @@ func (c *Redshift) ModifyCustomDomainAssociationRequest(input *ModifyCustomDomai
// - ErrCodeCustomCnameAssociationFault "CustomCnameAssociationFault"
// An error occurred when an attempt was made to change the custom domain association.
//
+// - ErrCodeCustomDomainAssociationNotFoundFault "CustomDomainAssociationNotFoundFault"
+// An error occurred. The custom domain name couldn't be found.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyCustomDomainAssociation
func (c *Redshift) ModifyCustomDomainAssociation(input *ModifyCustomDomainAssociationInput) (*ModifyCustomDomainAssociationOutput, error) {
req, out := c.ModifyCustomDomainAssociationRequest(input)
@@ -21041,6 +21047,11 @@ type DeleteCustomDomainAssociationInput struct {
//
// ClusterIdentifier is a required field
ClusterIdentifier *string `type:"string" required:"true"`
+
+ // The custom domain name for the custom domain association.
+ //
+ // CustomDomainName is a required field
+ CustomDomainName *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -21067,6 +21078,12 @@ func (s *DeleteCustomDomainAssociationInput) Validate() error {
if s.ClusterIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
}
+ if s.CustomDomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("CustomDomainName"))
+ }
+ if s.CustomDomainName != nil && len(*s.CustomDomainName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("CustomDomainName", 1))
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -21080,6 +21097,12 @@ func (s *DeleteCustomDomainAssociationInput) SetClusterIdentifier(v string) *Del
return s
}
+// SetCustomDomainName sets the CustomDomainName field's value.
+func (s *DeleteCustomDomainAssociationInput) SetCustomDomainName(v string) *DeleteCustomDomainAssociationInput {
+ s.CustomDomainName = &v
+ return s
+}
+
type DeleteCustomDomainAssociationOutput struct {
_ struct{} `type:"structure"`
}
@@ -30774,10 +30797,14 @@ type ModifyCustomDomainAssociationInput struct {
// The certificate Amazon Resource Name (ARN) for the changed custom domain
// association.
- CustomDomainCertificateArn *string `min:"20" type:"string"`
+ //
+ // CustomDomainCertificateArn is a required field
+ CustomDomainCertificateArn *string `min:"20" type:"string" required:"true"`
// The custom domain name for a changed custom domain association.
- CustomDomainName *string `min:"1" type:"string"`
+ //
+ // CustomDomainName is a required field
+ CustomDomainName *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -30804,9 +30831,15 @@ func (s *ModifyCustomDomainAssociationInput) Validate() error {
if s.ClusterIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
}
+ if s.CustomDomainCertificateArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("CustomDomainCertificateArn"))
+ }
if s.CustomDomainCertificateArn != nil && len(*s.CustomDomainCertificateArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("CustomDomainCertificateArn", 20))
}
+ if s.CustomDomainName == nil {
+ invalidParams.Add(request.NewErrParamRequired("CustomDomainName"))
+ }
if s.CustomDomainName != nil && len(*s.CustomDomainName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("CustomDomainName", 1))
}
diff --git a/service/s3control/api.go b/service/s3control/api.go
index 195f14306f9..f9618587440 100644
--- a/service/s3control/api.go
+++ b/service/s3control/api.go
@@ -530,6 +530,97 @@ func (c *S3Control) CreateMultiRegionAccessPointWithContext(ctx aws.Context, inp
return out, req.Send()
}
+const opCreateStorageLensGroup = "CreateStorageLensGroup"
+
+// CreateStorageLensGroupRequest generates a "aws/request.Request" representing the
+// client's request for the CreateStorageLensGroup operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CreateStorageLensGroup for more information on using the CreateStorageLensGroup
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the CreateStorageLensGroupRequest method.
+// req, resp := client.CreateStorageLensGroupRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/CreateStorageLensGroup
+func (c *S3Control) CreateStorageLensGroupRequest(input *CreateStorageLensGroupInput) (req *request.Request, output *CreateStorageLensGroupOutput) {
+ op := &request.Operation{
+ Name: opCreateStorageLensGroup,
+ HTTPMethod: "POST",
+ HTTPPath: "/v20180820/storagelensgroup",
+ }
+
+ if input == nil {
+ input = &CreateStorageLensGroupInput{}
+ }
+
+ output = &CreateStorageLensGroupOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("{AccountId}.", input.hostLabels))
+ req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
+ return
+}
+
+// CreateStorageLensGroup API operation for AWS S3 Control.
+//
+// Creates a new S3 Storage Lens group and associates it with the specified
+// Amazon Web Services account ID. An S3 Storage Lens group is a custom grouping
+// of objects based on prefix, suffix, object tags, object size, object age,
+// or a combination of these filters. For each Storage Lens group that you’ve
+// created, you can also optionally add Amazon Web Services resource tags. For
+// more information about S3 Storage Lens groups, see Working with S3 Storage
+// Lens groups (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-lens-groups-overview.html).
+//
+// To use this operation, you must have the permission to perform the s3:CreateStorageLensGroup
+// action. If you’re trying to create a Storage Lens group with Amazon Web
+// Services resource tags, you must also have permission to perform the s3:TagResource
+// action. For more information about the required Storage Lens Groups permissions,
+// see Setting account permissions to use S3 Storage Lens groups (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions).
+//
+// For information about Storage Lens groups errors, see List of Amazon S3 Storage
+// Lens error codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3LensErrorCodeList).
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS S3 Control's
+// API operation CreateStorageLensGroup for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/CreateStorageLensGroup
+func (c *S3Control) CreateStorageLensGroup(input *CreateStorageLensGroupInput) (*CreateStorageLensGroupOutput, error) {
+ req, out := c.CreateStorageLensGroupRequest(input)
+ return out, req.Send()
+}
+
+// CreateStorageLensGroupWithContext is the same as CreateStorageLensGroup with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CreateStorageLensGroup for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *S3Control) CreateStorageLensGroupWithContext(ctx aws.Context, input *CreateStorageLensGroupInput, opts ...request.Option) (*CreateStorageLensGroupOutput, error) {
+ req, out := c.CreateStorageLensGroupRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDeleteAccessPoint = "DeleteAccessPoint"
// DeleteAccessPointRequest generates a "aws/request.Request" representing the
@@ -1049,7 +1140,7 @@ func (c *S3Control) DeleteBucketLifecycleConfigurationRequest(input *DeleteBucke
// see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html)
// in Amazon S3 User Guide.
//
-// To use this action, you must have permission to perform the s3-outposts:DeleteLifecycleConfiguration
+// To use this operation, you must have permission to perform the s3-outposts:PutLifecycleConfiguration
// action. By default, the bucket owner has this permission and the Outposts
// bucket owner can grant this permission to others.
//
@@ -1881,6 +1972,89 @@ func (c *S3Control) DeleteStorageLensConfigurationTaggingWithContext(ctx aws.Con
return out, req.Send()
}
+const opDeleteStorageLensGroup = "DeleteStorageLensGroup"
+
+// DeleteStorageLensGroupRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteStorageLensGroup operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteStorageLensGroup for more information on using the DeleteStorageLensGroup
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the DeleteStorageLensGroupRequest method.
+// req, resp := client.DeleteStorageLensGroupRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/DeleteStorageLensGroup
+func (c *S3Control) DeleteStorageLensGroupRequest(input *DeleteStorageLensGroupInput) (req *request.Request, output *DeleteStorageLensGroupOutput) {
+ op := &request.Operation{
+ Name: opDeleteStorageLensGroup,
+ HTTPMethod: "DELETE",
+ HTTPPath: "/v20180820/storagelensgroup/{name}",
+ }
+
+ if input == nil {
+ input = &DeleteStorageLensGroupInput{}
+ }
+
+ output = &DeleteStorageLensGroupOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("{AccountId}.", input.hostLabels))
+ req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
+ return
+}
+
+// DeleteStorageLensGroup API operation for AWS S3 Control.
+//
+// Deletes an existing S3 Storage Lens group.
+//
+// To use this operation, you must have the permission to perform the s3:DeleteStorageLensGroup
+// action. For more information about the required Storage Lens Groups permissions,
+// see Setting account permissions to use S3 Storage Lens groups (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions).
+//
+// For information about Storage Lens groups errors, see List of Amazon S3 Storage
+// Lens error codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3LensErrorCodeList).
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS S3 Control's
+// API operation DeleteStorageLensGroup for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/DeleteStorageLensGroup
+func (c *S3Control) DeleteStorageLensGroup(input *DeleteStorageLensGroupInput) (*DeleteStorageLensGroupOutput, error) {
+ req, out := c.DeleteStorageLensGroupRequest(input)
+ return out, req.Send()
+}
+
+// DeleteStorageLensGroupWithContext is the same as DeleteStorageLensGroup with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteStorageLensGroup for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *S3Control) DeleteStorageLensGroupWithContext(ctx aws.Context, input *DeleteStorageLensGroupInput, opts ...request.Option) (*DeleteStorageLensGroupOutput, error) {
+ req, out := c.DeleteStorageLensGroupRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDescribeJob = "DescribeJob"
// DescribeJobRequest generates a "aws/request.Request" representing the
@@ -4046,6 +4220,88 @@ func (c *S3Control) GetStorageLensConfigurationTaggingWithContext(ctx aws.Contex
return out, req.Send()
}
+const opGetStorageLensGroup = "GetStorageLensGroup"
+
+// GetStorageLensGroupRequest generates a "aws/request.Request" representing the
+// client's request for the GetStorageLensGroup operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetStorageLensGroup for more information on using the GetStorageLensGroup
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the GetStorageLensGroupRequest method.
+// req, resp := client.GetStorageLensGroupRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/GetStorageLensGroup
+func (c *S3Control) GetStorageLensGroupRequest(input *GetStorageLensGroupInput) (req *request.Request, output *GetStorageLensGroupOutput) {
+ op := &request.Operation{
+ Name: opGetStorageLensGroup,
+ HTTPMethod: "GET",
+ HTTPPath: "/v20180820/storagelensgroup/{name}",
+ }
+
+ if input == nil {
+ input = &GetStorageLensGroupInput{}
+ }
+
+ output = &GetStorageLensGroupOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("{AccountId}.", input.hostLabels))
+ req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
+ return
+}
+
+// GetStorageLensGroup API operation for AWS S3 Control.
+//
+// Retrieves the Storage Lens group configuration details.
+//
+// To use this operation, you must have the permission to perform the s3:GetStorageLensGroup
+// action. For more information about the required Storage Lens Groups permissions,
+// see Setting account permissions to use S3 Storage Lens groups (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions).
+//
+// For information about Storage Lens groups errors, see List of Amazon S3 Storage
+// Lens error codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3LensErrorCodeList).
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS S3 Control's
+// API operation GetStorageLensGroup for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/GetStorageLensGroup
+func (c *S3Control) GetStorageLensGroup(input *GetStorageLensGroupInput) (*GetStorageLensGroupOutput, error) {
+ req, out := c.GetStorageLensGroupRequest(input)
+ return out, req.Send()
+}
+
+// GetStorageLensGroupWithContext is the same as GetStorageLensGroup with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetStorageLensGroup for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *S3Control) GetStorageLensGroupWithContext(ctx aws.Context, input *GetStorageLensGroupInput, opts ...request.Option) (*GetStorageLensGroupOutput, error) {
+ req, out := c.GetStorageLensGroupRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opListAccessPoints = "ListAccessPoints"
// ListAccessPointsRequest generates a "aws/request.Request" representing the
@@ -4933,127 +5189,351 @@ func (c *S3Control) ListStorageLensConfigurationsPagesWithContext(ctx aws.Contex
return p.Err()
}
-const opPutAccessPointConfigurationForObjectLambda = "PutAccessPointConfigurationForObjectLambda"
+const opListStorageLensGroups = "ListStorageLensGroups"
-// PutAccessPointConfigurationForObjectLambdaRequest generates a "aws/request.Request" representing the
-// client's request for the PutAccessPointConfigurationForObjectLambda operation. The "output" return
+// ListStorageLensGroupsRequest generates a "aws/request.Request" representing the
+// client's request for the ListStorageLensGroups operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See PutAccessPointConfigurationForObjectLambda for more information on using the PutAccessPointConfigurationForObjectLambda
+// See ListStorageLensGroups for more information on using the ListStorageLensGroups
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the PutAccessPointConfigurationForObjectLambdaRequest method.
-// req, resp := client.PutAccessPointConfigurationForObjectLambdaRequest(params)
+// // Example sending a request using the ListStorageLensGroupsRequest method.
+// req, resp := client.ListStorageLensGroupsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/PutAccessPointConfigurationForObjectLambda
-func (c *S3Control) PutAccessPointConfigurationForObjectLambdaRequest(input *PutAccessPointConfigurationForObjectLambdaInput) (req *request.Request, output *PutAccessPointConfigurationForObjectLambdaOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/ListStorageLensGroups
+func (c *S3Control) ListStorageLensGroupsRequest(input *ListStorageLensGroupsInput) (req *request.Request, output *ListStorageLensGroupsOutput) {
op := &request.Operation{
- Name: opPutAccessPointConfigurationForObjectLambda,
- HTTPMethod: "PUT",
- HTTPPath: "/v20180820/accesspointforobjectlambda/{name}/configuration",
+ Name: opListStorageLensGroups,
+ HTTPMethod: "GET",
+ HTTPPath: "/v20180820/storagelensgroup",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "",
+ TruncationToken: "",
+ },
}
if input == nil {
- input = &PutAccessPointConfigurationForObjectLambdaInput{}
+ input = &ListStorageLensGroupsInput{}
}
- output = &PutAccessPointConfigurationForObjectLambdaOutput{}
+ output = &ListStorageLensGroupsOutput{}
req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("{AccountId}.", input.hostLabels))
req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
return
}
-// PutAccessPointConfigurationForObjectLambda API operation for AWS S3 Control.
+// ListStorageLensGroups API operation for AWS S3 Control.
//
-// Replaces configuration for an Object Lambda Access Point.
+// Lists all the Storage Lens groups in the specified home Region.
//
-// The following actions are related to PutAccessPointConfigurationForObjectLambda:
+// To use this operation, you must have the permission to perform the s3:ListStorageLensGroups
+// action. For more information about the required Storage Lens Groups permissions,
+// see Setting account permissions to use S3 Storage Lens groups (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions).
//
-// - GetAccessPointConfigurationForObjectLambda (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointConfigurationForObjectLambda.html)
+// For information about Storage Lens groups errors, see List of Amazon S3 Storage
+// Lens error codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3LensErrorCodeList).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS S3 Control's
-// API operation PutAccessPointConfigurationForObjectLambda for usage and error information.
-// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/PutAccessPointConfigurationForObjectLambda
-func (c *S3Control) PutAccessPointConfigurationForObjectLambda(input *PutAccessPointConfigurationForObjectLambdaInput) (*PutAccessPointConfigurationForObjectLambdaOutput, error) {
- req, out := c.PutAccessPointConfigurationForObjectLambdaRequest(input)
+// API operation ListStorageLensGroups for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/ListStorageLensGroups
+func (c *S3Control) ListStorageLensGroups(input *ListStorageLensGroupsInput) (*ListStorageLensGroupsOutput, error) {
+ req, out := c.ListStorageLensGroupsRequest(input)
return out, req.Send()
}
-// PutAccessPointConfigurationForObjectLambdaWithContext is the same as PutAccessPointConfigurationForObjectLambda with the addition of
+// ListStorageLensGroupsWithContext is the same as ListStorageLensGroups with the addition of
// the ability to pass a context and additional request options.
//
-// See PutAccessPointConfigurationForObjectLambda for details on how to use this API operation.
+// See ListStorageLensGroups for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *S3Control) PutAccessPointConfigurationForObjectLambdaWithContext(ctx aws.Context, input *PutAccessPointConfigurationForObjectLambdaInput, opts ...request.Option) (*PutAccessPointConfigurationForObjectLambdaOutput, error) {
- req, out := c.PutAccessPointConfigurationForObjectLambdaRequest(input)
+func (c *S3Control) ListStorageLensGroupsWithContext(ctx aws.Context, input *ListStorageLensGroupsInput, opts ...request.Option) (*ListStorageLensGroupsOutput, error) {
+ req, out := c.ListStorageLensGroupsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opPutAccessPointPolicy = "PutAccessPointPolicy"
+// ListStorageLensGroupsPages iterates over the pages of a ListStorageLensGroups operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListStorageLensGroups method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a ListStorageLensGroups operation.
+// pageNum := 0
+// err := client.ListStorageLensGroupsPages(params,
+// func(page *s3control.ListStorageLensGroupsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+func (c *S3Control) ListStorageLensGroupsPages(input *ListStorageLensGroupsInput, fn func(*ListStorageLensGroupsOutput, bool) bool) error {
+ return c.ListStorageLensGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
-// PutAccessPointPolicyRequest generates a "aws/request.Request" representing the
-// client's request for the PutAccessPointPolicy operation. The "output" return
+// ListStorageLensGroupsPagesWithContext same as ListStorageLensGroupsPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *S3Control) ListStorageLensGroupsPagesWithContext(ctx aws.Context, input *ListStorageLensGroupsInput, fn func(*ListStorageLensGroupsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListStorageLensGroupsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListStorageLensGroupsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListStorageLensGroupsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListTagsForResource = "ListTagsForResource"
+
+// ListTagsForResourceRequest generates a "aws/request.Request" representing the
+// client's request for the ListTagsForResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See PutAccessPointPolicy for more information on using the PutAccessPointPolicy
+// See ListTagsForResource for more information on using the ListTagsForResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the PutAccessPointPolicyRequest method.
-// req, resp := client.PutAccessPointPolicyRequest(params)
+// // Example sending a request using the ListTagsForResourceRequest method.
+// req, resp := client.ListTagsForResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/PutAccessPointPolicy
-func (c *S3Control) PutAccessPointPolicyRequest(input *PutAccessPointPolicyInput) (req *request.Request, output *PutAccessPointPolicyOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/ListTagsForResource
+func (c *S3Control) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
op := &request.Operation{
- Name: opPutAccessPointPolicy,
- HTTPMethod: "PUT",
- HTTPPath: "/v20180820/accesspoint/{name}/policy",
+ Name: opListTagsForResource,
+ HTTPMethod: "GET",
+ HTTPPath: "/v20180820/tags/{resourceArn+}",
}
if input == nil {
- input = &PutAccessPointPolicyInput{}
+ input = &ListTagsForResourceInput{}
}
- output = &PutAccessPointPolicyOutput{}
+ output = &ListTagsForResourceOutput{}
req = c.newRequest(op, input, output)
- // update account id or check if provided input for account id member matches
- // the account id present in ARN
- req.Handlers.Validate.PushFrontNamed(updateAccountIDWithARNHandler)
+ req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("{AccountId}.", input.hostLabels))
+ req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
+ return
+}
+
+// ListTagsForResource API operation for AWS S3 Control.
+//
+// This operation allows you to list all the Amazon Web Services resource tags
+// for the specified resource.
+//
+// To use this operation, you must have the permission to perform the s3:ListTagsForResource
+// action. For more information about the required Storage Lens Groups permissions,
+// see Setting account permissions to use S3 Storage Lens groups (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions).
+//
+// For information about S3 Tagging errors, see List of Amazon S3 Tagging error
+// codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3TaggingErrorCodeList).
+//
+// This operation is only supported for S3 Storage Lens groups (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-lens-groups.html).
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS S3 Control's
+// API operation ListTagsForResource for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/ListTagsForResource
+func (c *S3Control) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
+ req, out := c.ListTagsForResourceRequest(input)
+ return out, req.Send()
+}
+
+// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListTagsForResource for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *S3Control) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
+ req, out := c.ListTagsForResourceRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opPutAccessPointConfigurationForObjectLambda = "PutAccessPointConfigurationForObjectLambda"
+
+// PutAccessPointConfigurationForObjectLambdaRequest generates a "aws/request.Request" representing the
+// client's request for the PutAccessPointConfigurationForObjectLambda operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PutAccessPointConfigurationForObjectLambda for more information on using the PutAccessPointConfigurationForObjectLambda
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the PutAccessPointConfigurationForObjectLambdaRequest method.
+// req, resp := client.PutAccessPointConfigurationForObjectLambdaRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/PutAccessPointConfigurationForObjectLambda
+func (c *S3Control) PutAccessPointConfigurationForObjectLambdaRequest(input *PutAccessPointConfigurationForObjectLambdaInput) (req *request.Request, output *PutAccessPointConfigurationForObjectLambdaOutput) {
+ op := &request.Operation{
+ Name: opPutAccessPointConfigurationForObjectLambda,
+ HTTPMethod: "PUT",
+ HTTPPath: "/v20180820/accesspointforobjectlambda/{name}/configuration",
+ }
+
+ if input == nil {
+ input = &PutAccessPointConfigurationForObjectLambdaInput{}
+ }
+
+ output = &PutAccessPointConfigurationForObjectLambdaOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("{AccountId}.", input.hostLabels))
+ req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
+ return
+}
+
+// PutAccessPointConfigurationForObjectLambda API operation for AWS S3 Control.
+//
+// Replaces configuration for an Object Lambda Access Point.
+//
+// The following actions are related to PutAccessPointConfigurationForObjectLambda:
+//
+// - GetAccessPointConfigurationForObjectLambda (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointConfigurationForObjectLambda.html)
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS S3 Control's
+// API operation PutAccessPointConfigurationForObjectLambda for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/PutAccessPointConfigurationForObjectLambda
+func (c *S3Control) PutAccessPointConfigurationForObjectLambda(input *PutAccessPointConfigurationForObjectLambdaInput) (*PutAccessPointConfigurationForObjectLambdaOutput, error) {
+ req, out := c.PutAccessPointConfigurationForObjectLambdaRequest(input)
+ return out, req.Send()
+}
+
+// PutAccessPointConfigurationForObjectLambdaWithContext is the same as PutAccessPointConfigurationForObjectLambda with the addition of
+// the ability to pass a context and additional request options.
+//
+// See PutAccessPointConfigurationForObjectLambda for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *S3Control) PutAccessPointConfigurationForObjectLambdaWithContext(ctx aws.Context, input *PutAccessPointConfigurationForObjectLambdaInput, opts ...request.Option) (*PutAccessPointConfigurationForObjectLambdaOutput, error) {
+ req, out := c.PutAccessPointConfigurationForObjectLambdaRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opPutAccessPointPolicy = "PutAccessPointPolicy"
+
+// PutAccessPointPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the PutAccessPointPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PutAccessPointPolicy for more information on using the PutAccessPointPolicy
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the PutAccessPointPolicyRequest method.
+// req, resp := client.PutAccessPointPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/PutAccessPointPolicy
+func (c *S3Control) PutAccessPointPolicyRequest(input *PutAccessPointPolicyInput) (req *request.Request, output *PutAccessPointPolicyOutput) {
+ op := &request.Operation{
+ Name: opPutAccessPointPolicy,
+ HTTPMethod: "PUT",
+ HTTPPath: "/v20180820/accesspoint/{name}/policy",
+ }
+
+ if input == nil {
+ input = &PutAccessPointPolicyInput{}
+ }
+
+ output = &PutAccessPointPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ // update account id or check if provided input for account id member matches
+ // the account id present in ARN
+ req.Handlers.Validate.PushFrontNamed(updateAccountIDWithARNHandler)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("{AccountId}.", input.hostLabels))
req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
@@ -6435,220 +6915,1902 @@ func (c *S3Control) SubmitMultiRegionAccessPointRoutesWithContext(ctx aws.Contex
return out, req.Send()
}
-const opUpdateJobPriority = "UpdateJobPriority"
+const opTagResource = "TagResource"
-// UpdateJobPriorityRequest generates a "aws/request.Request" representing the
-// client's request for the UpdateJobPriority operation. The "output" return
+// TagResourceRequest generates a "aws/request.Request" representing the
+// client's request for the TagResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See UpdateJobPriority for more information on using the UpdateJobPriority
+// See TagResource for more information on using the TagResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the UpdateJobPriorityRequest method.
-// req, resp := client.UpdateJobPriorityRequest(params)
+// // Example sending a request using the TagResourceRequest method.
+// req, resp := client.TagResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/UpdateJobPriority
-func (c *S3Control) UpdateJobPriorityRequest(input *UpdateJobPriorityInput) (req *request.Request, output *UpdateJobPriorityOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/TagResource
+func (c *S3Control) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
op := &request.Operation{
- Name: opUpdateJobPriority,
+ Name: opTagResource,
HTTPMethod: "POST",
- HTTPPath: "/v20180820/jobs/{id}/priority",
+ HTTPPath: "/v20180820/tags/{resourceArn+}",
}
if input == nil {
- input = &UpdateJobPriorityInput{}
+ input = &TagResourceInput{}
}
- output = &UpdateJobPriorityOutput{}
+ output = &TagResourceOutput{}
req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("{AccountId}.", input.hostLabels))
req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
return
}
-// UpdateJobPriority API operation for AWS S3 Control.
-//
-// Updates an existing S3 Batch Operations job's priority. For more information,
-// see S3 Batch Operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/batch-ops.html)
-// in the Amazon S3 User Guide.
-//
-// Related actions include:
+// TagResource API operation for AWS S3 Control.
//
-// - CreateJob (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html)
+// Creates a new Amazon Web Services resource tag or updates an existing resource
+// tag. You can add up to 50 Amazon Web Services resource tags for each S3 resource.
//
-// - ListJobs (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListJobs.html)
+// To use this operation, you must have the permission to perform the s3:TagResource
+// action. For more information about the required Storage Lens Groups permissions,
+// see Setting account permissions to use S3 Storage Lens groups (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions).
//
-// - DescribeJob (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeJob.html)
+// For information about S3 Tagging errors, see List of Amazon S3 Tagging error
+// codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3TaggingErrorCodeList).
//
-// - UpdateJobStatus (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_UpdateJobStatus.html)
+// This operation is only supported for S3 Storage Lens groups (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-lens-groups.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS S3 Control's
-// API operation UpdateJobPriority for usage and error information.
-//
-// Returned Error Codes:
-//
-// - ErrCodeBadRequestException "BadRequestException"
-//
-// - ErrCodeTooManyRequestsException "TooManyRequestsException"
-//
-// - ErrCodeNotFoundException "NotFoundException"
-//
-// - ErrCodeInternalServiceException "InternalServiceException"
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/UpdateJobPriority
-func (c *S3Control) UpdateJobPriority(input *UpdateJobPriorityInput) (*UpdateJobPriorityOutput, error) {
- req, out := c.UpdateJobPriorityRequest(input)
+// API operation TagResource for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/TagResource
+func (c *S3Control) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
+ req, out := c.TagResourceRequest(input)
return out, req.Send()
}
-// UpdateJobPriorityWithContext is the same as UpdateJobPriority with the addition of
+// TagResourceWithContext is the same as TagResource with the addition of
// the ability to pass a context and additional request options.
//
-// See UpdateJobPriority for details on how to use this API operation.
+// See TagResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *S3Control) UpdateJobPriorityWithContext(ctx aws.Context, input *UpdateJobPriorityInput, opts ...request.Option) (*UpdateJobPriorityOutput, error) {
- req, out := c.UpdateJobPriorityRequest(input)
+func (c *S3Control) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
+ req, out := c.TagResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opUpdateJobStatus = "UpdateJobStatus"
+const opUntagResource = "UntagResource"
-// UpdateJobStatusRequest generates a "aws/request.Request" representing the
-// client's request for the UpdateJobStatus operation. The "output" return
+// UntagResourceRequest generates a "aws/request.Request" representing the
+// client's request for the UntagResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See UpdateJobStatus for more information on using the UpdateJobStatus
+// See UntagResource for more information on using the UntagResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the UpdateJobStatusRequest method.
-// req, resp := client.UpdateJobStatusRequest(params)
+// // Example sending a request using the UntagResourceRequest method.
+// req, resp := client.UntagResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/UpdateJobStatus
-func (c *S3Control) UpdateJobStatusRequest(input *UpdateJobStatusInput) (req *request.Request, output *UpdateJobStatusOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/UntagResource
+func (c *S3Control) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
op := &request.Operation{
- Name: opUpdateJobStatus,
- HTTPMethod: "POST",
- HTTPPath: "/v20180820/jobs/{id}/status",
+ Name: opUntagResource,
+ HTTPMethod: "DELETE",
+ HTTPPath: "/v20180820/tags/{resourceArn+}",
}
if input == nil {
- input = &UpdateJobStatusInput{}
+ input = &UntagResourceInput{}
}
- output = &UpdateJobStatusOutput{}
+ output = &UntagResourceOutput{}
req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("{AccountId}.", input.hostLabels))
req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
return
}
-// UpdateJobStatus API operation for AWS S3 Control.
-//
-// Updates the status for the specified job. Use this action to confirm that
-// you want to run a job or to cancel an existing job. For more information,
-// see S3 Batch Operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/batch-ops.html)
-// in the Amazon S3 User Guide.
-//
-// Related actions include:
+// UntagResource API operation for AWS S3 Control.
//
-// - CreateJob (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html)
+// This operation removes the specified Amazon Web Services resource tags from
+// an S3 resource.
//
-// - ListJobs (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListJobs.html)
+// To use this operation, you must have the permission to perform the s3:UntagResource
+// action. For more information about the required Storage Lens Groups permissions,
+// see Setting account permissions to use S3 Storage Lens groups (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions).
//
-// - DescribeJob (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeJob.html)
+// For information about S3 Tagging errors, see List of Amazon S3 Tagging error
+// codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3TaggingErrorCodeList).
//
-// - UpdateJobStatus (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_UpdateJobStatus.html)
+// This operation is only supported for S3 Storage Lens groups (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-lens-groups.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS S3 Control's
-// API operation UpdateJobStatus for usage and error information.
-//
-// Returned Error Codes:
-//
-// - ErrCodeBadRequestException "BadRequestException"
-//
-// - ErrCodeTooManyRequestsException "TooManyRequestsException"
-//
-// - ErrCodeNotFoundException "NotFoundException"
-//
-// - ErrCodeJobStatusException "JobStatusException"
-//
-// - ErrCodeInternalServiceException "InternalServiceException"
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/UpdateJobStatus
-func (c *S3Control) UpdateJobStatus(input *UpdateJobStatusInput) (*UpdateJobStatusOutput, error) {
- req, out := c.UpdateJobStatusRequest(input)
+// API operation UntagResource for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/UntagResource
+func (c *S3Control) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
+ req, out := c.UntagResourceRequest(input)
return out, req.Send()
}
-// UpdateJobStatusWithContext is the same as UpdateJobStatus with the addition of
+// UntagResourceWithContext is the same as UntagResource with the addition of
// the ability to pass a context and additional request options.
//
-// See UpdateJobStatus for details on how to use this API operation.
+// See UntagResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *S3Control) UpdateJobStatusWithContext(ctx aws.Context, input *UpdateJobStatusInput, opts ...request.Option) (*UpdateJobStatusOutput, error) {
- req, out := c.UpdateJobStatusRequest(input)
+func (c *S3Control) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
+ req, out := c.UntagResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-// The container for abort incomplete multipart upload
-type AbortIncompleteMultipartUpload struct {
- _ struct{} `type:"structure"`
-
- // Specifies the number of days after which Amazon S3 aborts an incomplete multipart
- // upload to the Outposts bucket.
- DaysAfterInitiation *int64 `type:"integer"`
-}
+const opUpdateJobPriority = "UpdateJobPriority"
-// String returns the string representation.
+// UpdateJobPriorityRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateJobPriority operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateJobPriority for more information on using the UpdateJobPriority
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the UpdateJobPriorityRequest method.
+// req, resp := client.UpdateJobPriorityRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/UpdateJobPriority
+func (c *S3Control) UpdateJobPriorityRequest(input *UpdateJobPriorityInput) (req *request.Request, output *UpdateJobPriorityOutput) {
+ op := &request.Operation{
+ Name: opUpdateJobPriority,
+ HTTPMethod: "POST",
+ HTTPPath: "/v20180820/jobs/{id}/priority",
+ }
+
+ if input == nil {
+ input = &UpdateJobPriorityInput{}
+ }
+
+ output = &UpdateJobPriorityOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("{AccountId}.", input.hostLabels))
+ req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
+ return
+}
+
+// UpdateJobPriority API operation for AWS S3 Control.
+//
+// Updates an existing S3 Batch Operations job's priority. For more information,
+// see S3 Batch Operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/batch-ops.html)
+// in the Amazon S3 User Guide.
+//
+// Related actions include:
+//
+// - CreateJob (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html)
+//
+// - ListJobs (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListJobs.html)
+//
+// - DescribeJob (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeJob.html)
+//
+// - UpdateJobStatus (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_UpdateJobStatus.html)
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS S3 Control's
+// API operation UpdateJobPriority for usage and error information.
+//
+// Returned Error Codes:
+//
+// - ErrCodeBadRequestException "BadRequestException"
+//
+// - ErrCodeTooManyRequestsException "TooManyRequestsException"
+//
+// - ErrCodeNotFoundException "NotFoundException"
+//
+// - ErrCodeInternalServiceException "InternalServiceException"
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/UpdateJobPriority
+func (c *S3Control) UpdateJobPriority(input *UpdateJobPriorityInput) (*UpdateJobPriorityOutput, error) {
+ req, out := c.UpdateJobPriorityRequest(input)
+ return out, req.Send()
+}
+
+// UpdateJobPriorityWithContext is the same as UpdateJobPriority with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateJobPriority for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *S3Control) UpdateJobPriorityWithContext(ctx aws.Context, input *UpdateJobPriorityInput, opts ...request.Option) (*UpdateJobPriorityOutput, error) {
+ req, out := c.UpdateJobPriorityRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUpdateJobStatus = "UpdateJobStatus"
+
+// UpdateJobStatusRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateJobStatus operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateJobStatus for more information on using the UpdateJobStatus
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the UpdateJobStatusRequest method.
+// req, resp := client.UpdateJobStatusRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/UpdateJobStatus
+func (c *S3Control) UpdateJobStatusRequest(input *UpdateJobStatusInput) (req *request.Request, output *UpdateJobStatusOutput) {
+ op := &request.Operation{
+ Name: opUpdateJobStatus,
+ HTTPMethod: "POST",
+ HTTPPath: "/v20180820/jobs/{id}/status",
+ }
+
+ if input == nil {
+ input = &UpdateJobStatusInput{}
+ }
+
+ output = &UpdateJobStatusOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("{AccountId}.", input.hostLabels))
+ req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
+ return
+}
+
+// UpdateJobStatus API operation for AWS S3 Control.
+//
+// Updates the status for the specified job. Use this action to confirm that
+// you want to run a job or to cancel an existing job. For more information,
+// see S3 Batch Operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/batch-ops.html)
+// in the Amazon S3 User Guide.
+//
+// Related actions include:
+//
+// - CreateJob (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateJob.html)
+//
+// - ListJobs (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListJobs.html)
+//
+// - DescribeJob (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeJob.html)
+//
+// - UpdateJobStatus (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_UpdateJobStatus.html)
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS S3 Control's
+// API operation UpdateJobStatus for usage and error information.
+//
+// Returned Error Codes:
+//
+// - ErrCodeBadRequestException "BadRequestException"
+//
+// - ErrCodeTooManyRequestsException "TooManyRequestsException"
+//
+// - ErrCodeNotFoundException "NotFoundException"
+//
+// - ErrCodeJobStatusException "JobStatusException"
+//
+// - ErrCodeInternalServiceException "InternalServiceException"
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/UpdateJobStatus
+func (c *S3Control) UpdateJobStatus(input *UpdateJobStatusInput) (*UpdateJobStatusOutput, error) {
+ req, out := c.UpdateJobStatusRequest(input)
+ return out, req.Send()
+}
+
+// UpdateJobStatusWithContext is the same as UpdateJobStatus with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateJobStatus for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *S3Control) UpdateJobStatusWithContext(ctx aws.Context, input *UpdateJobStatusInput, opts ...request.Option) (*UpdateJobStatusOutput, error) {
+ req, out := c.UpdateJobStatusRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUpdateStorageLensGroup = "UpdateStorageLensGroup"
+
+// UpdateStorageLensGroupRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateStorageLensGroup operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateStorageLensGroup for more information on using the UpdateStorageLensGroup
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the UpdateStorageLensGroupRequest method.
+// req, resp := client.UpdateStorageLensGroupRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/UpdateStorageLensGroup
+func (c *S3Control) UpdateStorageLensGroupRequest(input *UpdateStorageLensGroupInput) (req *request.Request, output *UpdateStorageLensGroupOutput) {
+ op := &request.Operation{
+ Name: opUpdateStorageLensGroup,
+ HTTPMethod: "PUT",
+ HTTPPath: "/v20180820/storagelensgroup/{name}",
+ }
+
+ if input == nil {
+ input = &UpdateStorageLensGroupInput{}
+ }
+
+ output = &UpdateStorageLensGroupOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("{AccountId}.", input.hostLabels))
+ req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
+ return
+}
+
+// UpdateStorageLensGroup API operation for AWS S3 Control.
+//
+// Updates the existing Storage Lens group.
+//
+// To use this operation, you must have the permission to perform the s3:UpdateStorageLensGroup
+// action. For more information about the required Storage Lens Groups permissions,
+// see Setting account permissions to use S3 Storage Lens groups (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_iam_permissions.html#storage_lens_groups_permissions).
+//
+// For information about Storage Lens groups errors, see List of Amazon S3 Storage
+// Lens error codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#S3LensErrorCodeList).
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS S3 Control's
+// API operation UpdateStorageLensGroup for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/UpdateStorageLensGroup
+func (c *S3Control) UpdateStorageLensGroup(input *UpdateStorageLensGroupInput) (*UpdateStorageLensGroupOutput, error) {
+ req, out := c.UpdateStorageLensGroupRequest(input)
+ return out, req.Send()
+}
+
+// UpdateStorageLensGroupWithContext is the same as UpdateStorageLensGroup with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateStorageLensGroup for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *S3Control) UpdateStorageLensGroupWithContext(ctx aws.Context, input *UpdateStorageLensGroupInput, opts ...request.Option) (*UpdateStorageLensGroupOutput, error) {
+ req, out := c.UpdateStorageLensGroupRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// The container for abort incomplete multipart upload
+type AbortIncompleteMultipartUpload struct {
+ _ struct{} `type:"structure"`
+
+ // Specifies the number of days after which Amazon S3 aborts an incomplete multipart
+ // upload to the Outposts bucket.
+ DaysAfterInitiation *int64 `type:"integer"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AbortIncompleteMultipartUpload) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AbortIncompleteMultipartUpload) GoString() string {
+ return s.String()
+}
+
+// SetDaysAfterInitiation sets the DaysAfterInitiation field's value.
+func (s *AbortIncompleteMultipartUpload) SetDaysAfterInitiation(v int64) *AbortIncompleteMultipartUpload {
+ s.DaysAfterInitiation = &v
+ return s
+}
+
+// A container for information about access control for replicas.
+//
+// This is not supported by Amazon S3 on Outposts buckets.
+type AccessControlTranslation struct {
+ _ struct{} `type:"structure"`
+
+ // Specifies the replica ownership.
+ //
+ // Owner is a required field
+ Owner *string `type:"string" required:"true" enum:"OwnerOverride"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AccessControlTranslation) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AccessControlTranslation) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AccessControlTranslation) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AccessControlTranslation"}
+ if s.Owner == nil {
+ invalidParams.Add(request.NewErrParamRequired("Owner"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetOwner sets the Owner field's value.
+func (s *AccessControlTranslation) SetOwner(v string) *AccessControlTranslation {
+ s.Owner = &v
+ return s
+}
+
+// An access point used to access a bucket.
+type AccessPoint struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN for the access point.
+ AccessPointArn *string `min:"4" type:"string"`
+
+ // The name or alias of the access point.
+ Alias *string `type:"string"`
+
+ // The name of the bucket associated with this access point.
+ //
+ // Bucket is a required field
+ Bucket *string `min:"3" type:"string" required:"true"`
+
+ // The Amazon Web Services account ID associated with the S3 bucket associated
+ // with this access point.
+ BucketAccountId *string `type:"string"`
+
+ // The name of this access point.
+ //
+ // Name is a required field
+ Name *string `min:"3" type:"string" required:"true"`
+
+ // Indicates whether this access point allows access from the public internet.
+ // If VpcConfiguration is specified for this access point, then NetworkOrigin
+ // is VPC, and the access point doesn't allow access from the public internet.
+ // Otherwise, NetworkOrigin is Internet, and the access point allows access
+ // from the public internet, subject to the access point and bucket access policies.
+ //
+ // NetworkOrigin is a required field
+ NetworkOrigin *string `type:"string" required:"true" enum:"NetworkOrigin"`
+
+ // The virtual private cloud (VPC) configuration for this access point, if one
+ // exists.
+ //
+ // This element is empty if this access point is an Amazon S3 on Outposts access
+ // point that is used by other Amazon Web Services.
+ VpcConfiguration *VpcConfiguration `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AccessPoint) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AccessPoint) GoString() string {
+ return s.String()
+}
+
+// SetAccessPointArn sets the AccessPointArn field's value.
+func (s *AccessPoint) SetAccessPointArn(v string) *AccessPoint {
+ s.AccessPointArn = &v
+ return s
+}
+
+// SetAlias sets the Alias field's value.
+func (s *AccessPoint) SetAlias(v string) *AccessPoint {
+ s.Alias = &v
+ return s
+}
+
+// SetBucket sets the Bucket field's value.
+func (s *AccessPoint) SetBucket(v string) *AccessPoint {
+ s.Bucket = &v
+ return s
+}
+
+// SetBucketAccountId sets the BucketAccountId field's value.
+func (s *AccessPoint) SetBucketAccountId(v string) *AccessPoint {
+ s.BucketAccountId = &v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *AccessPoint) SetName(v string) *AccessPoint {
+ s.Name = &v
+ return s
+}
+
+// SetNetworkOrigin sets the NetworkOrigin field's value.
+func (s *AccessPoint) SetNetworkOrigin(v string) *AccessPoint {
+ s.NetworkOrigin = &v
+ return s
+}
+
+// SetVpcConfiguration sets the VpcConfiguration field's value.
+func (s *AccessPoint) SetVpcConfiguration(v *VpcConfiguration) *AccessPoint {
+ s.VpcConfiguration = v
+ return s
+}
+
+// A container element for the account-level Amazon S3 Storage Lens configuration.
+//
+// For more information about S3 Storage Lens, see Assessing your storage activity
+// and usage with S3 Storage Lens (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens.html)
+// in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics,
+// see S3 Storage Lens metrics glossary (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_metrics_glossary.html)
+// in the Amazon S3 User Guide.
+type AccountLevel struct {
+ _ struct{} `type:"structure"`
+
+ // A container element for S3 Storage Lens activity metrics.
+ ActivityMetrics *ActivityMetrics `type:"structure"`
+
+ // A container element for S3 Storage Lens advanced cost-optimization metrics.
+ AdvancedCostOptimizationMetrics *AdvancedCostOptimizationMetrics `type:"structure"`
+
+ // A container element for S3 Storage Lens advanced data-protection metrics.
+ AdvancedDataProtectionMetrics *AdvancedDataProtectionMetrics `type:"structure"`
+
+ // A container element for the S3 Storage Lens bucket-level configuration.
+ //
+ // BucketLevel is a required field
+ BucketLevel *BucketLevel `type:"structure" required:"true"`
+
+ // A container element for detailed status code metrics.
+ DetailedStatusCodesMetrics *DetailedStatusCodesMetrics `type:"structure"`
+
+ // A container element for S3 Storage Lens groups metrics.
+ StorageLensGroupLevel *StorageLensGroupLevel `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AccountLevel) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AccountLevel) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AccountLevel) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AccountLevel"}
+ if s.BucketLevel == nil {
+ invalidParams.Add(request.NewErrParamRequired("BucketLevel"))
+ }
+ if s.BucketLevel != nil {
+ if err := s.BucketLevel.Validate(); err != nil {
+ invalidParams.AddNested("BucketLevel", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetActivityMetrics sets the ActivityMetrics field's value.
+func (s *AccountLevel) SetActivityMetrics(v *ActivityMetrics) *AccountLevel {
+ s.ActivityMetrics = v
+ return s
+}
+
+// SetAdvancedCostOptimizationMetrics sets the AdvancedCostOptimizationMetrics field's value.
+func (s *AccountLevel) SetAdvancedCostOptimizationMetrics(v *AdvancedCostOptimizationMetrics) *AccountLevel {
+ s.AdvancedCostOptimizationMetrics = v
+ return s
+}
+
+// SetAdvancedDataProtectionMetrics sets the AdvancedDataProtectionMetrics field's value.
+func (s *AccountLevel) SetAdvancedDataProtectionMetrics(v *AdvancedDataProtectionMetrics) *AccountLevel {
+ s.AdvancedDataProtectionMetrics = v
+ return s
+}
+
+// SetBucketLevel sets the BucketLevel field's value.
+func (s *AccountLevel) SetBucketLevel(v *BucketLevel) *AccountLevel {
+ s.BucketLevel = v
+ return s
+}
+
+// SetDetailedStatusCodesMetrics sets the DetailedStatusCodesMetrics field's value.
+func (s *AccountLevel) SetDetailedStatusCodesMetrics(v *DetailedStatusCodesMetrics) *AccountLevel {
+ s.DetailedStatusCodesMetrics = v
+ return s
+}
+
+// SetStorageLensGroupLevel sets the StorageLensGroupLevel field's value.
+func (s *AccountLevel) SetStorageLensGroupLevel(v *StorageLensGroupLevel) *AccountLevel {
+ s.StorageLensGroupLevel = v
+ return s
+}
+
+// The container element for Amazon S3 Storage Lens activity metrics. Activity
+// metrics show details about how your storage is requested, such as requests
+// (for example, All requests, Get requests, Put requests), bytes uploaded or
+// downloaded, and errors.
+//
+// For more information about S3 Storage Lens, see Assessing your storage activity
+// and usage with S3 Storage Lens (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens.html)
+// in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics,
+// see S3 Storage Lens metrics glossary (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_metrics_glossary.html)
+// in the Amazon S3 User Guide.
+type ActivityMetrics struct {
+ _ struct{} `type:"structure"`
+
+ // A container that indicates whether activity metrics are enabled.
+ IsEnabled *bool `type:"boolean"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ActivityMetrics) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ActivityMetrics) GoString() string {
+ return s.String()
+}
+
+// SetIsEnabled sets the IsEnabled field's value.
+func (s *ActivityMetrics) SetIsEnabled(v bool) *ActivityMetrics {
+ s.IsEnabled = &v
+ return s
+}
+
+// The container element for Amazon S3 Storage Lens advanced cost-optimization
+// metrics. Advanced cost-optimization metrics provide insights that you can
+// use to manage and optimize your storage costs, for example, lifecycle rule
+// counts for transitions, expirations, and incomplete multipart uploads.
+//
+// For more information about S3 Storage Lens, see Assessing your storage activity
+// and usage with S3 Storage Lens (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens.html)
+// in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics,
+// see S3 Storage Lens metrics glossary (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_metrics_glossary.html)
+// in the Amazon S3 User Guide.
+type AdvancedCostOptimizationMetrics struct {
+ _ struct{} `type:"structure"`
+
+ // A container that indicates whether advanced cost-optimization metrics are
+ // enabled.
+ IsEnabled *bool `type:"boolean"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AdvancedCostOptimizationMetrics) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AdvancedCostOptimizationMetrics) GoString() string {
+ return s.String()
+}
+
+// SetIsEnabled sets the IsEnabled field's value.
+func (s *AdvancedCostOptimizationMetrics) SetIsEnabled(v bool) *AdvancedCostOptimizationMetrics {
+ s.IsEnabled = &v
+ return s
+}
+
+// The container element for Amazon S3 Storage Lens advanced data-protection
+// metrics. Advanced data-protection metrics provide insights that you can use
+// to perform audits and protect your data, for example replication rule counts
+// within and across Regions.
+//
+// For more information about S3 Storage Lens, see Assessing your storage activity
+// and usage with S3 Storage Lens (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens.html)
+// in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics,
+// see S3 Storage Lens metrics glossary (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_metrics_glossary.html)
+// in the Amazon S3 User Guide.
+type AdvancedDataProtectionMetrics struct {
+ _ struct{} `type:"structure"`
+
+ // A container that indicates whether advanced data-protection metrics are enabled.
+ IsEnabled *bool `type:"boolean"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AdvancedDataProtectionMetrics) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AdvancedDataProtectionMetrics) GoString() string {
+ return s.String()
+}
+
+// SetIsEnabled sets the IsEnabled field's value.
+func (s *AdvancedDataProtectionMetrics) SetIsEnabled(v bool) *AdvancedDataProtectionMetrics {
+ s.IsEnabled = &v
+ return s
+}
+
+// Error details for the failed asynchronous operation.
+type AsyncErrorDetails struct {
+ _ struct{} `type:"structure"`
+
+ // A string that uniquely identifies the error condition.
+ Code *string `type:"string"`
+
+ // A generic description of the error condition in English.
+ Message *string `type:"string"`
+
+ // The ID of the request associated with the error.
+ RequestId *string `type:"string"`
+
+ // The identifier of the resource associated with the error.
+ Resource *string `type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AsyncErrorDetails) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AsyncErrorDetails) GoString() string {
+ return s.String()
+}
+
+// SetCode sets the Code field's value.
+func (s *AsyncErrorDetails) SetCode(v string) *AsyncErrorDetails {
+ s.Code = &v
+ return s
+}
+
+// SetMessage sets the Message field's value.
+func (s *AsyncErrorDetails) SetMessage(v string) *AsyncErrorDetails {
+ s.Message = &v
+ return s
+}
+
+// SetRequestId sets the RequestId field's value.
+func (s *AsyncErrorDetails) SetRequestId(v string) *AsyncErrorDetails {
+ s.RequestId = &v
+ return s
+}
+
+// SetResource sets the Resource field's value.
+func (s *AsyncErrorDetails) SetResource(v string) *AsyncErrorDetails {
+ s.Resource = &v
+ return s
+}
+
+// A container for the information about an asynchronous operation.
+type AsyncOperation struct {
+ _ struct{} `type:"structure"`
+
+ // The time that the request was sent to the service.
+ CreationTime *time.Time `type:"timestamp"`
+
+ // The specific operation for the asynchronous request.
+ Operation *string `type:"string" enum:"AsyncOperationName"`
+
+ // The parameters associated with the request.
+ RequestParameters *AsyncRequestParameters `type:"structure"`
+
+ // The current status of the request.
+ RequestStatus *string `type:"string"`
+
+ // The request token associated with the request.
+ RequestTokenARN *string `min:"1" type:"string"`
+
+ // The details of the response.
+ ResponseDetails *AsyncResponseDetails `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AsyncOperation) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AsyncOperation) GoString() string {
+ return s.String()
+}
+
+// SetCreationTime sets the CreationTime field's value.
+func (s *AsyncOperation) SetCreationTime(v time.Time) *AsyncOperation {
+ s.CreationTime = &v
+ return s
+}
+
+// SetOperation sets the Operation field's value.
+func (s *AsyncOperation) SetOperation(v string) *AsyncOperation {
+ s.Operation = &v
+ return s
+}
+
+// SetRequestParameters sets the RequestParameters field's value.
+func (s *AsyncOperation) SetRequestParameters(v *AsyncRequestParameters) *AsyncOperation {
+ s.RequestParameters = v
+ return s
+}
+
+// SetRequestStatus sets the RequestStatus field's value.
+func (s *AsyncOperation) SetRequestStatus(v string) *AsyncOperation {
+ s.RequestStatus = &v
+ return s
+}
+
+// SetRequestTokenARN sets the RequestTokenARN field's value.
+func (s *AsyncOperation) SetRequestTokenARN(v string) *AsyncOperation {
+ s.RequestTokenARN = &v
+ return s
+}
+
+// SetResponseDetails sets the ResponseDetails field's value.
+func (s *AsyncOperation) SetResponseDetails(v *AsyncResponseDetails) *AsyncOperation {
+ s.ResponseDetails = v
+ return s
+}
+
+// A container for the request parameters associated with an asynchronous request.
+type AsyncRequestParameters struct {
+ _ struct{} `type:"structure"`
+
+ // A container of the parameters for a CreateMultiRegionAccessPoint (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateMultiRegionAccessPoint.html)
+ // request.
+ CreateMultiRegionAccessPointRequest *CreateMultiRegionAccessPointInput_ `type:"structure"`
+
+ // A container of the parameters for a DeleteMultiRegionAccessPoint (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteMultiRegionAccessPoint.html)
+ // request.
+ DeleteMultiRegionAccessPointRequest *DeleteMultiRegionAccessPointInput_ `type:"structure"`
+
+ // A container of the parameters for a PutMultiRegionAccessPoint (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutMultiRegionAccessPoint.html)
+ // request.
+ PutMultiRegionAccessPointPolicyRequest *PutMultiRegionAccessPointPolicyInput_ `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AsyncRequestParameters) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AsyncRequestParameters) GoString() string {
+ return s.String()
+}
+
+// SetCreateMultiRegionAccessPointRequest sets the CreateMultiRegionAccessPointRequest field's value.
+func (s *AsyncRequestParameters) SetCreateMultiRegionAccessPointRequest(v *CreateMultiRegionAccessPointInput_) *AsyncRequestParameters {
+ s.CreateMultiRegionAccessPointRequest = v
+ return s
+}
+
+// SetDeleteMultiRegionAccessPointRequest sets the DeleteMultiRegionAccessPointRequest field's value.
+func (s *AsyncRequestParameters) SetDeleteMultiRegionAccessPointRequest(v *DeleteMultiRegionAccessPointInput_) *AsyncRequestParameters {
+ s.DeleteMultiRegionAccessPointRequest = v
+ return s
+}
+
+// SetPutMultiRegionAccessPointPolicyRequest sets the PutMultiRegionAccessPointPolicyRequest field's value.
+func (s *AsyncRequestParameters) SetPutMultiRegionAccessPointPolicyRequest(v *PutMultiRegionAccessPointPolicyInput_) *AsyncRequestParameters {
+ s.PutMultiRegionAccessPointPolicyRequest = v
+ return s
+}
+
+// A container for the response details that are returned when querying about
+// an asynchronous request.
+type AsyncResponseDetails struct {
+ _ struct{} `type:"structure"`
+
+ // Error details for an asynchronous request.
+ ErrorDetails *AsyncErrorDetails `type:"structure"`
+
+ // The details for the Multi-Region Access Point.
+ MultiRegionAccessPointDetails *MultiRegionAccessPointsAsyncResponse `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AsyncResponseDetails) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AsyncResponseDetails) GoString() string {
+ return s.String()
+}
+
+// SetErrorDetails sets the ErrorDetails field's value.
+func (s *AsyncResponseDetails) SetErrorDetails(v *AsyncErrorDetails) *AsyncResponseDetails {
+ s.ErrorDetails = v
+ return s
+}
+
+// SetMultiRegionAccessPointDetails sets the MultiRegionAccessPointDetails field's value.
+func (s *AsyncResponseDetails) SetMultiRegionAccessPointDetails(v *MultiRegionAccessPointsAsyncResponse) *AsyncResponseDetails {
+ s.MultiRegionAccessPointDetails = v
+ return s
+}
+
+// Lambda function used to transform objects through an Object Lambda Access
+// Point.
+type AwsLambdaTransformation struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the Lambda function.
+ //
+ // FunctionArn is a required field
+ FunctionArn *string `min:"1" type:"string" required:"true"`
+
+ // Additional JSON that provides supplemental data to the Lambda function used
+ // to transform objects.
+ FunctionPayload *string `type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AwsLambdaTransformation) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AwsLambdaTransformation) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AwsLambdaTransformation) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AwsLambdaTransformation"}
+ if s.FunctionArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("FunctionArn"))
+ }
+ if s.FunctionArn != nil && len(*s.FunctionArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("FunctionArn", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFunctionArn sets the FunctionArn field's value.
+func (s *AwsLambdaTransformation) SetFunctionArn(v string) *AwsLambdaTransformation {
+ s.FunctionArn = &v
+ return s
+}
+
+// SetFunctionPayload sets the FunctionPayload field's value.
+func (s *AwsLambdaTransformation) SetFunctionPayload(v string) *AwsLambdaTransformation {
+ s.FunctionPayload = &v
+ return s
+}
+
+// A container for the bucket-level configuration for Amazon S3 Storage Lens.
+//
+// For more information about S3 Storage Lens, see Assessing your storage activity
+// and usage with S3 Storage Lens (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens.html)
+// in the Amazon S3 User Guide.
+type BucketLevel struct {
+ _ struct{} `type:"structure"`
+
+ // A container for the bucket-level activity metrics for S3 Storage Lens.
+ ActivityMetrics *ActivityMetrics `type:"structure"`
+
+ // A container for bucket-level advanced cost-optimization metrics for S3 Storage
+ // Lens.
+ AdvancedCostOptimizationMetrics *AdvancedCostOptimizationMetrics `type:"structure"`
+
+ // A container for bucket-level advanced data-protection metrics for S3 Storage
+ // Lens.
+ AdvancedDataProtectionMetrics *AdvancedDataProtectionMetrics `type:"structure"`
+
+ // A container for bucket-level detailed status code metrics for S3 Storage
+ // Lens.
+ DetailedStatusCodesMetrics *DetailedStatusCodesMetrics `type:"structure"`
+
+ // A container for the prefix-level metrics for S3 Storage Lens.
+ PrefixLevel *PrefixLevel `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s BucketLevel) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s BucketLevel) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *BucketLevel) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "BucketLevel"}
+ if s.PrefixLevel != nil {
+ if err := s.PrefixLevel.Validate(); err != nil {
+ invalidParams.AddNested("PrefixLevel", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetActivityMetrics sets the ActivityMetrics field's value.
+func (s *BucketLevel) SetActivityMetrics(v *ActivityMetrics) *BucketLevel {
+ s.ActivityMetrics = v
+ return s
+}
+
+// SetAdvancedCostOptimizationMetrics sets the AdvancedCostOptimizationMetrics field's value.
+func (s *BucketLevel) SetAdvancedCostOptimizationMetrics(v *AdvancedCostOptimizationMetrics) *BucketLevel {
+ s.AdvancedCostOptimizationMetrics = v
+ return s
+}
+
+// SetAdvancedDataProtectionMetrics sets the AdvancedDataProtectionMetrics field's value.
+func (s *BucketLevel) SetAdvancedDataProtectionMetrics(v *AdvancedDataProtectionMetrics) *BucketLevel {
+ s.AdvancedDataProtectionMetrics = v
+ return s
+}
+
+// SetDetailedStatusCodesMetrics sets the DetailedStatusCodesMetrics field's value.
+func (s *BucketLevel) SetDetailedStatusCodesMetrics(v *DetailedStatusCodesMetrics) *BucketLevel {
+ s.DetailedStatusCodesMetrics = v
+ return s
+}
+
+// SetPrefixLevel sets the PrefixLevel field's value.
+func (s *BucketLevel) SetPrefixLevel(v *PrefixLevel) *BucketLevel {
+ s.PrefixLevel = v
+ return s
+}
+
+// A container for enabling Amazon CloudWatch publishing for S3 Storage Lens
+// metrics.
+//
+// For more information about publishing S3 Storage Lens metrics to CloudWatch,
+// see Monitor S3 Storage Lens metrics in CloudWatch (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_view_metrics_cloudwatch.html)
+// in the Amazon S3 User Guide.
+type CloudWatchMetrics struct {
+ _ struct{} `type:"structure"`
+
+ // A container that indicates whether CloudWatch publishing for S3 Storage Lens
+ // metrics is enabled. A value of true indicates that CloudWatch publishing
+ // for S3 Storage Lens metrics is enabled.
+ //
+ // IsEnabled is a required field
+ IsEnabled *bool `type:"boolean" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CloudWatchMetrics) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CloudWatchMetrics) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CloudWatchMetrics) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CloudWatchMetrics"}
+ if s.IsEnabled == nil {
+ invalidParams.Add(request.NewErrParamRequired("IsEnabled"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetIsEnabled sets the IsEnabled field's value.
+func (s *CloudWatchMetrics) SetIsEnabled(v bool) *CloudWatchMetrics {
+ s.IsEnabled = &v
+ return s
+}
+
+type CreateAccessPointForObjectLambdaInput struct {
+ _ struct{} `locationName:"CreateAccessPointForObjectLambdaRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+
+ // The Amazon Web Services account ID for owner of the specified Object Lambda
+ // Access Point.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+
+ // Object Lambda Access Point configuration as a JSON document.
+ //
+ // Configuration is a required field
+ Configuration *ObjectLambdaConfiguration `type:"structure" required:"true"`
+
+ // The name you want to assign to this Object Lambda Access Point.
+ //
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateAccessPointForObjectLambdaInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateAccessPointForObjectLambdaInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateAccessPointForObjectLambdaInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateAccessPointForObjectLambdaInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.Configuration == nil {
+ invalidParams.Add(request.NewErrParamRequired("Configuration"))
+ }
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ }
+ if s.Configuration != nil {
+ if err := s.Configuration.Validate(); err != nil {
+ invalidParams.AddNested("Configuration", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *CreateAccessPointForObjectLambdaInput) SetAccountId(v string) *CreateAccessPointForObjectLambdaInput {
+ s.AccountId = &v
+ return s
+}
+
+// SetConfiguration sets the Configuration field's value.
+func (s *CreateAccessPointForObjectLambdaInput) SetConfiguration(v *ObjectLambdaConfiguration) *CreateAccessPointForObjectLambdaInput {
+ s.Configuration = v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *CreateAccessPointForObjectLambdaInput) SetName(v string) *CreateAccessPointForObjectLambdaInput {
+ s.Name = &v
+ return s
+}
+
+func (s *CreateAccessPointForObjectLambdaInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
+
+type CreateAccessPointForObjectLambdaOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The alias of the Object Lambda Access Point.
+ Alias *ObjectLambdaAccessPointAlias `type:"structure"`
+
+ // Specifies the ARN for the Object Lambda Access Point.
+ ObjectLambdaAccessPointArn *string `min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateAccessPointForObjectLambdaOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateAccessPointForObjectLambdaOutput) GoString() string {
+ return s.String()
+}
+
+// SetAlias sets the Alias field's value.
+func (s *CreateAccessPointForObjectLambdaOutput) SetAlias(v *ObjectLambdaAccessPointAlias) *CreateAccessPointForObjectLambdaOutput {
+ s.Alias = v
+ return s
+}
+
+// SetObjectLambdaAccessPointArn sets the ObjectLambdaAccessPointArn field's value.
+func (s *CreateAccessPointForObjectLambdaOutput) SetObjectLambdaAccessPointArn(v string) *CreateAccessPointForObjectLambdaOutput {
+ s.ObjectLambdaAccessPointArn = &v
+ return s
+}
+
+type CreateAccessPointInput struct {
+ _ struct{} `locationName:"CreateAccessPointRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+
+ // The Amazon Web Services account ID for the account that owns the specified
+ // access point.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+
+ // The name of the bucket that you want to associate this access point with.
+ //
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
+ //
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the bucket accessed in the format
+ // arn:aws:s3-outposts:::outpost//bucket/.
+ // For example, to access the bucket reports through Outpost my-outpost owned
+ // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
+ // The value must be URL encoded.
+ //
+ // Bucket is a required field
+ Bucket *string `min:"3" type:"string" required:"true"`
+
+ // The Amazon Web Services account ID associated with the S3 bucket associated
+ // with this access point.
+ BucketAccountId *string `type:"string"`
+
+ // The name you want to assign to this access point.
+ //
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+
+ // The PublicAccessBlock configuration that you want to apply to the access
+ // point.
+ PublicAccessBlockConfiguration *PublicAccessBlockConfiguration `type:"structure"`
+
+ // If you include this field, Amazon S3 restricts access to this access point
+ // to requests from the specified virtual private cloud (VPC).
+ //
+ // This is required for creating an access point for Amazon S3 on Outposts buckets.
+ VpcConfiguration *VpcConfiguration `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateAccessPointInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateAccessPointInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateAccessPointInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateAccessPointInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
+ }
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ }
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ }
+ if s.VpcConfiguration != nil {
+ if err := s.VpcConfiguration.Validate(); err != nil {
+ invalidParams.AddNested("VpcConfiguration", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *CreateAccessPointInput) SetAccountId(v string) *CreateAccessPointInput {
+ s.AccountId = &v
+ return s
+}
+
+// SetBucket sets the Bucket field's value.
+func (s *CreateAccessPointInput) SetBucket(v string) *CreateAccessPointInput {
+ s.Bucket = &v
+ return s
+}
+
+// SetBucketAccountId sets the BucketAccountId field's value.
+func (s *CreateAccessPointInput) SetBucketAccountId(v string) *CreateAccessPointInput {
+ s.BucketAccountId = &v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *CreateAccessPointInput) SetName(v string) *CreateAccessPointInput {
+ s.Name = &v
+ return s
+}
+
+// SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field's value.
+func (s *CreateAccessPointInput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *CreateAccessPointInput {
+ s.PublicAccessBlockConfiguration = v
+ return s
+}
+
+// SetVpcConfiguration sets the VpcConfiguration field's value.
+func (s *CreateAccessPointInput) SetVpcConfiguration(v *VpcConfiguration) *CreateAccessPointInput {
+ s.VpcConfiguration = v
+ return s
+}
+
+func (s *CreateAccessPointInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
+
+func (s *CreateAccessPointInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *CreateAccessPointInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s CreateAccessPointInput) updateArnableField(v string) (interface{}, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ s.Bucket = aws.String(v)
+ return &s, nil
+}
+
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s CreateAccessPointInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
+}
+
+// updateBucketAccountId returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s CreateAccessPointInput) updateBucketAccountId(accountId string) (interface{}, error) {
+ if s.BucketAccountId == nil {
+ s.BucketAccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.BucketAccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
+}
+
+type CreateAccessPointOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the access point.
+ //
+ // This is only supported by Amazon S3 on Outposts.
+ AccessPointArn *string `min:"4" type:"string"`
+
+ // The name or alias of the access point.
+ Alias *string `type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateAccessPointOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateAccessPointOutput) GoString() string {
+ return s.String()
+}
+
+// SetAccessPointArn sets the AccessPointArn field's value.
+func (s *CreateAccessPointOutput) SetAccessPointArn(v string) *CreateAccessPointOutput {
+ s.AccessPointArn = &v
+ return s
+}
+
+// SetAlias sets the Alias field's value.
+func (s *CreateAccessPointOutput) SetAlias(v string) *CreateAccessPointOutput {
+ s.Alias = &v
+ return s
+}
+
+// The container for the bucket configuration.
+//
+// This is not supported by Amazon S3 on Outposts buckets.
+type CreateBucketConfiguration struct {
+ _ struct{} `type:"structure"`
+
+ // Specifies the Region where the bucket will be created. If you are creating
+ // a bucket on the US East (N. Virginia) Region (us-east-1), you do not need
+ // to specify the location.
+ //
+ // This is not supported by Amazon S3 on Outposts buckets.
+ LocationConstraint *string `type:"string" enum:"BucketLocationConstraint"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateBucketConfiguration) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateBucketConfiguration) GoString() string {
+ return s.String()
+}
+
+// SetLocationConstraint sets the LocationConstraint field's value.
+func (s *CreateBucketConfiguration) SetLocationConstraint(v string) *CreateBucketConfiguration {
+ s.LocationConstraint = &v
+ return s
+}
+
+type CreateBucketInput struct {
+ _ struct{} `locationName:"CreateBucketRequest" type:"structure" payload:"CreateBucketConfiguration"`
+
+ // The canned ACL to apply to the bucket.
+ //
+ // This is not supported by Amazon S3 on Outposts buckets.
+ ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"BucketCannedACL"`
+
+ // The name of the bucket.
+ //
+ // Bucket is a required field
+ Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+
+ // The configuration information for the bucket.
+ //
+ // This is not supported by Amazon S3 on Outposts buckets.
+ CreateBucketConfiguration *CreateBucketConfiguration `locationName:"CreateBucketConfiguration" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+
+ // Allows grantee the read, write, read ACP, and write ACP permissions on the
+ // bucket.
+ //
+ // This is not supported by Amazon S3 on Outposts buckets.
+ GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"`
+
+ // Allows grantee to list the objects in the bucket.
+ //
+ // This is not supported by Amazon S3 on Outposts buckets.
+ GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"`
+
+ // Allows grantee to read the bucket ACL.
+ //
+ // This is not supported by Amazon S3 on Outposts buckets.
+ GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"`
+
+ // Allows grantee to create, overwrite, and delete any object in the bucket.
+ //
+ // This is not supported by Amazon S3 on Outposts buckets.
+ GrantWrite *string `location:"header" locationName:"x-amz-grant-write" type:"string"`
+
+ // Allows grantee to write the ACL for the applicable bucket.
+ //
+ // This is not supported by Amazon S3 on Outposts buckets.
+ GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`
+
+ // Specifies whether you want S3 Object Lock to be enabled for the new bucket.
+ //
+ // This is not supported by Amazon S3 on Outposts buckets.
+ ObjectLockEnabledForBucket *bool `location:"header" locationName:"x-amz-bucket-object-lock-enabled" type:"boolean"`
+
+ // The ID of the Outposts where the bucket is being created.
+ //
+ // This ID is required by Amazon S3 on Outposts buckets.
+ OutpostId *string `location:"header" locationName:"x-amz-outpost-id" min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateBucketInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateBucketInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateBucketInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateBucketInput"}
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
+ }
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ }
+ if s.OutpostId != nil && len(*s.OutpostId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OutpostId", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetACL sets the ACL field's value.
+func (s *CreateBucketInput) SetACL(v string) *CreateBucketInput {
+ s.ACL = &v
+ return s
+}
+
+// SetBucket sets the Bucket field's value.
+func (s *CreateBucketInput) SetBucket(v string) *CreateBucketInput {
+ s.Bucket = &v
+ return s
+}
+
+// SetCreateBucketConfiguration sets the CreateBucketConfiguration field's value.
+func (s *CreateBucketInput) SetCreateBucketConfiguration(v *CreateBucketConfiguration) *CreateBucketInput {
+ s.CreateBucketConfiguration = v
+ return s
+}
+
+// SetGrantFullControl sets the GrantFullControl field's value.
+func (s *CreateBucketInput) SetGrantFullControl(v string) *CreateBucketInput {
+ s.GrantFullControl = &v
+ return s
+}
+
+// SetGrantRead sets the GrantRead field's value.
+func (s *CreateBucketInput) SetGrantRead(v string) *CreateBucketInput {
+ s.GrantRead = &v
+ return s
+}
+
+// SetGrantReadACP sets the GrantReadACP field's value.
+func (s *CreateBucketInput) SetGrantReadACP(v string) *CreateBucketInput {
+ s.GrantReadACP = &v
+ return s
+}
+
+// SetGrantWrite sets the GrantWrite field's value.
+func (s *CreateBucketInput) SetGrantWrite(v string) *CreateBucketInput {
+ s.GrantWrite = &v
+ return s
+}
+
+// SetGrantWriteACP sets the GrantWriteACP field's value.
+func (s *CreateBucketInput) SetGrantWriteACP(v string) *CreateBucketInput {
+ s.GrantWriteACP = &v
+ return s
+}
+
+// SetObjectLockEnabledForBucket sets the ObjectLockEnabledForBucket field's value.
+func (s *CreateBucketInput) SetObjectLockEnabledForBucket(v bool) *CreateBucketInput {
+ s.ObjectLockEnabledForBucket = &v
+ return s
+}
+
+// SetOutpostId sets the OutpostId field's value.
+func (s *CreateBucketInput) SetOutpostId(v string) *CreateBucketInput {
+ s.OutpostId = &v
+ return s
+}
+
+func (s *CreateBucketInput) getOutpostID() (string, error) {
+ if s.OutpostId == nil {
+ return "", fmt.Errorf("member OutpostId is nil")
+ }
+ return *s.OutpostId, nil
+}
+
+func (s *CreateBucketInput) hasOutpostID() bool {
+ if s.OutpostId == nil {
+ return false
+ }
+ return true
+}
+
+type CreateBucketOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the bucket.
+ //
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
+ //
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the bucket accessed in the format
+ // arn:aws:s3-outposts:::outpost//bucket/.
+ // For example, to access the bucket reports through Outpost my-outpost owned
+ // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
+ // The value must be URL encoded.
+ BucketArn *string `min:"4" type:"string"`
+
+ // The location of the bucket.
+ Location *string `location:"header" locationName:"Location" type:"string"`
+}
+
+// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AbortIncompleteMultipartUpload) String() string {
+func (s CreateBucketOutput) String() string {
return awsutil.Prettify(s)
}
@@ -6657,26 +8819,77 @@ func (s AbortIncompleteMultipartUpload) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AbortIncompleteMultipartUpload) GoString() string {
+func (s CreateBucketOutput) GoString() string {
return s.String()
}
-// SetDaysAfterInitiation sets the DaysAfterInitiation field's value.
-func (s *AbortIncompleteMultipartUpload) SetDaysAfterInitiation(v int64) *AbortIncompleteMultipartUpload {
- s.DaysAfterInitiation = &v
+// SetBucketArn sets the BucketArn field's value.
+func (s *CreateBucketOutput) SetBucketArn(v string) *CreateBucketOutput {
+ s.BucketArn = &v
return s
}
-// A container for information about access control for replicas.
-//
-// This is not supported by Amazon S3 on Outposts buckets.
-type AccessControlTranslation struct {
- _ struct{} `type:"structure"`
+// SetLocation sets the Location field's value.
+func (s *CreateBucketOutput) SetLocation(v string) *CreateBucketOutput {
+ s.Location = &v
+ return s
+}
- // Specifies the replica ownership.
+type CreateJobInput struct {
+ _ struct{} `locationName:"CreateJobRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+
+ // The Amazon Web Services account ID that creates the job.
//
- // Owner is a required field
- Owner *string `type:"string" required:"true" enum:"OwnerOverride"`
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+
+ // An idempotency token to ensure that you don't accidentally submit the same
+ // request twice. You can use any string up to the maximum length.
+ ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"`
+
+ // Indicates whether confirmation is required before Amazon S3 runs the job.
+ // Confirmation is only required for jobs created through the Amazon S3 console.
+ ConfirmationRequired *bool `type:"boolean"`
+
+ // A description for this job. You can use any string within the permitted length.
+ // Descriptions don't need to be unique and can be used for multiple jobs.
+ Description *string `min:"1" type:"string"`
+
+ // Configuration parameters for the manifest.
+ Manifest *JobManifest `type:"structure"`
+
+ // The attribute container for the ManifestGenerator details. Jobs must be created
+ // with either a manifest file or a ManifestGenerator, but not both.
+ ManifestGenerator *JobManifestGenerator `type:"structure"`
+
+ // The action that you want this job to perform on every object listed in the
+ // manifest. For more information about the available actions, see Operations
+ // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-actions.html)
+ // in the Amazon S3 User Guide.
+ //
+ // Operation is a required field
+ Operation *JobOperation `type:"structure" required:"true"`
+
+ // The numerical priority for this job. Higher numbers indicate higher priority.
+ //
+ // Priority is a required field
+ Priority *int64 `type:"integer" required:"true"`
+
+ // Configuration parameters for the optional job-completion report.
+ //
+ // Report is a required field
+ Report *JobReport `type:"structure" required:"true"`
+
+ // The Amazon Resource Name (ARN) for the Identity and Access Management (IAM)
+ // role that Batch Operations will use to run this job's action on every object
+ // in the manifest.
+ //
+ // RoleArn is a required field
+ RoleArn *string `min:"1" type:"string" required:"true"`
+
+ // A set of tags to associate with the S3 Batch Operations job. This is an optional
+ // parameter.
+ Tags []*S3Tag `type:"list"`
}
// String returns the string representation.
@@ -6684,7 +8897,7 @@ type AccessControlTranslation struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AccessControlTranslation) String() string {
+func (s CreateJobInput) String() string {
return awsutil.Prettify(s)
}
@@ -6693,68 +8906,155 @@ func (s AccessControlTranslation) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AccessControlTranslation) GoString() string {
+func (s CreateJobInput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *AccessControlTranslation) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AccessControlTranslation"}
- if s.Owner == nil {
- invalidParams.Add(request.NewErrParamRequired("Owner"))
- }
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateJobInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateJobInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1))
+ }
+ if s.Description != nil && len(*s.Description) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Description", 1))
+ }
+ if s.Operation == nil {
+ invalidParams.Add(request.NewErrParamRequired("Operation"))
+ }
+ if s.Priority == nil {
+ invalidParams.Add(request.NewErrParamRequired("Priority"))
+ }
+ if s.Report == nil {
+ invalidParams.Add(request.NewErrParamRequired("Report"))
+ }
+ if s.RoleArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("RoleArn"))
+ }
+ if s.RoleArn != nil && len(*s.RoleArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1))
+ }
+ if s.Manifest != nil {
+ if err := s.Manifest.Validate(); err != nil {
+ invalidParams.AddNested("Manifest", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.ManifestGenerator != nil {
+ if err := s.ManifestGenerator.Validate(); err != nil {
+ invalidParams.AddNested("ManifestGenerator", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.Operation != nil {
+ if err := s.Operation.Validate(); err != nil {
+ invalidParams.AddNested("Operation", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.Report != nil {
+ if err := s.Report.Validate(); err != nil {
+ invalidParams.AddNested("Report", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *CreateJobInput) SetAccountId(v string) *CreateJobInput {
+ s.AccountId = &v
+ return s
+}
+
+// SetClientRequestToken sets the ClientRequestToken field's value.
+func (s *CreateJobInput) SetClientRequestToken(v string) *CreateJobInput {
+ s.ClientRequestToken = &v
+ return s
+}
+
+// SetConfirmationRequired sets the ConfirmationRequired field's value.
+func (s *CreateJobInput) SetConfirmationRequired(v bool) *CreateJobInput {
+ s.ConfirmationRequired = &v
+ return s
+}
+
+// SetDescription sets the Description field's value.
+func (s *CreateJobInput) SetDescription(v string) *CreateJobInput {
+ s.Description = &v
+ return s
+}
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetManifest sets the Manifest field's value.
+func (s *CreateJobInput) SetManifest(v *JobManifest) *CreateJobInput {
+ s.Manifest = v
+ return s
}
-// SetOwner sets the Owner field's value.
-func (s *AccessControlTranslation) SetOwner(v string) *AccessControlTranslation {
- s.Owner = &v
+// SetManifestGenerator sets the ManifestGenerator field's value.
+func (s *CreateJobInput) SetManifestGenerator(v *JobManifestGenerator) *CreateJobInput {
+ s.ManifestGenerator = v
return s
}
-// An access point used to access a bucket.
-type AccessPoint struct {
- _ struct{} `type:"structure"`
+// SetOperation sets the Operation field's value.
+func (s *CreateJobInput) SetOperation(v *JobOperation) *CreateJobInput {
+ s.Operation = v
+ return s
+}
- // The ARN for the access point.
- AccessPointArn *string `min:"4" type:"string"`
+// SetPriority sets the Priority field's value.
+func (s *CreateJobInput) SetPriority(v int64) *CreateJobInput {
+ s.Priority = &v
+ return s
+}
- // The name or alias of the access point.
- Alias *string `type:"string"`
+// SetReport sets the Report field's value.
+func (s *CreateJobInput) SetReport(v *JobReport) *CreateJobInput {
+ s.Report = v
+ return s
+}
- // The name of the bucket associated with this access point.
- //
- // Bucket is a required field
- Bucket *string `min:"3" type:"string" required:"true"`
+// SetRoleArn sets the RoleArn field's value.
+func (s *CreateJobInput) SetRoleArn(v string) *CreateJobInput {
+ s.RoleArn = &v
+ return s
+}
- // The Amazon Web Services account ID associated with the S3 bucket associated
- // with this access point.
- BucketAccountId *string `type:"string"`
+// SetTags sets the Tags field's value.
+func (s *CreateJobInput) SetTags(v []*S3Tag) *CreateJobInput {
+ s.Tags = v
+ return s
+}
- // The name of this access point.
- //
- // Name is a required field
- Name *string `min:"3" type:"string" required:"true"`
+func (s *CreateJobInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
- // Indicates whether this access point allows access from the public internet.
- // If VpcConfiguration is specified for this access point, then NetworkOrigin
- // is VPC, and the access point doesn't allow access from the public internet.
- // Otherwise, NetworkOrigin is Internet, and the access point allows access
- // from the public internet, subject to the access point and bucket access policies.
- //
- // NetworkOrigin is a required field
- NetworkOrigin *string `type:"string" required:"true" enum:"NetworkOrigin"`
+type CreateJobOutput struct {
+ _ struct{} `type:"structure"`
- // The virtual private cloud (VPC) configuration for this access point, if one
- // exists.
- //
- // This element is empty if this access point is an Amazon S3 on Outposts access
- // point that is used by other Amazon Web Services.
- VpcConfiguration *VpcConfiguration `type:"structure"`
+ // The ID for this job. Amazon S3 generates this ID automatically and returns
+ // it after a successful Create Job request.
+ JobId *string `min:"5" type:"string"`
}
// String returns the string representation.
@@ -6762,7 +9062,7 @@ type AccessPoint struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AccessPoint) String() string {
+func (s CreateJobOutput) String() string {
return awsutil.Prettify(s)
}
@@ -6771,78 +9071,34 @@ func (s AccessPoint) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AccessPoint) GoString() string {
+func (s CreateJobOutput) GoString() string {
return s.String()
}
-// SetAccessPointArn sets the AccessPointArn field's value.
-func (s *AccessPoint) SetAccessPointArn(v string) *AccessPoint {
- s.AccessPointArn = &v
- return s
-}
-
-// SetAlias sets the Alias field's value.
-func (s *AccessPoint) SetAlias(v string) *AccessPoint {
- s.Alias = &v
- return s
-}
-
-// SetBucket sets the Bucket field's value.
-func (s *AccessPoint) SetBucket(v string) *AccessPoint {
- s.Bucket = &v
- return s
-}
-
-// SetBucketAccountId sets the BucketAccountId field's value.
-func (s *AccessPoint) SetBucketAccountId(v string) *AccessPoint {
- s.BucketAccountId = &v
- return s
-}
-
-// SetName sets the Name field's value.
-func (s *AccessPoint) SetName(v string) *AccessPoint {
- s.Name = &v
- return s
-}
-
-// SetNetworkOrigin sets the NetworkOrigin field's value.
-func (s *AccessPoint) SetNetworkOrigin(v string) *AccessPoint {
- s.NetworkOrigin = &v
- return s
-}
-
-// SetVpcConfiguration sets the VpcConfiguration field's value.
-func (s *AccessPoint) SetVpcConfiguration(v *VpcConfiguration) *AccessPoint {
- s.VpcConfiguration = v
+// SetJobId sets the JobId field's value.
+func (s *CreateJobOutput) SetJobId(v string) *CreateJobOutput {
+ s.JobId = &v
return s
}
-// A container for the account-level Amazon S3 Storage Lens configuration.
-//
-// For more information about S3 Storage Lens, see Assessing your storage activity
-// and usage with S3 Storage Lens (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens.html)
-// in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics,
-// see S3 Storage Lens metrics glossary (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_metrics_glossary.html)
-// in the Amazon S3 User Guide.
-type AccountLevel struct {
- _ struct{} `type:"structure"`
-
- // A container for S3 Storage Lens activity metrics.
- ActivityMetrics *ActivityMetrics `type:"structure"`
+type CreateMultiRegionAccessPointInput struct {
+ _ struct{} `locationName:"CreateMultiRegionAccessPointRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
- // A container for S3 Storage Lens advanced cost-optimization metrics.
- AdvancedCostOptimizationMetrics *AdvancedCostOptimizationMetrics `type:"structure"`
+ // The Amazon Web Services account ID for the owner of the Multi-Region Access
+ // Point. The owner of the Multi-Region Access Point also must own the underlying
+ // buckets.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // A container for S3 Storage Lens advanced data-protection metrics.
- AdvancedDataProtectionMetrics *AdvancedDataProtectionMetrics `type:"structure"`
+ // An idempotency token used to identify the request and guarantee that requests
+ // are unique.
+ ClientToken *string `type:"string" idempotencyToken:"true"`
- // A container for the S3 Storage Lens bucket-level configuration.
+ // A container element containing details about the Multi-Region Access Point.
//
- // BucketLevel is a required field
- BucketLevel *BucketLevel `type:"structure" required:"true"`
-
- // A container for detailed status code metrics.
- DetailedStatusCodesMetrics *DetailedStatusCodesMetrics `type:"structure"`
+ // Details is a required field
+ Details *CreateMultiRegionAccessPointInput_ `type:"structure" required:"true"`
}
// String returns the string representation.
@@ -6850,7 +9106,7 @@ type AccountLevel struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AccountLevel) String() string {
+func (s CreateMultiRegionAccessPointInput) String() string {
return awsutil.Prettify(s)
}
@@ -6859,19 +9115,25 @@ func (s AccountLevel) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AccountLevel) GoString() string {
+func (s CreateMultiRegionAccessPointInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *AccountLevel) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AccountLevel"}
- if s.BucketLevel == nil {
- invalidParams.Add(request.NewErrParamRequired("BucketLevel"))
+func (s *CreateMultiRegionAccessPointInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateMultiRegionAccessPointInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
- if s.BucketLevel != nil {
- if err := s.BucketLevel.Validate(); err != nil {
- invalidParams.AddNested("BucketLevel", err.(request.ErrInvalidParams))
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.Details == nil {
+ invalidParams.Add(request.NewErrParamRequired("Details"))
+ }
+ if s.Details != nil {
+ if err := s.Details.Validate(); err != nil {
+ invalidParams.AddNested("Details", err.(request.ErrInvalidParams))
}
}
@@ -6881,51 +9143,55 @@ func (s *AccountLevel) Validate() error {
return nil
}
-// SetActivityMetrics sets the ActivityMetrics field's value.
-func (s *AccountLevel) SetActivityMetrics(v *ActivityMetrics) *AccountLevel {
- s.ActivityMetrics = v
- return s
-}
-
-// SetAdvancedCostOptimizationMetrics sets the AdvancedCostOptimizationMetrics field's value.
-func (s *AccountLevel) SetAdvancedCostOptimizationMetrics(v *AdvancedCostOptimizationMetrics) *AccountLevel {
- s.AdvancedCostOptimizationMetrics = v
+// SetAccountId sets the AccountId field's value.
+func (s *CreateMultiRegionAccessPointInput) SetAccountId(v string) *CreateMultiRegionAccessPointInput {
+ s.AccountId = &v
return s
}
-// SetAdvancedDataProtectionMetrics sets the AdvancedDataProtectionMetrics field's value.
-func (s *AccountLevel) SetAdvancedDataProtectionMetrics(v *AdvancedDataProtectionMetrics) *AccountLevel {
- s.AdvancedDataProtectionMetrics = v
+// SetClientToken sets the ClientToken field's value.
+func (s *CreateMultiRegionAccessPointInput) SetClientToken(v string) *CreateMultiRegionAccessPointInput {
+ s.ClientToken = &v
return s
}
-// SetBucketLevel sets the BucketLevel field's value.
-func (s *AccountLevel) SetBucketLevel(v *BucketLevel) *AccountLevel {
- s.BucketLevel = v
+// SetDetails sets the Details field's value.
+func (s *CreateMultiRegionAccessPointInput) SetDetails(v *CreateMultiRegionAccessPointInput_) *CreateMultiRegionAccessPointInput {
+ s.Details = v
return s
}
-// SetDetailedStatusCodesMetrics sets the DetailedStatusCodesMetrics field's value.
-func (s *AccountLevel) SetDetailedStatusCodesMetrics(v *DetailedStatusCodesMetrics) *AccountLevel {
- s.DetailedStatusCodesMetrics = v
- return s
+func (s *CreateMultiRegionAccessPointInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
}
-// The container element for Amazon S3 Storage Lens activity metrics. Activity
-// metrics show details about how your storage is requested, such as requests
-// (for example, All requests, Get requests, Put requests), bytes uploaded or
-// downloaded, and errors.
-//
-// For more information about S3 Storage Lens, see Assessing your storage activity
-// and usage with S3 Storage Lens (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens.html)
-// in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics,
-// see S3 Storage Lens metrics glossary (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_metrics_glossary.html)
-// in the Amazon S3 User Guide.
-type ActivityMetrics struct {
+// A container for the information associated with a CreateMultiRegionAccessPoint
+// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateMultiRegionAccessPoint.html)
+// request.
+type CreateMultiRegionAccessPointInput_ struct {
_ struct{} `type:"structure"`
- // A container that indicates whether activity metrics are enabled.
- IsEnabled *bool `type:"boolean"`
+ // The name of the Multi-Region Access Point associated with this request.
+ //
+ // Name is a required field
+ Name *string `type:"string" required:"true"`
+
+ // The PublicAccessBlock configuration that you want to apply to this Amazon
+ // S3 account. You can enable the configuration options in any combination.
+ // For more information about when Amazon S3 considers a bucket or object public,
+ // see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status)
+ // in the Amazon S3 User Guide.
+ //
+ // This data type is not supported for Amazon S3 on Outposts.
+ PublicAccessBlock *PublicAccessBlockConfiguration `type:"structure"`
+
+ // The buckets in different Regions that are associated with the Multi-Region
+ // Access Point.
+ //
+ // Regions is a required field
+ Regions []*Region `locationNameList:"Region" type:"list" required:"true"`
}
// String returns the string representation.
@@ -6933,7 +9199,7 @@ type ActivityMetrics struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ActivityMetrics) String() string {
+func (s CreateMultiRegionAccessPointInput_) String() string {
return awsutil.Prettify(s)
}
@@ -6942,73 +9208,61 @@ func (s ActivityMetrics) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ActivityMetrics) GoString() string {
+func (s CreateMultiRegionAccessPointInput_) GoString() string {
return s.String()
}
-// SetIsEnabled sets the IsEnabled field's value.
-func (s *ActivityMetrics) SetIsEnabled(v bool) *ActivityMetrics {
- s.IsEnabled = &v
- return s
-}
-
-// The container element for Amazon S3 Storage Lens advanced cost-optimization
-// metrics. Advanced cost-optimization metrics provide insights that you can
-// use to manage and optimize your storage costs, for example, lifecycle rule
-// counts for transitions, expirations, and incomplete multipart uploads.
-//
-// For more information about S3 Storage Lens, see Assessing your storage activity
-// and usage with S3 Storage Lens (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens.html)
-// in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics,
-// see S3 Storage Lens metrics glossary (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_metrics_glossary.html)
-// in the Amazon S3 User Guide.
-type AdvancedCostOptimizationMetrics struct {
- _ struct{} `type:"structure"`
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateMultiRegionAccessPointInput_) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateMultiRegionAccessPointInput_"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Regions == nil {
+ invalidParams.Add(request.NewErrParamRequired("Regions"))
+ }
+ if s.Regions != nil {
+ for i, v := range s.Regions {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Regions", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
- // A container that indicates whether advanced cost-optimization metrics are
- // enabled.
- IsEnabled *bool `type:"boolean"`
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AdvancedCostOptimizationMetrics) String() string {
- return awsutil.Prettify(s)
+// SetName sets the Name field's value.
+func (s *CreateMultiRegionAccessPointInput_) SetName(v string) *CreateMultiRegionAccessPointInput_ {
+ s.Name = &v
+ return s
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s AdvancedCostOptimizationMetrics) GoString() string {
- return s.String()
+// SetPublicAccessBlock sets the PublicAccessBlock field's value.
+func (s *CreateMultiRegionAccessPointInput_) SetPublicAccessBlock(v *PublicAccessBlockConfiguration) *CreateMultiRegionAccessPointInput_ {
+ s.PublicAccessBlock = v
+ return s
}
-// SetIsEnabled sets the IsEnabled field's value.
-func (s *AdvancedCostOptimizationMetrics) SetIsEnabled(v bool) *AdvancedCostOptimizationMetrics {
- s.IsEnabled = &v
+// SetRegions sets the Regions field's value.
+func (s *CreateMultiRegionAccessPointInput_) SetRegions(v []*Region) *CreateMultiRegionAccessPointInput_ {
+ s.Regions = v
return s
}
-// The container element for Amazon S3 Storage Lens advanced data-protection
-// metrics. Advanced data-protection metrics provide insights that you can use
-// to perform audits and protect your data, for example replication rule counts
-// within and across Regions.
-//
-// For more information about S3 Storage Lens, see Assessing your storage activity
-// and usage with S3 Storage Lens (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens.html)
-// in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics,
-// see S3 Storage Lens metrics glossary (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_metrics_glossary.html)
-// in the Amazon S3 User Guide.
-type AdvancedDataProtectionMetrics struct {
+type CreateMultiRegionAccessPointOutput struct {
_ struct{} `type:"structure"`
- // A container that indicates whether advanced data-protection metrics are enabled.
- IsEnabled *bool `type:"boolean"`
+ // The request token associated with the request. You can use this token with
+ // DescribeMultiRegionAccessPointOperation (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeMultiRegionAccessPointOperation.html)
+ // to determine the status of asynchronous requests.
+ RequestTokenARN *string `min:"1" type:"string"`
}
// String returns the string representation.
@@ -7016,7 +9270,7 @@ type AdvancedDataProtectionMetrics struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AdvancedDataProtectionMetrics) String() string {
+func (s CreateMultiRegionAccessPointOutput) String() string {
return awsutil.Prettify(s)
}
@@ -7025,31 +9279,33 @@ func (s AdvancedDataProtectionMetrics) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AdvancedDataProtectionMetrics) GoString() string {
+func (s CreateMultiRegionAccessPointOutput) GoString() string {
return s.String()
}
-// SetIsEnabled sets the IsEnabled field's value.
-func (s *AdvancedDataProtectionMetrics) SetIsEnabled(v bool) *AdvancedDataProtectionMetrics {
- s.IsEnabled = &v
+// SetRequestTokenARN sets the RequestTokenARN field's value.
+func (s *CreateMultiRegionAccessPointOutput) SetRequestTokenARN(v string) *CreateMultiRegionAccessPointOutput {
+ s.RequestTokenARN = &v
return s
}
-// Error details for the failed asynchronous operation.
-type AsyncErrorDetails struct {
- _ struct{} `type:"structure"`
-
- // A string that uniquely identifies the error condition.
- Code *string `type:"string"`
+type CreateStorageLensGroupInput struct {
+ _ struct{} `locationName:"CreateStorageLensGroupRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
- // A generic description of the error condition in English.
- Message *string `type:"string"`
+ // The Amazon Web Services account ID that the Storage Lens group is created
+ // from and associated with.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The ID of the request associated with the error.
- RequestId *string `type:"string"`
+ // The Storage Lens group configuration.
+ //
+ // StorageLensGroup is a required field
+ StorageLensGroup *StorageLensGroup `type:"structure" required:"true"`
- // The identifier of the resource associated with the error.
- Resource *string `type:"string"`
+ // The Amazon Web Services resource tags that you're adding to your Storage
+ // Lens group. This parameter is optional.
+ Tags []*Tag `locationNameList:"Tag" type:"list"`
}
// String returns the string representation.
@@ -7057,7 +9313,7 @@ type AsyncErrorDetails struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AsyncErrorDetails) String() string {
+func (s CreateStorageLensGroupInput) String() string {
return awsutil.Prettify(s)
}
@@ -7066,55 +9322,70 @@ func (s AsyncErrorDetails) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AsyncErrorDetails) GoString() string {
+func (s CreateStorageLensGroupInput) GoString() string {
return s.String()
}
-// SetCode sets the Code field's value.
-func (s *AsyncErrorDetails) SetCode(v string) *AsyncErrorDetails {
- s.Code = &v
- return s
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateStorageLensGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateStorageLensGroupInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.StorageLensGroup == nil {
+ invalidParams.Add(request.NewErrParamRequired("StorageLensGroup"))
+ }
+ if s.StorageLensGroup != nil {
+ if err := s.StorageLensGroup.Validate(); err != nil {
+ invalidParams.AddNested("StorageLensGroup", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetMessage sets the Message field's value.
-func (s *AsyncErrorDetails) SetMessage(v string) *AsyncErrorDetails {
- s.Message = &v
+// SetAccountId sets the AccountId field's value.
+func (s *CreateStorageLensGroupInput) SetAccountId(v string) *CreateStorageLensGroupInput {
+ s.AccountId = &v
return s
}
-// SetRequestId sets the RequestId field's value.
-func (s *AsyncErrorDetails) SetRequestId(v string) *AsyncErrorDetails {
- s.RequestId = &v
+// SetStorageLensGroup sets the StorageLensGroup field's value.
+func (s *CreateStorageLensGroupInput) SetStorageLensGroup(v *StorageLensGroup) *CreateStorageLensGroupInput {
+ s.StorageLensGroup = v
return s
}
-// SetResource sets the Resource field's value.
-func (s *AsyncErrorDetails) SetResource(v string) *AsyncErrorDetails {
- s.Resource = &v
+// SetTags sets the Tags field's value.
+func (s *CreateStorageLensGroupInput) SetTags(v []*Tag) *CreateStorageLensGroupInput {
+ s.Tags = v
return s
}
-// A container for the information about an asynchronous operation.
-type AsyncOperation struct {
- _ struct{} `type:"structure"`
-
- // The time that the request was sent to the service.
- CreationTime *time.Time `type:"timestamp"`
-
- // The specific operation for the asynchronous request.
- Operation *string `type:"string" enum:"AsyncOperationName"`
-
- // The parameters associated with the request.
- RequestParameters *AsyncRequestParameters `type:"structure"`
-
- // The current status of the request.
- RequestStatus *string `type:"string"`
-
- // The request token associated with the request.
- RequestTokenARN *string `min:"1" type:"string"`
+func (s *CreateStorageLensGroupInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
- // The details of the response.
- ResponseDetails *AsyncResponseDetails `type:"structure"`
+type CreateStorageLensGroupOutput struct {
+ _ struct{} `type:"structure"`
}
// String returns the string representation.
@@ -7122,7 +9393,7 @@ type AsyncOperation struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AsyncOperation) String() string {
+func (s CreateStorageLensGroupOutput) String() string {
return awsutil.Prettify(s)
}
@@ -7131,61 +9402,23 @@ func (s AsyncOperation) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AsyncOperation) GoString() string {
+func (s CreateStorageLensGroupOutput) GoString() string {
return s.String()
}
-// SetCreationTime sets the CreationTime field's value.
-func (s *AsyncOperation) SetCreationTime(v time.Time) *AsyncOperation {
- s.CreationTime = &v
- return s
-}
-
-// SetOperation sets the Operation field's value.
-func (s *AsyncOperation) SetOperation(v string) *AsyncOperation {
- s.Operation = &v
- return s
-}
-
-// SetRequestParameters sets the RequestParameters field's value.
-func (s *AsyncOperation) SetRequestParameters(v *AsyncRequestParameters) *AsyncOperation {
- s.RequestParameters = v
- return s
-}
-
-// SetRequestStatus sets the RequestStatus field's value.
-func (s *AsyncOperation) SetRequestStatus(v string) *AsyncOperation {
- s.RequestStatus = &v
- return s
-}
-
-// SetRequestTokenARN sets the RequestTokenARN field's value.
-func (s *AsyncOperation) SetRequestTokenARN(v string) *AsyncOperation {
- s.RequestTokenARN = &v
- return s
-}
-
-// SetResponseDetails sets the ResponseDetails field's value.
-func (s *AsyncOperation) SetResponseDetails(v *AsyncResponseDetails) *AsyncOperation {
- s.ResponseDetails = v
- return s
-}
-
-// A container for the request parameters associated with an asynchronous request.
-type AsyncRequestParameters struct {
- _ struct{} `type:"structure"`
-
- // A container of the parameters for a CreateMultiRegionAccessPoint (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateMultiRegionAccessPoint.html)
- // request.
- CreateMultiRegionAccessPointRequest *CreateMultiRegionAccessPointInput_ `type:"structure"`
+type DeleteAccessPointForObjectLambdaInput struct {
+ _ struct{} `locationName:"DeleteAccessPointForObjectLambdaRequest" type:"structure"`
- // A container of the parameters for a DeleteMultiRegionAccessPoint (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteMultiRegionAccessPoint.html)
- // request.
- DeleteMultiRegionAccessPointRequest *DeleteMultiRegionAccessPointInput_ `type:"structure"`
+ // The account ID for the account that owns the specified Object Lambda Access
+ // Point.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // A container of the parameters for a PutMultiRegionAccessPoint (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutMultiRegionAccessPoint.html)
- // request.
- PutMultiRegionAccessPointPolicyRequest *PutMultiRegionAccessPointPolicyInput_ `type:"structure"`
+ // The name of the access point you want to delete.
+ //
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -7193,7 +9426,7 @@ type AsyncRequestParameters struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AsyncRequestParameters) String() string {
+func (s DeleteAccessPointForObjectLambdaInput) String() string {
return awsutil.Prettify(s)
}
@@ -7202,38 +9435,52 @@ func (s AsyncRequestParameters) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AsyncRequestParameters) GoString() string {
+func (s DeleteAccessPointForObjectLambdaInput) GoString() string {
return s.String()
}
-// SetCreateMultiRegionAccessPointRequest sets the CreateMultiRegionAccessPointRequest field's value.
-func (s *AsyncRequestParameters) SetCreateMultiRegionAccessPointRequest(v *CreateMultiRegionAccessPointInput_) *AsyncRequestParameters {
- s.CreateMultiRegionAccessPointRequest = v
- return s
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteAccessPointForObjectLambdaInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteAccessPointForObjectLambdaInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetDeleteMultiRegionAccessPointRequest sets the DeleteMultiRegionAccessPointRequest field's value.
-func (s *AsyncRequestParameters) SetDeleteMultiRegionAccessPointRequest(v *DeleteMultiRegionAccessPointInput_) *AsyncRequestParameters {
- s.DeleteMultiRegionAccessPointRequest = v
+// SetAccountId sets the AccountId field's value.
+func (s *DeleteAccessPointForObjectLambdaInput) SetAccountId(v string) *DeleteAccessPointForObjectLambdaInput {
+ s.AccountId = &v
return s
}
-// SetPutMultiRegionAccessPointPolicyRequest sets the PutMultiRegionAccessPointPolicyRequest field's value.
-func (s *AsyncRequestParameters) SetPutMultiRegionAccessPointPolicyRequest(v *PutMultiRegionAccessPointPolicyInput_) *AsyncRequestParameters {
- s.PutMultiRegionAccessPointPolicyRequest = v
+// SetName sets the Name field's value.
+func (s *DeleteAccessPointForObjectLambdaInput) SetName(v string) *DeleteAccessPointForObjectLambdaInput {
+ s.Name = &v
return s
}
-// A container for the response details that are returned when querying about
-// an asynchronous request.
-type AsyncResponseDetails struct {
- _ struct{} `type:"structure"`
-
- // Error details for an asynchronous request.
- ErrorDetails *AsyncErrorDetails `type:"structure"`
+func (s *DeleteAccessPointForObjectLambdaInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
- // The details for the Multi-Region Access Point.
- MultiRegionAccessPointDetails *MultiRegionAccessPointsAsyncResponse `type:"structure"`
+type DeleteAccessPointForObjectLambdaOutput struct {
+ _ struct{} `type:"structure"`
}
// String returns the string representation.
@@ -7241,7 +9488,7 @@ type AsyncResponseDetails struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AsyncResponseDetails) String() string {
+func (s DeleteAccessPointForObjectLambdaOutput) String() string {
return awsutil.Prettify(s)
}
@@ -7250,35 +9497,34 @@ func (s AsyncResponseDetails) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AsyncResponseDetails) GoString() string {
+func (s DeleteAccessPointForObjectLambdaOutput) GoString() string {
return s.String()
}
-// SetErrorDetails sets the ErrorDetails field's value.
-func (s *AsyncResponseDetails) SetErrorDetails(v *AsyncErrorDetails) *AsyncResponseDetails {
- s.ErrorDetails = v
- return s
-}
-
-// SetMultiRegionAccessPointDetails sets the MultiRegionAccessPointDetails field's value.
-func (s *AsyncResponseDetails) SetMultiRegionAccessPointDetails(v *MultiRegionAccessPointsAsyncResponse) *AsyncResponseDetails {
- s.MultiRegionAccessPointDetails = v
- return s
-}
-
-// Lambda function used to transform objects through an Object Lambda Access
-// Point.
-type AwsLambdaTransformation struct {
- _ struct{} `type:"structure"`
+type DeleteAccessPointInput struct {
+ _ struct{} `locationName:"DeleteAccessPointRequest" type:"structure"`
- // The Amazon Resource Name (ARN) of the Lambda function.
+ // The Amazon Web Services account ID for the account that owns the specified
+ // access point.
//
- // FunctionArn is a required field
- FunctionArn *string `min:"1" type:"string" required:"true"`
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // Additional JSON that provides supplemental data to the Lambda function used
- // to transform objects.
- FunctionPayload *string `type:"string"`
+ // The name of the access point you want to delete.
+ //
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
+ //
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the access point accessed in the
+ // format arn:aws:s3-outposts:::outpost//accesspoint/.
+ // For example, to access the access point reports-ap through Outpost my-outpost
+ // owned by account 123456789012 in Region us-west-2, use the URL encoding of
+ // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap.
+ // The value must be URL encoded.
+ //
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -7286,7 +9532,7 @@ type AwsLambdaTransformation struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AwsLambdaTransformation) String() string {
+func (s DeleteAccessPointInput) String() string {
return awsutil.Prettify(s)
}
@@ -7295,18 +9541,24 @@ func (s AwsLambdaTransformation) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AwsLambdaTransformation) GoString() string {
+func (s DeleteAccessPointInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *AwsLambdaTransformation) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AwsLambdaTransformation"}
- if s.FunctionArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FunctionArn"))
+func (s *DeleteAccessPointInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteAccessPointInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
- if s.FunctionArn != nil && len(*s.FunctionArn) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FunctionArn", 1))
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 3))
}
if invalidParams.Len() > 0 {
@@ -7315,43 +9567,101 @@ func (s *AwsLambdaTransformation) Validate() error {
return nil
}
-// SetFunctionArn sets the FunctionArn field's value.
-func (s *AwsLambdaTransformation) SetFunctionArn(v string) *AwsLambdaTransformation {
- s.FunctionArn = &v
+// SetAccountId sets the AccountId field's value.
+func (s *DeleteAccessPointInput) SetAccountId(v string) *DeleteAccessPointInput {
+ s.AccountId = &v
return s
}
-// SetFunctionPayload sets the FunctionPayload field's value.
-func (s *AwsLambdaTransformation) SetFunctionPayload(v string) *AwsLambdaTransformation {
- s.FunctionPayload = &v
+// SetName sets the Name field's value.
+func (s *DeleteAccessPointInput) SetName(v string) *DeleteAccessPointInput {
+ s.Name = &v
return s
}
-// A container for the bucket-level configuration for Amazon S3 Storage Lens.
-//
-// For more information about S3 Storage Lens, see Assessing your storage activity
-// and usage with S3 Storage Lens (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens.html)
-// in the Amazon S3 User Guide.
-type BucketLevel struct {
+func (s *DeleteAccessPointInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
+
+func (s *DeleteAccessPointInput) getEndpointARN() (arn.Resource, error) {
+ if s.Name == nil {
+ return nil, fmt.Errorf("member Name is nil")
+ }
+ return parseEndpointARN(*s.Name)
+}
+
+func (s *DeleteAccessPointInput) hasEndpointARN() bool {
+ if s.Name == nil {
+ return false
+ }
+ return arn.IsARN(*s.Name)
+}
+
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s DeleteAccessPointInput) updateArnableField(v string) (interface{}, error) {
+ if s.Name == nil {
+ return nil, fmt.Errorf("member Name is nil")
+ }
+ s.Name = aws.String(v)
+ return &s, nil
+}
+
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s DeleteAccessPointInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
+}
+
+type DeleteAccessPointOutput struct {
_ struct{} `type:"structure"`
+}
- // A container for the bucket-level activity metrics for S3 Storage Lens.
- ActivityMetrics *ActivityMetrics `type:"structure"`
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteAccessPointOutput) String() string {
+ return awsutil.Prettify(s)
+}
- // A container for bucket-level advanced cost-optimization metrics for S3 Storage
- // Lens.
- AdvancedCostOptimizationMetrics *AdvancedCostOptimizationMetrics `type:"structure"`
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteAccessPointOutput) GoString() string {
+ return s.String()
+}
- // A container for bucket-level advanced data-protection metrics for S3 Storage
- // Lens.
- AdvancedDataProtectionMetrics *AdvancedDataProtectionMetrics `type:"structure"`
+type DeleteAccessPointPolicyForObjectLambdaInput struct {
+ _ struct{} `locationName:"DeleteAccessPointPolicyForObjectLambdaRequest" type:"structure"`
- // A container for bucket-level detailed status code metrics for S3 Storage
- // Lens.
- DetailedStatusCodesMetrics *DetailedStatusCodesMetrics `type:"structure"`
+ // The account ID for the account that owns the specified Object Lambda Access
+ // Point.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // A container for the prefix-level metrics for S3 Storage Lens.
- PrefixLevel *PrefixLevel `type:"structure"`
+ // The name of the Object Lambda Access Point you want to delete the policy
+ // for.
+ //
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -7359,7 +9669,7 @@ type BucketLevel struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s BucketLevel) String() string {
+func (s DeleteAccessPointPolicyForObjectLambdaInput) String() string {
return awsutil.Prettify(s)
}
@@ -7368,17 +9678,24 @@ func (s BucketLevel) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s BucketLevel) GoString() string {
+func (s DeleteAccessPointPolicyForObjectLambdaInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *BucketLevel) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "BucketLevel"}
- if s.PrefixLevel != nil {
- if err := s.PrefixLevel.Validate(); err != nil {
- invalidParams.AddNested("PrefixLevel", err.(request.ErrInvalidParams))
- }
+func (s *DeleteAccessPointPolicyForObjectLambdaInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteAccessPointPolicyForObjectLambdaInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 3))
}
if invalidParams.Len() > 0 {
@@ -7387,51 +9704,26 @@ func (s *BucketLevel) Validate() error {
return nil
}
-// SetActivityMetrics sets the ActivityMetrics field's value.
-func (s *BucketLevel) SetActivityMetrics(v *ActivityMetrics) *BucketLevel {
- s.ActivityMetrics = v
- return s
-}
-
-// SetAdvancedCostOptimizationMetrics sets the AdvancedCostOptimizationMetrics field's value.
-func (s *BucketLevel) SetAdvancedCostOptimizationMetrics(v *AdvancedCostOptimizationMetrics) *BucketLevel {
- s.AdvancedCostOptimizationMetrics = v
- return s
-}
-
-// SetAdvancedDataProtectionMetrics sets the AdvancedDataProtectionMetrics field's value.
-func (s *BucketLevel) SetAdvancedDataProtectionMetrics(v *AdvancedDataProtectionMetrics) *BucketLevel {
- s.AdvancedDataProtectionMetrics = v
+// SetAccountId sets the AccountId field's value.
+func (s *DeleteAccessPointPolicyForObjectLambdaInput) SetAccountId(v string) *DeleteAccessPointPolicyForObjectLambdaInput {
+ s.AccountId = &v
return s
}
-// SetDetailedStatusCodesMetrics sets the DetailedStatusCodesMetrics field's value.
-func (s *BucketLevel) SetDetailedStatusCodesMetrics(v *DetailedStatusCodesMetrics) *BucketLevel {
- s.DetailedStatusCodesMetrics = v
+// SetName sets the Name field's value.
+func (s *DeleteAccessPointPolicyForObjectLambdaInput) SetName(v string) *DeleteAccessPointPolicyForObjectLambdaInput {
+ s.Name = &v
return s
}
-// SetPrefixLevel sets the PrefixLevel field's value.
-func (s *BucketLevel) SetPrefixLevel(v *PrefixLevel) *BucketLevel {
- s.PrefixLevel = v
- return s
+func (s *DeleteAccessPointPolicyForObjectLambdaInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
}
-// A container for enabling Amazon CloudWatch publishing for S3 Storage Lens
-// metrics.
-//
-// For more information about publishing S3 Storage Lens metrics to CloudWatch,
-// see Monitor S3 Storage Lens metrics in CloudWatch (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_view_metrics_cloudwatch.html)
-// in the Amazon S3 User Guide.
-type CloudWatchMetrics struct {
+type DeleteAccessPointPolicyForObjectLambdaOutput struct {
_ struct{} `type:"structure"`
-
- // A container that indicates whether CloudWatch publishing for S3 Storage Lens
- // metrics is enabled. A value of true indicates that CloudWatch publishing
- // for S3 Storage Lens metrics is enabled.
- //
- // IsEnabled is a required field
- IsEnabled *bool `type:"boolean" required:"true"`
}
// String returns the string representation.
@@ -7439,7 +9731,7 @@ type CloudWatchMetrics struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CloudWatchMetrics) String() string {
+func (s DeleteAccessPointPolicyForObjectLambdaOutput) String() string {
return awsutil.Prettify(s)
}
@@ -7448,44 +9740,30 @@ func (s CloudWatchMetrics) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CloudWatchMetrics) GoString() string {
+func (s DeleteAccessPointPolicyForObjectLambdaOutput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *CloudWatchMetrics) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CloudWatchMetrics"}
- if s.IsEnabled == nil {
- invalidParams.Add(request.NewErrParamRequired("IsEnabled"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetIsEnabled sets the IsEnabled field's value.
-func (s *CloudWatchMetrics) SetIsEnabled(v bool) *CloudWatchMetrics {
- s.IsEnabled = &v
- return s
-}
-
-type CreateAccessPointForObjectLambdaInput struct {
- _ struct{} `locationName:"CreateAccessPointForObjectLambdaRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+type DeleteAccessPointPolicyInput struct {
+ _ struct{} `locationName:"DeleteAccessPointPolicyRequest" type:"structure"`
- // The Amazon Web Services account ID for owner of the specified Object Lambda
- // Access Point.
+ // The account ID for the account that owns the specified access point.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // Object Lambda Access Point configuration as a JSON document.
+ // The name of the access point whose policy you want to delete.
//
- // Configuration is a required field
- Configuration *ObjectLambdaConfiguration `type:"structure" required:"true"`
-
- // The name you want to assign to this Object Lambda Access Point.
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
+ //
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the access point accessed in the
+ // format arn:aws:s3-outposts:::outpost//accesspoint/.
+ // For example, to access the access point reports-ap through Outpost my-outpost
+ // owned by account 123456789012 in Region us-west-2, use the URL encoding of
+ // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap.
+ // The value must be URL encoded.
//
// Name is a required field
Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
@@ -7496,7 +9774,7 @@ type CreateAccessPointForObjectLambdaInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateAccessPointForObjectLambdaInput) String() string {
+func (s DeleteAccessPointPolicyInput) String() string {
return awsutil.Prettify(s)
}
@@ -7505,33 +9783,25 @@ func (s CreateAccessPointForObjectLambdaInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateAccessPointForObjectLambdaInput) GoString() string {
+func (s DeleteAccessPointPolicyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CreateAccessPointForObjectLambdaInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateAccessPointForObjectLambdaInput"}
+func (s *DeleteAccessPointPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteAccessPointPolicyInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Configuration == nil {
- invalidParams.Add(request.NewErrParamRequired("Configuration"))
- }
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Name != nil && len(*s.Name) < 3 {
invalidParams.Add(request.NewErrParamMinLen("Name", 3))
}
- if s.Configuration != nil {
- if err := s.Configuration.Validate(); err != nil {
- invalidParams.AddNested("Configuration", err.(request.ErrInvalidParams))
- }
- }
if invalidParams.Len() > 0 {
return invalidParams
@@ -7540,37 +9810,108 @@ func (s *CreateAccessPointForObjectLambdaInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *CreateAccessPointForObjectLambdaInput) SetAccountId(v string) *CreateAccessPointForObjectLambdaInput {
+func (s *DeleteAccessPointPolicyInput) SetAccountId(v string) *DeleteAccessPointPolicyInput {
s.AccountId = &v
return s
}
-// SetConfiguration sets the Configuration field's value.
-func (s *CreateAccessPointForObjectLambdaInput) SetConfiguration(v *ObjectLambdaConfiguration) *CreateAccessPointForObjectLambdaInput {
- s.Configuration = v
- return s
-}
-
// SetName sets the Name field's value.
-func (s *CreateAccessPointForObjectLambdaInput) SetName(v string) *CreateAccessPointForObjectLambdaInput {
+func (s *DeleteAccessPointPolicyInput) SetName(v string) *DeleteAccessPointPolicyInput {
s.Name = &v
return s
}
-func (s *CreateAccessPointForObjectLambdaInput) hostLabels() map[string]string {
+func (s *DeleteAccessPointPolicyInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-type CreateAccessPointForObjectLambdaOutput struct {
+func (s *DeleteAccessPointPolicyInput) getEndpointARN() (arn.Resource, error) {
+ if s.Name == nil {
+ return nil, fmt.Errorf("member Name is nil")
+ }
+ return parseEndpointARN(*s.Name)
+}
+
+func (s *DeleteAccessPointPolicyInput) hasEndpointARN() bool {
+ if s.Name == nil {
+ return false
+ }
+ return arn.IsARN(*s.Name)
+}
+
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s DeleteAccessPointPolicyInput) updateArnableField(v string) (interface{}, error) {
+ if s.Name == nil {
+ return nil, fmt.Errorf("member Name is nil")
+ }
+ s.Name = aws.String(v)
+ return &s, nil
+}
+
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s DeleteAccessPointPolicyInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
+}
+
+type DeleteAccessPointPolicyOutput struct {
_ struct{} `type:"structure"`
+}
- // The alias of the Object Lambda Access Point.
- Alias *ObjectLambdaAccessPointAlias `type:"structure"`
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteAccessPointPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
- // Specifies the ARN for the Object Lambda Access Point.
- ObjectLambdaAccessPointArn *string `min:"1" type:"string"`
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteAccessPointPolicyOutput) GoString() string {
+ return s.String()
+}
+
+type DeleteBucketInput struct {
+ _ struct{} `locationName:"DeleteBucketRequest" type:"structure"`
+
+ // The account ID that owns the Outposts bucket.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+
+ // Specifies the bucket being deleted.
+ //
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
+ //
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the bucket accessed in the format
+ // arn:aws:s3-outposts:::outpost//bucket/.
+ // For example, to access the bucket reports through Outpost my-outpost owned
+ // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
+ // The value must be URL encoded.
+ //
+ // Bucket is a required field
+ Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -7578,7 +9919,7 @@ type CreateAccessPointForObjectLambdaOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateAccessPointForObjectLambdaOutput) String() string {
+func (s DeleteBucketInput) String() string {
return awsutil.Prettify(s)
}
@@ -7587,32 +9928,100 @@ func (s CreateAccessPointForObjectLambdaOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateAccessPointForObjectLambdaOutput) GoString() string {
+func (s DeleteBucketInput) GoString() string {
return s.String()
}
-// SetAlias sets the Alias field's value.
-func (s *CreateAccessPointForObjectLambdaOutput) SetAlias(v *ObjectLambdaAccessPointAlias) *CreateAccessPointForObjectLambdaOutput {
- s.Alias = v
- return s
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteBucketInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteBucketInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
+ }
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *DeleteBucketInput) SetAccountId(v string) *DeleteBucketInput {
+ s.AccountId = &v
+ return s
+}
+
+// SetBucket sets the Bucket field's value.
+func (s *DeleteBucketInput) SetBucket(v string) *DeleteBucketInput {
+ s.Bucket = &v
+ return s
+}
+
+func (s *DeleteBucketInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
+
+func (s *DeleteBucketInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *DeleteBucketInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
}
-// SetObjectLambdaAccessPointArn sets the ObjectLambdaAccessPointArn field's value.
-func (s *CreateAccessPointForObjectLambdaOutput) SetObjectLambdaAccessPointArn(v string) *CreateAccessPointForObjectLambdaOutput {
- s.ObjectLambdaAccessPointArn = &v
- return s
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s DeleteBucketInput) updateArnableField(v string) (interface{}, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ s.Bucket = aws.String(v)
+ return &s, nil
}
-type CreateAccessPointInput struct {
- _ struct{} `locationName:"CreateAccessPointRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s DeleteBucketInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
+}
- // The Amazon Web Services account ID for the account that owns the specified
- // access point.
+type DeleteBucketLifecycleConfigurationInput struct {
+ _ struct{} `locationName:"DeleteBucketLifecycleConfigurationRequest" type:"structure"`
+
+ // The account ID of the lifecycle configuration to delete.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The name of the bucket that you want to associate this access point with.
+ // Specifies the bucket.
//
// For using this parameter with Amazon S3 on Outposts with the REST API, you
// must specify the name and the x-amz-outpost-id as well.
@@ -7625,26 +10034,7 @@ type CreateAccessPointInput struct {
// The value must be URL encoded.
//
// Bucket is a required field
- Bucket *string `min:"3" type:"string" required:"true"`
-
- // The Amazon Web Services account ID associated with the S3 bucket associated
- // with this access point.
- BucketAccountId *string `type:"string"`
-
- // The name you want to assign to this access point.
- //
- // Name is a required field
- Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
-
- // The PublicAccessBlock configuration that you want to apply to the access
- // point.
- PublicAccessBlockConfiguration *PublicAccessBlockConfiguration `type:"structure"`
-
- // If you include this field, Amazon S3 restricts access to this access point
- // to requests from the specified virtual private cloud (VPC).
- //
- // This is required for creating an access point for Amazon S3 on Outposts buckets.
- VpcConfiguration *VpcConfiguration `type:"structure"`
+ Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -7652,7 +10042,7 @@ type CreateAccessPointInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateAccessPointInput) String() string {
+func (s DeleteBucketLifecycleConfigurationInput) String() string {
return awsutil.Prettify(s)
}
@@ -7661,13 +10051,13 @@ func (s CreateAccessPointInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateAccessPointInput) GoString() string {
+func (s DeleteBucketLifecycleConfigurationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CreateAccessPointInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateAccessPointInput"}
+func (s *DeleteBucketLifecycleConfigurationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteBucketLifecycleConfigurationInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
@@ -7680,17 +10070,6 @@ func (s *CreateAccessPointInput) Validate() error {
if s.Bucket != nil && len(*s.Bucket) < 3 {
invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 3))
- }
- if s.VpcConfiguration != nil {
- if err := s.VpcConfiguration.Validate(); err != nil {
- invalidParams.AddNested("VpcConfiguration", err.(request.ErrInvalidParams))
- }
- }
if invalidParams.Len() > 0 {
return invalidParams
@@ -7699,55 +10078,31 @@ func (s *CreateAccessPointInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *CreateAccessPointInput) SetAccountId(v string) *CreateAccessPointInput {
+func (s *DeleteBucketLifecycleConfigurationInput) SetAccountId(v string) *DeleteBucketLifecycleConfigurationInput {
s.AccountId = &v
return s
}
// SetBucket sets the Bucket field's value.
-func (s *CreateAccessPointInput) SetBucket(v string) *CreateAccessPointInput {
+func (s *DeleteBucketLifecycleConfigurationInput) SetBucket(v string) *DeleteBucketLifecycleConfigurationInput {
s.Bucket = &v
return s
}
-// SetBucketAccountId sets the BucketAccountId field's value.
-func (s *CreateAccessPointInput) SetBucketAccountId(v string) *CreateAccessPointInput {
- s.BucketAccountId = &v
- return s
-}
-
-// SetName sets the Name field's value.
-func (s *CreateAccessPointInput) SetName(v string) *CreateAccessPointInput {
- s.Name = &v
- return s
-}
-
-// SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field's value.
-func (s *CreateAccessPointInput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *CreateAccessPointInput {
- s.PublicAccessBlockConfiguration = v
- return s
-}
-
-// SetVpcConfiguration sets the VpcConfiguration field's value.
-func (s *CreateAccessPointInput) SetVpcConfiguration(v *VpcConfiguration) *CreateAccessPointInput {
- s.VpcConfiguration = v
- return s
-}
-
-func (s *CreateAccessPointInput) hostLabels() map[string]string {
+func (s *DeleteBucketLifecycleConfigurationInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-func (s *CreateAccessPointInput) getEndpointARN() (arn.Resource, error) {
+func (s *DeleteBucketLifecycleConfigurationInput) getEndpointARN() (arn.Resource, error) {
if s.Bucket == nil {
return nil, fmt.Errorf("member Bucket is nil")
}
return parseEndpointARN(*s.Bucket)
}
-func (s *CreateAccessPointInput) hasEndpointARN() bool {
+func (s *DeleteBucketLifecycleConfigurationInput) hasEndpointARN() bool {
if s.Bucket == nil {
return false
}
@@ -7759,7 +10114,7 @@ func (s *CreateAccessPointInput) hasEndpointARN() bool {
// the parsed resource name from ARN into the input member.
// It returns a pointer to a modified copy of input and an error.
// Note that original input is not modified.
-func (s CreateAccessPointInput) updateArnableField(v string) (interface{}, error) {
+func (s DeleteBucketLifecycleConfigurationInput) updateArnableField(v string) (interface{}, error) {
if s.Bucket == nil {
return nil, fmt.Errorf("member Bucket is nil")
}
@@ -7771,7 +10126,7 @@ func (s CreateAccessPointInput) updateArnableField(v string) (interface{}, error
// if account id is not provided, we update the account id in modified input
// if account id is provided, but doesn't match with the one in ARN, we throw an error
// if account id is not updated, we return nil. Note that original input is not modified.
-func (s CreateAccessPointInput) updateAccountID(accountId string) (interface{}, error) {
+func (s DeleteBucketLifecycleConfigurationInput) updateAccountID(accountId string) (interface{}, error) {
if s.AccountId == nil {
s.AccountId = aws.String(accountId)
return &s, nil
@@ -7781,30 +10136,72 @@ func (s CreateAccessPointInput) updateAccountID(accountId string) (interface{},
return nil, nil
}
-// updateBucketAccountId returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s CreateAccessPointInput) updateBucketAccountId(accountId string) (interface{}, error) {
- if s.BucketAccountId == nil {
- s.BucketAccountId = aws.String(accountId)
- return &s, nil
- } else if *s.BucketAccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
+type DeleteBucketLifecycleConfigurationOutput struct {
+ _ struct{} `type:"structure"`
}
-type CreateAccessPointOutput struct {
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteBucketLifecycleConfigurationOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteBucketLifecycleConfigurationOutput) GoString() string {
+ return s.String()
+}
+
+type DeleteBucketOutput struct {
_ struct{} `type:"structure"`
+}
- // The ARN of the access point.
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteBucketOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteBucketOutput) GoString() string {
+ return s.String()
+}
+
+type DeleteBucketPolicyInput struct {
+ _ struct{} `locationName:"DeleteBucketPolicyRequest" type:"structure"`
+
+ // The account ID of the Outposts bucket.
//
- // This is only supported by Amazon S3 on Outposts.
- AccessPointArn *string `min:"4" type:"string"`
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The name or alias of the access point.
- Alias *string `type:"string"`
+ // Specifies the bucket.
+ //
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
+ //
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the bucket accessed in the format
+ // arn:aws:s3-outposts:::outpost//bucket/.
+ // For example, to access the bucket reports through Outpost my-outpost owned
+ // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
+ // The value must be URL encoded.
+ //
+ // Bucket is a required field
+ Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -7812,7 +10209,7 @@ type CreateAccessPointOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateAccessPointOutput) String() string {
+func (s DeleteBucketPolicyInput) String() string {
return awsutil.Prettify(s)
}
@@ -7821,34 +10218,93 @@ func (s CreateAccessPointOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateAccessPointOutput) GoString() string {
+func (s DeleteBucketPolicyInput) GoString() string {
return s.String()
}
-// SetAccessPointArn sets the AccessPointArn field's value.
-func (s *CreateAccessPointOutput) SetAccessPointArn(v string) *CreateAccessPointOutput {
- s.AccessPointArn = &v
- return s
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteBucketPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteBucketPolicyInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
+ }
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *DeleteBucketPolicyInput) SetAccountId(v string) *DeleteBucketPolicyInput {
+ s.AccountId = &v
+ return s
+}
+
+// SetBucket sets the Bucket field's value.
+func (s *DeleteBucketPolicyInput) SetBucket(v string) *DeleteBucketPolicyInput {
+ s.Bucket = &v
+ return s
+}
+
+func (s *DeleteBucketPolicyInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
+
+func (s *DeleteBucketPolicyInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *DeleteBucketPolicyInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
}
-// SetAlias sets the Alias field's value.
-func (s *CreateAccessPointOutput) SetAlias(v string) *CreateAccessPointOutput {
- s.Alias = &v
- return s
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s DeleteBucketPolicyInput) updateArnableField(v string) (interface{}, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ s.Bucket = aws.String(v)
+ return &s, nil
}
-// The container for the bucket configuration.
-//
-// This is not supported by Amazon S3 on Outposts buckets.
-type CreateBucketConfiguration struct {
- _ struct{} `type:"structure"`
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s DeleteBucketPolicyInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
+}
- // Specifies the Region where the bucket will be created. If you are creating
- // a bucket on the US East (N. Virginia) Region (us-east-1), you do not need
- // to specify the location.
- //
- // This is not supported by Amazon S3 on Outposts buckets.
- LocationConstraint *string `type:"string" enum:"BucketLocationConstraint"`
+type DeleteBucketPolicyOutput struct {
+ _ struct{} `type:"structure"`
}
// String returns the string representation.
@@ -7856,7 +10312,7 @@ type CreateBucketConfiguration struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateBucketConfiguration) String() string {
+func (s DeleteBucketPolicyOutput) String() string {
return awsutil.Prettify(s)
}
@@ -7865,69 +10321,34 @@ func (s CreateBucketConfiguration) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateBucketConfiguration) GoString() string {
+func (s DeleteBucketPolicyOutput) GoString() string {
return s.String()
}
-// SetLocationConstraint sets the LocationConstraint field's value.
-func (s *CreateBucketConfiguration) SetLocationConstraint(v string) *CreateBucketConfiguration {
- s.LocationConstraint = &v
- return s
-}
-
-type CreateBucketInput struct {
- _ struct{} `locationName:"CreateBucketRequest" type:"structure" payload:"CreateBucketConfiguration"`
-
- // The canned ACL to apply to the bucket.
- //
- // This is not supported by Amazon S3 on Outposts buckets.
- ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"BucketCannedACL"`
-
- // The name of the bucket.
- //
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
-
- // The configuration information for the bucket.
- //
- // This is not supported by Amazon S3 on Outposts buckets.
- CreateBucketConfiguration *CreateBucketConfiguration `locationName:"CreateBucketConfiguration" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
-
- // Allows grantee the read, write, read ACP, and write ACP permissions on the
- // bucket.
- //
- // This is not supported by Amazon S3 on Outposts buckets.
- GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"`
-
- // Allows grantee to list the objects in the bucket.
- //
- // This is not supported by Amazon S3 on Outposts buckets.
- GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"`
-
- // Allows grantee to read the bucket ACL.
- //
- // This is not supported by Amazon S3 on Outposts buckets.
- GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"`
+type DeleteBucketReplicationInput struct {
+ _ struct{} `locationName:"DeleteBucketReplicationRequest" type:"structure"`
- // Allows grantee to create, overwrite, and delete any object in the bucket.
+ // The Amazon Web Services account ID of the Outposts bucket to delete the replication
+ // configuration for.
//
- // This is not supported by Amazon S3 on Outposts buckets.
- GrantWrite *string `location:"header" locationName:"x-amz-grant-write" type:"string"`
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // Allows grantee to write the ACL for the applicable bucket.
+ // Specifies the S3 on Outposts bucket to delete the replication configuration
+ // for.
//
- // This is not supported by Amazon S3 on Outposts buckets.
- GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`
-
- // Specifies whether you want S3 Object Lock to be enabled for the new bucket.
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
//
- // This is not supported by Amazon S3 on Outposts buckets.
- ObjectLockEnabledForBucket *bool `location:"header" locationName:"x-amz-bucket-object-lock-enabled" type:"boolean"`
-
- // The ID of the Outposts where the bucket is being created.
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the bucket accessed in the format
+ // arn:aws:s3-outposts:::outpost//bucket/.
+ // For example, to access the bucket reports through Outpost my-outpost owned
+ // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
+ // The value must be URL encoded.
//
- // This ID is required by Amazon S3 on Outposts buckets.
- OutpostId *string `location:"header" locationName:"x-amz-outpost-id" min:"1" type:"string"`
+ // Bucket is a required field
+ Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -7935,7 +10356,7 @@ type CreateBucketInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateBucketInput) String() string {
+func (s DeleteBucketReplicationInput) String() string {
return awsutil.Prettify(s)
}
@@ -7944,22 +10365,25 @@ func (s CreateBucketInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateBucketInput) GoString() string {
+func (s DeleteBucketReplicationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CreateBucketInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateBucketInput"}
+func (s *DeleteBucketReplicationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteBucketReplicationInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
if s.Bucket == nil {
invalidParams.Add(request.NewErrParamRequired("Bucket"))
}
if s.Bucket != nil && len(*s.Bucket) < 3 {
invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
}
- if s.OutpostId != nil && len(*s.OutpostId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("OutpostId", 1))
- }
if invalidParams.Len() > 0 {
return invalidParams
@@ -7967,84 +10391,96 @@ func (s *CreateBucketInput) Validate() error {
return nil
}
-// SetACL sets the ACL field's value.
-func (s *CreateBucketInput) SetACL(v string) *CreateBucketInput {
- s.ACL = &v
+// SetAccountId sets the AccountId field's value.
+func (s *DeleteBucketReplicationInput) SetAccountId(v string) *DeleteBucketReplicationInput {
+ s.AccountId = &v
return s
}
// SetBucket sets the Bucket field's value.
-func (s *CreateBucketInput) SetBucket(v string) *CreateBucketInput {
+func (s *DeleteBucketReplicationInput) SetBucket(v string) *DeleteBucketReplicationInput {
s.Bucket = &v
return s
}
-// SetCreateBucketConfiguration sets the CreateBucketConfiguration field's value.
-func (s *CreateBucketInput) SetCreateBucketConfiguration(v *CreateBucketConfiguration) *CreateBucketInput {
- s.CreateBucketConfiguration = v
- return s
-}
-
-// SetGrantFullControl sets the GrantFullControl field's value.
-func (s *CreateBucketInput) SetGrantFullControl(v string) *CreateBucketInput {
- s.GrantFullControl = &v
- return s
+func (s *DeleteBucketReplicationInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
}
-// SetGrantRead sets the GrantRead field's value.
-func (s *CreateBucketInput) SetGrantRead(v string) *CreateBucketInput {
- s.GrantRead = &v
- return s
+func (s *DeleteBucketReplicationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
}
-// SetGrantReadACP sets the GrantReadACP field's value.
-func (s *CreateBucketInput) SetGrantReadACP(v string) *CreateBucketInput {
- s.GrantReadACP = &v
- return s
+func (s *DeleteBucketReplicationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
}
-// SetGrantWrite sets the GrantWrite field's value.
-func (s *CreateBucketInput) SetGrantWrite(v string) *CreateBucketInput {
- s.GrantWrite = &v
- return s
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s DeleteBucketReplicationInput) updateArnableField(v string) (interface{}, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ s.Bucket = aws.String(v)
+ return &s, nil
}
-// SetGrantWriteACP sets the GrantWriteACP field's value.
-func (s *CreateBucketInput) SetGrantWriteACP(v string) *CreateBucketInput {
- s.GrantWriteACP = &v
- return s
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s DeleteBucketReplicationInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
}
-// SetObjectLockEnabledForBucket sets the ObjectLockEnabledForBucket field's value.
-func (s *CreateBucketInput) SetObjectLockEnabledForBucket(v bool) *CreateBucketInput {
- s.ObjectLockEnabledForBucket = &v
- return s
+type DeleteBucketReplicationOutput struct {
+ _ struct{} `type:"structure"`
}
-// SetOutpostId sets the OutpostId field's value.
-func (s *CreateBucketInput) SetOutpostId(v string) *CreateBucketInput {
- s.OutpostId = &v
- return s
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteBucketReplicationOutput) String() string {
+ return awsutil.Prettify(s)
}
-func (s *CreateBucketInput) getOutpostID() (string, error) {
- if s.OutpostId == nil {
- return "", fmt.Errorf("member OutpostId is nil")
- }
- return *s.OutpostId, nil
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteBucketReplicationOutput) GoString() string {
+ return s.String()
}
-func (s *CreateBucketInput) hasOutpostID() bool {
- if s.OutpostId == nil {
- return false
- }
- return true
-}
+type DeleteBucketTaggingInput struct {
+ _ struct{} `locationName:"DeleteBucketTaggingRequest" type:"structure"`
-type CreateBucketOutput struct {
- _ struct{} `type:"structure"`
+ // The Amazon Web Services account ID of the Outposts bucket tag set to be removed.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the bucket.
+ // The bucket ARN that has the tag set to be removed.
//
// For using this parameter with Amazon S3 on Outposts with the REST API, you
// must specify the name and the x-amz-outpost-id as well.
@@ -8055,10 +10491,9 @@ type CreateBucketOutput struct {
// For example, to access the bucket reports through Outpost my-outpost owned
// by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
// The value must be URL encoded.
- BucketArn *string `min:"4" type:"string"`
-
- // The location of the bucket.
- Location *string `location:"header" locationName:"Location" type:"string"`
+ //
+ // Bucket is a required field
+ Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -8066,7 +10501,7 @@ type CreateBucketOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateBucketOutput) String() string {
+func (s DeleteBucketTaggingInput) String() string {
return awsutil.Prettify(s)
}
@@ -8075,77 +10510,126 @@ func (s CreateBucketOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateBucketOutput) GoString() string {
+func (s DeleteBucketTaggingInput) GoString() string {
return s.String()
}
-// SetBucketArn sets the BucketArn field's value.
-func (s *CreateBucketOutput) SetBucketArn(v string) *CreateBucketOutput {
- s.BucketArn = &v
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteBucketTaggingInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteBucketTaggingInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
+ }
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *DeleteBucketTaggingInput) SetAccountId(v string) *DeleteBucketTaggingInput {
+ s.AccountId = &v
return s
}
-// SetLocation sets the Location field's value.
-func (s *CreateBucketOutput) SetLocation(v string) *CreateBucketOutput {
- s.Location = &v
+// SetBucket sets the Bucket field's value.
+func (s *DeleteBucketTaggingInput) SetBucket(v string) *DeleteBucketTaggingInput {
+ s.Bucket = &v
return s
}
-type CreateJobInput struct {
- _ struct{} `locationName:"CreateJobRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+func (s *DeleteBucketTaggingInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
- // The Amazon Web Services account ID that creates the job.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+func (s *DeleteBucketTaggingInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
- // An idempotency token to ensure that you don't accidentally submit the same
- // request twice. You can use any string up to the maximum length.
- ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"`
+func (s *DeleteBucketTaggingInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
- // Indicates whether confirmation is required before Amazon S3 runs the job.
- // Confirmation is only required for jobs created through the Amazon S3 console.
- ConfirmationRequired *bool `type:"boolean"`
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s DeleteBucketTaggingInput) updateArnableField(v string) (interface{}, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ s.Bucket = aws.String(v)
+ return &s, nil
+}
- // A description for this job. You can use any string within the permitted length.
- // Descriptions don't need to be unique and can be used for multiple jobs.
- Description *string `min:"1" type:"string"`
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s DeleteBucketTaggingInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
+}
- // Configuration parameters for the manifest.
- Manifest *JobManifest `type:"structure"`
+type DeleteBucketTaggingOutput struct {
+ _ struct{} `type:"structure"`
+}
- // The attribute container for the ManifestGenerator details. Jobs must be created
- // with either a manifest file or a ManifestGenerator, but not both.
- ManifestGenerator *JobManifestGenerator `type:"structure"`
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteBucketTaggingOutput) String() string {
+ return awsutil.Prettify(s)
+}
- // The action that you want this job to perform on every object listed in the
- // manifest. For more information about the available actions, see Operations
- // (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-actions.html)
- // in the Amazon S3 User Guide.
- //
- // Operation is a required field
- Operation *JobOperation `type:"structure" required:"true"`
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteBucketTaggingOutput) GoString() string {
+ return s.String()
+}
- // The numerical priority for this job. Higher numbers indicate higher priority.
- //
- // Priority is a required field
- Priority *int64 `type:"integer" required:"true"`
+type DeleteJobTaggingInput struct {
+ _ struct{} `locationName:"DeleteJobTaggingRequest" type:"structure"`
- // Configuration parameters for the optional job-completion report.
+ // The Amazon Web Services account ID associated with the S3 Batch Operations
+ // job.
//
- // Report is a required field
- Report *JobReport `type:"structure" required:"true"`
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) for the Identity and Access Management (IAM)
- // role that Batch Operations will use to run this job's action on every object
- // in the manifest.
+ // The ID for the S3 Batch Operations job whose tags you want to delete.
//
- // RoleArn is a required field
- RoleArn *string `min:"1" type:"string" required:"true"`
-
- // A set of tags to associate with the S3 Batch Operations job. This is an optional
- // parameter.
- Tags []*S3Tag `type:"list"`
+ // JobId is a required field
+ JobId *string `location:"uri" locationName:"id" min:"5" type:"string" required:"true"`
}
// String returns the string representation.
@@ -8153,7 +10637,7 @@ type CreateJobInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateJobInput) String() string {
+func (s DeleteJobTaggingInput) String() string {
return awsutil.Prettify(s)
}
@@ -8162,155 +10646,89 @@ func (s CreateJobInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateJobInput) GoString() string {
+func (s DeleteJobTaggingInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CreateJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateJobInput"}
+func (s *DeleteJobTaggingInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteJobTaggingInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1))
- }
- if s.Description != nil && len(*s.Description) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Description", 1))
- }
- if s.Operation == nil {
- invalidParams.Add(request.NewErrParamRequired("Operation"))
- }
- if s.Priority == nil {
- invalidParams.Add(request.NewErrParamRequired("Priority"))
- }
- if s.Report == nil {
- invalidParams.Add(request.NewErrParamRequired("Report"))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.RoleArn != nil && len(*s.RoleArn) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1))
- }
- if s.Manifest != nil {
- if err := s.Manifest.Validate(); err != nil {
- invalidParams.AddNested("Manifest", err.(request.ErrInvalidParams))
- }
- }
- if s.ManifestGenerator != nil {
- if err := s.ManifestGenerator.Validate(); err != nil {
- invalidParams.AddNested("ManifestGenerator", err.(request.ErrInvalidParams))
- }
- }
- if s.Operation != nil {
- if err := s.Operation.Validate(); err != nil {
- invalidParams.AddNested("Operation", err.(request.ErrInvalidParams))
- }
- }
- if s.Report != nil {
- if err := s.Report.Validate(); err != nil {
- invalidParams.AddNested("Report", err.(request.ErrInvalidParams))
- }
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetAccountId sets the AccountId field's value.
-func (s *CreateJobInput) SetAccountId(v string) *CreateJobInput {
- s.AccountId = &v
- return s
-}
-
-// SetClientRequestToken sets the ClientRequestToken field's value.
-func (s *CreateJobInput) SetClientRequestToken(v string) *CreateJobInput {
- s.ClientRequestToken = &v
- return s
-}
-
-// SetConfirmationRequired sets the ConfirmationRequired field's value.
-func (s *CreateJobInput) SetConfirmationRequired(v bool) *CreateJobInput {
- s.ConfirmationRequired = &v
- return s
-}
-
-// SetDescription sets the Description field's value.
-func (s *CreateJobInput) SetDescription(v string) *CreateJobInput {
- s.Description = &v
- return s
-}
-
-// SetManifest sets the Manifest field's value.
-func (s *CreateJobInput) SetManifest(v *JobManifest) *CreateJobInput {
- s.Manifest = v
- return s
-}
+ if s.JobId == nil {
+ invalidParams.Add(request.NewErrParamRequired("JobId"))
+ }
+ if s.JobId != nil && len(*s.JobId) < 5 {
+ invalidParams.Add(request.NewErrParamMinLen("JobId", 5))
+ }
-// SetManifestGenerator sets the ManifestGenerator field's value.
-func (s *CreateJobInput) SetManifestGenerator(v *JobManifestGenerator) *CreateJobInput {
- s.ManifestGenerator = v
- return s
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetOperation sets the Operation field's value.
-func (s *CreateJobInput) SetOperation(v *JobOperation) *CreateJobInput {
- s.Operation = v
+// SetAccountId sets the AccountId field's value.
+func (s *DeleteJobTaggingInput) SetAccountId(v string) *DeleteJobTaggingInput {
+ s.AccountId = &v
return s
}
-// SetPriority sets the Priority field's value.
-func (s *CreateJobInput) SetPriority(v int64) *CreateJobInput {
- s.Priority = &v
+// SetJobId sets the JobId field's value.
+func (s *DeleteJobTaggingInput) SetJobId(v string) *DeleteJobTaggingInput {
+ s.JobId = &v
return s
}
-// SetReport sets the Report field's value.
-func (s *CreateJobInput) SetReport(v *JobReport) *CreateJobInput {
- s.Report = v
- return s
+func (s *DeleteJobTaggingInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
}
-// SetRoleArn sets the RoleArn field's value.
-func (s *CreateJobInput) SetRoleArn(v string) *CreateJobInput {
- s.RoleArn = &v
- return s
+type DeleteJobTaggingOutput struct {
+ _ struct{} `type:"structure"`
}
-// SetTags sets the Tags field's value.
-func (s *CreateJobInput) SetTags(v []*S3Tag) *CreateJobInput {
- s.Tags = v
- return s
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteJobTaggingOutput) String() string {
+ return awsutil.Prettify(s)
}
-func (s *CreateJobInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteJobTaggingOutput) GoString() string {
+ return s.String()
}
-type CreateJobOutput struct {
+// Specifies whether S3 on Outposts replicates delete markers. If you specify
+// a Filter element in your replication configuration, you must also include
+// a DeleteMarkerReplication element. If your Filter includes a Tag element,
+// the DeleteMarkerReplication element's Status child element must be set to
+// Disabled, because S3 on Outposts does not support replicating delete markers
+// for tag-based rules.
+//
+// For more information about delete marker replication, see How delete operations
+// affect replication (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OutpostsReplication.html#outposts-replication-what-is-replicated)
+// in the Amazon S3 User Guide.
+type DeleteMarkerReplication struct {
_ struct{} `type:"structure"`
- // The ID for this job. Amazon S3 generates this ID automatically and returns
- // it after a successful Create Job request.
- JobId *string `min:"5" type:"string"`
+ // Indicates whether to replicate delete markers.
+ //
+ // Status is a required field
+ Status *string `type:"string" required:"true" enum:"DeleteMarkerReplicationStatus"`
}
// String returns the string representation.
@@ -8318,7 +10736,7 @@ type CreateJobOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateJobOutput) String() string {
+func (s DeleteMarkerReplication) String() string {
return awsutil.Prettify(s)
}
@@ -8327,22 +10745,34 @@ func (s CreateJobOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateJobOutput) GoString() string {
+func (s DeleteMarkerReplication) GoString() string {
return s.String()
}
-// SetJobId sets the JobId field's value.
-func (s *CreateJobOutput) SetJobId(v string) *CreateJobOutput {
- s.JobId = &v
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteMarkerReplication) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteMarkerReplication"}
+ if s.Status == nil {
+ invalidParams.Add(request.NewErrParamRequired("Status"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetStatus sets the Status field's value.
+func (s *DeleteMarkerReplication) SetStatus(v string) *DeleteMarkerReplication {
+ s.Status = &v
return s
}
-type CreateMultiRegionAccessPointInput struct {
- _ struct{} `locationName:"CreateMultiRegionAccessPointRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+type DeleteMultiRegionAccessPointInput struct {
+ _ struct{} `locationName:"DeleteMultiRegionAccessPointRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
// The Amazon Web Services account ID for the owner of the Multi-Region Access
- // Point. The owner of the Multi-Region Access Point also must own the underlying
- // buckets.
+ // Point.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
@@ -8354,7 +10784,7 @@ type CreateMultiRegionAccessPointInput struct {
// A container element containing details about the Multi-Region Access Point.
//
// Details is a required field
- Details *CreateMultiRegionAccessPointInput_ `type:"structure" required:"true"`
+ Details *DeleteMultiRegionAccessPointInput_ `type:"structure" required:"true"`
}
// String returns the string representation.
@@ -8362,7 +10792,7 @@ type CreateMultiRegionAccessPointInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateMultiRegionAccessPointInput) String() string {
+func (s DeleteMultiRegionAccessPointInput) String() string {
return awsutil.Prettify(s)
}
@@ -8371,13 +10801,13 @@ func (s CreateMultiRegionAccessPointInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateMultiRegionAccessPointInput) GoString() string {
+func (s DeleteMultiRegionAccessPointInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CreateMultiRegionAccessPointInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateMultiRegionAccessPointInput"}
+func (s *DeleteMultiRegionAccessPointInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteMultiRegionAccessPointInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
@@ -8400,54 +10830,39 @@ func (s *CreateMultiRegionAccessPointInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *CreateMultiRegionAccessPointInput) SetAccountId(v string) *CreateMultiRegionAccessPointInput {
+func (s *DeleteMultiRegionAccessPointInput) SetAccountId(v string) *DeleteMultiRegionAccessPointInput {
s.AccountId = &v
return s
}
// SetClientToken sets the ClientToken field's value.
-func (s *CreateMultiRegionAccessPointInput) SetClientToken(v string) *CreateMultiRegionAccessPointInput {
+func (s *DeleteMultiRegionAccessPointInput) SetClientToken(v string) *DeleteMultiRegionAccessPointInput {
s.ClientToken = &v
return s
}
// SetDetails sets the Details field's value.
-func (s *CreateMultiRegionAccessPointInput) SetDetails(v *CreateMultiRegionAccessPointInput_) *CreateMultiRegionAccessPointInput {
+func (s *DeleteMultiRegionAccessPointInput) SetDetails(v *DeleteMultiRegionAccessPointInput_) *DeleteMultiRegionAccessPointInput {
s.Details = v
return s
}
-func (s *CreateMultiRegionAccessPointInput) hostLabels() map[string]string {
+func (s *DeleteMultiRegionAccessPointInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-// A container for the information associated with a CreateMultiRegionAccessPoint
-// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateMultiRegionAccessPoint.html)
+// A container for the information associated with a DeleteMultiRegionAccessPoint
+// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteMultiRegionAccessPoint.html)
// request.
-type CreateMultiRegionAccessPointInput_ struct {
+type DeleteMultiRegionAccessPointInput_ struct {
_ struct{} `type:"structure"`
// The name of the Multi-Region Access Point associated with this request.
//
// Name is a required field
Name *string `type:"string" required:"true"`
-
- // The PublicAccessBlock configuration that you want to apply to this Amazon
- // S3 account. You can enable the configuration options in any combination.
- // For more information about when Amazon S3 considers a bucket or object public,
- // see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status)
- // in the Amazon S3 User Guide.
- //
- // This data type is not supported for Amazon S3 on Outposts.
- PublicAccessBlock *PublicAccessBlockConfiguration `type:"structure"`
-
- // The buckets in different Regions that are associated with the Multi-Region
- // Access Point.
- //
- // Regions is a required field
- Regions []*Region `locationNameList:"Region" type:"list" required:"true"`
}
// String returns the string representation.
@@ -8455,7 +10870,7 @@ type CreateMultiRegionAccessPointInput_ struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateMultiRegionAccessPointInput_) String() string {
+func (s DeleteMultiRegionAccessPointInput_) String() string {
return awsutil.Prettify(s)
}
@@ -8464,29 +10879,16 @@ func (s CreateMultiRegionAccessPointInput_) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateMultiRegionAccessPointInput_) GoString() string {
+func (s DeleteMultiRegionAccessPointInput_) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CreateMultiRegionAccessPointInput_) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateMultiRegionAccessPointInput_"}
+func (s *DeleteMultiRegionAccessPointInput_) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteMultiRegionAccessPointInput_"}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
- if s.Regions == nil {
- invalidParams.Add(request.NewErrParamRequired("Regions"))
- }
- if s.Regions != nil {
- for i, v := range s.Regions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Regions", i), err.(request.ErrInvalidParams))
- }
- }
- }
if invalidParams.Len() > 0 {
return invalidParams
@@ -8495,30 +10897,102 @@ func (s *CreateMultiRegionAccessPointInput_) Validate() error {
}
// SetName sets the Name field's value.
-func (s *CreateMultiRegionAccessPointInput_) SetName(v string) *CreateMultiRegionAccessPointInput_ {
+func (s *DeleteMultiRegionAccessPointInput_) SetName(v string) *DeleteMultiRegionAccessPointInput_ {
s.Name = &v
return s
}
-// SetPublicAccessBlock sets the PublicAccessBlock field's value.
-func (s *CreateMultiRegionAccessPointInput_) SetPublicAccessBlock(v *PublicAccessBlockConfiguration) *CreateMultiRegionAccessPointInput_ {
- s.PublicAccessBlock = v
+type DeleteMultiRegionAccessPointOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The request token associated with the request. You can use this token with
+ // DescribeMultiRegionAccessPointOperation (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeMultiRegionAccessPointOperation.html)
+ // to determine the status of asynchronous requests.
+ RequestTokenARN *string `min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteMultiRegionAccessPointOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteMultiRegionAccessPointOutput) GoString() string {
+ return s.String()
+}
+
+// SetRequestTokenARN sets the RequestTokenARN field's value.
+func (s *DeleteMultiRegionAccessPointOutput) SetRequestTokenARN(v string) *DeleteMultiRegionAccessPointOutput {
+ s.RequestTokenARN = &v
return s
}
-// SetRegions sets the Regions field's value.
-func (s *CreateMultiRegionAccessPointInput_) SetRegions(v []*Region) *CreateMultiRegionAccessPointInput_ {
- s.Regions = v
+type DeletePublicAccessBlockInput struct {
+ _ struct{} `locationName:"DeletePublicAccessBlockRequest" type:"structure"`
+
+ // The account ID for the Amazon Web Services account whose PublicAccessBlock
+ // configuration you want to remove.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeletePublicAccessBlockInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeletePublicAccessBlockInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeletePublicAccessBlockInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeletePublicAccessBlockInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *DeletePublicAccessBlockInput) SetAccountId(v string) *DeletePublicAccessBlockInput {
+ s.AccountId = &v
return s
}
-type CreateMultiRegionAccessPointOutput struct {
- _ struct{} `type:"structure"`
+func (s *DeletePublicAccessBlockInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
- // The request token associated with the request. You can use this token with
- // DescribeMultiRegionAccessPointOperation (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeMultiRegionAccessPointOperation.html)
- // to determine the status of asynchronous requests.
- RequestTokenARN *string `min:"1" type:"string"`
+type DeletePublicAccessBlockOutput struct {
+ _ struct{} `type:"structure"`
}
// String returns the string representation.
@@ -8526,7 +11000,7 @@ type CreateMultiRegionAccessPointOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateMultiRegionAccessPointOutput) String() string {
+func (s DeletePublicAccessBlockOutput) String() string {
return awsutil.Prettify(s)
}
@@ -8535,29 +11009,22 @@ func (s CreateMultiRegionAccessPointOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateMultiRegionAccessPointOutput) GoString() string {
+func (s DeletePublicAccessBlockOutput) GoString() string {
return s.String()
}
-// SetRequestTokenARN sets the RequestTokenARN field's value.
-func (s *CreateMultiRegionAccessPointOutput) SetRequestTokenARN(v string) *CreateMultiRegionAccessPointOutput {
- s.RequestTokenARN = &v
- return s
-}
-
-type DeleteAccessPointForObjectLambdaInput struct {
- _ struct{} `locationName:"DeleteAccessPointForObjectLambdaRequest" type:"structure"`
+type DeleteStorageLensConfigurationInput struct {
+ _ struct{} `locationName:"DeleteStorageLensConfigurationRequest" type:"structure"`
- // The account ID for the account that owns the specified Object Lambda Access
- // Point.
+ // The account ID of the requester.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The name of the access point you want to delete.
+ // The ID of the S3 Storage Lens configuration.
//
- // Name is a required field
- Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // ConfigId is a required field
+ ConfigId *string `location:"uri" locationName:"storagelensid" min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -8565,7 +11032,7 @@ type DeleteAccessPointForObjectLambdaInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccessPointForObjectLambdaInput) String() string {
+func (s DeleteStorageLensConfigurationInput) String() string {
return awsutil.Prettify(s)
}
@@ -8574,24 +11041,24 @@ func (s DeleteAccessPointForObjectLambdaInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccessPointForObjectLambdaInput) GoString() string {
+func (s DeleteStorageLensConfigurationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteAccessPointForObjectLambdaInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteAccessPointForObjectLambdaInput"}
+func (s *DeleteStorageLensConfigurationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteStorageLensConfigurationInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
+ if s.ConfigId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ConfigId"))
}
- if s.Name != nil && len(*s.Name) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ if s.ConfigId != nil && len(*s.ConfigId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConfigId", 1))
}
if invalidParams.Len() > 0 {
@@ -8601,24 +11068,24 @@ func (s *DeleteAccessPointForObjectLambdaInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *DeleteAccessPointForObjectLambdaInput) SetAccountId(v string) *DeleteAccessPointForObjectLambdaInput {
+func (s *DeleteStorageLensConfigurationInput) SetAccountId(v string) *DeleteStorageLensConfigurationInput {
s.AccountId = &v
return s
}
-// SetName sets the Name field's value.
-func (s *DeleteAccessPointForObjectLambdaInput) SetName(v string) *DeleteAccessPointForObjectLambdaInput {
- s.Name = &v
+// SetConfigId sets the ConfigId field's value.
+func (s *DeleteStorageLensConfigurationInput) SetConfigId(v string) *DeleteStorageLensConfigurationInput {
+ s.ConfigId = &v
return s
}
-func (s *DeleteAccessPointForObjectLambdaInput) hostLabels() map[string]string {
+func (s *DeleteStorageLensConfigurationInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-type DeleteAccessPointForObjectLambdaOutput struct {
+type DeleteStorageLensConfigurationOutput struct {
_ struct{} `type:"structure"`
}
@@ -8627,7 +11094,7 @@ type DeleteAccessPointForObjectLambdaOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccessPointForObjectLambdaOutput) String() string {
+func (s DeleteStorageLensConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
@@ -8636,34 +11103,22 @@ func (s DeleteAccessPointForObjectLambdaOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccessPointForObjectLambdaOutput) GoString() string {
+func (s DeleteStorageLensConfigurationOutput) GoString() string {
return s.String()
}
-type DeleteAccessPointInput struct {
- _ struct{} `locationName:"DeleteAccessPointRequest" type:"structure"`
+type DeleteStorageLensConfigurationTaggingInput struct {
+ _ struct{} `locationName:"DeleteStorageLensConfigurationTaggingRequest" type:"structure"`
- // The Amazon Web Services account ID for the account that owns the specified
- // access point.
+ // The account ID of the requester.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The name of the access point you want to delete.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
- //
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the access point accessed in the
- // format arn:aws:s3-outposts:::outpost//accesspoint/.
- // For example, to access the access point reports-ap through Outpost my-outpost
- // owned by account 123456789012 in Region us-west-2, use the URL encoding of
- // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap.
- // The value must be URL encoded.
+ // The ID of the S3 Storage Lens configuration.
//
- // Name is a required field
- Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // ConfigId is a required field
+ ConfigId *string `location:"uri" locationName:"storagelensid" min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -8671,7 +11126,7 @@ type DeleteAccessPointInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccessPointInput) String() string {
+func (s DeleteStorageLensConfigurationTaggingInput) String() string {
return awsutil.Prettify(s)
}
@@ -8680,24 +11135,24 @@ func (s DeleteAccessPointInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccessPointInput) GoString() string {
+func (s DeleteStorageLensConfigurationTaggingInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteAccessPointInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteAccessPointInput"}
+func (s *DeleteStorageLensConfigurationTaggingInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteStorageLensConfigurationTaggingInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
+ if s.ConfigId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ConfigId"))
}
- if s.Name != nil && len(*s.Name) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ if s.ConfigId != nil && len(*s.ConfigId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConfigId", 1))
}
if invalidParams.Len() > 0 {
@@ -8707,65 +11162,24 @@ func (s *DeleteAccessPointInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *DeleteAccessPointInput) SetAccountId(v string) *DeleteAccessPointInput {
+func (s *DeleteStorageLensConfigurationTaggingInput) SetAccountId(v string) *DeleteStorageLensConfigurationTaggingInput {
s.AccountId = &v
return s
}
-// SetName sets the Name field's value.
-func (s *DeleteAccessPointInput) SetName(v string) *DeleteAccessPointInput {
- s.Name = &v
+// SetConfigId sets the ConfigId field's value.
+func (s *DeleteStorageLensConfigurationTaggingInput) SetConfigId(v string) *DeleteStorageLensConfigurationTaggingInput {
+ s.ConfigId = &v
return s
}
-func (s *DeleteAccessPointInput) hostLabels() map[string]string {
+func (s *DeleteStorageLensConfigurationTaggingInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-func (s *DeleteAccessPointInput) getEndpointARN() (arn.Resource, error) {
- if s.Name == nil {
- return nil, fmt.Errorf("member Name is nil")
- }
- return parseEndpointARN(*s.Name)
-}
-
-func (s *DeleteAccessPointInput) hasEndpointARN() bool {
- if s.Name == nil {
- return false
- }
- return arn.IsARN(*s.Name)
-}
-
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s DeleteAccessPointInput) updateArnableField(v string) (interface{}, error) {
- if s.Name == nil {
- return nil, fmt.Errorf("member Name is nil")
- }
- s.Name = aws.String(v)
- return &s, nil
-}
-
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s DeleteAccessPointInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
-}
-
-type DeleteAccessPointOutput struct {
+type DeleteStorageLensConfigurationTaggingOutput struct {
_ struct{} `type:"structure"`
}
@@ -8774,7 +11188,7 @@ type DeleteAccessPointOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccessPointOutput) String() string {
+func (s DeleteStorageLensConfigurationTaggingOutput) String() string {
return awsutil.Prettify(s)
}
@@ -8783,24 +11197,23 @@ func (s DeleteAccessPointOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccessPointOutput) GoString() string {
+func (s DeleteStorageLensConfigurationTaggingOutput) GoString() string {
return s.String()
}
-type DeleteAccessPointPolicyForObjectLambdaInput struct {
- _ struct{} `locationName:"DeleteAccessPointPolicyForObjectLambdaRequest" type:"structure"`
+type DeleteStorageLensGroupInput struct {
+ _ struct{} `locationName:"DeleteStorageLensGroupRequest" type:"structure"`
- // The account ID for the account that owns the specified Object Lambda Access
- // Point.
+ // The Amazon Web Services account ID used to create the Storage Lens group
+ // that you're trying to delete.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The name of the Object Lambda Access Point you want to delete the policy
- // for.
+ // The name of the Storage Lens group that you're trying to delete.
//
// Name is a required field
- Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -8808,7 +11221,7 @@ type DeleteAccessPointPolicyForObjectLambdaInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccessPointPolicyForObjectLambdaInput) String() string {
+func (s DeleteStorageLensGroupInput) String() string {
return awsutil.Prettify(s)
}
@@ -8817,13 +11230,13 @@ func (s DeleteAccessPointPolicyForObjectLambdaInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccessPointPolicyForObjectLambdaInput) GoString() string {
+func (s DeleteStorageLensGroupInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteAccessPointPolicyForObjectLambdaInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteAccessPointPolicyForObjectLambdaInput"}
+func (s *DeleteStorageLensGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteStorageLensGroupInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
@@ -8833,8 +11246,8 @@ func (s *DeleteAccessPointPolicyForObjectLambdaInput) Validate() error {
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
- if s.Name != nil && len(*s.Name) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if invalidParams.Len() > 0 {
@@ -8844,24 +11257,24 @@ func (s *DeleteAccessPointPolicyForObjectLambdaInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *DeleteAccessPointPolicyForObjectLambdaInput) SetAccountId(v string) *DeleteAccessPointPolicyForObjectLambdaInput {
+func (s *DeleteStorageLensGroupInput) SetAccountId(v string) *DeleteStorageLensGroupInput {
s.AccountId = &v
return s
}
// SetName sets the Name field's value.
-func (s *DeleteAccessPointPolicyForObjectLambdaInput) SetName(v string) *DeleteAccessPointPolicyForObjectLambdaInput {
+func (s *DeleteStorageLensGroupInput) SetName(v string) *DeleteStorageLensGroupInput {
s.Name = &v
return s
}
-func (s *DeleteAccessPointPolicyForObjectLambdaInput) hostLabels() map[string]string {
+func (s *DeleteStorageLensGroupInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-type DeleteAccessPointPolicyForObjectLambdaOutput struct {
+type DeleteStorageLensGroupOutput struct {
_ struct{} `type:"structure"`
}
@@ -8870,7 +11283,7 @@ type DeleteAccessPointPolicyForObjectLambdaOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccessPointPolicyForObjectLambdaOutput) String() string {
+func (s DeleteStorageLensGroupOutput) String() string {
return awsutil.Prettify(s)
}
@@ -8879,33 +11292,23 @@ func (s DeleteAccessPointPolicyForObjectLambdaOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccessPointPolicyForObjectLambdaOutput) GoString() string {
+func (s DeleteStorageLensGroupOutput) GoString() string {
return s.String()
}
-type DeleteAccessPointPolicyInput struct {
- _ struct{} `locationName:"DeleteAccessPointPolicyRequest" type:"structure"`
+type DescribeJobInput struct {
+ _ struct{} `locationName:"DescribeJobRequest" type:"structure"`
- // The account ID for the account that owns the specified access point.
+ // The Amazon Web Services account ID associated with the S3 Batch Operations
+ // job.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The name of the access point whose policy you want to delete.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
- //
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the access point accessed in the
- // format arn:aws:s3-outposts:::outpost//accesspoint/.
- // For example, to access the access point reports-ap through Outpost my-outpost
- // owned by account 123456789012 in Region us-west-2, use the URL encoding of
- // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap.
- // The value must be URL encoded.
+ // The ID for the job whose information you want to retrieve.
//
- // Name is a required field
- Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // JobId is a required field
+ JobId *string `location:"uri" locationName:"id" min:"5" type:"string" required:"true"`
}
// String returns the string representation.
@@ -8913,7 +11316,7 @@ type DeleteAccessPointPolicyInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccessPointPolicyInput) String() string {
+func (s DescribeJobInput) String() string {
return awsutil.Prettify(s)
}
@@ -8922,24 +11325,24 @@ func (s DeleteAccessPointPolicyInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccessPointPolicyInput) GoString() string {
+func (s DescribeJobInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteAccessPointPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteAccessPointPolicyInput"}
+func (s *DescribeJobInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeJobInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
+ if s.JobId == nil {
+ invalidParams.Add(request.NewErrParamRequired("JobId"))
}
- if s.Name != nil && len(*s.Name) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ if s.JobId != nil && len(*s.JobId) < 5 {
+ invalidParams.Add(request.NewErrParamMinLen("JobId", 5))
}
if invalidParams.Len() > 0 {
@@ -8948,67 +11351,30 @@ func (s *DeleteAccessPointPolicyInput) Validate() error {
return nil
}
-// SetAccountId sets the AccountId field's value.
-func (s *DeleteAccessPointPolicyInput) SetAccountId(v string) *DeleteAccessPointPolicyInput {
- s.AccountId = &v
- return s
-}
-
-// SetName sets the Name field's value.
-func (s *DeleteAccessPointPolicyInput) SetName(v string) *DeleteAccessPointPolicyInput {
- s.Name = &v
- return s
-}
-
-func (s *DeleteAccessPointPolicyInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
-
-func (s *DeleteAccessPointPolicyInput) getEndpointARN() (arn.Resource, error) {
- if s.Name == nil {
- return nil, fmt.Errorf("member Name is nil")
- }
- return parseEndpointARN(*s.Name)
-}
-
-func (s *DeleteAccessPointPolicyInput) hasEndpointARN() bool {
- if s.Name == nil {
- return false
- }
- return arn.IsARN(*s.Name)
+// SetAccountId sets the AccountId field's value.
+func (s *DescribeJobInput) SetAccountId(v string) *DescribeJobInput {
+ s.AccountId = &v
+ return s
}
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s DeleteAccessPointPolicyInput) updateArnableField(v string) (interface{}, error) {
- if s.Name == nil {
- return nil, fmt.Errorf("member Name is nil")
- }
- s.Name = aws.String(v)
- return &s, nil
+// SetJobId sets the JobId field's value.
+func (s *DescribeJobInput) SetJobId(v string) *DescribeJobInput {
+ s.JobId = &v
+ return s
}
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s DeleteAccessPointPolicyInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+func (s *DescribeJobInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
}
- return nil, nil
}
-type DeleteAccessPointPolicyOutput struct {
+type DescribeJobOutput struct {
_ struct{} `type:"structure"`
+
+ // Contains the configuration parameters and status for the job specified in
+ // the Describe Job request.
+ Job *JobDescriptor `type:"structure"`
}
// String returns the string representation.
@@ -9016,7 +11382,7 @@ type DeleteAccessPointPolicyOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccessPointPolicyOutput) String() string {
+func (s DescribeJobOutput) String() string {
return awsutil.Prettify(s)
}
@@ -9025,32 +11391,32 @@ func (s DeleteAccessPointPolicyOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccessPointPolicyOutput) GoString() string {
+func (s DescribeJobOutput) GoString() string {
return s.String()
}
-type DeleteBucketInput struct {
- _ struct{} `locationName:"DeleteBucketRequest" type:"structure"`
+// SetJob sets the Job field's value.
+func (s *DescribeJobOutput) SetJob(v *JobDescriptor) *DescribeJobOutput {
+ s.Job = v
+ return s
+}
- // The account ID that owns the Outposts bucket.
+type DescribeMultiRegionAccessPointOperationInput struct {
+ _ struct{} `locationName:"DescribeMultiRegionAccessPointOperationRequest" type:"structure"`
+
+ // The Amazon Web Services account ID for the owner of the Multi-Region Access
+ // Point.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // Specifies the bucket being deleted.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
- //
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the bucket accessed in the format
- // arn:aws:s3-outposts:::outpost//bucket/.
- // For example, to access the bucket reports through Outpost my-outpost owned
- // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
- // The value must be URL encoded.
+ // The request token associated with the request you want to know about. This
+ // request token is returned as part of the response when you make an asynchronous
+ // request. You provide this token to query about the status of the asynchronous
+ // action.
//
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // RequestTokenARN is a required field
+ RequestTokenARN *string `location:"uri" locationName:"request_token" min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -9058,7 +11424,7 @@ type DeleteBucketInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketInput) String() string {
+func (s DescribeMultiRegionAccessPointOperationInput) String() string {
return awsutil.Prettify(s)
}
@@ -9067,24 +11433,24 @@ func (s DeleteBucketInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketInput) GoString() string {
+func (s DescribeMultiRegionAccessPointOperationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteBucketInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteBucketInput"}
+func (s *DescribeMultiRegionAccessPointOperationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeMultiRegionAccessPointOperationInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
+ if s.RequestTokenARN == nil {
+ invalidParams.Add(request.NewErrParamRequired("RequestTokenARN"))
}
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ if s.RequestTokenARN != nil && len(*s.RequestTokenARN) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("RequestTokenARN", 1))
}
if invalidParams.Len() > 0 {
@@ -9094,86 +11460,100 @@ func (s *DeleteBucketInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *DeleteBucketInput) SetAccountId(v string) *DeleteBucketInput {
+func (s *DescribeMultiRegionAccessPointOperationInput) SetAccountId(v string) *DescribeMultiRegionAccessPointOperationInput {
s.AccountId = &v
return s
}
-// SetBucket sets the Bucket field's value.
-func (s *DeleteBucketInput) SetBucket(v string) *DeleteBucketInput {
- s.Bucket = &v
+// SetRequestTokenARN sets the RequestTokenARN field's value.
+func (s *DescribeMultiRegionAccessPointOperationInput) SetRequestTokenARN(v string) *DescribeMultiRegionAccessPointOperationInput {
+ s.RequestTokenARN = &v
return s
}
-func (s *DeleteBucketInput) hostLabels() map[string]string {
+func (s *DescribeMultiRegionAccessPointOperationInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-func (s *DeleteBucketInput) getEndpointARN() (arn.Resource, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- return parseEndpointARN(*s.Bucket)
+type DescribeMultiRegionAccessPointOperationOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A container element containing the details of the asynchronous operation.
+ AsyncOperation *AsyncOperation `type:"structure"`
}
-func (s *DeleteBucketInput) hasEndpointARN() bool {
- if s.Bucket == nil {
- return false
- }
- return arn.IsARN(*s.Bucket)
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeMultiRegionAccessPointOperationOutput) String() string {
+ return awsutil.Prettify(s)
}
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s DeleteBucketInput) updateArnableField(v string) (interface{}, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- s.Bucket = aws.String(v)
- return &s, nil
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeMultiRegionAccessPointOperationOutput) GoString() string {
+ return s.String()
}
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s DeleteBucketInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
+// SetAsyncOperation sets the AsyncOperation field's value.
+func (s *DescribeMultiRegionAccessPointOperationOutput) SetAsyncOperation(v *AsyncOperation) *DescribeMultiRegionAccessPointOperationOutput {
+ s.AsyncOperation = v
+ return s
}
-type DeleteBucketLifecycleConfigurationInput struct {
- _ struct{} `locationName:"DeleteBucketLifecycleConfigurationRequest" type:"structure"`
+// Specifies information about the replication destination bucket and its settings
+// for an S3 on Outposts replication configuration.
+type Destination struct {
+ _ struct{} `type:"structure"`
- // The account ID of the lifecycle configuration to delete.
+ // Specify this property only in a cross-account scenario (where the source
+ // and destination bucket owners are not the same), and you want to change replica
+ // ownership to the Amazon Web Services account that owns the destination bucket.
+ // If this property is not specified in the replication configuration, the replicas
+ // are owned by same Amazon Web Services account that owns the source object.
//
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+ // This is not supported by Amazon S3 on Outposts buckets.
+ AccessControlTranslation *AccessControlTranslation `type:"structure"`
- // Specifies the bucket.
+ // The destination bucket owner's account ID.
+ Account *string `type:"string"`
+
+ // The Amazon Resource Name (ARN) of the access point for the destination bucket
+ // where you want S3 on Outposts to store the replication results.
//
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
+ // Bucket is a required field
+ Bucket *string `type:"string" required:"true"`
+
+ // A container that provides information about encryption. If SourceSelectionCriteria
+ // is specified, you must specify this element.
//
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the bucket accessed in the format
- // arn:aws:s3-outposts:::outpost//bucket/.
- // For example, to access the bucket reports through Outpost my-outpost owned
- // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
- // The value must be URL encoded.
+ // This is not supported by Amazon S3 on Outposts buckets.
+ EncryptionConfiguration *EncryptionConfiguration `type:"structure"`
+
+ // A container that specifies replication metrics-related settings.
+ Metrics *Metrics `type:"structure"`
+
+ // A container that specifies S3 Replication Time Control (S3 RTC) settings,
+ // including whether S3 RTC is enabled and the time when all objects and operations
+ // on objects must be replicated. Must be specified together with a Metrics
+ // block.
//
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // This is not supported by Amazon S3 on Outposts buckets.
+ ReplicationTime *ReplicationTime `type:"structure"`
+
+ // The storage class to use when replicating objects. All objects stored on
+ // S3 on Outposts are stored in the OUTPOSTS storage class. S3 on Outposts uses
+ // the OUTPOSTS storage class to create the object replicas.
+ //
+ // Values other than OUTPOSTS are not supported by Amazon S3 on Outposts.
+ StorageClass *string `type:"string" enum:"ReplicationStorageClass"`
}
// String returns the string representation.
@@ -9181,7 +11561,7 @@ type DeleteBucketLifecycleConfigurationInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketLifecycleConfigurationInput) String() string {
+func (s Destination) String() string {
return awsutil.Prettify(s)
}
@@ -9190,24 +11570,30 @@ func (s DeleteBucketLifecycleConfigurationInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketLifecycleConfigurationInput) GoString() string {
+func (s Destination) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteBucketLifecycleConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteBucketLifecycleConfigurationInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
+func (s *Destination) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "Destination"}
if s.Bucket == nil {
invalidParams.Add(request.NewErrParamRequired("Bucket"))
}
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ if s.AccessControlTranslation != nil {
+ if err := s.AccessControlTranslation.Validate(); err != nil {
+ invalidParams.AddNested("AccessControlTranslation", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.Metrics != nil {
+ if err := s.Metrics.Validate(); err != nil {
+ invalidParams.AddNested("Metrics", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.ReplicationTime != nil {
+ if err := s.ReplicationTime.Validate(); err != nil {
+ invalidParams.AddNested("ReplicationTime", err.(request.ErrInvalidParams))
+ }
}
if invalidParams.Len() > 0 {
@@ -9216,67 +11602,62 @@ func (s *DeleteBucketLifecycleConfigurationInput) Validate() error {
return nil
}
-// SetAccountId sets the AccountId field's value.
-func (s *DeleteBucketLifecycleConfigurationInput) SetAccountId(v string) *DeleteBucketLifecycleConfigurationInput {
- s.AccountId = &v
+// SetAccessControlTranslation sets the AccessControlTranslation field's value.
+func (s *Destination) SetAccessControlTranslation(v *AccessControlTranslation) *Destination {
+ s.AccessControlTranslation = v
+ return s
+}
+
+// SetAccount sets the Account field's value.
+func (s *Destination) SetAccount(v string) *Destination {
+ s.Account = &v
return s
}
// SetBucket sets the Bucket field's value.
-func (s *DeleteBucketLifecycleConfigurationInput) SetBucket(v string) *DeleteBucketLifecycleConfigurationInput {
+func (s *Destination) SetBucket(v string) *Destination {
s.Bucket = &v
return s
}
-func (s *DeleteBucketLifecycleConfigurationInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
-
-func (s *DeleteBucketLifecycleConfigurationInput) getEndpointARN() (arn.Resource, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- return parseEndpointARN(*s.Bucket)
+// SetEncryptionConfiguration sets the EncryptionConfiguration field's value.
+func (s *Destination) SetEncryptionConfiguration(v *EncryptionConfiguration) *Destination {
+ s.EncryptionConfiguration = v
+ return s
}
-func (s *DeleteBucketLifecycleConfigurationInput) hasEndpointARN() bool {
- if s.Bucket == nil {
- return false
- }
- return arn.IsARN(*s.Bucket)
+// SetMetrics sets the Metrics field's value.
+func (s *Destination) SetMetrics(v *Metrics) *Destination {
+ s.Metrics = v
+ return s
}
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s DeleteBucketLifecycleConfigurationInput) updateArnableField(v string) (interface{}, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- s.Bucket = aws.String(v)
- return &s, nil
+// SetReplicationTime sets the ReplicationTime field's value.
+func (s *Destination) SetReplicationTime(v *ReplicationTime) *Destination {
+ s.ReplicationTime = v
+ return s
}
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s DeleteBucketLifecycleConfigurationInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
+// SetStorageClass sets the StorageClass field's value.
+func (s *Destination) SetStorageClass(v string) *Destination {
+ s.StorageClass = &v
+ return s
}
-type DeleteBucketLifecycleConfigurationOutput struct {
+// The container element for Amazon S3 Storage Lens detailed status code metrics.
+// Detailed status code metrics generate metrics for HTTP status codes, such
+// as 200 OK, 403 Forbidden, 503 Service Unavailable and others.
+//
+// For more information about S3 Storage Lens, see Assessing your storage activity
+// and usage with S3 Storage Lens (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens.html)
+// in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics,
+// see S3 Storage Lens metrics glossary (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_metrics_glossary.html)
+// in the Amazon S3 User Guide.
+type DetailedStatusCodesMetrics struct {
_ struct{} `type:"structure"`
+
+ // A container that indicates whether detailed status code metrics are enabled.
+ IsEnabled *bool `type:"boolean"`
}
// String returns the string representation.
@@ -9284,7 +11665,7 @@ type DeleteBucketLifecycleConfigurationOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketLifecycleConfigurationOutput) String() string {
+func (s DetailedStatusCodesMetrics) String() string {
return awsutil.Prettify(s)
}
@@ -9293,12 +11674,31 @@ func (s DeleteBucketLifecycleConfigurationOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketLifecycleConfigurationOutput) GoString() string {
+func (s DetailedStatusCodesMetrics) GoString() string {
return s.String()
}
-type DeleteBucketOutput struct {
+// SetIsEnabled sets the IsEnabled field's value.
+func (s *DetailedStatusCodesMetrics) SetIsEnabled(v bool) *DetailedStatusCodesMetrics {
+ s.IsEnabled = &v
+ return s
+}
+
+// Specifies encryption-related information for an Amazon S3 bucket that is
+// a destination for replicated objects.
+//
+// This is not supported by Amazon S3 on Outposts buckets.
+type EncryptionConfiguration struct {
_ struct{} `type:"structure"`
+
+ // Specifies the ID of the customer managed KMS key that's stored in Key Management
+ // Service (KMS) for the destination bucket. This ID is either the Amazon Resource
+ // Name (ARN) for the KMS key or the alias ARN for the KMS key. Amazon S3 uses
+ // this KMS key to encrypt replica objects. Amazon S3 supports only symmetric
+ // encryption KMS keys. For more information, see Symmetric encryption KMS keys
+ // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#symmetric-cmks)
+ // in the Amazon Web Services Key Management Service Developer Guide.
+ ReplicaKmsKeyID *string `type:"string"`
}
// String returns the string representation.
@@ -9306,7 +11706,7 @@ type DeleteBucketOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketOutput) String() string {
+func (s EncryptionConfiguration) String() string {
return awsutil.Prettify(s)
}
@@ -9315,32 +11715,27 @@ func (s DeleteBucketOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketOutput) GoString() string {
+func (s EncryptionConfiguration) GoString() string {
return s.String()
}
-type DeleteBucketPolicyInput struct {
- _ struct{} `locationName:"DeleteBucketPolicyRequest" type:"structure"`
+// SetReplicaKmsKeyID sets the ReplicaKmsKeyID field's value.
+func (s *EncryptionConfiguration) SetReplicaKmsKeyID(v string) *EncryptionConfiguration {
+ s.ReplicaKmsKeyID = &v
+ return s
+}
- // The account ID of the Outposts bucket.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+// The last established access control policy for a Multi-Region Access Point.
+//
+// When you update the policy, the update is first listed as the proposed policy.
+// After the update is finished and all Regions have been updated, the proposed
+// policy is listed as the established policy. If both policies have the same
+// version number, the proposed policy is the established policy.
+type EstablishedMultiRegionAccessPointPolicy struct {
+ _ struct{} `type:"structure"`
- // Specifies the bucket.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
- //
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the bucket accessed in the format
- // arn:aws:s3-outposts:::outpost//bucket/.
- // For example, to access the bucket reports through Outpost my-outpost owned
- // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
- // The value must be URL encoded.
- //
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // The details of the last established policy.
+ Policy *string `type:"string"`
}
// String returns the string representation.
@@ -9348,7 +11743,7 @@ type DeleteBucketPolicyInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketPolicyInput) String() string {
+func (s EstablishedMultiRegionAccessPointPolicy) String() string {
return awsutil.Prettify(s)
}
@@ -9357,93 +11752,25 @@ func (s DeleteBucketPolicyInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketPolicyInput) GoString() string {
+func (s EstablishedMultiRegionAccessPointPolicy) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteBucketPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteBucketPolicyInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
- }
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetAccountId sets the AccountId field's value.
-func (s *DeleteBucketPolicyInput) SetAccountId(v string) *DeleteBucketPolicyInput {
- s.AccountId = &v
- return s
-}
-
-// SetBucket sets the Bucket field's value.
-func (s *DeleteBucketPolicyInput) SetBucket(v string) *DeleteBucketPolicyInput {
- s.Bucket = &v
+// SetPolicy sets the Policy field's value.
+func (s *EstablishedMultiRegionAccessPointPolicy) SetPolicy(v string) *EstablishedMultiRegionAccessPointPolicy {
+ s.Policy = &v
return s
}
-func (s *DeleteBucketPolicyInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
-
-func (s *DeleteBucketPolicyInput) getEndpointARN() (arn.Resource, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- return parseEndpointARN(*s.Bucket)
-}
-
-func (s *DeleteBucketPolicyInput) hasEndpointARN() bool {
- if s.Bucket == nil {
- return false
- }
- return arn.IsARN(*s.Bucket)
-}
-
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s DeleteBucketPolicyInput) updateArnableField(v string) (interface{}, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- s.Bucket = aws.String(v)
- return &s, nil
-}
+// A container for what Amazon S3 Storage Lens will exclude.
+type Exclude struct {
+ _ struct{} `type:"structure"`
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s DeleteBucketPolicyInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
-}
+ // A container for the S3 Storage Lens bucket excludes.
+ Buckets []*string `locationNameList:"Arn" type:"list"`
-type DeleteBucketPolicyOutput struct {
- _ struct{} `type:"structure"`
+ // A container for the S3 Storage Lens Region excludes.
+ Regions []*string `locationNameList:"Region" type:"list"`
}
// String returns the string representation.
@@ -9451,7 +11778,7 @@ type DeleteBucketPolicyOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketPolicyOutput) String() string {
+func (s Exclude) String() string {
return awsutil.Prettify(s)
}
@@ -9460,34 +11787,32 @@ func (s DeleteBucketPolicyOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketPolicyOutput) GoString() string {
+func (s Exclude) GoString() string {
return s.String()
}
-type DeleteBucketReplicationInput struct {
- _ struct{} `locationName:"DeleteBucketReplicationRequest" type:"structure"`
-
- // The Amazon Web Services account ID of the Outposts bucket to delete the replication
- // configuration for.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+// SetBuckets sets the Buckets field's value.
+func (s *Exclude) SetBuckets(v []*string) *Exclude {
+ s.Buckets = v
+ return s
+}
- // Specifies the S3 on Outposts bucket to delete the replication configuration
- // for.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
- //
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the bucket accessed in the format
- // arn:aws:s3-outposts:::outpost//bucket/.
- // For example, to access the bucket reports through Outpost my-outpost owned
- // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
- // The value must be URL encoded.
+// SetRegions sets the Regions field's value.
+func (s *Exclude) SetRegions(v []*string) *Exclude {
+ s.Regions = v
+ return s
+}
+
+// An optional configuration to replicate existing source bucket objects.
+//
+// This is not supported by Amazon S3 on Outposts buckets.
+type ExistingObjectReplication struct {
+ _ struct{} `type:"structure"`
+
+ // Specifies whether Amazon S3 replicates existing source bucket objects.
//
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // Status is a required field
+ Status *string `type:"string" required:"true" enum:"ExistingObjectReplicationStatus"`
}
// String returns the string representation.
@@ -9495,7 +11820,7 @@ type DeleteBucketReplicationInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketReplicationInput) String() string {
+func (s ExistingObjectReplication) String() string {
return awsutil.Prettify(s)
}
@@ -9504,24 +11829,15 @@ func (s DeleteBucketReplicationInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketReplicationInput) GoString() string {
+func (s ExistingObjectReplication) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteBucketReplicationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteBucketReplicationInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
- }
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+func (s *ExistingObjectReplication) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ExistingObjectReplication"}
+ if s.Status == nil {
+ invalidParams.Add(request.NewErrParamRequired("Status"))
}
if invalidParams.Len() > 0 {
@@ -9530,67 +11846,22 @@ func (s *DeleteBucketReplicationInput) Validate() error {
return nil
}
-// SetAccountId sets the AccountId field's value.
-func (s *DeleteBucketReplicationInput) SetAccountId(v string) *DeleteBucketReplicationInput {
- s.AccountId = &v
- return s
-}
-
-// SetBucket sets the Bucket field's value.
-func (s *DeleteBucketReplicationInput) SetBucket(v string) *DeleteBucketReplicationInput {
- s.Bucket = &v
+// SetStatus sets the Status field's value.
+func (s *ExistingObjectReplication) SetStatus(v string) *ExistingObjectReplication {
+ s.Status = &v
return s
}
-func (s *DeleteBucketReplicationInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
-
-func (s *DeleteBucketReplicationInput) getEndpointARN() (arn.Resource, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- return parseEndpointARN(*s.Bucket)
-}
-
-func (s *DeleteBucketReplicationInput) hasEndpointARN() bool {
- if s.Bucket == nil {
- return false
- }
- return arn.IsARN(*s.Bucket)
-}
-
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s DeleteBucketReplicationInput) updateArnableField(v string) (interface{}, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- s.Bucket = aws.String(v)
- return &s, nil
-}
+// The encryption configuration to use when storing the generated manifest.
+type GeneratedManifestEncryption struct {
+ _ struct{} `type:"structure"`
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s DeleteBucketReplicationInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
-}
+ // Configuration details on how SSE-KMS is used to encrypt generated manifest
+ // objects.
+ SSEKMS *SSEKMSEncryption `locationName:"SSE-KMS" type:"structure"`
-type DeleteBucketReplicationOutput struct {
- _ struct{} `type:"structure"`
+ // Specifies the use of SSE-S3 to encrypt generated manifest objects.
+ SSES3 *SSES3Encryption `locationName:"SSE-S3" type:"structure"`
}
// String returns the string representation.
@@ -9598,7 +11869,7 @@ type DeleteBucketReplicationOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketReplicationOutput) String() string {
+func (s GeneratedManifestEncryption) String() string {
return awsutil.Prettify(s)
}
@@ -9607,32 +11878,51 @@ func (s DeleteBucketReplicationOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketReplicationOutput) GoString() string {
+func (s GeneratedManifestEncryption) GoString() string {
return s.String()
}
-type DeleteBucketTaggingInput struct {
- _ struct{} `locationName:"DeleteBucketTaggingRequest" type:"structure"`
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GeneratedManifestEncryption) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GeneratedManifestEncryption"}
+ if s.SSEKMS != nil {
+ if err := s.SSEKMS.Validate(); err != nil {
+ invalidParams.AddNested("SSEKMS", err.(request.ErrInvalidParams))
+ }
+ }
- // The Amazon Web Services account ID of the Outposts bucket tag set to be removed.
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetSSEKMS sets the SSEKMS field's value.
+func (s *GeneratedManifestEncryption) SetSSEKMS(v *SSEKMSEncryption) *GeneratedManifestEncryption {
+ s.SSEKMS = v
+ return s
+}
+
+// SetSSES3 sets the SSES3 field's value.
+func (s *GeneratedManifestEncryption) SetSSES3(v *SSES3Encryption) *GeneratedManifestEncryption {
+ s.SSES3 = v
+ return s
+}
+
+type GetAccessPointConfigurationForObjectLambdaInput struct {
+ _ struct{} `locationName:"GetAccessPointConfigurationForObjectLambdaRequest" type:"structure"`
+
+ // The account ID for the account that owns the specified Object Lambda Access
+ // Point.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The bucket ARN that has the tag set to be removed.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
- //
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the bucket accessed in the format
- // arn:aws:s3-outposts:::outpost//bucket/.
- // For example, to access the bucket reports through Outpost my-outpost owned
- // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
- // The value must be URL encoded.
+ // The name of the Object Lambda Access Point you want to return the configuration
+ // for.
//
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -9640,7 +11930,7 @@ type DeleteBucketTaggingInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketTaggingInput) String() string {
+func (s GetAccessPointConfigurationForObjectLambdaInput) String() string {
return awsutil.Prettify(s)
}
@@ -9649,24 +11939,24 @@ func (s DeleteBucketTaggingInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketTaggingInput) GoString() string {
+func (s GetAccessPointConfigurationForObjectLambdaInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteBucketTaggingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteBucketTaggingInput"}
+func (s *GetAccessPointConfigurationForObjectLambdaInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetAccessPointConfigurationForObjectLambdaInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
}
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ if s.Name != nil && len(*s.Name) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 3))
}
if invalidParams.Len() > 0 {
@@ -9676,66 +11966,28 @@ func (s *DeleteBucketTaggingInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *DeleteBucketTaggingInput) SetAccountId(v string) *DeleteBucketTaggingInput {
+func (s *GetAccessPointConfigurationForObjectLambdaInput) SetAccountId(v string) *GetAccessPointConfigurationForObjectLambdaInput {
s.AccountId = &v
return s
}
-// SetBucket sets the Bucket field's value.
-func (s *DeleteBucketTaggingInput) SetBucket(v string) *DeleteBucketTaggingInput {
- s.Bucket = &v
+// SetName sets the Name field's value.
+func (s *GetAccessPointConfigurationForObjectLambdaInput) SetName(v string) *GetAccessPointConfigurationForObjectLambdaInput {
+ s.Name = &v
return s
}
-func (s *DeleteBucketTaggingInput) hostLabels() map[string]string {
+func (s *GetAccessPointConfigurationForObjectLambdaInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-func (s *DeleteBucketTaggingInput) getEndpointARN() (arn.Resource, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- return parseEndpointARN(*s.Bucket)
-}
-
-func (s *DeleteBucketTaggingInput) hasEndpointARN() bool {
- if s.Bucket == nil {
- return false
- }
- return arn.IsARN(*s.Bucket)
-}
-
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s DeleteBucketTaggingInput) updateArnableField(v string) (interface{}, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- s.Bucket = aws.String(v)
- return &s, nil
-}
-
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s DeleteBucketTaggingInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
-}
-
-type DeleteBucketTaggingOutput struct {
+type GetAccessPointConfigurationForObjectLambdaOutput struct {
_ struct{} `type:"structure"`
+
+ // Object Lambda Access Point configuration document.
+ Configuration *ObjectLambdaConfiguration `type:"structure"`
}
// String returns the string representation.
@@ -9743,7 +11995,7 @@ type DeleteBucketTaggingOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketTaggingOutput) String() string {
+func (s GetAccessPointConfigurationForObjectLambdaOutput) String() string {
return awsutil.Prettify(s)
}
@@ -9752,23 +12004,29 @@ func (s DeleteBucketTaggingOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteBucketTaggingOutput) GoString() string {
+func (s GetAccessPointConfigurationForObjectLambdaOutput) GoString() string {
return s.String()
}
-type DeleteJobTaggingInput struct {
- _ struct{} `locationName:"DeleteJobTaggingRequest" type:"structure"`
+// SetConfiguration sets the Configuration field's value.
+func (s *GetAccessPointConfigurationForObjectLambdaOutput) SetConfiguration(v *ObjectLambdaConfiguration) *GetAccessPointConfigurationForObjectLambdaOutput {
+ s.Configuration = v
+ return s
+}
- // The Amazon Web Services account ID associated with the S3 Batch Operations
- // job.
+type GetAccessPointForObjectLambdaInput struct {
+ _ struct{} `locationName:"GetAccessPointForObjectLambdaRequest" type:"structure"`
+
+ // The account ID for the account that owns the specified Object Lambda Access
+ // Point.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The ID for the S3 Batch Operations job whose tags you want to delete.
+ // The name of the Object Lambda Access Point.
//
- // JobId is a required field
- JobId *string `location:"uri" locationName:"id" min:"5" type:"string" required:"true"`
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -9776,7 +12034,7 @@ type DeleteJobTaggingInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteJobTaggingInput) String() string {
+func (s GetAccessPointForObjectLambdaInput) String() string {
return awsutil.Prettify(s)
}
@@ -9785,24 +12043,24 @@ func (s DeleteJobTaggingInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteJobTaggingInput) GoString() string {
+func (s GetAccessPointForObjectLambdaInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteJobTaggingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteJobTaggingInput"}
+func (s *GetAccessPointForObjectLambdaInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetAccessPointForObjectLambdaInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
}
- if s.JobId != nil && len(*s.JobId) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 5))
+ if s.Name != nil && len(*s.Name) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 3))
}
if invalidParams.Len() > 0 {
@@ -9812,62 +12070,38 @@ func (s *DeleteJobTaggingInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *DeleteJobTaggingInput) SetAccountId(v string) *DeleteJobTaggingInput {
+func (s *GetAccessPointForObjectLambdaInput) SetAccountId(v string) *GetAccessPointForObjectLambdaInput {
s.AccountId = &v
return s
}
-// SetJobId sets the JobId field's value.
-func (s *DeleteJobTaggingInput) SetJobId(v string) *DeleteJobTaggingInput {
- s.JobId = &v
+// SetName sets the Name field's value.
+func (s *GetAccessPointForObjectLambdaInput) SetName(v string) *GetAccessPointForObjectLambdaInput {
+ s.Name = &v
return s
}
-func (s *DeleteJobTaggingInput) hostLabels() map[string]string {
+func (s *GetAccessPointForObjectLambdaInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-type DeleteJobTaggingOutput struct {
+type GetAccessPointForObjectLambdaOutput struct {
_ struct{} `type:"structure"`
-}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DeleteJobTaggingOutput) String() string {
- return awsutil.Prettify(s)
-}
+ // The alias of the Object Lambda Access Point.
+ Alias *ObjectLambdaAccessPointAlias `type:"structure"`
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DeleteJobTaggingOutput) GoString() string {
- return s.String()
-}
+ // The date and time when the specified Object Lambda Access Point was created.
+ CreationDate *time.Time `type:"timestamp"`
-// Specifies whether S3 on Outposts replicates delete markers. If you specify
-// a Filter element in your replication configuration, you must also include
-// a DeleteMarkerReplication element. If your Filter includes a Tag element,
-// the DeleteMarkerReplication element's Status child element must be set to
-// Disabled, because S3 on Outposts does not support replicating delete markers
-// for tag-based rules.
-//
-// For more information about delete marker replication, see How delete operations
-// affect replication (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OutpostsReplication.html#outposts-replication-what-is-replicated)
-// in the Amazon S3 User Guide.
-type DeleteMarkerReplication struct {
- _ struct{} `type:"structure"`
+ // The name of the Object Lambda Access Point.
+ Name *string `min:"3" type:"string"`
- // Indicates whether to replicate delete markers.
- //
- // Status is a required field
- Status *string `type:"string" required:"true" enum:"DeleteMarkerReplicationStatus"`
+ // Configuration to block all public access. This setting is turned on and can
+ // not be edited.
+ PublicAccessBlockConfiguration *PublicAccessBlockConfiguration `type:"structure"`
}
// String returns the string representation.
@@ -9875,7 +12109,7 @@ type DeleteMarkerReplication struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteMarkerReplication) String() string {
+func (s GetAccessPointForObjectLambdaOutput) String() string {
return awsutil.Prettify(s)
}
@@ -9884,46 +12118,59 @@ func (s DeleteMarkerReplication) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteMarkerReplication) GoString() string {
+func (s GetAccessPointForObjectLambdaOutput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteMarkerReplication) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteMarkerReplication"}
- if s.Status == nil {
- invalidParams.Add(request.NewErrParamRequired("Status"))
- }
+// SetAlias sets the Alias field's value.
+func (s *GetAccessPointForObjectLambdaOutput) SetAlias(v *ObjectLambdaAccessPointAlias) *GetAccessPointForObjectLambdaOutput {
+ s.Alias = v
+ return s
+}
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetCreationDate sets the CreationDate field's value.
+func (s *GetAccessPointForObjectLambdaOutput) SetCreationDate(v time.Time) *GetAccessPointForObjectLambdaOutput {
+ s.CreationDate = &v
+ return s
}
-// SetStatus sets the Status field's value.
-func (s *DeleteMarkerReplication) SetStatus(v string) *DeleteMarkerReplication {
- s.Status = &v
+// SetName sets the Name field's value.
+func (s *GetAccessPointForObjectLambdaOutput) SetName(v string) *GetAccessPointForObjectLambdaOutput {
+ s.Name = &v
return s
}
-type DeleteMultiRegionAccessPointInput struct {
- _ struct{} `locationName:"DeleteMultiRegionAccessPointRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+// SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field's value.
+func (s *GetAccessPointForObjectLambdaOutput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *GetAccessPointForObjectLambdaOutput {
+ s.PublicAccessBlockConfiguration = v
+ return s
+}
- // The Amazon Web Services account ID for the owner of the Multi-Region Access
- // Point.
+type GetAccessPointInput struct {
+ _ struct{} `locationName:"GetAccessPointRequest" type:"structure"`
+
+ // The Amazon Web Services account ID for the account that owns the specified
+ // access point.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // An idempotency token used to identify the request and guarantee that requests
- // are unique.
- ClientToken *string `type:"string" idempotencyToken:"true"`
-
- // A container element containing details about the Multi-Region Access Point.
+ // The name of the access point whose configuration information you want to
+ // retrieve.
//
- // Details is a required field
- Details *DeleteMultiRegionAccessPointInput_ `type:"structure" required:"true"`
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
+ //
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the access point accessed in the
+ // format arn:aws:s3-outposts:::outpost//accesspoint/.
+ // For example, to access the access point reports-ap through Outpost my-outpost
+ // owned by account 123456789012 in Region us-west-2, use the URL encoding of
+ // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap.
+ // The value must be URL encoded.
+ //
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -9931,7 +12178,7 @@ type DeleteMultiRegionAccessPointInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteMultiRegionAccessPointInput) String() string {
+func (s GetAccessPointInput) String() string {
return awsutil.Prettify(s)
}
@@ -9940,26 +12187,24 @@ func (s DeleteMultiRegionAccessPointInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteMultiRegionAccessPointInput) GoString() string {
+func (s GetAccessPointInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteMultiRegionAccessPointInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteMultiRegionAccessPointInput"}
+func (s *GetAccessPointInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetAccessPointInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Details == nil {
- invalidParams.Add(request.NewErrParamRequired("Details"))
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
}
- if s.Details != nil {
- if err := s.Details.Validate(); err != nil {
- invalidParams.AddNested("Details", err.(request.ErrInvalidParams))
- }
+ if s.Name != nil && len(*s.Name) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 3))
}
if invalidParams.Len() > 0 {
@@ -9969,85 +12214,113 @@ func (s *DeleteMultiRegionAccessPointInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *DeleteMultiRegionAccessPointInput) SetAccountId(v string) *DeleteMultiRegionAccessPointInput {
+func (s *GetAccessPointInput) SetAccountId(v string) *GetAccessPointInput {
s.AccountId = &v
return s
}
-// SetClientToken sets the ClientToken field's value.
-func (s *DeleteMultiRegionAccessPointInput) SetClientToken(v string) *DeleteMultiRegionAccessPointInput {
- s.ClientToken = &v
- return s
-}
-
-// SetDetails sets the Details field's value.
-func (s *DeleteMultiRegionAccessPointInput) SetDetails(v *DeleteMultiRegionAccessPointInput_) *DeleteMultiRegionAccessPointInput {
- s.Details = v
+// SetName sets the Name field's value.
+func (s *GetAccessPointInput) SetName(v string) *GetAccessPointInput {
+ s.Name = &v
return s
}
-func (s *DeleteMultiRegionAccessPointInput) hostLabels() map[string]string {
+func (s *GetAccessPointInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-// A container for the information associated with a DeleteMultiRegionAccessPoint
-// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteMultiRegionAccessPoint.html)
-// request.
-type DeleteMultiRegionAccessPointInput_ struct {
- _ struct{} `type:"structure"`
-
- // The name of the Multi-Region Access Point associated with this request.
- //
- // Name is a required field
- Name *string `type:"string" required:"true"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DeleteMultiRegionAccessPointInput_) String() string {
- return awsutil.Prettify(s)
+func (s *GetAccessPointInput) getEndpointARN() (arn.Resource, error) {
+ if s.Name == nil {
+ return nil, fmt.Errorf("member Name is nil")
+ }
+ return parseEndpointARN(*s.Name)
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DeleteMultiRegionAccessPointInput_) GoString() string {
- return s.String()
+func (s *GetAccessPointInput) hasEndpointARN() bool {
+ if s.Name == nil {
+ return false
+ }
+ return arn.IsARN(*s.Name)
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteMultiRegionAccessPointInput_) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteMultiRegionAccessPointInput_"}
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s GetAccessPointInput) updateArnableField(v string) (interface{}, error) {
if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
+ return nil, fmt.Errorf("member Name is nil")
}
+ s.Name = aws.String(v)
+ return &s, nil
+}
- if invalidParams.Len() > 0 {
- return invalidParams
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s GetAccessPointInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
}
- return nil
+ return nil, nil
}
-// SetName sets the Name field's value.
-func (s *DeleteMultiRegionAccessPointInput_) SetName(v string) *DeleteMultiRegionAccessPointInput_ {
- s.Name = &v
- return s
-}
+type GetAccessPointOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the access point.
+ AccessPointArn *string `min:"4" type:"string"`
+
+ // The name or alias of the access point.
+ Alias *string `type:"string"`
+
+ // The name of the bucket associated with the specified access point.
+ Bucket *string `min:"3" type:"string"`
+
+ // The Amazon Web Services account ID associated with the S3 bucket associated
+ // with this access point.
+ BucketAccountId *string `type:"string"`
+
+ // The date and time when the specified access point was created.
+ CreationDate *time.Time `type:"timestamp"`
+
+ // The VPC endpoint for the access point.
+ Endpoints map[string]*string `type:"map"`
+
+ // The name of the specified access point.
+ Name *string `min:"3" type:"string"`
+
+ // Indicates whether this access point allows access from the public internet.
+ // If VpcConfiguration is specified for this access point, then NetworkOrigin
+ // is VPC, and the access point doesn't allow access from the public internet.
+ // Otherwise, NetworkOrigin is Internet, and the access point allows access
+ // from the public internet, subject to the access point and bucket access policies.
+ //
+ // This will always be true for an Amazon S3 on Outposts access point
+ NetworkOrigin *string `type:"string" enum:"NetworkOrigin"`
-type DeleteMultiRegionAccessPointOutput struct {
- _ struct{} `type:"structure"`
+ // The PublicAccessBlock configuration that you want to apply to this Amazon
+ // S3 account. You can enable the configuration options in any combination.
+ // For more information about when Amazon S3 considers a bucket or object public,
+ // see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status)
+ // in the Amazon S3 User Guide.
+ //
+ // This data type is not supported for Amazon S3 on Outposts.
+ PublicAccessBlockConfiguration *PublicAccessBlockConfiguration `type:"structure"`
- // The request token associated with the request. You can use this token with
- // DescribeMultiRegionAccessPointOperation (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeMultiRegionAccessPointOperation.html)
- // to determine the status of asynchronous requests.
- RequestTokenARN *string `min:"1" type:"string"`
+ // Contains the virtual private cloud (VPC) configuration for the specified
+ // access point.
+ //
+ // This element is empty if this access point is an Amazon S3 on Outposts access
+ // point that is used by other Amazon Web Services.
+ VpcConfiguration *VpcConfiguration `type:"structure"`
}
// String returns the string representation.
@@ -10055,7 +12328,7 @@ type DeleteMultiRegionAccessPointOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteMultiRegionAccessPointOutput) String() string {
+func (s GetAccessPointOutput) String() string {
return awsutil.Prettify(s)
}
@@ -10064,106 +12337,83 @@ func (s DeleteMultiRegionAccessPointOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteMultiRegionAccessPointOutput) GoString() string {
+func (s GetAccessPointOutput) GoString() string {
return s.String()
}
-// SetRequestTokenARN sets the RequestTokenARN field's value.
-func (s *DeleteMultiRegionAccessPointOutput) SetRequestTokenARN(v string) *DeleteMultiRegionAccessPointOutput {
- s.RequestTokenARN = &v
+// SetAccessPointArn sets the AccessPointArn field's value.
+func (s *GetAccessPointOutput) SetAccessPointArn(v string) *GetAccessPointOutput {
+ s.AccessPointArn = &v
return s
}
-type DeletePublicAccessBlockInput struct {
- _ struct{} `locationName:"DeletePublicAccessBlockRequest" type:"structure"`
-
- // The account ID for the Amazon Web Services account whose PublicAccessBlock
- // configuration you want to remove.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+// SetAlias sets the Alias field's value.
+func (s *GetAccessPointOutput) SetAlias(v string) *GetAccessPointOutput {
+ s.Alias = &v
+ return s
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DeletePublicAccessBlockInput) String() string {
- return awsutil.Prettify(s)
+// SetBucket sets the Bucket field's value.
+func (s *GetAccessPointOutput) SetBucket(v string) *GetAccessPointOutput {
+ s.Bucket = &v
+ return s
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DeletePublicAccessBlockInput) GoString() string {
- return s.String()
+// SetBucketAccountId sets the BucketAccountId field's value.
+func (s *GetAccessPointOutput) SetBucketAccountId(v string) *GetAccessPointOutput {
+ s.BucketAccountId = &v
+ return s
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeletePublicAccessBlockInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeletePublicAccessBlockInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetCreationDate sets the CreationDate field's value.
+func (s *GetAccessPointOutput) SetCreationDate(v time.Time) *GetAccessPointOutput {
+ s.CreationDate = &v
+ return s
}
-// SetAccountId sets the AccountId field's value.
-func (s *DeletePublicAccessBlockInput) SetAccountId(v string) *DeletePublicAccessBlockInput {
- s.AccountId = &v
+// SetEndpoints sets the Endpoints field's value.
+func (s *GetAccessPointOutput) SetEndpoints(v map[string]*string) *GetAccessPointOutput {
+ s.Endpoints = v
return s
}
-func (s *DeletePublicAccessBlockInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
+// SetName sets the Name field's value.
+func (s *GetAccessPointOutput) SetName(v string) *GetAccessPointOutput {
+ s.Name = &v
+ return s
}
-type DeletePublicAccessBlockOutput struct {
- _ struct{} `type:"structure"`
+// SetNetworkOrigin sets the NetworkOrigin field's value.
+func (s *GetAccessPointOutput) SetNetworkOrigin(v string) *GetAccessPointOutput {
+ s.NetworkOrigin = &v
+ return s
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DeletePublicAccessBlockOutput) String() string {
- return awsutil.Prettify(s)
+// SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field's value.
+func (s *GetAccessPointOutput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *GetAccessPointOutput {
+ s.PublicAccessBlockConfiguration = v
+ return s
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DeletePublicAccessBlockOutput) GoString() string {
- return s.String()
+// SetVpcConfiguration sets the VpcConfiguration field's value.
+func (s *GetAccessPointOutput) SetVpcConfiguration(v *VpcConfiguration) *GetAccessPointOutput {
+ s.VpcConfiguration = v
+ return s
}
-type DeleteStorageLensConfigurationInput struct {
- _ struct{} `locationName:"DeleteStorageLensConfigurationRequest" type:"structure"`
+type GetAccessPointPolicyForObjectLambdaInput struct {
+ _ struct{} `locationName:"GetAccessPointPolicyForObjectLambdaRequest" type:"structure"`
- // The account ID of the requester.
+ // The account ID for the account that owns the specified Object Lambda Access
+ // Point.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The ID of the S3 Storage Lens configuration.
+ // The name of the Object Lambda Access Point.
//
- // ConfigId is a required field
- ConfigId *string `location:"uri" locationName:"storagelensid" min:"1" type:"string" required:"true"`
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -10171,7 +12421,7 @@ type DeleteStorageLensConfigurationInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteStorageLensConfigurationInput) String() string {
+func (s GetAccessPointPolicyForObjectLambdaInput) String() string {
return awsutil.Prettify(s)
}
@@ -10180,24 +12430,24 @@ func (s DeleteStorageLensConfigurationInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteStorageLensConfigurationInput) GoString() string {
+func (s GetAccessPointPolicyForObjectLambdaInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteStorageLensConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteStorageLensConfigurationInput"}
+func (s *GetAccessPointPolicyForObjectLambdaInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetAccessPointPolicyForObjectLambdaInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.ConfigId == nil {
- invalidParams.Add(request.NewErrParamRequired("ConfigId"))
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
}
- if s.ConfigId != nil && len(*s.ConfigId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ConfigId", 1))
+ if s.Name != nil && len(*s.Name) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 3))
}
if invalidParams.Len() > 0 {
@@ -10207,25 +12457,28 @@ func (s *DeleteStorageLensConfigurationInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *DeleteStorageLensConfigurationInput) SetAccountId(v string) *DeleteStorageLensConfigurationInput {
+func (s *GetAccessPointPolicyForObjectLambdaInput) SetAccountId(v string) *GetAccessPointPolicyForObjectLambdaInput {
s.AccountId = &v
return s
}
-// SetConfigId sets the ConfigId field's value.
-func (s *DeleteStorageLensConfigurationInput) SetConfigId(v string) *DeleteStorageLensConfigurationInput {
- s.ConfigId = &v
+// SetName sets the Name field's value.
+func (s *GetAccessPointPolicyForObjectLambdaInput) SetName(v string) *GetAccessPointPolicyForObjectLambdaInput {
+ s.Name = &v
return s
}
-func (s *DeleteStorageLensConfigurationInput) hostLabels() map[string]string {
+func (s *GetAccessPointPolicyForObjectLambdaInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-type DeleteStorageLensConfigurationOutput struct {
+type GetAccessPointPolicyForObjectLambdaOutput struct {
_ struct{} `type:"structure"`
+
+ // Object Lambda Access Point resource policy document.
+ Policy *string `type:"string"`
}
// String returns the string representation.
@@ -10233,7 +12486,7 @@ type DeleteStorageLensConfigurationOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteStorageLensConfigurationOutput) String() string {
+func (s GetAccessPointPolicyForObjectLambdaOutput) String() string {
return awsutil.Prettify(s)
}
@@ -10242,22 +12495,39 @@ func (s DeleteStorageLensConfigurationOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteStorageLensConfigurationOutput) GoString() string {
+func (s GetAccessPointPolicyForObjectLambdaOutput) GoString() string {
return s.String()
}
-type DeleteStorageLensConfigurationTaggingInput struct {
- _ struct{} `locationName:"DeleteStorageLensConfigurationTaggingRequest" type:"structure"`
+// SetPolicy sets the Policy field's value.
+func (s *GetAccessPointPolicyForObjectLambdaOutput) SetPolicy(v string) *GetAccessPointPolicyForObjectLambdaOutput {
+ s.Policy = &v
+ return s
+}
- // The account ID of the requester.
+type GetAccessPointPolicyInput struct {
+ _ struct{} `locationName:"GetAccessPointPolicyRequest" type:"structure"`
+
+ // The account ID for the account that owns the specified access point.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The ID of the S3 Storage Lens configuration.
+ // The name of the access point whose policy you want to retrieve.
//
- // ConfigId is a required field
- ConfigId *string `location:"uri" locationName:"storagelensid" min:"1" type:"string" required:"true"`
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
+ //
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the access point accessed in the
+ // format arn:aws:s3-outposts:::outpost//accesspoint/.
+ // For example, to access the access point reports-ap through Outpost my-outpost
+ // owned by account 123456789012 in Region us-west-2, use the URL encoding of
+ // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap.
+ // The value must be URL encoded.
+ //
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -10265,7 +12535,7 @@ type DeleteStorageLensConfigurationTaggingInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteStorageLensConfigurationTaggingInput) String() string {
+func (s GetAccessPointPolicyInput) String() string {
return awsutil.Prettify(s)
}
@@ -10274,24 +12544,24 @@ func (s DeleteStorageLensConfigurationTaggingInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteStorageLensConfigurationTaggingInput) GoString() string {
+func (s GetAccessPointPolicyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteStorageLensConfigurationTaggingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteStorageLensConfigurationTaggingInput"}
+func (s *GetAccessPointPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetAccessPointPolicyInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.ConfigId == nil {
- invalidParams.Add(request.NewErrParamRequired("ConfigId"))
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
}
- if s.ConfigId != nil && len(*s.ConfigId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ConfigId", 1))
+ if s.Name != nil && len(*s.Name) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 3))
}
if invalidParams.Len() > 0 {
@@ -10300,26 +12570,70 @@ func (s *DeleteStorageLensConfigurationTaggingInput) Validate() error {
return nil
}
-// SetAccountId sets the AccountId field's value.
-func (s *DeleteStorageLensConfigurationTaggingInput) SetAccountId(v string) *DeleteStorageLensConfigurationTaggingInput {
- s.AccountId = &v
- return s
+// SetAccountId sets the AccountId field's value.
+func (s *GetAccessPointPolicyInput) SetAccountId(v string) *GetAccessPointPolicyInput {
+ s.AccountId = &v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *GetAccessPointPolicyInput) SetName(v string) *GetAccessPointPolicyInput {
+ s.Name = &v
+ return s
+}
+
+func (s *GetAccessPointPolicyInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
+
+func (s *GetAccessPointPolicyInput) getEndpointARN() (arn.Resource, error) {
+ if s.Name == nil {
+ return nil, fmt.Errorf("member Name is nil")
+ }
+ return parseEndpointARN(*s.Name)
+}
+
+func (s *GetAccessPointPolicyInput) hasEndpointARN() bool {
+ if s.Name == nil {
+ return false
+ }
+ return arn.IsARN(*s.Name)
}
-// SetConfigId sets the ConfigId field's value.
-func (s *DeleteStorageLensConfigurationTaggingInput) SetConfigId(v string) *DeleteStorageLensConfigurationTaggingInput {
- s.ConfigId = &v
- return s
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s GetAccessPointPolicyInput) updateArnableField(v string) (interface{}, error) {
+ if s.Name == nil {
+ return nil, fmt.Errorf("member Name is nil")
+ }
+ s.Name = aws.String(v)
+ return &s, nil
}
-func (s *DeleteStorageLensConfigurationTaggingInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s GetAccessPointPolicyInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
}
+ return nil, nil
}
-type DeleteStorageLensConfigurationTaggingOutput struct {
+type GetAccessPointPolicyOutput struct {
_ struct{} `type:"structure"`
+
+ // The access point policy associated with the specified access point.
+ Policy *string `type:"string"`
}
// String returns the string representation.
@@ -10327,7 +12641,7 @@ type DeleteStorageLensConfigurationTaggingOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteStorageLensConfigurationTaggingOutput) String() string {
+func (s GetAccessPointPolicyOutput) String() string {
return awsutil.Prettify(s)
}
@@ -10336,23 +12650,29 @@ func (s DeleteStorageLensConfigurationTaggingOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteStorageLensConfigurationTaggingOutput) GoString() string {
+func (s GetAccessPointPolicyOutput) GoString() string {
return s.String()
}
-type DescribeJobInput struct {
- _ struct{} `locationName:"DescribeJobRequest" type:"structure"`
+// SetPolicy sets the Policy field's value.
+func (s *GetAccessPointPolicyOutput) SetPolicy(v string) *GetAccessPointPolicyOutput {
+ s.Policy = &v
+ return s
+}
- // The Amazon Web Services account ID associated with the S3 Batch Operations
- // job.
+type GetAccessPointPolicyStatusForObjectLambdaInput struct {
+ _ struct{} `locationName:"GetAccessPointPolicyStatusForObjectLambdaRequest" type:"structure"`
+
+ // The account ID for the account that owns the specified Object Lambda Access
+ // Point.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The ID for the job whose information you want to retrieve.
+ // The name of the Object Lambda Access Point.
//
- // JobId is a required field
- JobId *string `location:"uri" locationName:"id" min:"5" type:"string" required:"true"`
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -10360,7 +12680,7 @@ type DescribeJobInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeJobInput) String() string {
+func (s GetAccessPointPolicyStatusForObjectLambdaInput) String() string {
return awsutil.Prettify(s)
}
@@ -10369,24 +12689,24 @@ func (s DescribeJobInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeJobInput) GoString() string {
+func (s GetAccessPointPolicyStatusForObjectLambdaInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DescribeJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeJobInput"}
+func (s *GetAccessPointPolicyStatusForObjectLambdaInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetAccessPointPolicyStatusForObjectLambdaInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
}
- if s.JobId != nil && len(*s.JobId) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 5))
+ if s.Name != nil && len(*s.Name) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 3))
}
if invalidParams.Len() > 0 {
@@ -10396,29 +12716,31 @@ func (s *DescribeJobInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *DescribeJobInput) SetAccountId(v string) *DescribeJobInput {
+func (s *GetAccessPointPolicyStatusForObjectLambdaInput) SetAccountId(v string) *GetAccessPointPolicyStatusForObjectLambdaInput {
s.AccountId = &v
return s
}
-// SetJobId sets the JobId field's value.
-func (s *DescribeJobInput) SetJobId(v string) *DescribeJobInput {
- s.JobId = &v
+// SetName sets the Name field's value.
+func (s *GetAccessPointPolicyStatusForObjectLambdaInput) SetName(v string) *GetAccessPointPolicyStatusForObjectLambdaInput {
+ s.Name = &v
return s
}
-func (s *DescribeJobInput) hostLabels() map[string]string {
+func (s *GetAccessPointPolicyStatusForObjectLambdaInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-type DescribeJobOutput struct {
+type GetAccessPointPolicyStatusForObjectLambdaOutput struct {
_ struct{} `type:"structure"`
- // Contains the configuration parameters and status for the job specified in
- // the Describe Job request.
- Job *JobDescriptor `type:"structure"`
+ // Indicates whether this access point policy is public. For more information
+ // about how Amazon S3 evaluates policies to determine whether they are public,
+ // see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status)
+ // in the Amazon S3 User Guide.
+ PolicyStatus *PolicyStatus `type:"structure"`
}
// String returns the string representation.
@@ -10426,7 +12748,7 @@ type DescribeJobOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeJobOutput) String() string {
+func (s GetAccessPointPolicyStatusForObjectLambdaOutput) String() string {
return awsutil.Prettify(s)
}
@@ -10435,32 +12757,28 @@ func (s DescribeJobOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeJobOutput) GoString() string {
+func (s GetAccessPointPolicyStatusForObjectLambdaOutput) GoString() string {
return s.String()
}
-// SetJob sets the Job field's value.
-func (s *DescribeJobOutput) SetJob(v *JobDescriptor) *DescribeJobOutput {
- s.Job = v
+// SetPolicyStatus sets the PolicyStatus field's value.
+func (s *GetAccessPointPolicyStatusForObjectLambdaOutput) SetPolicyStatus(v *PolicyStatus) *GetAccessPointPolicyStatusForObjectLambdaOutput {
+ s.PolicyStatus = v
return s
}
-type DescribeMultiRegionAccessPointOperationInput struct {
- _ struct{} `locationName:"DescribeMultiRegionAccessPointOperationRequest" type:"structure"`
+type GetAccessPointPolicyStatusInput struct {
+ _ struct{} `locationName:"GetAccessPointPolicyStatusRequest" type:"structure"`
- // The Amazon Web Services account ID for the owner of the Multi-Region Access
- // Point.
+ // The account ID for the account that owns the specified access point.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The request token associated with the request you want to know about. This
- // request token is returned as part of the response when you make an asynchronous
- // request. You provide this token to query about the status of the asynchronous
- // action.
+ // The name of the access point whose policy status you want to retrieve.
//
- // RequestTokenARN is a required field
- RequestTokenARN *string `location:"uri" locationName:"request_token" min:"1" type:"string" required:"true"`
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -10468,7 +12786,7 @@ type DescribeMultiRegionAccessPointOperationInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeMultiRegionAccessPointOperationInput) String() string {
+func (s GetAccessPointPolicyStatusInput) String() string {
return awsutil.Prettify(s)
}
@@ -10477,24 +12795,24 @@ func (s DescribeMultiRegionAccessPointOperationInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeMultiRegionAccessPointOperationInput) GoString() string {
+func (s GetAccessPointPolicyStatusInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DescribeMultiRegionAccessPointOperationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeMultiRegionAccessPointOperationInput"}
+func (s *GetAccessPointPolicyStatusInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetAccessPointPolicyStatusInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.RequestTokenARN == nil {
- invalidParams.Add(request.NewErrParamRequired("RequestTokenARN"))
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
}
- if s.RequestTokenARN != nil && len(*s.RequestTokenARN) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RequestTokenARN", 1))
+ if s.Name != nil && len(*s.Name) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 3))
}
if invalidParams.Len() > 0 {
@@ -10504,28 +12822,28 @@ func (s *DescribeMultiRegionAccessPointOperationInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *DescribeMultiRegionAccessPointOperationInput) SetAccountId(v string) *DescribeMultiRegionAccessPointOperationInput {
+func (s *GetAccessPointPolicyStatusInput) SetAccountId(v string) *GetAccessPointPolicyStatusInput {
s.AccountId = &v
return s
}
-// SetRequestTokenARN sets the RequestTokenARN field's value.
-func (s *DescribeMultiRegionAccessPointOperationInput) SetRequestTokenARN(v string) *DescribeMultiRegionAccessPointOperationInput {
- s.RequestTokenARN = &v
+// SetName sets the Name field's value.
+func (s *GetAccessPointPolicyStatusInput) SetName(v string) *GetAccessPointPolicyStatusInput {
+ s.Name = &v
return s
}
-func (s *DescribeMultiRegionAccessPointOperationInput) hostLabels() map[string]string {
+func (s *GetAccessPointPolicyStatusInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-type DescribeMultiRegionAccessPointOperationOutput struct {
+type GetAccessPointPolicyStatusOutput struct {
_ struct{} `type:"structure"`
- // A container element containing the details of the asynchronous operation.
- AsyncOperation *AsyncOperation `type:"structure"`
+ // Indicates the current policy status of the specified access point.
+ PolicyStatus *PolicyStatus `type:"structure"`
}
// String returns the string representation.
@@ -10533,7 +12851,7 @@ type DescribeMultiRegionAccessPointOperationOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeMultiRegionAccessPointOperationOutput) String() string {
+func (s GetAccessPointPolicyStatusOutput) String() string {
return awsutil.Prettify(s)
}
@@ -10542,62 +12860,38 @@ func (s DescribeMultiRegionAccessPointOperationOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeMultiRegionAccessPointOperationOutput) GoString() string {
+func (s GetAccessPointPolicyStatusOutput) GoString() string {
return s.String()
}
-// SetAsyncOperation sets the AsyncOperation field's value.
-func (s *DescribeMultiRegionAccessPointOperationOutput) SetAsyncOperation(v *AsyncOperation) *DescribeMultiRegionAccessPointOperationOutput {
- s.AsyncOperation = v
+// SetPolicyStatus sets the PolicyStatus field's value.
+func (s *GetAccessPointPolicyStatusOutput) SetPolicyStatus(v *PolicyStatus) *GetAccessPointPolicyStatusOutput {
+ s.PolicyStatus = v
return s
}
-// Specifies information about the replication destination bucket and its settings
-// for an S3 on Outposts replication configuration.
-type Destination struct {
- _ struct{} `type:"structure"`
-
- // Specify this property only in a cross-account scenario (where the source
- // and destination bucket owners are not the same), and you want to change replica
- // ownership to the Amazon Web Services account that owns the destination bucket.
- // If this property is not specified in the replication configuration, the replicas
- // are owned by same Amazon Web Services account that owns the source object.
- //
- // This is not supported by Amazon S3 on Outposts buckets.
- AccessControlTranslation *AccessControlTranslation `type:"structure"`
-
- // The destination bucket owner's account ID.
- Account *string `type:"string"`
+type GetBucketInput struct {
+ _ struct{} `locationName:"GetBucketRequest" type:"structure"`
- // The Amazon Resource Name (ARN) of the access point for the destination bucket
- // where you want S3 on Outposts to store the replication results.
+ // The Amazon Web Services account ID of the Outposts bucket.
//
- // Bucket is a required field
- Bucket *string `type:"string" required:"true"`
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // A container that provides information about encryption. If SourceSelectionCriteria
- // is specified, you must specify this element.
+ // Specifies the bucket.
//
- // This is not supported by Amazon S3 on Outposts buckets.
- EncryptionConfiguration *EncryptionConfiguration `type:"structure"`
-
- // A container that specifies replication metrics-related settings.
- Metrics *Metrics `type:"structure"`
-
- // A container that specifies S3 Replication Time Control (S3 RTC) settings,
- // including whether S3 RTC is enabled and the time when all objects and operations
- // on objects must be replicated. Must be specified together with a Metrics
- // block.
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
//
- // This is not supported by Amazon S3 on Outposts buckets.
- ReplicationTime *ReplicationTime `type:"structure"`
-
- // The storage class to use when replicating objects. All objects stored on
- // S3 on Outposts are stored in the OUTPOSTS storage class. S3 on Outposts uses
- // the OUTPOSTS storage class to create the object replicas.
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the bucket accessed in the format
+ // arn:aws:s3-outposts:::outpost//bucket/.
+ // For example, to access the bucket reports through Outpost my-outpost owned
+ // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
+ // The value must be URL encoded.
//
- // Values other than OUTPOSTS are not supported by Amazon S3 on Outposts.
- StorageClass *string `type:"string" enum:"ReplicationStorageClass"`
+ // Bucket is a required field
+ Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -10605,7 +12899,7 @@ type Destination struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s Destination) String() string {
+func (s GetBucketInput) String() string {
return awsutil.Prettify(s)
}
@@ -10614,30 +12908,24 @@ func (s Destination) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s Destination) GoString() string {
+func (s GetBucketInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *Destination) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Destination"}
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
+func (s *GetBucketInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetBucketInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
- if s.AccessControlTranslation != nil {
- if err := s.AccessControlTranslation.Validate(); err != nil {
- invalidParams.AddNested("AccessControlTranslation", err.(request.ErrInvalidParams))
- }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Metrics != nil {
- if err := s.Metrics.Validate(); err != nil {
- invalidParams.AddNested("Metrics", err.(request.ErrInvalidParams))
- }
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
}
- if s.ReplicationTime != nil {
- if err := s.ReplicationTime.Validate(); err != nil {
- invalidParams.AddNested("ReplicationTime", err.(request.ErrInvalidParams))
- }
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
}
if invalidParams.Len() > 0 {
@@ -10646,62 +12934,87 @@ func (s *Destination) Validate() error {
return nil
}
-// SetAccessControlTranslation sets the AccessControlTranslation field's value.
-func (s *Destination) SetAccessControlTranslation(v *AccessControlTranslation) *Destination {
- s.AccessControlTranslation = v
- return s
-}
-
-// SetAccount sets the Account field's value.
-func (s *Destination) SetAccount(v string) *Destination {
- s.Account = &v
+// SetAccountId sets the AccountId field's value.
+func (s *GetBucketInput) SetAccountId(v string) *GetBucketInput {
+ s.AccountId = &v
return s
}
// SetBucket sets the Bucket field's value.
-func (s *Destination) SetBucket(v string) *Destination {
+func (s *GetBucketInput) SetBucket(v string) *GetBucketInput {
s.Bucket = &v
return s
}
-// SetEncryptionConfiguration sets the EncryptionConfiguration field's value.
-func (s *Destination) SetEncryptionConfiguration(v *EncryptionConfiguration) *Destination {
- s.EncryptionConfiguration = v
- return s
+func (s *GetBucketInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
}
-// SetMetrics sets the Metrics field's value.
-func (s *Destination) SetMetrics(v *Metrics) *Destination {
- s.Metrics = v
- return s
+func (s *GetBucketInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
}
-// SetReplicationTime sets the ReplicationTime field's value.
-func (s *Destination) SetReplicationTime(v *ReplicationTime) *Destination {
- s.ReplicationTime = v
- return s
+func (s *GetBucketInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
}
-// SetStorageClass sets the StorageClass field's value.
-func (s *Destination) SetStorageClass(v string) *Destination {
- s.StorageClass = &v
- return s
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s GetBucketInput) updateArnableField(v string) (interface{}, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ s.Bucket = aws.String(v)
+ return &s, nil
}
-// The container element for Amazon S3 Storage Lens detailed status code metrics.
-// Detailed status code metrics generate metrics for HTTP status codes, such
-// as 200 OK, 403 Forbidden, 503 Service Unavailable and others.
-//
-// For more information about S3 Storage Lens, see Assessing your storage activity
-// and usage with S3 Storage Lens (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens.html)
-// in the Amazon S3 User Guide. For a complete list of S3 Storage Lens metrics,
-// see S3 Storage Lens metrics glossary (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_metrics_glossary.html)
-// in the Amazon S3 User Guide.
-type DetailedStatusCodesMetrics struct {
- _ struct{} `type:"structure"`
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s GetBucketInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
+}
- // A container that indicates whether detailed status code metrics are enabled.
- IsEnabled *bool `type:"boolean"`
+type GetBucketLifecycleConfigurationInput struct {
+ _ struct{} `locationName:"GetBucketLifecycleConfigurationRequest" type:"structure"`
+
+ // The Amazon Web Services account ID of the Outposts bucket.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+
+ // The Amazon Resource Name (ARN) of the bucket.
+ //
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
+ //
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the bucket accessed in the format
+ // arn:aws:s3-outposts:::outpost//bucket/.
+ // For example, to access the bucket reports through Outpost my-outpost owned
+ // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
+ // The value must be URL encoded.
+ //
+ // Bucket is a required field
+ Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -10709,7 +13022,7 @@ type DetailedStatusCodesMetrics struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DetailedStatusCodesMetrics) String() string {
+func (s GetBucketLifecycleConfigurationInput) String() string {
return awsutil.Prettify(s)
}
@@ -10718,68 +13031,96 @@ func (s DetailedStatusCodesMetrics) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DetailedStatusCodesMetrics) GoString() string {
+func (s GetBucketLifecycleConfigurationInput) GoString() string {
return s.String()
}
-// SetIsEnabled sets the IsEnabled field's value.
-func (s *DetailedStatusCodesMetrics) SetIsEnabled(v bool) *DetailedStatusCodesMetrics {
- s.IsEnabled = &v
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetBucketLifecycleConfigurationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetBucketLifecycleConfigurationInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
+ }
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *GetBucketLifecycleConfigurationInput) SetAccountId(v string) *GetBucketLifecycleConfigurationInput {
+ s.AccountId = &v
return s
}
-// Specifies encryption-related information for an Amazon S3 bucket that is
-// a destination for replicated objects.
-//
-// This is not supported by Amazon S3 on Outposts buckets.
-type EncryptionConfiguration struct {
- _ struct{} `type:"structure"`
+// SetBucket sets the Bucket field's value.
+func (s *GetBucketLifecycleConfigurationInput) SetBucket(v string) *GetBucketLifecycleConfigurationInput {
+ s.Bucket = &v
+ return s
+}
- // Specifies the ID of the customer managed KMS key that's stored in Key Management
- // Service (KMS) for the destination bucket. This ID is either the Amazon Resource
- // Name (ARN) for the KMS key or the alias ARN for the KMS key. Amazon S3 uses
- // this KMS key to encrypt replica objects. Amazon S3 supports only symmetric
- // encryption KMS keys. For more information, see Symmetric encryption KMS keys
- // (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#symmetric-cmks)
- // in the Amazon Web Services Key Management Service Developer Guide.
- ReplicaKmsKeyID *string `type:"string"`
+func (s *GetBucketLifecycleConfigurationInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s EncryptionConfiguration) String() string {
- return awsutil.Prettify(s)
+func (s *GetBucketLifecycleConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s EncryptionConfiguration) GoString() string {
- return s.String()
+func (s *GetBucketLifecycleConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
}
-// SetReplicaKmsKeyID sets the ReplicaKmsKeyID field's value.
-func (s *EncryptionConfiguration) SetReplicaKmsKeyID(v string) *EncryptionConfiguration {
- s.ReplicaKmsKeyID = &v
- return s
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s GetBucketLifecycleConfigurationInput) updateArnableField(v string) (interface{}, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ s.Bucket = aws.String(v)
+ return &s, nil
}
-// The last established access control policy for a Multi-Region Access Point.
-//
-// When you update the policy, the update is first listed as the proposed policy.
-// After the update is finished and all Regions have been updated, the proposed
-// policy is listed as the established policy. If both policies have the same
-// version number, the proposed policy is the established policy.
-type EstablishedMultiRegionAccessPointPolicy struct {
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s GetBucketLifecycleConfigurationInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
+}
+
+type GetBucketLifecycleConfigurationOutput struct {
_ struct{} `type:"structure"`
- // The details of the last established policy.
- Policy *string `type:"string"`
+ // Container for the lifecycle rule of the Outposts bucket.
+ Rules []*LifecycleRule `locationNameList:"Rule" type:"list"`
}
// String returns the string representation.
@@ -10787,7 +13128,7 @@ type EstablishedMultiRegionAccessPointPolicy struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s EstablishedMultiRegionAccessPointPolicy) String() string {
+func (s GetBucketLifecycleConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
@@ -10796,25 +13137,26 @@ func (s EstablishedMultiRegionAccessPointPolicy) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s EstablishedMultiRegionAccessPointPolicy) GoString() string {
+func (s GetBucketLifecycleConfigurationOutput) GoString() string {
return s.String()
}
-// SetPolicy sets the Policy field's value.
-func (s *EstablishedMultiRegionAccessPointPolicy) SetPolicy(v string) *EstablishedMultiRegionAccessPointPolicy {
- s.Policy = &v
+// SetRules sets the Rules field's value.
+func (s *GetBucketLifecycleConfigurationOutput) SetRules(v []*LifecycleRule) *GetBucketLifecycleConfigurationOutput {
+ s.Rules = v
return s
}
-// A container for what Amazon S3 Storage Lens will exclude.
-type Exclude struct {
+type GetBucketOutput struct {
_ struct{} `type:"structure"`
- // A container for the S3 Storage Lens bucket excludes.
- Buckets []*string `locationNameList:"Arn" type:"list"`
+ // The Outposts bucket requested.
+ Bucket *string `min:"3" type:"string"`
- // A container for the S3 Storage Lens Region excludes.
- Regions []*string `locationNameList:"Region" type:"list"`
+ // The creation date of the Outposts bucket.
+ CreationDate *time.Time `type:"timestamp"`
+
+ PublicAccessBlockEnabled *bool `type:"boolean"`
}
// String returns the string representation.
@@ -10822,7 +13164,7 @@ type Exclude struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s Exclude) String() string {
+func (s GetBucketOutput) String() string {
return awsutil.Prettify(s)
}
@@ -10831,32 +13173,50 @@ func (s Exclude) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s Exclude) GoString() string {
+func (s GetBucketOutput) GoString() string {
return s.String()
}
-// SetBuckets sets the Buckets field's value.
-func (s *Exclude) SetBuckets(v []*string) *Exclude {
- s.Buckets = v
+// SetBucket sets the Bucket field's value.
+func (s *GetBucketOutput) SetBucket(v string) *GetBucketOutput {
+ s.Bucket = &v
+ return s
+}
+
+// SetCreationDate sets the CreationDate field's value.
+func (s *GetBucketOutput) SetCreationDate(v time.Time) *GetBucketOutput {
+ s.CreationDate = &v
return s
}
-// SetRegions sets the Regions field's value.
-func (s *Exclude) SetRegions(v []*string) *Exclude {
- s.Regions = v
+// SetPublicAccessBlockEnabled sets the PublicAccessBlockEnabled field's value.
+func (s *GetBucketOutput) SetPublicAccessBlockEnabled(v bool) *GetBucketOutput {
+ s.PublicAccessBlockEnabled = &v
return s
}
-// An optional configuration to replicate existing source bucket objects.
-//
-// This is not supported by Amazon S3 on Outposts buckets.
-type ExistingObjectReplication struct {
- _ struct{} `type:"structure"`
+type GetBucketPolicyInput struct {
+ _ struct{} `locationName:"GetBucketPolicyRequest" type:"structure"`
- // Specifies whether Amazon S3 replicates existing source bucket objects.
+ // The Amazon Web Services account ID of the Outposts bucket.
//
- // Status is a required field
- Status *string `type:"string" required:"true" enum:"ExistingObjectReplicationStatus"`
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+
+ // Specifies the bucket.
+ //
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
+ //
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the bucket accessed in the format
+ // arn:aws:s3-outposts:::outpost//bucket/.
+ // For example, to access the bucket reports through Outpost my-outpost owned
+ // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
+ // The value must be URL encoded.
+ //
+ // Bucket is a required field
+ Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -10864,7 +13224,7 @@ type ExistingObjectReplication struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ExistingObjectReplication) String() string {
+func (s GetBucketPolicyInput) String() string {
return awsutil.Prettify(s)
}
@@ -10873,15 +13233,24 @@ func (s ExistingObjectReplication) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ExistingObjectReplication) GoString() string {
+func (s GetBucketPolicyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *ExistingObjectReplication) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ExistingObjectReplication"}
- if s.Status == nil {
- invalidParams.Add(request.NewErrParamRequired("Status"))
+func (s *GetBucketPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetBucketPolicyInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
+ }
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
}
if invalidParams.Len() > 0 {
@@ -10890,22 +13259,70 @@ func (s *ExistingObjectReplication) Validate() error {
return nil
}
-// SetStatus sets the Status field's value.
-func (s *ExistingObjectReplication) SetStatus(v string) *ExistingObjectReplication {
- s.Status = &v
+// SetAccountId sets the AccountId field's value.
+func (s *GetBucketPolicyInput) SetAccountId(v string) *GetBucketPolicyInput {
+ s.AccountId = &v
return s
}
-// The encryption configuration to use when storing the generated manifest.
-type GeneratedManifestEncryption struct {
- _ struct{} `type:"structure"`
+// SetBucket sets the Bucket field's value.
+func (s *GetBucketPolicyInput) SetBucket(v string) *GetBucketPolicyInput {
+ s.Bucket = &v
+ return s
+}
- // Configuration details on how SSE-KMS is used to encrypt generated manifest
- // objects.
- SSEKMS *SSEKMSEncryption `locationName:"SSE-KMS" type:"structure"`
+func (s *GetBucketPolicyInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
- // Specifies the use of SSE-S3 to encrypt generated manifest objects.
- SSES3 *SSES3Encryption `locationName:"SSE-S3" type:"structure"`
+func (s *GetBucketPolicyInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketPolicyInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s GetBucketPolicyInput) updateArnableField(v string) (interface{}, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ s.Bucket = aws.String(v)
+ return &s, nil
+}
+
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s GetBucketPolicyInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
+}
+
+type GetBucketPolicyOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The policy of the Outposts bucket.
+ Policy *string `type:"string"`
}
// String returns the string representation.
@@ -10913,7 +13330,7 @@ type GeneratedManifestEncryption struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GeneratedManifestEncryption) String() string {
+func (s GetBucketPolicyOutput) String() string {
return awsutil.Prettify(s)
}
@@ -10922,51 +13339,38 @@ func (s GeneratedManifestEncryption) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GeneratedManifestEncryption) GoString() string {
+func (s GetBucketPolicyOutput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *GeneratedManifestEncryption) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GeneratedManifestEncryption"}
- if s.SSEKMS != nil {
- if err := s.SSEKMS.Validate(); err != nil {
- invalidParams.AddNested("SSEKMS", err.(request.ErrInvalidParams))
- }
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetSSEKMS sets the SSEKMS field's value.
-func (s *GeneratedManifestEncryption) SetSSEKMS(v *SSEKMSEncryption) *GeneratedManifestEncryption {
- s.SSEKMS = v
- return s
-}
-
-// SetSSES3 sets the SSES3 field's value.
-func (s *GeneratedManifestEncryption) SetSSES3(v *SSES3Encryption) *GeneratedManifestEncryption {
- s.SSES3 = v
+// SetPolicy sets the Policy field's value.
+func (s *GetBucketPolicyOutput) SetPolicy(v string) *GetBucketPolicyOutput {
+ s.Policy = &v
return s
}
-type GetAccessPointConfigurationForObjectLambdaInput struct {
- _ struct{} `locationName:"GetAccessPointConfigurationForObjectLambdaRequest" type:"structure"`
+type GetBucketReplicationInput struct {
+ _ struct{} `locationName:"GetBucketReplicationRequest" type:"structure"`
- // The account ID for the account that owns the specified Object Lambda Access
- // Point.
+ // The Amazon Web Services account ID of the Outposts bucket.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The name of the Object Lambda Access Point you want to return the configuration
- // for.
+ // Specifies the bucket to get the replication information for.
//
- // Name is a required field
- Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
+ //
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the bucket accessed in the format
+ // arn:aws:s3-outposts:::outpost//bucket/.
+ // For example, to access the bucket reports through Outpost my-outpost owned
+ // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
+ // The value must be URL encoded.
+ //
+ // Bucket is a required field
+ Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -10974,7 +13378,7 @@ type GetAccessPointConfigurationForObjectLambdaInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointConfigurationForObjectLambdaInput) String() string {
+func (s GetBucketReplicationInput) String() string {
return awsutil.Prettify(s)
}
@@ -10983,24 +13387,24 @@ func (s GetAccessPointConfigurationForObjectLambdaInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointConfigurationForObjectLambdaInput) GoString() string {
+func (s GetBucketReplicationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetAccessPointConfigurationForObjectLambdaInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetAccessPointConfigurationForObjectLambdaInput"}
+func (s *GetBucketReplicationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetBucketReplicationInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
}
- if s.Name != nil && len(*s.Name) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
}
if invalidParams.Len() > 0 {
@@ -11010,28 +13414,71 @@ func (s *GetAccessPointConfigurationForObjectLambdaInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *GetAccessPointConfigurationForObjectLambdaInput) SetAccountId(v string) *GetAccessPointConfigurationForObjectLambdaInput {
+func (s *GetBucketReplicationInput) SetAccountId(v string) *GetBucketReplicationInput {
s.AccountId = &v
return s
}
-// SetName sets the Name field's value.
-func (s *GetAccessPointConfigurationForObjectLambdaInput) SetName(v string) *GetAccessPointConfigurationForObjectLambdaInput {
- s.Name = &v
+// SetBucket sets the Bucket field's value.
+func (s *GetBucketReplicationInput) SetBucket(v string) *GetBucketReplicationInput {
+ s.Bucket = &v
return s
}
-func (s *GetAccessPointConfigurationForObjectLambdaInput) hostLabels() map[string]string {
+func (s *GetBucketReplicationInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-type GetAccessPointConfigurationForObjectLambdaOutput struct {
+func (s *GetBucketReplicationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *GetBucketReplicationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s GetBucketReplicationInput) updateArnableField(v string) (interface{}, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ s.Bucket = aws.String(v)
+ return &s, nil
+}
+
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s GetBucketReplicationInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
+}
+
+type GetBucketReplicationOutput struct {
_ struct{} `type:"structure"`
- // Object Lambda Access Point configuration document.
- Configuration *ObjectLambdaConfiguration `type:"structure"`
+ // A container for one or more replication rules. A replication configuration
+ // must have at least one rule and you can add up to 100 rules. The maximum
+ // size of a replication configuration is 128 KB.
+ ReplicationConfiguration *ReplicationConfiguration `type:"structure"`
}
// String returns the string representation.
@@ -11039,7 +13486,7 @@ type GetAccessPointConfigurationForObjectLambdaOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointConfigurationForObjectLambdaOutput) String() string {
+func (s GetBucketReplicationOutput) String() string {
return awsutil.Prettify(s)
}
@@ -11048,29 +13495,38 @@ func (s GetAccessPointConfigurationForObjectLambdaOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointConfigurationForObjectLambdaOutput) GoString() string {
+func (s GetBucketReplicationOutput) GoString() string {
return s.String()
}
-// SetConfiguration sets the Configuration field's value.
-func (s *GetAccessPointConfigurationForObjectLambdaOutput) SetConfiguration(v *ObjectLambdaConfiguration) *GetAccessPointConfigurationForObjectLambdaOutput {
- s.Configuration = v
+// SetReplicationConfiguration sets the ReplicationConfiguration field's value.
+func (s *GetBucketReplicationOutput) SetReplicationConfiguration(v *ReplicationConfiguration) *GetBucketReplicationOutput {
+ s.ReplicationConfiguration = v
return s
}
-type GetAccessPointForObjectLambdaInput struct {
- _ struct{} `locationName:"GetAccessPointForObjectLambdaRequest" type:"structure"`
+type GetBucketTaggingInput struct {
+ _ struct{} `locationName:"GetBucketTaggingRequest" type:"structure"`
- // The account ID for the account that owns the specified Object Lambda Access
- // Point.
+ // The Amazon Web Services account ID of the Outposts bucket.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The name of the Object Lambda Access Point.
+ // Specifies the bucket.
//
- // Name is a required field
- Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
+ //
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the bucket accessed in the format
+ // arn:aws:s3-outposts:::outpost//bucket/.
+ // For example, to access the bucket reports through Outpost my-outpost owned
+ // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
+ // The value must be URL encoded.
+ //
+ // Bucket is a required field
+ Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -11078,7 +13534,7 @@ type GetAccessPointForObjectLambdaInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointForObjectLambdaInput) String() string {
+func (s GetBucketTaggingInput) String() string {
return awsutil.Prettify(s)
}
@@ -11087,24 +13543,24 @@ func (s GetAccessPointForObjectLambdaInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointForObjectLambdaInput) GoString() string {
+func (s GetBucketTaggingInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetAccessPointForObjectLambdaInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetAccessPointForObjectLambdaInput"}
+func (s *GetBucketTaggingInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetBucketTaggingInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
}
- if s.Name != nil && len(*s.Name) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
}
if invalidParams.Len() > 0 {
@@ -11114,38 +13570,71 @@ func (s *GetAccessPointForObjectLambdaInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *GetAccessPointForObjectLambdaInput) SetAccountId(v string) *GetAccessPointForObjectLambdaInput {
+func (s *GetBucketTaggingInput) SetAccountId(v string) *GetBucketTaggingInput {
s.AccountId = &v
return s
}
-// SetName sets the Name field's value.
-func (s *GetAccessPointForObjectLambdaInput) SetName(v string) *GetAccessPointForObjectLambdaInput {
- s.Name = &v
+// SetBucket sets the Bucket field's value.
+func (s *GetBucketTaggingInput) SetBucket(v string) *GetBucketTaggingInput {
+ s.Bucket = &v
return s
}
-func (s *GetAccessPointForObjectLambdaInput) hostLabels() map[string]string {
+func (s *GetBucketTaggingInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-type GetAccessPointForObjectLambdaOutput struct {
- _ struct{} `type:"structure"`
+func (s *GetBucketTaggingInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
- // The alias of the Object Lambda Access Point.
- Alias *ObjectLambdaAccessPointAlias `type:"structure"`
+func (s *GetBucketTaggingInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
- // The date and time when the specified Object Lambda Access Point was created.
- CreationDate *time.Time `type:"timestamp"`
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s GetBucketTaggingInput) updateArnableField(v string) (interface{}, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ s.Bucket = aws.String(v)
+ return &s, nil
+}
- // The name of the Object Lambda Access Point.
- Name *string `min:"3" type:"string"`
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s GetBucketTaggingInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
+}
- // Configuration to block all public access. This setting is turned on and can
- // not be edited.
- PublicAccessBlockConfiguration *PublicAccessBlockConfiguration `type:"structure"`
+type GetBucketTaggingOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The tags set of the Outposts bucket.
+ //
+ // TagSet is a required field
+ TagSet []*S3Tag `type:"list" required:"true"`
}
// String returns the string representation.
@@ -11153,7 +13642,7 @@ type GetAccessPointForObjectLambdaOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointForObjectLambdaOutput) String() string {
+func (s GetBucketTaggingOutput) String() string {
return awsutil.Prettify(s)
}
@@ -11162,59 +13651,28 @@ func (s GetAccessPointForObjectLambdaOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointForObjectLambdaOutput) GoString() string {
+func (s GetBucketTaggingOutput) GoString() string {
return s.String()
}
-// SetAlias sets the Alias field's value.
-func (s *GetAccessPointForObjectLambdaOutput) SetAlias(v *ObjectLambdaAccessPointAlias) *GetAccessPointForObjectLambdaOutput {
- s.Alias = v
- return s
-}
-
-// SetCreationDate sets the CreationDate field's value.
-func (s *GetAccessPointForObjectLambdaOutput) SetCreationDate(v time.Time) *GetAccessPointForObjectLambdaOutput {
- s.CreationDate = &v
- return s
-}
-
-// SetName sets the Name field's value.
-func (s *GetAccessPointForObjectLambdaOutput) SetName(v string) *GetAccessPointForObjectLambdaOutput {
- s.Name = &v
- return s
-}
-
-// SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field's value.
-func (s *GetAccessPointForObjectLambdaOutput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *GetAccessPointForObjectLambdaOutput {
- s.PublicAccessBlockConfiguration = v
+// SetTagSet sets the TagSet field's value.
+func (s *GetBucketTaggingOutput) SetTagSet(v []*S3Tag) *GetBucketTaggingOutput {
+ s.TagSet = v
return s
}
-type GetAccessPointInput struct {
- _ struct{} `locationName:"GetAccessPointRequest" type:"structure"`
+type GetBucketVersioningInput struct {
+ _ struct{} `locationName:"GetBucketVersioningRequest" type:"structure"`
- // The Amazon Web Services account ID for the account that owns the specified
- // access point.
+ // The Amazon Web Services account ID of the S3 on Outposts bucket.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The name of the access point whose configuration information you want to
- // retrieve.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
- //
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the access point accessed in the
- // format arn:aws:s3-outposts:::outpost//accesspoint/.
- // For example, to access the access point reports-ap through Outpost my-outpost
- // owned by account 123456789012 in Region us-west-2, use the URL encoding of
- // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap.
- // The value must be URL encoded.
+ // The S3 on Outposts bucket to return the versioning state for.
//
- // Name is a required field
- Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // Bucket is a required field
+ Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -11222,7 +13680,7 @@ type GetAccessPointInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointInput) String() string {
+func (s GetBucketVersioningInput) String() string {
return awsutil.Prettify(s)
}
@@ -11231,24 +13689,24 @@ func (s GetAccessPointInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointInput) GoString() string {
+func (s GetBucketVersioningInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetAccessPointInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetAccessPointInput"}
+func (s *GetBucketVersioningInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetBucketVersioningInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
}
- if s.Name != nil && len(*s.Name) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
}
if invalidParams.Len() > 0 {
@@ -11258,35 +13716,35 @@ func (s *GetAccessPointInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *GetAccessPointInput) SetAccountId(v string) *GetAccessPointInput {
+func (s *GetBucketVersioningInput) SetAccountId(v string) *GetBucketVersioningInput {
s.AccountId = &v
return s
}
-// SetName sets the Name field's value.
-func (s *GetAccessPointInput) SetName(v string) *GetAccessPointInput {
- s.Name = &v
+// SetBucket sets the Bucket field's value.
+func (s *GetBucketVersioningInput) SetBucket(v string) *GetBucketVersioningInput {
+ s.Bucket = &v
return s
}
-func (s *GetAccessPointInput) hostLabels() map[string]string {
+func (s *GetBucketVersioningInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-func (s *GetAccessPointInput) getEndpointARN() (arn.Resource, error) {
- if s.Name == nil {
- return nil, fmt.Errorf("member Name is nil")
+func (s *GetBucketVersioningInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
}
- return parseEndpointARN(*s.Name)
+ return parseEndpointARN(*s.Bucket)
}
-func (s *GetAccessPointInput) hasEndpointARN() bool {
- if s.Name == nil {
+func (s *GetBucketVersioningInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
return false
}
- return arn.IsARN(*s.Name)
+ return arn.IsARN(*s.Bucket)
}
// updateArnableField updates the value of the input field that
@@ -11294,77 +13752,39 @@ func (s *GetAccessPointInput) hasEndpointARN() bool {
// the parsed resource name from ARN into the input member.
// It returns a pointer to a modified copy of input and an error.
// Note that original input is not modified.
-func (s GetAccessPointInput) updateArnableField(v string) (interface{}, error) {
- if s.Name == nil {
- return nil, fmt.Errorf("member Name is nil")
- }
- s.Name = aws.String(v)
- return &s, nil
-}
-
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s GetAccessPointInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
-}
-
-type GetAccessPointOutput struct {
- _ struct{} `type:"structure"`
-
- // The ARN of the access point.
- AccessPointArn *string `min:"4" type:"string"`
-
- // The name or alias of the access point.
- Alias *string `type:"string"`
-
- // The name of the bucket associated with the specified access point.
- Bucket *string `min:"3" type:"string"`
-
- // The Amazon Web Services account ID associated with the S3 bucket associated
- // with this access point.
- BucketAccountId *string `type:"string"`
-
- // The date and time when the specified access point was created.
- CreationDate *time.Time `type:"timestamp"`
-
- // The VPC endpoint for the access point.
- Endpoints map[string]*string `type:"map"`
+func (s GetBucketVersioningInput) updateArnableField(v string) (interface{}, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ s.Bucket = aws.String(v)
+ return &s, nil
+}
- // The name of the specified access point.
- Name *string `min:"3" type:"string"`
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s GetBucketVersioningInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
+}
- // Indicates whether this access point allows access from the public internet.
- // If VpcConfiguration is specified for this access point, then NetworkOrigin
- // is VPC, and the access point doesn't allow access from the public internet.
- // Otherwise, NetworkOrigin is Internet, and the access point allows access
- // from the public internet, subject to the access point and bucket access policies.
- //
- // This will always be true for an Amazon S3 on Outposts access point
- NetworkOrigin *string `type:"string" enum:"NetworkOrigin"`
+type GetBucketVersioningOutput struct {
+ _ struct{} `type:"structure"`
- // The PublicAccessBlock configuration that you want to apply to this Amazon
- // S3 account. You can enable the configuration options in any combination.
- // For more information about when Amazon S3 considers a bucket or object public,
- // see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status)
- // in the Amazon S3 User Guide.
- //
- // This data type is not supported for Amazon S3 on Outposts.
- PublicAccessBlockConfiguration *PublicAccessBlockConfiguration `type:"structure"`
+ // Specifies whether MFA delete is enabled in the bucket versioning configuration.
+ // This element is returned only if the bucket has been configured with MFA
+ // delete. If MFA delete has never been configured for the bucket, this element
+ // is not returned.
+ MFADelete *string `locationName:"MfaDelete" type:"string" enum:"MFADeleteStatus"`
- // Contains the virtual private cloud (VPC) configuration for the specified
- // access point.
- //
- // This element is empty if this access point is an Amazon S3 on Outposts access
- // point that is used by other Amazon Web Services.
- VpcConfiguration *VpcConfiguration `type:"structure"`
+ // The versioning state of the S3 on Outposts bucket.
+ Status *string `type:"string" enum:"BucketVersioningStatus"`
}
// String returns the string representation.
@@ -11372,7 +13792,7 @@ type GetAccessPointOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointOutput) String() string {
+func (s GetBucketVersioningOutput) String() string {
return awsutil.Prettify(s)
}
@@ -11381,83 +13801,35 @@ func (s GetAccessPointOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointOutput) GoString() string {
+func (s GetBucketVersioningOutput) GoString() string {
return s.String()
}
-// SetAccessPointArn sets the AccessPointArn field's value.
-func (s *GetAccessPointOutput) SetAccessPointArn(v string) *GetAccessPointOutput {
- s.AccessPointArn = &v
- return s
-}
-
-// SetAlias sets the Alias field's value.
-func (s *GetAccessPointOutput) SetAlias(v string) *GetAccessPointOutput {
- s.Alias = &v
- return s
-}
-
-// SetBucket sets the Bucket field's value.
-func (s *GetAccessPointOutput) SetBucket(v string) *GetAccessPointOutput {
- s.Bucket = &v
- return s
-}
-
-// SetBucketAccountId sets the BucketAccountId field's value.
-func (s *GetAccessPointOutput) SetBucketAccountId(v string) *GetAccessPointOutput {
- s.BucketAccountId = &v
- return s
-}
-
-// SetCreationDate sets the CreationDate field's value.
-func (s *GetAccessPointOutput) SetCreationDate(v time.Time) *GetAccessPointOutput {
- s.CreationDate = &v
- return s
-}
-
-// SetEndpoints sets the Endpoints field's value.
-func (s *GetAccessPointOutput) SetEndpoints(v map[string]*string) *GetAccessPointOutput {
- s.Endpoints = v
- return s
-}
-
-// SetName sets the Name field's value.
-func (s *GetAccessPointOutput) SetName(v string) *GetAccessPointOutput {
- s.Name = &v
- return s
-}
-
-// SetNetworkOrigin sets the NetworkOrigin field's value.
-func (s *GetAccessPointOutput) SetNetworkOrigin(v string) *GetAccessPointOutput {
- s.NetworkOrigin = &v
- return s
-}
-
-// SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field's value.
-func (s *GetAccessPointOutput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *GetAccessPointOutput {
- s.PublicAccessBlockConfiguration = v
+// SetMFADelete sets the MFADelete field's value.
+func (s *GetBucketVersioningOutput) SetMFADelete(v string) *GetBucketVersioningOutput {
+ s.MFADelete = &v
return s
}
-// SetVpcConfiguration sets the VpcConfiguration field's value.
-func (s *GetAccessPointOutput) SetVpcConfiguration(v *VpcConfiguration) *GetAccessPointOutput {
- s.VpcConfiguration = v
+// SetStatus sets the Status field's value.
+func (s *GetBucketVersioningOutput) SetStatus(v string) *GetBucketVersioningOutput {
+ s.Status = &v
return s
}
-type GetAccessPointPolicyForObjectLambdaInput struct {
- _ struct{} `locationName:"GetAccessPointPolicyForObjectLambdaRequest" type:"structure"`
+type GetJobTaggingInput struct {
+ _ struct{} `locationName:"GetJobTaggingRequest" type:"structure"`
- // The account ID for the account that owns the specified Object Lambda Access
- // Point.
+ // The Amazon Web Services account ID associated with the S3 Batch Operations
+ // job.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The name of the Object Lambda Access Point.
+ // The ID for the S3 Batch Operations job whose tags you want to retrieve.
//
- // Name is a required field
- Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // JobId is a required field
+ JobId *string `location:"uri" locationName:"id" min:"5" type:"string" required:"true"`
}
// String returns the string representation.
@@ -11465,7 +13837,7 @@ type GetAccessPointPolicyForObjectLambdaInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointPolicyForObjectLambdaInput) String() string {
+func (s GetJobTaggingInput) String() string {
return awsutil.Prettify(s)
}
@@ -11474,24 +13846,24 @@ func (s GetAccessPointPolicyForObjectLambdaInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointPolicyForObjectLambdaInput) GoString() string {
+func (s GetJobTaggingInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetAccessPointPolicyForObjectLambdaInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetAccessPointPolicyForObjectLambdaInput"}
+func (s *GetJobTaggingInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetJobTaggingInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
+ if s.JobId == nil {
+ invalidParams.Add(request.NewErrParamRequired("JobId"))
}
- if s.Name != nil && len(*s.Name) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ if s.JobId != nil && len(*s.JobId) < 5 {
+ invalidParams.Add(request.NewErrParamMinLen("JobId", 5))
}
if invalidParams.Len() > 0 {
@@ -11501,28 +13873,28 @@ func (s *GetAccessPointPolicyForObjectLambdaInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *GetAccessPointPolicyForObjectLambdaInput) SetAccountId(v string) *GetAccessPointPolicyForObjectLambdaInput {
+func (s *GetJobTaggingInput) SetAccountId(v string) *GetJobTaggingInput {
s.AccountId = &v
return s
}
-// SetName sets the Name field's value.
-func (s *GetAccessPointPolicyForObjectLambdaInput) SetName(v string) *GetAccessPointPolicyForObjectLambdaInput {
- s.Name = &v
+// SetJobId sets the JobId field's value.
+func (s *GetJobTaggingInput) SetJobId(v string) *GetJobTaggingInput {
+ s.JobId = &v
return s
}
-func (s *GetAccessPointPolicyForObjectLambdaInput) hostLabels() map[string]string {
+func (s *GetJobTaggingInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-type GetAccessPointPolicyForObjectLambdaOutput struct {
+type GetJobTaggingOutput struct {
_ struct{} `type:"structure"`
- // Object Lambda Access Point resource policy document.
- Policy *string `type:"string"`
+ // The set of tags associated with the S3 Batch Operations job.
+ Tags []*S3Tag `type:"list"`
}
// String returns the string representation.
@@ -11530,7 +13902,7 @@ type GetAccessPointPolicyForObjectLambdaOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointPolicyForObjectLambdaOutput) String() string {
+func (s GetJobTaggingOutput) String() string {
return awsutil.Prettify(s)
}
@@ -11539,39 +13911,34 @@ func (s GetAccessPointPolicyForObjectLambdaOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointPolicyForObjectLambdaOutput) GoString() string {
+func (s GetJobTaggingOutput) GoString() string {
return s.String()
}
-// SetPolicy sets the Policy field's value.
-func (s *GetAccessPointPolicyForObjectLambdaOutput) SetPolicy(v string) *GetAccessPointPolicyForObjectLambdaOutput {
- s.Policy = &v
+// SetTags sets the Tags field's value.
+func (s *GetJobTaggingOutput) SetTags(v []*S3Tag) *GetJobTaggingOutput {
+ s.Tags = v
return s
}
-type GetAccessPointPolicyInput struct {
- _ struct{} `locationName:"GetAccessPointPolicyRequest" type:"structure"`
+type GetMultiRegionAccessPointInput struct {
+ _ struct{} `locationName:"GetMultiRegionAccessPointRequest" type:"structure"`
- // The account ID for the account that owns the specified access point.
+ // The Amazon Web Services account ID for the owner of the Multi-Region Access
+ // Point.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The name of the access point whose policy you want to retrieve.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
- //
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the access point accessed in the
- // format arn:aws:s3-outposts:::outpost//accesspoint/.
- // For example, to access the access point reports-ap through Outpost my-outpost
- // owned by account 123456789012 in Region us-west-2, use the URL encoding of
- // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap.
- // The value must be URL encoded.
+ // The name of the Multi-Region Access Point whose configuration information
+ // you want to receive. The name of the Multi-Region Access Point is different
+ // from the alias. For more information about the distinction between the name
+ // and the alias of an Multi-Region Access Point, see Managing Multi-Region
+ // Access Points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/CreatingMultiRegionAccessPoints.html#multi-region-access-point-naming)
+ // in the Amazon S3 User Guide.
//
// Name is a required field
- Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ Name *string `location:"uri" locationName:"name" type:"string" required:"true"`
}
// String returns the string representation.
@@ -11579,7 +13946,7 @@ type GetAccessPointPolicyInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointPolicyInput) String() string {
+func (s GetMultiRegionAccessPointInput) String() string {
return awsutil.Prettify(s)
}
@@ -11588,13 +13955,13 @@ func (s GetAccessPointPolicyInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointPolicyInput) GoString() string {
+func (s GetMultiRegionAccessPointInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetAccessPointPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetAccessPointPolicyInput"}
+func (s *GetMultiRegionAccessPointInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetMultiRegionAccessPointInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
@@ -11604,8 +13971,8 @@ func (s *GetAccessPointPolicyInput) Validate() error {
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
- if s.Name != nil && len(*s.Name) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if invalidParams.Len() > 0 {
@@ -11613,71 +13980,31 @@ func (s *GetAccessPointPolicyInput) Validate() error {
}
return nil
}
-
-// SetAccountId sets the AccountId field's value.
-func (s *GetAccessPointPolicyInput) SetAccountId(v string) *GetAccessPointPolicyInput {
- s.AccountId = &v
- return s
-}
-
-// SetName sets the Name field's value.
-func (s *GetAccessPointPolicyInput) SetName(v string) *GetAccessPointPolicyInput {
- s.Name = &v
- return s
-}
-
-func (s *GetAccessPointPolicyInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
-
-func (s *GetAccessPointPolicyInput) getEndpointARN() (arn.Resource, error) {
- if s.Name == nil {
- return nil, fmt.Errorf("member Name is nil")
- }
- return parseEndpointARN(*s.Name)
-}
-
-func (s *GetAccessPointPolicyInput) hasEndpointARN() bool {
- if s.Name == nil {
- return false
- }
- return arn.IsARN(*s.Name)
-}
-
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s GetAccessPointPolicyInput) updateArnableField(v string) (interface{}, error) {
- if s.Name == nil {
- return nil, fmt.Errorf("member Name is nil")
- }
- s.Name = aws.String(v)
- return &s, nil
+
+// SetAccountId sets the AccountId field's value.
+func (s *GetMultiRegionAccessPointInput) SetAccountId(v string) *GetMultiRegionAccessPointInput {
+ s.AccountId = &v
+ return s
}
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s GetAccessPointPolicyInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+// SetName sets the Name field's value.
+func (s *GetMultiRegionAccessPointInput) SetName(v string) *GetMultiRegionAccessPointInput {
+ s.Name = &v
+ return s
+}
+
+func (s *GetMultiRegionAccessPointInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
}
- return nil, nil
}
-type GetAccessPointPolicyOutput struct {
+type GetMultiRegionAccessPointOutput struct {
_ struct{} `type:"structure"`
- // The access point policy associated with the specified access point.
- Policy *string `type:"string"`
+ // A container element containing the details of the requested Multi-Region
+ // Access Point.
+ AccessPoint *MultiRegionAccessPointReport `type:"structure"`
}
// String returns the string representation.
@@ -11685,7 +14012,7 @@ type GetAccessPointPolicyOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointPolicyOutput) String() string {
+func (s GetMultiRegionAccessPointOutput) String() string {
return awsutil.Prettify(s)
}
@@ -11694,29 +14021,33 @@ func (s GetAccessPointPolicyOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointPolicyOutput) GoString() string {
+func (s GetMultiRegionAccessPointOutput) GoString() string {
return s.String()
}
-// SetPolicy sets the Policy field's value.
-func (s *GetAccessPointPolicyOutput) SetPolicy(v string) *GetAccessPointPolicyOutput {
- s.Policy = &v
+// SetAccessPoint sets the AccessPoint field's value.
+func (s *GetMultiRegionAccessPointOutput) SetAccessPoint(v *MultiRegionAccessPointReport) *GetMultiRegionAccessPointOutput {
+ s.AccessPoint = v
return s
}
-type GetAccessPointPolicyStatusForObjectLambdaInput struct {
- _ struct{} `locationName:"GetAccessPointPolicyStatusForObjectLambdaRequest" type:"structure"`
+type GetMultiRegionAccessPointPolicyInput struct {
+ _ struct{} `locationName:"GetMultiRegionAccessPointPolicyRequest" type:"structure"`
- // The account ID for the account that owns the specified Object Lambda Access
+ // The Amazon Web Services account ID for the owner of the Multi-Region Access
// Point.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The name of the Object Lambda Access Point.
+ // Specifies the Multi-Region Access Point. The name of the Multi-Region Access
+ // Point is different from the alias. For more information about the distinction
+ // between the name and the alias of an Multi-Region Access Point, see Managing
+ // Multi-Region Access Points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/CreatingMultiRegionAccessPoints.html#multi-region-access-point-naming)
+ // in the Amazon S3 User Guide.
//
// Name is a required field
- Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ Name *string `location:"uri" locationName:"name" type:"string" required:"true"`
}
// String returns the string representation.
@@ -11724,7 +14055,7 @@ type GetAccessPointPolicyStatusForObjectLambdaInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointPolicyStatusForObjectLambdaInput) String() string {
+func (s GetMultiRegionAccessPointPolicyInput) String() string {
return awsutil.Prettify(s)
}
@@ -11733,13 +14064,13 @@ func (s GetAccessPointPolicyStatusForObjectLambdaInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointPolicyStatusForObjectLambdaInput) GoString() string {
+func (s GetMultiRegionAccessPointPolicyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetAccessPointPolicyStatusForObjectLambdaInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetAccessPointPolicyStatusForObjectLambdaInput"}
+func (s *GetMultiRegionAccessPointPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetMultiRegionAccessPointPolicyInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
@@ -11749,8 +14080,8 @@ func (s *GetAccessPointPolicyStatusForObjectLambdaInput) Validate() error {
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
- if s.Name != nil && len(*s.Name) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if invalidParams.Len() > 0 {
@@ -11760,31 +14091,28 @@ func (s *GetAccessPointPolicyStatusForObjectLambdaInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *GetAccessPointPolicyStatusForObjectLambdaInput) SetAccountId(v string) *GetAccessPointPolicyStatusForObjectLambdaInput {
+func (s *GetMultiRegionAccessPointPolicyInput) SetAccountId(v string) *GetMultiRegionAccessPointPolicyInput {
s.AccountId = &v
return s
}
// SetName sets the Name field's value.
-func (s *GetAccessPointPolicyStatusForObjectLambdaInput) SetName(v string) *GetAccessPointPolicyStatusForObjectLambdaInput {
+func (s *GetMultiRegionAccessPointPolicyInput) SetName(v string) *GetMultiRegionAccessPointPolicyInput {
s.Name = &v
return s
}
-func (s *GetAccessPointPolicyStatusForObjectLambdaInput) hostLabels() map[string]string {
+func (s *GetMultiRegionAccessPointPolicyInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-type GetAccessPointPolicyStatusForObjectLambdaOutput struct {
+type GetMultiRegionAccessPointPolicyOutput struct {
_ struct{} `type:"structure"`
- // Indicates whether this access point policy is public. For more information
- // about how Amazon S3 evaluates policies to determine whether they are public,
- // see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status)
- // in the Amazon S3 User Guide.
- PolicyStatus *PolicyStatus `type:"structure"`
+ // The policy associated with the specified Multi-Region Access Point.
+ Policy *MultiRegionAccessPointPolicyDocument `type:"structure"`
}
// String returns the string representation.
@@ -11792,7 +14120,7 @@ type GetAccessPointPolicyStatusForObjectLambdaOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointPolicyStatusForObjectLambdaOutput) String() string {
+func (s GetMultiRegionAccessPointPolicyOutput) String() string {
return awsutil.Prettify(s)
}
@@ -11801,28 +14129,33 @@ func (s GetAccessPointPolicyStatusForObjectLambdaOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointPolicyStatusForObjectLambdaOutput) GoString() string {
+func (s GetMultiRegionAccessPointPolicyOutput) GoString() string {
return s.String()
}
-// SetPolicyStatus sets the PolicyStatus field's value.
-func (s *GetAccessPointPolicyStatusForObjectLambdaOutput) SetPolicyStatus(v *PolicyStatus) *GetAccessPointPolicyStatusForObjectLambdaOutput {
- s.PolicyStatus = v
+// SetPolicy sets the Policy field's value.
+func (s *GetMultiRegionAccessPointPolicyOutput) SetPolicy(v *MultiRegionAccessPointPolicyDocument) *GetMultiRegionAccessPointPolicyOutput {
+ s.Policy = v
return s
}
-type GetAccessPointPolicyStatusInput struct {
- _ struct{} `locationName:"GetAccessPointPolicyStatusRequest" type:"structure"`
+type GetMultiRegionAccessPointPolicyStatusInput struct {
+ _ struct{} `locationName:"GetMultiRegionAccessPointPolicyStatusRequest" type:"structure"`
- // The account ID for the account that owns the specified access point.
+ // The Amazon Web Services account ID for the owner of the Multi-Region Access
+ // Point.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The name of the access point whose policy status you want to retrieve.
+ // Specifies the Multi-Region Access Point. The name of the Multi-Region Access
+ // Point is different from the alias. For more information about the distinction
+ // between the name and the alias of an Multi-Region Access Point, see Managing
+ // Multi-Region Access Points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/CreatingMultiRegionAccessPoints.html#multi-region-access-point-naming)
+ // in the Amazon S3 User Guide.
//
// Name is a required field
- Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ Name *string `location:"uri" locationName:"name" type:"string" required:"true"`
}
// String returns the string representation.
@@ -11830,7 +14163,7 @@ type GetAccessPointPolicyStatusInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointPolicyStatusInput) String() string {
+func (s GetMultiRegionAccessPointPolicyStatusInput) String() string {
return awsutil.Prettify(s)
}
@@ -11839,13 +14172,13 @@ func (s GetAccessPointPolicyStatusInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointPolicyStatusInput) GoString() string {
+func (s GetMultiRegionAccessPointPolicyStatusInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetAccessPointPolicyStatusInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetAccessPointPolicyStatusInput"}
+func (s *GetMultiRegionAccessPointPolicyStatusInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetMultiRegionAccessPointPolicyStatusInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
@@ -11855,8 +14188,8 @@ func (s *GetAccessPointPolicyStatusInput) Validate() error {
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
- if s.Name != nil && len(*s.Name) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if invalidParams.Len() > 0 {
@@ -11866,28 +14199,31 @@ func (s *GetAccessPointPolicyStatusInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *GetAccessPointPolicyStatusInput) SetAccountId(v string) *GetAccessPointPolicyStatusInput {
+func (s *GetMultiRegionAccessPointPolicyStatusInput) SetAccountId(v string) *GetMultiRegionAccessPointPolicyStatusInput {
s.AccountId = &v
return s
}
// SetName sets the Name field's value.
-func (s *GetAccessPointPolicyStatusInput) SetName(v string) *GetAccessPointPolicyStatusInput {
+func (s *GetMultiRegionAccessPointPolicyStatusInput) SetName(v string) *GetMultiRegionAccessPointPolicyStatusInput {
s.Name = &v
return s
}
-func (s *GetAccessPointPolicyStatusInput) hostLabels() map[string]string {
+func (s *GetMultiRegionAccessPointPolicyStatusInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-type GetAccessPointPolicyStatusOutput struct {
+type GetMultiRegionAccessPointPolicyStatusOutput struct {
_ struct{} `type:"structure"`
- // Indicates the current policy status of the specified access point.
- PolicyStatus *PolicyStatus `type:"structure"`
+ // Indicates whether this access point policy is public. For more information
+ // about how Amazon S3 evaluates policies to determine whether they are public,
+ // see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status)
+ // in the Amazon S3 User Guide.
+ Established *PolicyStatus `type:"structure"`
}
// String returns the string representation.
@@ -11895,7 +14231,7 @@ type GetAccessPointPolicyStatusOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointPolicyStatusOutput) String() string {
+func (s GetMultiRegionAccessPointPolicyStatusOutput) String() string {
return awsutil.Prettify(s)
}
@@ -11904,38 +14240,29 @@ func (s GetAccessPointPolicyStatusOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetAccessPointPolicyStatusOutput) GoString() string {
+func (s GetMultiRegionAccessPointPolicyStatusOutput) GoString() string {
return s.String()
}
-// SetPolicyStatus sets the PolicyStatus field's value.
-func (s *GetAccessPointPolicyStatusOutput) SetPolicyStatus(v *PolicyStatus) *GetAccessPointPolicyStatusOutput {
- s.PolicyStatus = v
+// SetEstablished sets the Established field's value.
+func (s *GetMultiRegionAccessPointPolicyStatusOutput) SetEstablished(v *PolicyStatus) *GetMultiRegionAccessPointPolicyStatusOutput {
+ s.Established = v
return s
}
-type GetBucketInput struct {
- _ struct{} `locationName:"GetBucketRequest" type:"structure"`
+type GetMultiRegionAccessPointRoutesInput struct {
+ _ struct{} `locationName:"GetMultiRegionAccessPointRoutesRequest" type:"structure"`
- // The Amazon Web Services account ID of the Outposts bucket.
+ // The Amazon Web Services account ID for the owner of the Multi-Region Access
+ // Point.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // Specifies the bucket.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
- //
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the bucket accessed in the format
- // arn:aws:s3-outposts:::outpost//bucket/.
- // For example, to access the bucket reports through Outpost my-outpost owned
- // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
- // The value must be URL encoded.
+ // The Multi-Region Access Point ARN.
//
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // Mrap is a required field
+ Mrap *string `location:"uri" locationName:"mrap" type:"string" required:"true"`
}
// String returns the string representation.
@@ -11943,7 +14270,7 @@ type GetBucketInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketInput) String() string {
+func (s GetMultiRegionAccessPointRoutesInput) String() string {
return awsutil.Prettify(s)
}
@@ -11952,24 +14279,24 @@ func (s GetBucketInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketInput) GoString() string {
+func (s GetMultiRegionAccessPointRoutesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetBucketInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetBucketInput"}
+func (s *GetMultiRegionAccessPointRoutesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetMultiRegionAccessPointRoutesInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
+ if s.Mrap == nil {
+ invalidParams.Add(request.NewErrParamRequired("Mrap"))
}
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ if s.Mrap != nil && len(*s.Mrap) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Mrap", 1))
}
if invalidParams.Len() > 0 {
@@ -11979,86 +14306,72 @@ func (s *GetBucketInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *GetBucketInput) SetAccountId(v string) *GetBucketInput {
+func (s *GetMultiRegionAccessPointRoutesInput) SetAccountId(v string) *GetMultiRegionAccessPointRoutesInput {
s.AccountId = &v
return s
}
-// SetBucket sets the Bucket field's value.
-func (s *GetBucketInput) SetBucket(v string) *GetBucketInput {
- s.Bucket = &v
+// SetMrap sets the Mrap field's value.
+func (s *GetMultiRegionAccessPointRoutesInput) SetMrap(v string) *GetMultiRegionAccessPointRoutesInput {
+ s.Mrap = &v
return s
}
-func (s *GetBucketInput) hostLabels() map[string]string {
+func (s *GetMultiRegionAccessPointRoutesInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-func (s *GetBucketInput) getEndpointARN() (arn.Resource, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- return parseEndpointARN(*s.Bucket)
+type GetMultiRegionAccessPointRoutesOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The Multi-Region Access Point ARN.
+ Mrap *string `type:"string"`
+
+ // The different routes that make up the route configuration. Active routes
+ // return a value of 100, and passive routes return a value of 0.
+ Routes []*MultiRegionAccessPointRoute `locationNameList:"Route" type:"list"`
}
-func (s *GetBucketInput) hasEndpointARN() bool {
- if s.Bucket == nil {
- return false
- }
- return arn.IsARN(*s.Bucket)
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s GetMultiRegionAccessPointRoutesOutput) String() string {
+ return awsutil.Prettify(s)
}
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s GetBucketInput) updateArnableField(v string) (interface{}, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- s.Bucket = aws.String(v)
- return &s, nil
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s GetMultiRegionAccessPointRoutesOutput) GoString() string {
+ return s.String()
}
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s GetBucketInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
+// SetMrap sets the Mrap field's value.
+func (s *GetMultiRegionAccessPointRoutesOutput) SetMrap(v string) *GetMultiRegionAccessPointRoutesOutput {
+ s.Mrap = &v
+ return s
+}
+
+// SetRoutes sets the Routes field's value.
+func (s *GetMultiRegionAccessPointRoutesOutput) SetRoutes(v []*MultiRegionAccessPointRoute) *GetMultiRegionAccessPointRoutesOutput {
+ s.Routes = v
+ return s
}
-type GetBucketLifecycleConfigurationInput struct {
- _ struct{} `locationName:"GetBucketLifecycleConfigurationRequest" type:"structure"`
+type GetPublicAccessBlockInput struct {
+ _ struct{} `locationName:"GetPublicAccessBlockRequest" type:"structure"`
- // The Amazon Web Services account ID of the Outposts bucket.
+ // The account ID for the Amazon Web Services account whose PublicAccessBlock
+ // configuration you want to retrieve.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
-
- // The Amazon Resource Name (ARN) of the bucket.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
- //
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the bucket accessed in the format
- // arn:aws:s3-outposts:::outpost//bucket/.
- // For example, to access the bucket reports through Outpost my-outpost owned
- // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
- // The value must be URL encoded.
- //
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -12066,7 +14379,7 @@ type GetBucketLifecycleConfigurationInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketLifecycleConfigurationInput) String() string {
+func (s GetPublicAccessBlockInput) String() string {
return awsutil.Prettify(s)
}
@@ -12075,25 +14388,19 @@ func (s GetBucketLifecycleConfigurationInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketLifecycleConfigurationInput) GoString() string {
+func (s GetPublicAccessBlockInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetBucketLifecycleConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetBucketLifecycleConfigurationInput"}
+func (s *GetPublicAccessBlockInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetPublicAccessBlockInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
- }
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
- }
if invalidParams.Len() > 0 {
return invalidParams
@@ -12102,69 +14409,61 @@ func (s *GetBucketLifecycleConfigurationInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *GetBucketLifecycleConfigurationInput) SetAccountId(v string) *GetBucketLifecycleConfigurationInput {
+func (s *GetPublicAccessBlockInput) SetAccountId(v string) *GetPublicAccessBlockInput {
s.AccountId = &v
return s
}
-// SetBucket sets the Bucket field's value.
-func (s *GetBucketLifecycleConfigurationInput) SetBucket(v string) *GetBucketLifecycleConfigurationInput {
- s.Bucket = &v
- return s
-}
-
-func (s *GetBucketLifecycleConfigurationInput) hostLabels() map[string]string {
+func (s *GetPublicAccessBlockInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-func (s *GetBucketLifecycleConfigurationInput) getEndpointARN() (arn.Resource, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- return parseEndpointARN(*s.Bucket)
+type GetPublicAccessBlockOutput struct {
+ _ struct{} `type:"structure" payload:"PublicAccessBlockConfiguration"`
+
+ // The PublicAccessBlock configuration currently in effect for this Amazon Web
+ // Services account.
+ PublicAccessBlockConfiguration *PublicAccessBlockConfiguration `type:"structure"`
}
-func (s *GetBucketLifecycleConfigurationInput) hasEndpointARN() bool {
- if s.Bucket == nil {
- return false
- }
- return arn.IsARN(*s.Bucket)
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s GetPublicAccessBlockOutput) String() string {
+ return awsutil.Prettify(s)
}
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s GetBucketLifecycleConfigurationInput) updateArnableField(v string) (interface{}, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- s.Bucket = aws.String(v)
- return &s, nil
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s GetPublicAccessBlockOutput) GoString() string {
+ return s.String()
}
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s GetBucketLifecycleConfigurationInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
+// SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field's value.
+func (s *GetPublicAccessBlockOutput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *GetPublicAccessBlockOutput {
+ s.PublicAccessBlockConfiguration = v
+ return s
}
-type GetBucketLifecycleConfigurationOutput struct {
- _ struct{} `type:"structure"`
+type GetStorageLensConfigurationInput struct {
+ _ struct{} `locationName:"GetStorageLensConfigurationRequest" type:"structure"`
- // Container for the lifecycle rule of the Outposts bucket.
- Rules []*LifecycleRule `locationNameList:"Rule" type:"list"`
+ // The account ID of the requester.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+
+ // The ID of the Amazon S3 Storage Lens configuration.
+ //
+ // ConfigId is a required field
+ ConfigId *string `location:"uri" locationName:"storagelensid" min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -12172,7 +14471,7 @@ type GetBucketLifecycleConfigurationOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketLifecycleConfigurationOutput) String() string {
+func (s GetStorageLensConfigurationInput) String() string {
return awsutil.Prettify(s)
}
@@ -12181,26 +14480,55 @@ func (s GetBucketLifecycleConfigurationOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketLifecycleConfigurationOutput) GoString() string {
+func (s GetStorageLensConfigurationInput) GoString() string {
return s.String()
}
-// SetRules sets the Rules field's value.
-func (s *GetBucketLifecycleConfigurationOutput) SetRules(v []*LifecycleRule) *GetBucketLifecycleConfigurationOutput {
- s.Rules = v
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetStorageLensConfigurationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetStorageLensConfigurationInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.ConfigId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ConfigId"))
+ }
+ if s.ConfigId != nil && len(*s.ConfigId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConfigId", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *GetStorageLensConfigurationInput) SetAccountId(v string) *GetStorageLensConfigurationInput {
+ s.AccountId = &v
return s
}
-type GetBucketOutput struct {
- _ struct{} `type:"structure"`
+// SetConfigId sets the ConfigId field's value.
+func (s *GetStorageLensConfigurationInput) SetConfigId(v string) *GetStorageLensConfigurationInput {
+ s.ConfigId = &v
+ return s
+}
- // The Outposts bucket requested.
- Bucket *string `min:"3" type:"string"`
+func (s *GetStorageLensConfigurationInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
- // The creation date of the Outposts bucket.
- CreationDate *time.Time `type:"timestamp"`
+type GetStorageLensConfigurationOutput struct {
+ _ struct{} `type:"structure" payload:"StorageLensConfiguration"`
- PublicAccessBlockEnabled *bool `type:"boolean"`
+ // The S3 Storage Lens configuration requested.
+ StorageLensConfiguration *StorageLensConfiguration `type:"structure"`
}
// String returns the string representation.
@@ -12208,7 +14536,7 @@ type GetBucketOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketOutput) String() string {
+func (s GetStorageLensConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
@@ -12217,50 +14545,28 @@ func (s GetBucketOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketOutput) GoString() string {
+func (s GetStorageLensConfigurationOutput) GoString() string {
return s.String()
}
-// SetBucket sets the Bucket field's value.
-func (s *GetBucketOutput) SetBucket(v string) *GetBucketOutput {
- s.Bucket = &v
- return s
-}
-
-// SetCreationDate sets the CreationDate field's value.
-func (s *GetBucketOutput) SetCreationDate(v time.Time) *GetBucketOutput {
- s.CreationDate = &v
- return s
-}
-
-// SetPublicAccessBlockEnabled sets the PublicAccessBlockEnabled field's value.
-func (s *GetBucketOutput) SetPublicAccessBlockEnabled(v bool) *GetBucketOutput {
- s.PublicAccessBlockEnabled = &v
+// SetStorageLensConfiguration sets the StorageLensConfiguration field's value.
+func (s *GetStorageLensConfigurationOutput) SetStorageLensConfiguration(v *StorageLensConfiguration) *GetStorageLensConfigurationOutput {
+ s.StorageLensConfiguration = v
return s
}
-type GetBucketPolicyInput struct {
- _ struct{} `locationName:"GetBucketPolicyRequest" type:"structure"`
+type GetStorageLensConfigurationTaggingInput struct {
+ _ struct{} `locationName:"GetStorageLensConfigurationTaggingRequest" type:"structure"`
- // The Amazon Web Services account ID of the Outposts bucket.
+ // The account ID of the requester.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // Specifies the bucket.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
- //
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the bucket accessed in the format
- // arn:aws:s3-outposts:::outpost//bucket/.
- // For example, to access the bucket reports through Outpost my-outpost owned
- // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
- // The value must be URL encoded.
+ // The ID of the Amazon S3 Storage Lens configuration.
//
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // ConfigId is a required field
+ ConfigId *string `location:"uri" locationName:"storagelensid" min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -12268,7 +14574,7 @@ type GetBucketPolicyInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketPolicyInput) String() string {
+func (s GetStorageLensConfigurationTaggingInput) String() string {
return awsutil.Prettify(s)
}
@@ -12277,96 +14583,55 @@ func (s GetBucketPolicyInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketPolicyInput) GoString() string {
+func (s GetStorageLensConfigurationTaggingInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetBucketPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetBucketPolicyInput"}
+func (s *GetStorageLensConfigurationTaggingInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetStorageLensConfigurationTaggingInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
- }
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
+ if s.ConfigId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ConfigId"))
}
- return nil
-}
-
-// SetAccountId sets the AccountId field's value.
-func (s *GetBucketPolicyInput) SetAccountId(v string) *GetBucketPolicyInput {
- s.AccountId = &v
- return s
-}
-
-// SetBucket sets the Bucket field's value.
-func (s *GetBucketPolicyInput) SetBucket(v string) *GetBucketPolicyInput {
- s.Bucket = &v
- return s
-}
-
-func (s *GetBucketPolicyInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
+ if s.ConfigId != nil && len(*s.ConfigId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConfigId", 1))
}
-}
-func (s *GetBucketPolicyInput) getEndpointARN() (arn.Resource, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
+ if invalidParams.Len() > 0 {
+ return invalidParams
}
- return parseEndpointARN(*s.Bucket)
+ return nil
}
-func (s *GetBucketPolicyInput) hasEndpointARN() bool {
- if s.Bucket == nil {
- return false
- }
- return arn.IsARN(*s.Bucket)
+// SetAccountId sets the AccountId field's value.
+func (s *GetStorageLensConfigurationTaggingInput) SetAccountId(v string) *GetStorageLensConfigurationTaggingInput {
+ s.AccountId = &v
+ return s
}
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s GetBucketPolicyInput) updateArnableField(v string) (interface{}, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- s.Bucket = aws.String(v)
- return &s, nil
+// SetConfigId sets the ConfigId field's value.
+func (s *GetStorageLensConfigurationTaggingInput) SetConfigId(v string) *GetStorageLensConfigurationTaggingInput {
+ s.ConfigId = &v
+ return s
}
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s GetBucketPolicyInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+func (s *GetStorageLensConfigurationTaggingInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
}
- return nil, nil
}
-type GetBucketPolicyOutput struct {
+type GetStorageLensConfigurationTaggingOutput struct {
_ struct{} `type:"structure"`
- // The policy of the Outposts bucket.
- Policy *string `type:"string"`
+ // The tags of S3 Storage Lens configuration requested.
+ Tags []*StorageLensTag `locationNameList:"Tag" type:"list"`
}
// String returns the string representation.
@@ -12374,7 +14639,7 @@ type GetBucketPolicyOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketPolicyOutput) String() string {
+func (s GetStorageLensConfigurationTaggingOutput) String() string {
return awsutil.Prettify(s)
}
@@ -12383,38 +14648,30 @@ func (s GetBucketPolicyOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketPolicyOutput) GoString() string {
+func (s GetStorageLensConfigurationTaggingOutput) GoString() string {
return s.String()
}
-// SetPolicy sets the Policy field's value.
-func (s *GetBucketPolicyOutput) SetPolicy(v string) *GetBucketPolicyOutput {
- s.Policy = &v
+// SetTags sets the Tags field's value.
+func (s *GetStorageLensConfigurationTaggingOutput) SetTags(v []*StorageLensTag) *GetStorageLensConfigurationTaggingOutput {
+ s.Tags = v
return s
}
-type GetBucketReplicationInput struct {
- _ struct{} `locationName:"GetBucketReplicationRequest" type:"structure"`
+type GetStorageLensGroupInput struct {
+ _ struct{} `locationName:"GetStorageLensGroupRequest" type:"structure"`
- // The Amazon Web Services account ID of the Outposts bucket.
+ // The Amazon Web Services account ID associated with the Storage Lens group
+ // that you're trying to retrieve the details for.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // Specifies the bucket to get the replication information for.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
- //
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the bucket accessed in the format
- // arn:aws:s3-outposts:::outpost//bucket/.
- // For example, to access the bucket reports through Outpost my-outpost owned
- // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
- // The value must be URL encoded.
+ // The name of the Storage Lens group that you're trying to retrieve the configuration
+ // details for.
//
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -12422,7 +14679,7 @@ type GetBucketReplicationInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketReplicationInput) String() string {
+func (s GetStorageLensGroupInput) String() string {
return awsutil.Prettify(s)
}
@@ -12431,24 +14688,24 @@ func (s GetBucketReplicationInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketReplicationInput) GoString() string {
+func (s GetStorageLensGroupInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetBucketReplicationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetBucketReplicationInput"}
+func (s *GetStorageLensGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetStorageLensGroupInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
}
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if invalidParams.Len() > 0 {
@@ -12458,71 +14715,29 @@ func (s *GetBucketReplicationInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *GetBucketReplicationInput) SetAccountId(v string) *GetBucketReplicationInput {
+func (s *GetStorageLensGroupInput) SetAccountId(v string) *GetStorageLensGroupInput {
s.AccountId = &v
return s
}
-// SetBucket sets the Bucket field's value.
-func (s *GetBucketReplicationInput) SetBucket(v string) *GetBucketReplicationInput {
- s.Bucket = &v
+// SetName sets the Name field's value.
+func (s *GetStorageLensGroupInput) SetName(v string) *GetStorageLensGroupInput {
+ s.Name = &v
return s
}
-func (s *GetBucketReplicationInput) hostLabels() map[string]string {
+func (s *GetStorageLensGroupInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-func (s *GetBucketReplicationInput) getEndpointARN() (arn.Resource, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- return parseEndpointARN(*s.Bucket)
-}
-
-func (s *GetBucketReplicationInput) hasEndpointARN() bool {
- if s.Bucket == nil {
- return false
- }
- return arn.IsARN(*s.Bucket)
-}
-
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s GetBucketReplicationInput) updateArnableField(v string) (interface{}, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- s.Bucket = aws.String(v)
- return &s, nil
-}
-
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s GetBucketReplicationInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
-}
-
-type GetBucketReplicationOutput struct {
- _ struct{} `type:"structure"`
+type GetStorageLensGroupOutput struct {
+ _ struct{} `type:"structure" payload:"StorageLensGroup"`
- // A container for one or more replication rules. A replication configuration
- // must have at least one rule and you can add up to 100 rules. The maximum
- // size of a replication configuration is 128 KB.
- ReplicationConfiguration *ReplicationConfiguration `type:"structure"`
+ // The name of the Storage Lens group that you're trying to retrieve the configuration
+ // details for.
+ StorageLensGroup *StorageLensGroup `type:"structure"`
}
// String returns the string representation.
@@ -12530,7 +14745,7 @@ type GetBucketReplicationOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketReplicationOutput) String() string {
+func (s GetStorageLensGroupOutput) String() string {
return awsutil.Prettify(s)
}
@@ -12539,38 +14754,25 @@ func (s GetBucketReplicationOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketReplicationOutput) GoString() string {
+func (s GetStorageLensGroupOutput) GoString() string {
return s.String()
}
-// SetReplicationConfiguration sets the ReplicationConfiguration field's value.
-func (s *GetBucketReplicationOutput) SetReplicationConfiguration(v *ReplicationConfiguration) *GetBucketReplicationOutput {
- s.ReplicationConfiguration = v
+// SetStorageLensGroup sets the StorageLensGroup field's value.
+func (s *GetStorageLensGroupOutput) SetStorageLensGroup(v *StorageLensGroup) *GetStorageLensGroupOutput {
+ s.StorageLensGroup = v
return s
}
-type GetBucketTaggingInput struct {
- _ struct{} `locationName:"GetBucketTaggingRequest" type:"structure"`
+// A container for what Amazon S3 Storage Lens configuration includes.
+type Include struct {
+ _ struct{} `type:"structure"`
- // The Amazon Web Services account ID of the Outposts bucket.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+ // A container for the S3 Storage Lens bucket includes.
+ Buckets []*string `locationNameList:"Arn" type:"list"`
- // Specifies the bucket.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
- //
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the bucket accessed in the format
- // arn:aws:s3-outposts:::outpost//bucket/.
- // For example, to access the bucket reports through Outpost my-outpost owned
- // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
- // The value must be URL encoded.
- //
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // A container for the S3 Storage Lens Region includes.
+ Regions []*string `locationNameList:"Region" type:"list"`
}
// String returns the string representation.
@@ -12578,7 +14780,7 @@ type GetBucketTaggingInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketTaggingInput) String() string {
+func (s Include) String() string {
return awsutil.Prettify(s)
}
@@ -12587,98 +14789,97 @@ func (s GetBucketTaggingInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketTaggingInput) GoString() string {
+func (s Include) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetBucketTaggingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetBucketTaggingInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
- }
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetBuckets sets the Buckets field's value.
+func (s *Include) SetBuckets(v []*string) *Include {
+ s.Buckets = v
+ return s
}
-// SetAccountId sets the AccountId field's value.
-func (s *GetBucketTaggingInput) SetAccountId(v string) *GetBucketTaggingInput {
- s.AccountId = &v
+// SetRegions sets the Regions field's value.
+func (s *Include) SetRegions(v []*string) *Include {
+ s.Regions = v
return s
}
-// SetBucket sets the Bucket field's value.
-func (s *GetBucketTaggingInput) SetBucket(v string) *GetBucketTaggingInput {
- s.Bucket = &v
- return s
-}
+// A container element for the job configuration and status information returned
+// by a Describe Job request.
+type JobDescriptor struct {
+ _ struct{} `type:"structure"`
+
+ // Indicates whether confirmation is required before Amazon S3 begins running
+ // the specified job. Confirmation is required only for jobs created through
+ // the Amazon S3 console.
+ ConfirmationRequired *bool `type:"boolean"`
+
+ // A timestamp indicating when this job was created.
+ CreationTime *time.Time `type:"timestamp"`
+
+ // The description for this job, if one was provided in this job's Create Job
+ // request.
+ Description *string `min:"1" type:"string"`
+
+ // If the specified job failed, this field contains information describing the
+ // failure.
+ FailureReasons []*JobFailure `type:"list"`
+
+ // The attribute of the JobDescriptor containing details about the job's generated
+ // manifest.
+ GeneratedManifestDescriptor *S3GeneratedManifestDescriptor `type:"structure"`
+
+ // The Amazon Resource Name (ARN) for this job.
+ JobArn *string `min:"1" type:"string"`
+
+ // The ID for the specified job.
+ JobId *string `min:"5" type:"string"`
+
+ // The configuration information for the specified job's manifest object.
+ Manifest *JobManifest `type:"structure"`
+
+ // The manifest generator that was used to generate a job manifest for this
+ // job.
+ ManifestGenerator *JobManifestGenerator `type:"structure"`
+
+ // The operation that the specified job is configured to run on the objects
+ // listed in the manifest.
+ Operation *JobOperation `type:"structure"`
+
+ // The priority of the specified job.
+ Priority *int64 `type:"integer"`
+
+ // Describes the total number of tasks that the specified job has run, the number
+ // of tasks that succeeded, and the number of tasks that failed.
+ ProgressSummary *JobProgressSummary `type:"structure"`
-func (s *GetBucketTaggingInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
+ // Contains the configuration information for the job-completion report if you
+ // requested one in the Create Job request.
+ Report *JobReport `type:"structure"`
-func (s *GetBucketTaggingInput) getEndpointARN() (arn.Resource, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- return parseEndpointARN(*s.Bucket)
-}
+ // The Amazon Resource Name (ARN) for the Identity and Access Management (IAM)
+ // role assigned to run the tasks for this job.
+ RoleArn *string `min:"1" type:"string"`
-func (s *GetBucketTaggingInput) hasEndpointARN() bool {
- if s.Bucket == nil {
- return false
- }
- return arn.IsARN(*s.Bucket)
-}
+ // The current status of the specified job.
+ Status *string `type:"string" enum:"JobStatus"`
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s GetBucketTaggingInput) updateArnableField(v string) (interface{}, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- s.Bucket = aws.String(v)
- return &s, nil
-}
+ // The reason for updating the job.
+ StatusUpdateReason *string `min:"1" type:"string"`
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s GetBucketTaggingInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
-}
+ // The reason why the specified job was suspended. A job is only suspended if
+ // you create it through the Amazon S3 console. When you create the job, it
+ // enters the Suspended state to await confirmation before running. After you
+ // confirm the job, it automatically exits the Suspended state.
+ SuspendedCause *string `min:"1" type:"string"`
-type GetBucketTaggingOutput struct {
- _ struct{} `type:"structure"`
+ // The timestamp when this job was suspended, if it has been suspended.
+ SuspendedDate *time.Time `type:"timestamp"`
- // The tags set of the Outposts bucket.
- //
- // TagSet is a required field
- TagSet []*S3Tag `type:"list" required:"true"`
+ // A timestamp indicating when this job terminated. A job's termination date
+ // is the date and time when it succeeded, failed, or was canceled.
+ TerminationDate *time.Time `type:"timestamp"`
}
// String returns the string representation.
@@ -12686,7 +14887,7 @@ type GetBucketTaggingOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketTaggingOutput) String() string {
+func (s JobDescriptor) String() string {
return awsutil.Prettify(s)
}
@@ -12695,140 +14896,133 @@ func (s GetBucketTaggingOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketTaggingOutput) GoString() string {
+func (s JobDescriptor) GoString() string {
return s.String()
}
-// SetTagSet sets the TagSet field's value.
-func (s *GetBucketTaggingOutput) SetTagSet(v []*S3Tag) *GetBucketTaggingOutput {
- s.TagSet = v
+// SetConfirmationRequired sets the ConfirmationRequired field's value.
+func (s *JobDescriptor) SetConfirmationRequired(v bool) *JobDescriptor {
+ s.ConfirmationRequired = &v
return s
}
-type GetBucketVersioningInput struct {
- _ struct{} `locationName:"GetBucketVersioningRequest" type:"structure"`
+// SetCreationTime sets the CreationTime field's value.
+func (s *JobDescriptor) SetCreationTime(v time.Time) *JobDescriptor {
+ s.CreationTime = &v
+ return s
+}
- // The Amazon Web Services account ID of the S3 on Outposts bucket.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+// SetDescription sets the Description field's value.
+func (s *JobDescriptor) SetDescription(v string) *JobDescriptor {
+ s.Description = &v
+ return s
+}
- // The S3 on Outposts bucket to return the versioning state for.
- //
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+// SetFailureReasons sets the FailureReasons field's value.
+func (s *JobDescriptor) SetFailureReasons(v []*JobFailure) *JobDescriptor {
+ s.FailureReasons = v
+ return s
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetBucketVersioningInput) String() string {
- return awsutil.Prettify(s)
+// SetGeneratedManifestDescriptor sets the GeneratedManifestDescriptor field's value.
+func (s *JobDescriptor) SetGeneratedManifestDescriptor(v *S3GeneratedManifestDescriptor) *JobDescriptor {
+ s.GeneratedManifestDescriptor = v
+ return s
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetBucketVersioningInput) GoString() string {
- return s.String()
+// SetJobArn sets the JobArn field's value.
+func (s *JobDescriptor) SetJobArn(v string) *JobDescriptor {
+ s.JobArn = &v
+ return s
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetBucketVersioningInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetBucketVersioningInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
- }
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
- }
+// SetJobId sets the JobId field's value.
+func (s *JobDescriptor) SetJobId(v string) *JobDescriptor {
+ s.JobId = &v
+ return s
+}
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetManifest sets the Manifest field's value.
+func (s *JobDescriptor) SetManifest(v *JobManifest) *JobDescriptor {
+ s.Manifest = v
+ return s
}
-// SetAccountId sets the AccountId field's value.
-func (s *GetBucketVersioningInput) SetAccountId(v string) *GetBucketVersioningInput {
- s.AccountId = &v
+// SetManifestGenerator sets the ManifestGenerator field's value.
+func (s *JobDescriptor) SetManifestGenerator(v *JobManifestGenerator) *JobDescriptor {
+ s.ManifestGenerator = v
return s
}
-// SetBucket sets the Bucket field's value.
-func (s *GetBucketVersioningInput) SetBucket(v string) *GetBucketVersioningInput {
- s.Bucket = &v
+// SetOperation sets the Operation field's value.
+func (s *JobDescriptor) SetOperation(v *JobOperation) *JobDescriptor {
+ s.Operation = v
return s
}
-func (s *GetBucketVersioningInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
+// SetPriority sets the Priority field's value.
+func (s *JobDescriptor) SetPriority(v int64) *JobDescriptor {
+ s.Priority = &v
+ return s
}
-func (s *GetBucketVersioningInput) getEndpointARN() (arn.Resource, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- return parseEndpointARN(*s.Bucket)
+// SetProgressSummary sets the ProgressSummary field's value.
+func (s *JobDescriptor) SetProgressSummary(v *JobProgressSummary) *JobDescriptor {
+ s.ProgressSummary = v
+ return s
}
-func (s *GetBucketVersioningInput) hasEndpointARN() bool {
- if s.Bucket == nil {
- return false
- }
- return arn.IsARN(*s.Bucket)
+// SetReport sets the Report field's value.
+func (s *JobDescriptor) SetReport(v *JobReport) *JobDescriptor {
+ s.Report = v
+ return s
}
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s GetBucketVersioningInput) updateArnableField(v string) (interface{}, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- s.Bucket = aws.String(v)
- return &s, nil
+// SetRoleArn sets the RoleArn field's value.
+func (s *JobDescriptor) SetRoleArn(v string) *JobDescriptor {
+ s.RoleArn = &v
+ return s
}
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s GetBucketVersioningInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
+// SetStatus sets the Status field's value.
+func (s *JobDescriptor) SetStatus(v string) *JobDescriptor {
+ s.Status = &v
+ return s
}
-type GetBucketVersioningOutput struct {
+// SetStatusUpdateReason sets the StatusUpdateReason field's value.
+func (s *JobDescriptor) SetStatusUpdateReason(v string) *JobDescriptor {
+ s.StatusUpdateReason = &v
+ return s
+}
+
+// SetSuspendedCause sets the SuspendedCause field's value.
+func (s *JobDescriptor) SetSuspendedCause(v string) *JobDescriptor {
+ s.SuspendedCause = &v
+ return s
+}
+
+// SetSuspendedDate sets the SuspendedDate field's value.
+func (s *JobDescriptor) SetSuspendedDate(v time.Time) *JobDescriptor {
+ s.SuspendedDate = &v
+ return s
+}
+
+// SetTerminationDate sets the TerminationDate field's value.
+func (s *JobDescriptor) SetTerminationDate(v time.Time) *JobDescriptor {
+ s.TerminationDate = &v
+ return s
+}
+
+// If this job failed, this element indicates why the job failed.
+type JobFailure struct {
_ struct{} `type:"structure"`
- // Specifies whether MFA delete is enabled in the bucket versioning configuration.
- // This element is returned only if the bucket has been configured with MFA
- // delete. If MFA delete has never been configured for the bucket, this element
- // is not returned.
- MFADelete *string `locationName:"MfaDelete" type:"string" enum:"MFADeleteStatus"`
+ // The failure code, if any, for the specified job.
+ FailureCode *string `min:"1" type:"string"`
- // The versioning state of the S3 on Outposts bucket.
- Status *string `type:"string" enum:"BucketVersioningStatus"`
+ // The failure reason, if any, for the specified job.
+ FailureReason *string `min:"1" type:"string"`
}
// String returns the string representation.
@@ -12836,7 +15030,7 @@ type GetBucketVersioningOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketVersioningOutput) String() string {
+func (s JobFailure) String() string {
return awsutil.Prettify(s)
}
@@ -12845,35 +15039,54 @@ func (s GetBucketVersioningOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetBucketVersioningOutput) GoString() string {
+func (s JobFailure) GoString() string {
return s.String()
}
-// SetMFADelete sets the MFADelete field's value.
-func (s *GetBucketVersioningOutput) SetMFADelete(v string) *GetBucketVersioningOutput {
- s.MFADelete = &v
+// SetFailureCode sets the FailureCode field's value.
+func (s *JobFailure) SetFailureCode(v string) *JobFailure {
+ s.FailureCode = &v
return s
}
-// SetStatus sets the Status field's value.
-func (s *GetBucketVersioningOutput) SetStatus(v string) *GetBucketVersioningOutput {
- s.Status = &v
+// SetFailureReason sets the FailureReason field's value.
+func (s *JobFailure) SetFailureReason(v string) *JobFailure {
+ s.FailureReason = &v
return s
}
-type GetJobTaggingInput struct {
- _ struct{} `locationName:"GetJobTaggingRequest" type:"structure"`
+// Contains the configuration and status information for a single job retrieved
+// as part of a job list.
+type JobListDescriptor struct {
+ _ struct{} `type:"structure"`
- // The Amazon Web Services account ID associated with the S3 Batch Operations
- // job.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+ // A timestamp indicating when the specified job was created.
+ CreationTime *time.Time `type:"timestamp"`
- // The ID for the S3 Batch Operations job whose tags you want to retrieve.
- //
- // JobId is a required field
- JobId *string `location:"uri" locationName:"id" min:"5" type:"string" required:"true"`
+ // The user-specified description that was included in the specified job's Create
+ // Job request.
+ Description *string `min:"1" type:"string"`
+
+ // The ID for the specified job.
+ JobId *string `min:"5" type:"string"`
+
+ // The operation that the specified job is configured to run on every object
+ // listed in the manifest.
+ Operation *string `type:"string" enum:"OperationName"`
+
+ // The current priority for the specified job.
+ Priority *int64 `type:"integer"`
+
+ // Describes the total number of tasks that the specified job has run, the number
+ // of tasks that succeeded, and the number of tasks that failed.
+ ProgressSummary *JobProgressSummary `type:"structure"`
+
+ // The specified job's current status.
+ Status *string `type:"string" enum:"JobStatus"`
+
+ // A timestamp indicating when the specified job terminated. A job's termination
+ // date is the date and time when it succeeded, failed, or was canceled.
+ TerminationDate *time.Time `type:"timestamp"`
}
// String returns the string representation.
@@ -12881,7 +15094,7 @@ type GetJobTaggingInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetJobTaggingInput) String() string {
+func (s JobListDescriptor) String() string {
return awsutil.Prettify(s)
}
@@ -12890,99 +15103,72 @@ func (s GetJobTaggingInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetJobTaggingInput) GoString() string {
+func (s JobListDescriptor) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetJobTaggingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetJobTaggingInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 5))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetCreationTime sets the CreationTime field's value.
+func (s *JobListDescriptor) SetCreationTime(v time.Time) *JobListDescriptor {
+ s.CreationTime = &v
+ return s
}
-// SetAccountId sets the AccountId field's value.
-func (s *GetJobTaggingInput) SetAccountId(v string) *GetJobTaggingInput {
- s.AccountId = &v
+// SetDescription sets the Description field's value.
+func (s *JobListDescriptor) SetDescription(v string) *JobListDescriptor {
+ s.Description = &v
return s
}
// SetJobId sets the JobId field's value.
-func (s *GetJobTaggingInput) SetJobId(v string) *GetJobTaggingInput {
+func (s *JobListDescriptor) SetJobId(v string) *JobListDescriptor {
s.JobId = &v
return s
}
-func (s *GetJobTaggingInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
+// SetOperation sets the Operation field's value.
+func (s *JobListDescriptor) SetOperation(v string) *JobListDescriptor {
+ s.Operation = &v
+ return s
}
-type GetJobTaggingOutput struct {
- _ struct{} `type:"structure"`
-
- // The set of tags associated with the S3 Batch Operations job.
- Tags []*S3Tag `type:"list"`
+// SetPriority sets the Priority field's value.
+func (s *JobListDescriptor) SetPriority(v int64) *JobListDescriptor {
+ s.Priority = &v
+ return s
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetJobTaggingOutput) String() string {
- return awsutil.Prettify(s)
+// SetProgressSummary sets the ProgressSummary field's value.
+func (s *JobListDescriptor) SetProgressSummary(v *JobProgressSummary) *JobListDescriptor {
+ s.ProgressSummary = v
+ return s
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetJobTaggingOutput) GoString() string {
- return s.String()
+// SetStatus sets the Status field's value.
+func (s *JobListDescriptor) SetStatus(v string) *JobListDescriptor {
+ s.Status = &v
+ return s
}
-// SetTags sets the Tags field's value.
-func (s *GetJobTaggingOutput) SetTags(v []*S3Tag) *GetJobTaggingOutput {
- s.Tags = v
+// SetTerminationDate sets the TerminationDate field's value.
+func (s *JobListDescriptor) SetTerminationDate(v time.Time) *JobListDescriptor {
+ s.TerminationDate = &v
return s
}
-type GetMultiRegionAccessPointInput struct {
- _ struct{} `locationName:"GetMultiRegionAccessPointRequest" type:"structure"`
+// Contains the configuration information for a job's manifest.
+type JobManifest struct {
+ _ struct{} `type:"structure"`
- // The Amazon Web Services account ID for the owner of the Multi-Region Access
- // Point.
+ // Contains the information required to locate the specified job's manifest.
//
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+ // Location is a required field
+ Location *JobManifestLocation `type:"structure" required:"true"`
- // The name of the Multi-Region Access Point whose configuration information
- // you want to receive. The name of the Multi-Region Access Point is different
- // from the alias. For more information about the distinction between the name
- // and the alias of an Multi-Region Access Point, see Managing Multi-Region
- // Access Points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/CreatingMultiRegionAccessPoints.html#multi-region-access-point-naming)
- // in the Amazon S3 User Guide.
+ // Describes the format of the specified job's manifest. If the manifest is
+ // in CSV format, also describes the columns contained within the manifest.
//
- // Name is a required field
- Name *string `location:"uri" locationName:"name" type:"string" required:"true"`
+ // Spec is a required field
+ Spec *JobManifestSpec `type:"structure" required:"true"`
}
// String returns the string representation.
@@ -12990,7 +15176,7 @@ type GetMultiRegionAccessPointInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetMultiRegionAccessPointInput) String() string {
+func (s JobManifest) String() string {
return awsutil.Prettify(s)
}
@@ -12999,24 +15185,28 @@ func (s GetMultiRegionAccessPointInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetMultiRegionAccessPointInput) GoString() string {
+func (s JobManifest) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetMultiRegionAccessPointInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetMultiRegionAccessPointInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
+func (s *JobManifest) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "JobManifest"}
+ if s.Location == nil {
+ invalidParams.Add(request.NewErrParamRequired("Location"))
}
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ if s.Spec == nil {
+ invalidParams.Add(request.NewErrParamRequired("Spec"))
}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
+ if s.Location != nil {
+ if err := s.Location.Validate(); err != nil {
+ invalidParams.AddNested("Location", err.(request.ErrInvalidParams))
+ }
}
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
+ if s.Spec != nil {
+ if err := s.Spec.Validate(); err != nil {
+ invalidParams.AddNested("Spec", err.(request.ErrInvalidParams))
+ }
}
if invalidParams.Len() > 0 {
@@ -13025,73 +15215,24 @@ func (s *GetMultiRegionAccessPointInput) Validate() error {
return nil
}
-// SetAccountId sets the AccountId field's value.
-func (s *GetMultiRegionAccessPointInput) SetAccountId(v string) *GetMultiRegionAccessPointInput {
- s.AccountId = &v
- return s
-}
-
-// SetName sets the Name field's value.
-func (s *GetMultiRegionAccessPointInput) SetName(v string) *GetMultiRegionAccessPointInput {
- s.Name = &v
+// SetLocation sets the Location field's value.
+func (s *JobManifest) SetLocation(v *JobManifestLocation) *JobManifest {
+ s.Location = v
return s
}
-func (s *GetMultiRegionAccessPointInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
-
-type GetMultiRegionAccessPointOutput struct {
- _ struct{} `type:"structure"`
-
- // A container element containing the details of the requested Multi-Region
- // Access Point.
- AccessPoint *MultiRegionAccessPointReport `type:"structure"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetMultiRegionAccessPointOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetMultiRegionAccessPointOutput) GoString() string {
- return s.String()
-}
-
-// SetAccessPoint sets the AccessPoint field's value.
-func (s *GetMultiRegionAccessPointOutput) SetAccessPoint(v *MultiRegionAccessPointReport) *GetMultiRegionAccessPointOutput {
- s.AccessPoint = v
+// SetSpec sets the Spec field's value.
+func (s *JobManifest) SetSpec(v *JobManifestSpec) *JobManifest {
+ s.Spec = v
return s
}
-type GetMultiRegionAccessPointPolicyInput struct {
- _ struct{} `locationName:"GetMultiRegionAccessPointPolicyRequest" type:"structure"`
-
- // The Amazon Web Services account ID for the owner of the Multi-Region Access
- // Point.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+// Configures the type of the job's ManifestGenerator.
+type JobManifestGenerator struct {
+ _ struct{} `type:"structure"`
- // Specifies the Multi-Region Access Point. The name of the Multi-Region Access
- // Point is different from the alias. For more information about the distinction
- // between the name and the alias of an Multi-Region Access Point, see Managing
- // Multi-Region Access Points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/CreatingMultiRegionAccessPoints.html#multi-region-access-point-naming)
- // in the Amazon S3 User Guide.
- //
- // Name is a required field
- Name *string `location:"uri" locationName:"name" type:"string" required:"true"`
+ // The S3 job ManifestGenerator's configuration details.
+ S3JobManifestGenerator *S3JobManifestGenerator `type:"structure"`
}
// String returns the string representation.
@@ -13099,7 +15240,7 @@ type GetMultiRegionAccessPointPolicyInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetMultiRegionAccessPointPolicyInput) String() string {
+func (s JobManifestGenerator) String() string {
return awsutil.Prettify(s)
}
@@ -13108,24 +15249,17 @@ func (s GetMultiRegionAccessPointPolicyInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetMultiRegionAccessPointPolicyInput) GoString() string {
+func (s JobManifestGenerator) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetMultiRegionAccessPointPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetMultiRegionAccessPointPolicyInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
+func (s *JobManifestGenerator) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "JobManifestGenerator"}
+ if s.S3JobManifestGenerator != nil {
+ if err := s.S3JobManifestGenerator.Validate(); err != nil {
+ invalidParams.AddNested("S3JobManifestGenerator", err.(request.ErrInvalidParams))
+ }
}
if invalidParams.Len() > 0 {
@@ -13134,29 +15268,31 @@ func (s *GetMultiRegionAccessPointPolicyInput) Validate() error {
return nil
}
-// SetAccountId sets the AccountId field's value.
-func (s *GetMultiRegionAccessPointPolicyInput) SetAccountId(v string) *GetMultiRegionAccessPointPolicyInput {
- s.AccountId = &v
+// SetS3JobManifestGenerator sets the S3JobManifestGenerator field's value.
+func (s *JobManifestGenerator) SetS3JobManifestGenerator(v *S3JobManifestGenerator) *JobManifestGenerator {
+ s.S3JobManifestGenerator = v
return s
}
-// SetName sets the Name field's value.
-func (s *GetMultiRegionAccessPointPolicyInput) SetName(v string) *GetMultiRegionAccessPointPolicyInput {
- s.Name = &v
- return s
-}
+// The filter used to describe a set of objects for the job's manifest.
+type JobManifestGeneratorFilter struct {
+ _ struct{} `type:"structure"`
-func (s *GetMultiRegionAccessPointPolicyInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
+ // If provided, the generated manifest should include only source bucket objects
+ // that were created after this time.
+ CreatedAfter *time.Time `type:"timestamp"`
-type GetMultiRegionAccessPointPolicyOutput struct {
- _ struct{} `type:"structure"`
+ // If provided, the generated manifest should include only source bucket objects
+ // that were created before this time.
+ CreatedBefore *time.Time `type:"timestamp"`
- // The policy associated with the specified Multi-Region Access Point.
- Policy *MultiRegionAccessPointPolicyDocument `type:"structure"`
+ // Include objects in the generated manifest only if they are eligible for replication
+ // according to the Replication configuration on the source bucket.
+ EligibleForReplication *bool `type:"boolean"`
+
+ // If provided, the generated manifest should include only source bucket objects
+ // that have one of the specified Replication statuses.
+ ObjectReplicationStatuses []*string `type:"list" enum:"ReplicationStatus"`
}
// String returns the string representation.
@@ -13164,7 +15300,7 @@ type GetMultiRegionAccessPointPolicyOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetMultiRegionAccessPointPolicyOutput) String() string {
+func (s JobManifestGeneratorFilter) String() string {
return awsutil.Prettify(s)
}
@@ -13173,33 +15309,55 @@ func (s GetMultiRegionAccessPointPolicyOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetMultiRegionAccessPointPolicyOutput) GoString() string {
+func (s JobManifestGeneratorFilter) GoString() string {
return s.String()
}
-// SetPolicy sets the Policy field's value.
-func (s *GetMultiRegionAccessPointPolicyOutput) SetPolicy(v *MultiRegionAccessPointPolicyDocument) *GetMultiRegionAccessPointPolicyOutput {
- s.Policy = v
+// SetCreatedAfter sets the CreatedAfter field's value.
+func (s *JobManifestGeneratorFilter) SetCreatedAfter(v time.Time) *JobManifestGeneratorFilter {
+ s.CreatedAfter = &v
return s
}
-type GetMultiRegionAccessPointPolicyStatusInput struct {
- _ struct{} `locationName:"GetMultiRegionAccessPointPolicyStatusRequest" type:"structure"`
+// SetCreatedBefore sets the CreatedBefore field's value.
+func (s *JobManifestGeneratorFilter) SetCreatedBefore(v time.Time) *JobManifestGeneratorFilter {
+ s.CreatedBefore = &v
+ return s
+}
- // The Amazon Web Services account ID for the owner of the Multi-Region Access
- // Point.
+// SetEligibleForReplication sets the EligibleForReplication field's value.
+func (s *JobManifestGeneratorFilter) SetEligibleForReplication(v bool) *JobManifestGeneratorFilter {
+ s.EligibleForReplication = &v
+ return s
+}
+
+// SetObjectReplicationStatuses sets the ObjectReplicationStatuses field's value.
+func (s *JobManifestGeneratorFilter) SetObjectReplicationStatuses(v []*string) *JobManifestGeneratorFilter {
+ s.ObjectReplicationStatuses = v
+ return s
+}
+
+// Contains the information required to locate a manifest object.
+type JobManifestLocation struct {
+ _ struct{} `type:"structure"`
+
+ // The ETag for the specified manifest object.
//
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+ // ETag is a required field
+ ETag *string `min:"1" type:"string" required:"true"`
- // Specifies the Multi-Region Access Point. The name of the Multi-Region Access
- // Point is different from the alias. For more information about the distinction
- // between the name and the alias of an Multi-Region Access Point, see Managing
- // Multi-Region Access Points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/CreatingMultiRegionAccessPoints.html#multi-region-access-point-naming)
+ // The Amazon Resource Name (ARN) for a manifest object.
+ //
+ // When you're using XML requests, you must replace special characters (such
+ // as carriage returns) in object keys with their equivalent XML entity codes.
+ // For more information, see XML-related object key constraints (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints)
// in the Amazon S3 User Guide.
//
- // Name is a required field
- Name *string `location:"uri" locationName:"name" type:"string" required:"true"`
+ // ObjectArn is a required field
+ ObjectArn *string `min:"1" type:"string" required:"true"`
+
+ // The optional version ID to identify a specific version of the manifest object.
+ ObjectVersionId *string `min:"1" type:"string"`
}
// String returns the string representation.
@@ -13207,7 +15365,7 @@ type GetMultiRegionAccessPointPolicyStatusInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetMultiRegionAccessPointPolicyStatusInput) String() string {
+func (s JobManifestLocation) String() string {
return awsutil.Prettify(s)
}
@@ -13216,24 +15374,27 @@ func (s GetMultiRegionAccessPointPolicyStatusInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetMultiRegionAccessPointPolicyStatusInput) GoString() string {
+func (s JobManifestLocation) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetMultiRegionAccessPointPolicyStatusInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetMultiRegionAccessPointPolicyStatusInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
+func (s *JobManifestLocation) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "JobManifestLocation"}
+ if s.ETag == nil {
+ invalidParams.Add(request.NewErrParamRequired("ETag"))
}
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ if s.ETag != nil && len(*s.ETag) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ETag", 1))
}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
+ if s.ObjectArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ObjectArn"))
}
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
+ if s.ObjectArn != nil && len(*s.ObjectArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ObjectArn", 1))
+ }
+ if s.ObjectVersionId != nil && len(*s.ObjectVersionId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ObjectVersionId", 1))
}
if invalidParams.Len() > 0 {
@@ -13242,32 +15403,37 @@ func (s *GetMultiRegionAccessPointPolicyStatusInput) Validate() error {
return nil
}
-// SetAccountId sets the AccountId field's value.
-func (s *GetMultiRegionAccessPointPolicyStatusInput) SetAccountId(v string) *GetMultiRegionAccessPointPolicyStatusInput {
- s.AccountId = &v
+// SetETag sets the ETag field's value.
+func (s *JobManifestLocation) SetETag(v string) *JobManifestLocation {
+ s.ETag = &v
return s
}
-// SetName sets the Name field's value.
-func (s *GetMultiRegionAccessPointPolicyStatusInput) SetName(v string) *GetMultiRegionAccessPointPolicyStatusInput {
- s.Name = &v
+// SetObjectArn sets the ObjectArn field's value.
+func (s *JobManifestLocation) SetObjectArn(v string) *JobManifestLocation {
+ s.ObjectArn = &v
return s
}
-func (s *GetMultiRegionAccessPointPolicyStatusInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
+// SetObjectVersionId sets the ObjectVersionId field's value.
+func (s *JobManifestLocation) SetObjectVersionId(v string) *JobManifestLocation {
+ s.ObjectVersionId = &v
+ return s
}
-type GetMultiRegionAccessPointPolicyStatusOutput struct {
+// Describes the format of a manifest. If the manifest is in CSV format, also
+// describes the columns contained within the manifest.
+type JobManifestSpec struct {
_ struct{} `type:"structure"`
- // Indicates whether this access point policy is public. For more information
- // about how Amazon S3 evaluates policies to determine whether they are public,
- // see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status)
- // in the Amazon S3 User Guide.
- Established *PolicyStatus `type:"structure"`
+ // If the specified manifest object is in the S3BatchOperations_CSV_20180820
+ // format, this element describes which columns contain the required data.
+ Fields []*string `type:"list" enum:"JobManifestFieldName"`
+
+ // Indicates which of the available formats the specified manifest uses.
+ //
+ // Format is a required field
+ Format *string `type:"string" required:"true" enum:"JobManifestFormat"`
}
// String returns the string representation.
@@ -13275,38 +15441,92 @@ type GetMultiRegionAccessPointPolicyStatusOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetMultiRegionAccessPointPolicyStatusOutput) String() string {
+func (s JobManifestSpec) String() string {
return awsutil.Prettify(s)
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetMultiRegionAccessPointPolicyStatusOutput) GoString() string {
- return s.String()
-}
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s JobManifestSpec) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *JobManifestSpec) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "JobManifestSpec"}
+ if s.Format == nil {
+ invalidParams.Add(request.NewErrParamRequired("Format"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFields sets the Fields field's value.
+func (s *JobManifestSpec) SetFields(v []*string) *JobManifestSpec {
+ s.Fields = v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *JobManifestSpec) SetFormat(v string) *JobManifestSpec {
+ s.Format = &v
+ return s
+}
+
+// The operation that you want this job to perform on every object listed in
+// the manifest. For more information about the available operations, see Operations
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-operations.html)
+// in the Amazon S3 User Guide.
+type JobOperation struct {
+ _ struct{} `type:"structure"`
+
+ // Directs the specified job to invoke an Lambda function on every object in
+ // the manifest.
+ LambdaInvoke *LambdaInvokeOperation `type:"structure"`
+
+ // Directs the specified job to execute a DELETE Object tagging call on every
+ // object in the manifest.
+ S3DeleteObjectTagging *S3DeleteObjectTaggingOperation `type:"structure"`
+
+ // Directs the specified job to initiate restore requests for every archived
+ // object in the manifest.
+ S3InitiateRestoreObject *S3InitiateRestoreObjectOperation `type:"structure"`
+
+ // Directs the specified job to run a PutObjectAcl call on every object in the
+ // manifest.
+ S3PutObjectAcl *S3SetObjectAclOperation `type:"structure"`
+
+ // Directs the specified job to run a PUT Copy object call on every object in
+ // the manifest.
+ S3PutObjectCopy *S3CopyObjectOperation `type:"structure"`
-// SetEstablished sets the Established field's value.
-func (s *GetMultiRegionAccessPointPolicyStatusOutput) SetEstablished(v *PolicyStatus) *GetMultiRegionAccessPointPolicyStatusOutput {
- s.Established = v
- return s
-}
+ // Contains the configuration for an S3 Object Lock legal hold operation that
+ // an S3 Batch Operations job passes to every object to the underlying PutObjectLegalHold
+ // API operation. For more information, see Using S3 Object Lock legal hold
+ // with S3 Batch Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-legal-hold.html)
+ // in the Amazon S3 User Guide.
+ S3PutObjectLegalHold *S3SetObjectLegalHoldOperation `type:"structure"`
-type GetMultiRegionAccessPointRoutesInput struct {
- _ struct{} `locationName:"GetMultiRegionAccessPointRoutesRequest" type:"structure"`
+ // Contains the configuration parameters for the Object Lock retention action
+ // for an S3 Batch Operations job. Batch Operations passes every object to the
+ // underlying PutObjectRetention API operation. For more information, see Using
+ // S3 Object Lock retention with S3 Batch Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-retention-date.html)
+ // in the Amazon S3 User Guide.
+ S3PutObjectRetention *S3SetObjectRetentionOperation `type:"structure"`
- // The Amazon Web Services account ID for the owner of the Multi-Region Access
- // Point.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+ // Directs the specified job to run a PUT Object tagging call on every object
+ // in the manifest.
+ S3PutObjectTagging *S3SetObjectTaggingOperation `type:"structure"`
- // The Multi-Region Access Point ARN.
- //
- // Mrap is a required field
- Mrap *string `location:"uri" locationName:"mrap" type:"string" required:"true"`
+ // Directs the specified job to invoke ReplicateObject on every object in the
+ // job's manifest.
+ S3ReplicateObject *S3ReplicateObjectOperation `type:"structure"`
}
// String returns the string representation.
@@ -13314,7 +15534,7 @@ type GetMultiRegionAccessPointRoutesInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetMultiRegionAccessPointRoutesInput) String() string {
+func (s JobOperation) String() string {
return awsutil.Prettify(s)
}
@@ -13323,24 +15543,42 @@ func (s GetMultiRegionAccessPointRoutesInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetMultiRegionAccessPointRoutesInput) GoString() string {
+func (s JobOperation) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetMultiRegionAccessPointRoutesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetMultiRegionAccessPointRoutesInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
+func (s *JobOperation) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "JobOperation"}
+ if s.LambdaInvoke != nil {
+ if err := s.LambdaInvoke.Validate(); err != nil {
+ invalidParams.AddNested("LambdaInvoke", err.(request.ErrInvalidParams))
+ }
}
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ if s.S3PutObjectAcl != nil {
+ if err := s.S3PutObjectAcl.Validate(); err != nil {
+ invalidParams.AddNested("S3PutObjectAcl", err.(request.ErrInvalidParams))
+ }
}
- if s.Mrap == nil {
- invalidParams.Add(request.NewErrParamRequired("Mrap"))
+ if s.S3PutObjectCopy != nil {
+ if err := s.S3PutObjectCopy.Validate(); err != nil {
+ invalidParams.AddNested("S3PutObjectCopy", err.(request.ErrInvalidParams))
+ }
}
- if s.Mrap != nil && len(*s.Mrap) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Mrap", 1))
+ if s.S3PutObjectLegalHold != nil {
+ if err := s.S3PutObjectLegalHold.Validate(); err != nil {
+ invalidParams.AddNested("S3PutObjectLegalHold", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.S3PutObjectRetention != nil {
+ if err := s.S3PutObjectRetention.Validate(); err != nil {
+ invalidParams.AddNested("S3PutObjectRetention", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.S3PutObjectTagging != nil {
+ if err := s.S3PutObjectTagging.Validate(); err != nil {
+ invalidParams.AddNested("S3PutObjectTagging", err.(request.ErrInvalidParams))
+ }
}
if invalidParams.Len() > 0 {
@@ -13349,73 +15587,73 @@ func (s *GetMultiRegionAccessPointRoutesInput) Validate() error {
return nil
}
-// SetAccountId sets the AccountId field's value.
-func (s *GetMultiRegionAccessPointRoutesInput) SetAccountId(v string) *GetMultiRegionAccessPointRoutesInput {
- s.AccountId = &v
+// SetLambdaInvoke sets the LambdaInvoke field's value.
+func (s *JobOperation) SetLambdaInvoke(v *LambdaInvokeOperation) *JobOperation {
+ s.LambdaInvoke = v
return s
}
-// SetMrap sets the Mrap field's value.
-func (s *GetMultiRegionAccessPointRoutesInput) SetMrap(v string) *GetMultiRegionAccessPointRoutesInput {
- s.Mrap = &v
+// SetS3DeleteObjectTagging sets the S3DeleteObjectTagging field's value.
+func (s *JobOperation) SetS3DeleteObjectTagging(v *S3DeleteObjectTaggingOperation) *JobOperation {
+ s.S3DeleteObjectTagging = v
return s
}
-func (s *GetMultiRegionAccessPointRoutesInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
+// SetS3InitiateRestoreObject sets the S3InitiateRestoreObject field's value.
+func (s *JobOperation) SetS3InitiateRestoreObject(v *S3InitiateRestoreObjectOperation) *JobOperation {
+ s.S3InitiateRestoreObject = v
+ return s
}
-type GetMultiRegionAccessPointRoutesOutput struct {
- _ struct{} `type:"structure"`
-
- // The Multi-Region Access Point ARN.
- Mrap *string `type:"string"`
+// SetS3PutObjectAcl sets the S3PutObjectAcl field's value.
+func (s *JobOperation) SetS3PutObjectAcl(v *S3SetObjectAclOperation) *JobOperation {
+ s.S3PutObjectAcl = v
+ return s
+}
- // The different routes that make up the route configuration. Active routes
- // return a value of 100, and passive routes return a value of 0.
- Routes []*MultiRegionAccessPointRoute `locationNameList:"Route" type:"list"`
+// SetS3PutObjectCopy sets the S3PutObjectCopy field's value.
+func (s *JobOperation) SetS3PutObjectCopy(v *S3CopyObjectOperation) *JobOperation {
+ s.S3PutObjectCopy = v
+ return s
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetMultiRegionAccessPointRoutesOutput) String() string {
- return awsutil.Prettify(s)
+// SetS3PutObjectLegalHold sets the S3PutObjectLegalHold field's value.
+func (s *JobOperation) SetS3PutObjectLegalHold(v *S3SetObjectLegalHoldOperation) *JobOperation {
+ s.S3PutObjectLegalHold = v
+ return s
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetMultiRegionAccessPointRoutesOutput) GoString() string {
- return s.String()
+// SetS3PutObjectRetention sets the S3PutObjectRetention field's value.
+func (s *JobOperation) SetS3PutObjectRetention(v *S3SetObjectRetentionOperation) *JobOperation {
+ s.S3PutObjectRetention = v
+ return s
}
-// SetMrap sets the Mrap field's value.
-func (s *GetMultiRegionAccessPointRoutesOutput) SetMrap(v string) *GetMultiRegionAccessPointRoutesOutput {
- s.Mrap = &v
+// SetS3PutObjectTagging sets the S3PutObjectTagging field's value.
+func (s *JobOperation) SetS3PutObjectTagging(v *S3SetObjectTaggingOperation) *JobOperation {
+ s.S3PutObjectTagging = v
return s
}
-// SetRoutes sets the Routes field's value.
-func (s *GetMultiRegionAccessPointRoutesOutput) SetRoutes(v []*MultiRegionAccessPointRoute) *GetMultiRegionAccessPointRoutesOutput {
- s.Routes = v
+// SetS3ReplicateObject sets the S3ReplicateObject field's value.
+func (s *JobOperation) SetS3ReplicateObject(v *S3ReplicateObjectOperation) *JobOperation {
+ s.S3ReplicateObject = v
return s
}
-type GetPublicAccessBlockInput struct {
- _ struct{} `locationName:"GetPublicAccessBlockRequest" type:"structure"`
+// Describes the total number of tasks that the specified job has started, the
+// number of tasks that succeeded, and the number of tasks that failed.
+type JobProgressSummary struct {
+ _ struct{} `type:"structure"`
- // The account ID for the Amazon Web Services account whose PublicAccessBlock
- // configuration you want to retrieve.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+ NumberOfTasksFailed *int64 `type:"long"`
+
+ NumberOfTasksSucceeded *int64 `type:"long"`
+
+ // The JobTimers attribute of a job's progress summary.
+ Timers *JobTimers `type:"structure"`
+
+ TotalNumberOfTasks *int64 `type:"long"`
}
// String returns the string representation.
@@ -13423,7 +15661,7 @@ type GetPublicAccessBlockInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetPublicAccessBlockInput) String() string {
+func (s JobProgressSummary) String() string {
return awsutil.Prettify(s)
}
@@ -13432,82 +15670,57 @@ func (s GetPublicAccessBlockInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetPublicAccessBlockInput) GoString() string {
+func (s JobProgressSummary) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetPublicAccessBlockInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetPublicAccessBlockInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetNumberOfTasksFailed sets the NumberOfTasksFailed field's value.
+func (s *JobProgressSummary) SetNumberOfTasksFailed(v int64) *JobProgressSummary {
+ s.NumberOfTasksFailed = &v
+ return s
}
-// SetAccountId sets the AccountId field's value.
-func (s *GetPublicAccessBlockInput) SetAccountId(v string) *GetPublicAccessBlockInput {
- s.AccountId = &v
+// SetNumberOfTasksSucceeded sets the NumberOfTasksSucceeded field's value.
+func (s *JobProgressSummary) SetNumberOfTasksSucceeded(v int64) *JobProgressSummary {
+ s.NumberOfTasksSucceeded = &v
return s
}
-func (s *GetPublicAccessBlockInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
+// SetTimers sets the Timers field's value.
+func (s *JobProgressSummary) SetTimers(v *JobTimers) *JobProgressSummary {
+ s.Timers = v
+ return s
}
-type GetPublicAccessBlockOutput struct {
- _ struct{} `type:"structure" payload:"PublicAccessBlockConfiguration"`
-
- // The PublicAccessBlock configuration currently in effect for this Amazon Web
- // Services account.
- PublicAccessBlockConfiguration *PublicAccessBlockConfiguration `type:"structure"`
+// SetTotalNumberOfTasks sets the TotalNumberOfTasks field's value.
+func (s *JobProgressSummary) SetTotalNumberOfTasks(v int64) *JobProgressSummary {
+ s.TotalNumberOfTasks = &v
+ return s
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetPublicAccessBlockOutput) String() string {
- return awsutil.Prettify(s)
-}
+// Contains the configuration parameters for a job-completion report.
+type JobReport struct {
+ _ struct{} `type:"structure"`
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s GetPublicAccessBlockOutput) GoString() string {
- return s.String()
-}
+ // The Amazon Resource Name (ARN) for the bucket where specified job-completion
+ // report will be stored.
+ Bucket *string `min:"1" type:"string"`
-// SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field's value.
-func (s *GetPublicAccessBlockOutput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *GetPublicAccessBlockOutput {
- s.PublicAccessBlockConfiguration = v
- return s
-}
+ // Indicates whether the specified job will generate a job-completion report.
+ //
+ // Enabled is a required field
+ Enabled *bool `type:"boolean" required:"true"`
-type GetStorageLensConfigurationInput struct {
- _ struct{} `locationName:"GetStorageLensConfigurationRequest" type:"structure"`
+ // The format of the specified job-completion report.
+ Format *string `type:"string" enum:"JobReportFormat"`
- // The account ID of the requester.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+ // An optional prefix to describe where in the specified bucket the job-completion
+ // report will be stored. Amazon S3 stores the job-completion report at /job-/report.json.
+ Prefix *string `min:"1" type:"string"`
- // The ID of the Amazon S3 Storage Lens configuration.
- //
- // ConfigId is a required field
- ConfigId *string `location:"uri" locationName:"storagelensid" min:"1" type:"string" required:"true"`
+ // Indicates whether the job-completion report will include details of all tasks
+ // or only failed tasks.
+ ReportScope *string `type:"string" enum:"JobReportScope"`
}
// String returns the string representation.
@@ -13515,7 +15728,7 @@ type GetStorageLensConfigurationInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetStorageLensConfigurationInput) String() string {
+func (s JobReport) String() string {
return awsutil.Prettify(s)
}
@@ -13524,24 +15737,21 @@ func (s GetStorageLensConfigurationInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetStorageLensConfigurationInput) GoString() string {
+func (s JobReport) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetStorageLensConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetStorageLensConfigurationInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+func (s *JobReport) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "JobReport"}
+ if s.Bucket != nil && len(*s.Bucket) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 1))
}
- if s.ConfigId == nil {
- invalidParams.Add(request.NewErrParamRequired("ConfigId"))
+ if s.Enabled == nil {
+ invalidParams.Add(request.NewErrParamRequired("Enabled"))
}
- if s.ConfigId != nil && len(*s.ConfigId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ConfigId", 1))
+ if s.Prefix != nil && len(*s.Prefix) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Prefix", 1))
}
if invalidParams.Len() > 0 {
@@ -13550,29 +15760,43 @@ func (s *GetStorageLensConfigurationInput) Validate() error {
return nil
}
-// SetAccountId sets the AccountId field's value.
-func (s *GetStorageLensConfigurationInput) SetAccountId(v string) *GetStorageLensConfigurationInput {
- s.AccountId = &v
+// SetBucket sets the Bucket field's value.
+func (s *JobReport) SetBucket(v string) *JobReport {
+ s.Bucket = &v
return s
}
-// SetConfigId sets the ConfigId field's value.
-func (s *GetStorageLensConfigurationInput) SetConfigId(v string) *GetStorageLensConfigurationInput {
- s.ConfigId = &v
+// SetEnabled sets the Enabled field's value.
+func (s *JobReport) SetEnabled(v bool) *JobReport {
+ s.Enabled = &v
return s
}
-func (s *GetStorageLensConfigurationInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
+// SetFormat sets the Format field's value.
+func (s *JobReport) SetFormat(v string) *JobReport {
+ s.Format = &v
+ return s
}
-type GetStorageLensConfigurationOutput struct {
- _ struct{} `type:"structure" payload:"StorageLensConfiguration"`
+// SetPrefix sets the Prefix field's value.
+func (s *JobReport) SetPrefix(v string) *JobReport {
+ s.Prefix = &v
+ return s
+}
- // The S3 Storage Lens configuration requested.
- StorageLensConfiguration *StorageLensConfiguration `type:"structure"`
+// SetReportScope sets the ReportScope field's value.
+func (s *JobReport) SetReportScope(v string) *JobReport {
+ s.ReportScope = &v
+ return s
+}
+
+// Provides timing details for the job.
+type JobTimers struct {
+ _ struct{} `type:"structure"`
+
+ // Indicates the elapsed time in seconds the job has been in the Active job
+ // state.
+ ElapsedTimeInActiveSeconds *int64 `type:"long"`
}
// String returns the string representation.
@@ -13580,7 +15804,7 @@ type GetStorageLensConfigurationOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetStorageLensConfigurationOutput) String() string {
+func (s JobTimers) String() string {
return awsutil.Prettify(s)
}
@@ -13589,28 +15813,23 @@ func (s GetStorageLensConfigurationOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetStorageLensConfigurationOutput) GoString() string {
+func (s JobTimers) GoString() string {
return s.String()
}
-// SetStorageLensConfiguration sets the StorageLensConfiguration field's value.
-func (s *GetStorageLensConfigurationOutput) SetStorageLensConfiguration(v *StorageLensConfiguration) *GetStorageLensConfigurationOutput {
- s.StorageLensConfiguration = v
+// SetElapsedTimeInActiveSeconds sets the ElapsedTimeInActiveSeconds field's value.
+func (s *JobTimers) SetElapsedTimeInActiveSeconds(v int64) *JobTimers {
+ s.ElapsedTimeInActiveSeconds = &v
return s
}
-type GetStorageLensConfigurationTaggingInput struct {
- _ struct{} `locationName:"GetStorageLensConfigurationTaggingRequest" type:"structure"`
-
- // The account ID of the requester.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+// Contains the configuration parameters for a Lambda Invoke operation.
+type LambdaInvokeOperation struct {
+ _ struct{} `type:"structure"`
- // The ID of the Amazon S3 Storage Lens configuration.
- //
- // ConfigId is a required field
- ConfigId *string `location:"uri" locationName:"storagelensid" min:"1" type:"string" required:"true"`
+ // The Amazon Resource Name (ARN) for the Lambda function that the specified
+ // job will invoke on every object in the manifest.
+ FunctionArn *string `min:"1" type:"string"`
}
// String returns the string representation.
@@ -13618,7 +15837,7 @@ type GetStorageLensConfigurationTaggingInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetStorageLensConfigurationTaggingInput) String() string {
+func (s LambdaInvokeOperation) String() string {
return awsutil.Prettify(s)
}
@@ -13627,24 +15846,15 @@ func (s GetStorageLensConfigurationTaggingInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetStorageLensConfigurationTaggingInput) GoString() string {
+func (s LambdaInvokeOperation) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetStorageLensConfigurationTaggingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetStorageLensConfigurationTaggingInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
- if s.ConfigId == nil {
- invalidParams.Add(request.NewErrParamRequired("ConfigId"))
- }
- if s.ConfigId != nil && len(*s.ConfigId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ConfigId", 1))
+func (s *LambdaInvokeOperation) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "LambdaInvokeOperation"}
+ if s.FunctionArn != nil && len(*s.FunctionArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("FunctionArn", 1))
}
if invalidParams.Len() > 0 {
@@ -13653,29 +15863,18 @@ func (s *GetStorageLensConfigurationTaggingInput) Validate() error {
return nil
}
-// SetAccountId sets the AccountId field's value.
-func (s *GetStorageLensConfigurationTaggingInput) SetAccountId(v string) *GetStorageLensConfigurationTaggingInput {
- s.AccountId = &v
- return s
-}
-
-// SetConfigId sets the ConfigId field's value.
-func (s *GetStorageLensConfigurationTaggingInput) SetConfigId(v string) *GetStorageLensConfigurationTaggingInput {
- s.ConfigId = &v
+// SetFunctionArn sets the FunctionArn field's value.
+func (s *LambdaInvokeOperation) SetFunctionArn(v string) *LambdaInvokeOperation {
+ s.FunctionArn = &v
return s
}
-func (s *GetStorageLensConfigurationTaggingInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
-
-type GetStorageLensConfigurationTaggingOutput struct {
+// The container for the Outposts bucket lifecycle configuration.
+type LifecycleConfiguration struct {
_ struct{} `type:"structure"`
- // The tags of S3 Storage Lens configuration requested.
- Tags []*StorageLensTag `locationNameList:"Tag" type:"list"`
+ // A lifecycle rule for individual objects in an Outposts bucket.
+ Rules []*LifecycleRule `locationNameList:"Rule" type:"list"`
}
// String returns the string representation.
@@ -13683,7 +15882,7 @@ type GetStorageLensConfigurationTaggingOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetStorageLensConfigurationTaggingOutput) String() string {
+func (s LifecycleConfiguration) String() string {
return awsutil.Prettify(s)
}
@@ -13692,132 +15891,134 @@ func (s GetStorageLensConfigurationTaggingOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetStorageLensConfigurationTaggingOutput) GoString() string {
+func (s LifecycleConfiguration) GoString() string {
return s.String()
}
-// SetTags sets the Tags field's value.
-func (s *GetStorageLensConfigurationTaggingOutput) SetTags(v []*StorageLensTag) *GetStorageLensConfigurationTaggingOutput {
- s.Tags = v
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *LifecycleConfiguration) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "LifecycleConfiguration"}
+ if s.Rules != nil {
+ for i, v := range s.Rules {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetRules sets the Rules field's value.
+func (s *LifecycleConfiguration) SetRules(v []*LifecycleRule) *LifecycleConfiguration {
+ s.Rules = v
return s
}
-// A container for what Amazon S3 Storage Lens configuration includes.
-type Include struct {
+// The container of the Outposts bucket lifecycle expiration.
+type LifecycleExpiration struct {
_ struct{} `type:"structure"`
- // A container for the S3 Storage Lens bucket includes.
- Buckets []*string `locationNameList:"Arn" type:"list"`
+ // Indicates at what date the object is to be deleted. Should be in GMT ISO
+ // 8601 format.
+ Date *time.Time `type:"timestamp"`
- // A container for the S3 Storage Lens Region includes.
- Regions []*string `locationNameList:"Region" type:"list"`
-}
+ // Indicates the lifetime, in days, of the objects that are subject to the rule.
+ // The value must be a non-zero positive integer.
+ Days *int64 `type:"integer"`
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s Include) String() string {
- return awsutil.Prettify(s)
+ // Indicates whether Amazon S3 will remove a delete marker with no noncurrent
+ // versions. If set to true, the delete marker will be expired. If set to false,
+ // the policy takes no action. This cannot be specified with Days or Date in
+ // a Lifecycle Expiration Policy.
+ ExpiredObjectDeleteMarker *bool `type:"boolean"`
}
-// GoString returns the string representation.
+// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s Include) GoString() string {
- return s.String()
-}
-
-// SetBuckets sets the Buckets field's value.
-func (s *Include) SetBuckets(v []*string) *Include {
- s.Buckets = v
- return s
-}
-
-// SetRegions sets the Regions field's value.
-func (s *Include) SetRegions(v []*string) *Include {
- s.Regions = v
- return s
-}
-
-// A container element for the job configuration and status information returned
-// by a Describe Job request.
-type JobDescriptor struct {
- _ struct{} `type:"structure"`
-
- // Indicates whether confirmation is required before Amazon S3 begins running
- // the specified job. Confirmation is required only for jobs created through
- // the Amazon S3 console.
- ConfirmationRequired *bool `type:"boolean"`
-
- // A timestamp indicating when this job was created.
- CreationTime *time.Time `type:"timestamp"`
-
- // The description for this job, if one was provided in this job's Create Job
- // request.
- Description *string `min:"1" type:"string"`
-
- // If the specified job failed, this field contains information describing the
- // failure.
- FailureReasons []*JobFailure `type:"list"`
-
- // The attribute of the JobDescriptor containing details about the job's generated
- // manifest.
- GeneratedManifestDescriptor *S3GeneratedManifestDescriptor `type:"structure"`
-
- // The Amazon Resource Name (ARN) for this job.
- JobArn *string `min:"1" type:"string"`
+func (s LifecycleExpiration) String() string {
+ return awsutil.Prettify(s)
+}
- // The ID for the specified job.
- JobId *string `min:"5" type:"string"`
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s LifecycleExpiration) GoString() string {
+ return s.String()
+}
- // The configuration information for the specified job's manifest object.
- Manifest *JobManifest `type:"structure"`
+// SetDate sets the Date field's value.
+func (s *LifecycleExpiration) SetDate(v time.Time) *LifecycleExpiration {
+ s.Date = &v
+ return s
+}
- // The manifest generator that was used to generate a job manifest for this
- // job.
- ManifestGenerator *JobManifestGenerator `type:"structure"`
+// SetDays sets the Days field's value.
+func (s *LifecycleExpiration) SetDays(v int64) *LifecycleExpiration {
+ s.Days = &v
+ return s
+}
- // The operation that the specified job is configured to run on the objects
- // listed in the manifest.
- Operation *JobOperation `type:"structure"`
+// SetExpiredObjectDeleteMarker sets the ExpiredObjectDeleteMarker field's value.
+func (s *LifecycleExpiration) SetExpiredObjectDeleteMarker(v bool) *LifecycleExpiration {
+ s.ExpiredObjectDeleteMarker = &v
+ return s
+}
- // The priority of the specified job.
- Priority *int64 `type:"integer"`
+// The container for the Outposts bucket lifecycle rule.
+type LifecycleRule struct {
+ _ struct{} `type:"structure"`
- // Describes the total number of tasks that the specified job has run, the number
- // of tasks that succeeded, and the number of tasks that failed.
- ProgressSummary *JobProgressSummary `type:"structure"`
+ // Specifies the days since the initiation of an incomplete multipart upload
+ // that Amazon S3 waits before permanently removing all parts of the upload.
+ // For more information, see Aborting Incomplete Multipart Uploads Using a Bucket
+ // Lifecycle Configuration (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config)
+ // in the Amazon S3 User Guide.
+ AbortIncompleteMultipartUpload *AbortIncompleteMultipartUpload `type:"structure"`
- // Contains the configuration information for the job-completion report if you
- // requested one in the Create Job request.
- Report *JobReport `type:"structure"`
+ // Specifies the expiration for the lifecycle of the object in the form of date,
+ // days and, whether the object has a delete marker.
+ Expiration *LifecycleExpiration `type:"structure"`
- // The Amazon Resource Name (ARN) for the Identity and Access Management (IAM)
- // role assigned to run the tasks for this job.
- RoleArn *string `min:"1" type:"string"`
+ // The container for the filter of lifecycle rule.
+ Filter *LifecycleRuleFilter `type:"structure"`
- // The current status of the specified job.
- Status *string `type:"string" enum:"JobStatus"`
+ // Unique identifier for the rule. The value cannot be longer than 255 characters.
+ ID *string `type:"string"`
- // The reason for updating the job.
- StatusUpdateReason *string `min:"1" type:"string"`
+ // The noncurrent version expiration of the lifecycle rule.
+ NoncurrentVersionExpiration *NoncurrentVersionExpiration `type:"structure"`
- // The reason why the specified job was suspended. A job is only suspended if
- // you create it through the Amazon S3 console. When you create the job, it
- // enters the Suspended state to await confirmation before running. After you
- // confirm the job, it automatically exits the Suspended state.
- SuspendedCause *string `min:"1" type:"string"`
+ // Specifies the transition rule for the lifecycle rule that describes when
+ // noncurrent objects transition to a specific storage class. If your bucket
+ // is versioning-enabled (or versioning is suspended), you can set this action
+ // to request that Amazon S3 transition noncurrent object versions to a specific
+ // storage class at a set period in the object's lifetime.
+ //
+ // This is not supported by Amazon S3 on Outposts buckets.
+ NoncurrentVersionTransitions []*NoncurrentVersionTransition `locationNameList:"NoncurrentVersionTransition" type:"list"`
- // The timestamp when this job was suspended, if it has been suspended.
- SuspendedDate *time.Time `type:"timestamp"`
+ // If 'Enabled', the rule is currently being applied. If 'Disabled', the rule
+ // is not currently being applied.
+ //
+ // Status is a required field
+ Status *string `type:"string" required:"true" enum:"ExpirationStatus"`
- // A timestamp indicating when this job terminated. A job's termination date
- // is the date and time when it succeeded, failed, or was canceled.
- TerminationDate *time.Time `type:"timestamp"`
+ // Specifies when an Amazon S3 object transitions to a specified storage class.
+ //
+ // This is not supported by Amazon S3 on Outposts buckets.
+ Transitions []*Transition `locationNameList:"Transition" type:"list"`
}
// String returns the string representation.
@@ -13825,7 +16026,7 @@ type JobDescriptor struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobDescriptor) String() string {
+func (s LifecycleRule) String() string {
return awsutil.Prettify(s)
}
@@ -13834,133 +16035,179 @@ func (s JobDescriptor) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobDescriptor) GoString() string {
+func (s LifecycleRule) GoString() string {
return s.String()
}
-// SetConfirmationRequired sets the ConfirmationRequired field's value.
-func (s *JobDescriptor) SetConfirmationRequired(v bool) *JobDescriptor {
- s.ConfirmationRequired = &v
- return s
-}
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *LifecycleRule) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "LifecycleRule"}
+ if s.Status == nil {
+ invalidParams.Add(request.NewErrParamRequired("Status"))
+ }
+ if s.Filter != nil {
+ if err := s.Filter.Validate(); err != nil {
+ invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
+ }
+ }
-// SetCreationTime sets the CreationTime field's value.
-func (s *JobDescriptor) SetCreationTime(v time.Time) *JobDescriptor {
- s.CreationTime = &v
- return s
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetDescription sets the Description field's value.
-func (s *JobDescriptor) SetDescription(v string) *JobDescriptor {
- s.Description = &v
+// SetAbortIncompleteMultipartUpload sets the AbortIncompleteMultipartUpload field's value.
+func (s *LifecycleRule) SetAbortIncompleteMultipartUpload(v *AbortIncompleteMultipartUpload) *LifecycleRule {
+ s.AbortIncompleteMultipartUpload = v
return s
}
-// SetFailureReasons sets the FailureReasons field's value.
-func (s *JobDescriptor) SetFailureReasons(v []*JobFailure) *JobDescriptor {
- s.FailureReasons = v
+// SetExpiration sets the Expiration field's value.
+func (s *LifecycleRule) SetExpiration(v *LifecycleExpiration) *LifecycleRule {
+ s.Expiration = v
return s
}
-// SetGeneratedManifestDescriptor sets the GeneratedManifestDescriptor field's value.
-func (s *JobDescriptor) SetGeneratedManifestDescriptor(v *S3GeneratedManifestDescriptor) *JobDescriptor {
- s.GeneratedManifestDescriptor = v
+// SetFilter sets the Filter field's value.
+func (s *LifecycleRule) SetFilter(v *LifecycleRuleFilter) *LifecycleRule {
+ s.Filter = v
return s
}
-// SetJobArn sets the JobArn field's value.
-func (s *JobDescriptor) SetJobArn(v string) *JobDescriptor {
- s.JobArn = &v
+// SetID sets the ID field's value.
+func (s *LifecycleRule) SetID(v string) *LifecycleRule {
+ s.ID = &v
return s
}
-// SetJobId sets the JobId field's value.
-func (s *JobDescriptor) SetJobId(v string) *JobDescriptor {
- s.JobId = &v
+// SetNoncurrentVersionExpiration sets the NoncurrentVersionExpiration field's value.
+func (s *LifecycleRule) SetNoncurrentVersionExpiration(v *NoncurrentVersionExpiration) *LifecycleRule {
+ s.NoncurrentVersionExpiration = v
return s
}
-// SetManifest sets the Manifest field's value.
-func (s *JobDescriptor) SetManifest(v *JobManifest) *JobDescriptor {
- s.Manifest = v
+// SetNoncurrentVersionTransitions sets the NoncurrentVersionTransitions field's value.
+func (s *LifecycleRule) SetNoncurrentVersionTransitions(v []*NoncurrentVersionTransition) *LifecycleRule {
+ s.NoncurrentVersionTransitions = v
return s
}
-// SetManifestGenerator sets the ManifestGenerator field's value.
-func (s *JobDescriptor) SetManifestGenerator(v *JobManifestGenerator) *JobDescriptor {
- s.ManifestGenerator = v
+// SetStatus sets the Status field's value.
+func (s *LifecycleRule) SetStatus(v string) *LifecycleRule {
+ s.Status = &v
return s
}
-// SetOperation sets the Operation field's value.
-func (s *JobDescriptor) SetOperation(v *JobOperation) *JobDescriptor {
- s.Operation = v
+// SetTransitions sets the Transitions field's value.
+func (s *LifecycleRule) SetTransitions(v []*Transition) *LifecycleRule {
+ s.Transitions = v
return s
}
-// SetPriority sets the Priority field's value.
-func (s *JobDescriptor) SetPriority(v int64) *JobDescriptor {
- s.Priority = &v
- return s
-}
+// The container for the Outposts bucket lifecycle rule and operator.
+type LifecycleRuleAndOperator struct {
+ _ struct{} `type:"structure"`
-// SetProgressSummary sets the ProgressSummary field's value.
-func (s *JobDescriptor) SetProgressSummary(v *JobProgressSummary) *JobDescriptor {
- s.ProgressSummary = v
- return s
+ // Minimum object size to which the rule applies.
+ ObjectSizeGreaterThan *int64 `type:"long"`
+
+ // Maximum object size to which the rule applies.
+ ObjectSizeLessThan *int64 `type:"long"`
+
+ // Prefix identifying one or more objects to which the rule applies.
+ Prefix *string `type:"string"`
+
+ // All of these tags must exist in the object's tag set in order for the rule
+ // to apply.
+ Tags []*S3Tag `type:"list"`
}
-// SetReport sets the Report field's value.
-func (s *JobDescriptor) SetReport(v *JobReport) *JobDescriptor {
- s.Report = v
- return s
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s LifecycleRuleAndOperator) String() string {
+ return awsutil.Prettify(s)
}
-// SetRoleArn sets the RoleArn field's value.
-func (s *JobDescriptor) SetRoleArn(v string) *JobDescriptor {
- s.RoleArn = &v
- return s
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s LifecycleRuleAndOperator) GoString() string {
+ return s.String()
}
-// SetStatus sets the Status field's value.
-func (s *JobDescriptor) SetStatus(v string) *JobDescriptor {
- s.Status = &v
- return s
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *LifecycleRuleAndOperator) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "LifecycleRuleAndOperator"}
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetStatusUpdateReason sets the StatusUpdateReason field's value.
-func (s *JobDescriptor) SetStatusUpdateReason(v string) *JobDescriptor {
- s.StatusUpdateReason = &v
+// SetObjectSizeGreaterThan sets the ObjectSizeGreaterThan field's value.
+func (s *LifecycleRuleAndOperator) SetObjectSizeGreaterThan(v int64) *LifecycleRuleAndOperator {
+ s.ObjectSizeGreaterThan = &v
return s
}
-// SetSuspendedCause sets the SuspendedCause field's value.
-func (s *JobDescriptor) SetSuspendedCause(v string) *JobDescriptor {
- s.SuspendedCause = &v
+// SetObjectSizeLessThan sets the ObjectSizeLessThan field's value.
+func (s *LifecycleRuleAndOperator) SetObjectSizeLessThan(v int64) *LifecycleRuleAndOperator {
+ s.ObjectSizeLessThan = &v
return s
}
-
-// SetSuspendedDate sets the SuspendedDate field's value.
-func (s *JobDescriptor) SetSuspendedDate(v time.Time) *JobDescriptor {
- s.SuspendedDate = &v
+
+// SetPrefix sets the Prefix field's value.
+func (s *LifecycleRuleAndOperator) SetPrefix(v string) *LifecycleRuleAndOperator {
+ s.Prefix = &v
return s
}
-// SetTerminationDate sets the TerminationDate field's value.
-func (s *JobDescriptor) SetTerminationDate(v time.Time) *JobDescriptor {
- s.TerminationDate = &v
+// SetTags sets the Tags field's value.
+func (s *LifecycleRuleAndOperator) SetTags(v []*S3Tag) *LifecycleRuleAndOperator {
+ s.Tags = v
return s
}
-// If this job failed, this element indicates why the job failed.
-type JobFailure struct {
+// The container for the filter of the lifecycle rule.
+type LifecycleRuleFilter struct {
_ struct{} `type:"structure"`
- // The failure code, if any, for the specified job.
- FailureCode *string `min:"1" type:"string"`
+ // The container for the AND condition for the lifecycle rule.
+ And *LifecycleRuleAndOperator `type:"structure"`
- // The failure reason, if any, for the specified job.
- FailureReason *string `min:"1" type:"string"`
+ // Minimum object size to which the rule applies.
+ ObjectSizeGreaterThan *int64 `type:"long"`
+
+ // Maximum object size to which the rule applies.
+ ObjectSizeLessThan *int64 `type:"long"`
+
+ // Prefix identifying one or more objects to which the rule applies.
+ //
+ // When you're using XML requests, you must replace special characters (such
+ // as carriage returns) in object keys with their equivalent XML entity codes.
+ // For more information, see XML-related object key constraints (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints)
+ // in the Amazon S3 User Guide.
+ Prefix *string `type:"string"`
+
+ // A container for a key-value name pair.
+ Tag *S3Tag `type:"structure"`
}
// String returns the string representation.
@@ -13968,7 +16215,7 @@ type JobFailure struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobFailure) String() string {
+func (s LifecycleRuleFilter) String() string {
return awsutil.Prettify(s)
}
@@ -13977,54 +16224,80 @@ func (s JobFailure) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobFailure) GoString() string {
+func (s LifecycleRuleFilter) GoString() string {
return s.String()
}
-// SetFailureCode sets the FailureCode field's value.
-func (s *JobFailure) SetFailureCode(v string) *JobFailure {
- s.FailureCode = &v
- return s
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *LifecycleRuleFilter) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "LifecycleRuleFilter"}
+ if s.And != nil {
+ if err := s.And.Validate(); err != nil {
+ invalidParams.AddNested("And", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.Tag != nil {
+ if err := s.Tag.Validate(); err != nil {
+ invalidParams.AddNested("Tag", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetFailureReason sets the FailureReason field's value.
-func (s *JobFailure) SetFailureReason(v string) *JobFailure {
- s.FailureReason = &v
+// SetAnd sets the And field's value.
+func (s *LifecycleRuleFilter) SetAnd(v *LifecycleRuleAndOperator) *LifecycleRuleFilter {
+ s.And = v
return s
}
-// Contains the configuration and status information for a single job retrieved
-// as part of a job list.
-type JobListDescriptor struct {
- _ struct{} `type:"structure"`
-
- // A timestamp indicating when the specified job was created.
- CreationTime *time.Time `type:"timestamp"`
+// SetObjectSizeGreaterThan sets the ObjectSizeGreaterThan field's value.
+func (s *LifecycleRuleFilter) SetObjectSizeGreaterThan(v int64) *LifecycleRuleFilter {
+ s.ObjectSizeGreaterThan = &v
+ return s
+}
- // The user-specified description that was included in the specified job's Create
- // Job request.
- Description *string `min:"1" type:"string"`
+// SetObjectSizeLessThan sets the ObjectSizeLessThan field's value.
+func (s *LifecycleRuleFilter) SetObjectSizeLessThan(v int64) *LifecycleRuleFilter {
+ s.ObjectSizeLessThan = &v
+ return s
+}
- // The ID for the specified job.
- JobId *string `min:"5" type:"string"`
+// SetPrefix sets the Prefix field's value.
+func (s *LifecycleRuleFilter) SetPrefix(v string) *LifecycleRuleFilter {
+ s.Prefix = &v
+ return s
+}
- // The operation that the specified job is configured to run on every object
- // listed in the manifest.
- Operation *string `type:"string" enum:"OperationName"`
+// SetTag sets the Tag field's value.
+func (s *LifecycleRuleFilter) SetTag(v *S3Tag) *LifecycleRuleFilter {
+ s.Tag = v
+ return s
+}
- // The current priority for the specified job.
- Priority *int64 `type:"integer"`
+type ListAccessPointsForObjectLambdaInput struct {
+ _ struct{} `locationName:"ListAccessPointsForObjectLambdaRequest" type:"structure"`
- // Describes the total number of tasks that the specified job has run, the number
- // of tasks that succeeded, and the number of tasks that failed.
- ProgressSummary *JobProgressSummary `type:"structure"`
+ // The account ID for the account that owns the specified Object Lambda Access
+ // Point.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The specified job's current status.
- Status *string `type:"string" enum:"JobStatus"`
+ // The maximum number of access points that you want to include in the list.
+ // The response may contain fewer access points but will never contain more.
+ // If there are more than this number of access points, then the response will
+ // include a continuation token in the NextToken field that you can use to retrieve
+ // the next page of access points.
+ MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
- // A timestamp indicating when the specified job terminated. A job's termination
- // date is the date and time when it succeeded, failed, or was canceled.
- TerminationDate *time.Time `type:"timestamp"`
+ // If the list has more access points than can be returned in one call to this
+ // API, this field contains a continuation token that you can provide in subsequent
+ // calls to this API to retrieve additional access points.
+ NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation.
@@ -14032,7 +16305,7 @@ type JobListDescriptor struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobListDescriptor) String() string {
+func (s ListAccessPointsForObjectLambdaInput) String() string {
return awsutil.Prettify(s)
}
@@ -14041,72 +16314,127 @@ func (s JobListDescriptor) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobListDescriptor) GoString() string {
+func (s ListAccessPointsForObjectLambdaInput) GoString() string {
return s.String()
}
-// SetCreationTime sets the CreationTime field's value.
-func (s *JobListDescriptor) SetCreationTime(v time.Time) *JobListDescriptor {
- s.CreationTime = &v
- return s
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListAccessPointsForObjectLambdaInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListAccessPointsForObjectLambdaInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetDescription sets the Description field's value.
-func (s *JobListDescriptor) SetDescription(v string) *JobListDescriptor {
- s.Description = &v
+// SetAccountId sets the AccountId field's value.
+func (s *ListAccessPointsForObjectLambdaInput) SetAccountId(v string) *ListAccessPointsForObjectLambdaInput {
+ s.AccountId = &v
return s
}
-// SetJobId sets the JobId field's value.
-func (s *JobListDescriptor) SetJobId(v string) *JobListDescriptor {
- s.JobId = &v
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListAccessPointsForObjectLambdaInput) SetMaxResults(v int64) *ListAccessPointsForObjectLambdaInput {
+ s.MaxResults = &v
return s
}
-// SetOperation sets the Operation field's value.
-func (s *JobListDescriptor) SetOperation(v string) *JobListDescriptor {
- s.Operation = &v
+// SetNextToken sets the NextToken field's value.
+func (s *ListAccessPointsForObjectLambdaInput) SetNextToken(v string) *ListAccessPointsForObjectLambdaInput {
+ s.NextToken = &v
return s
}
-// SetPriority sets the Priority field's value.
-func (s *JobListDescriptor) SetPriority(v int64) *JobListDescriptor {
- s.Priority = &v
- return s
+func (s *ListAccessPointsForObjectLambdaInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
}
-// SetProgressSummary sets the ProgressSummary field's value.
-func (s *JobListDescriptor) SetProgressSummary(v *JobProgressSummary) *JobListDescriptor {
- s.ProgressSummary = v
- return s
+type ListAccessPointsForObjectLambdaOutput struct {
+ _ struct{} `type:"structure"`
+
+ // If the list has more access points than can be returned in one call to this
+ // API, this field contains a continuation token that you can provide in subsequent
+ // calls to this API to retrieve additional access points.
+ NextToken *string `min:"1" type:"string"`
+
+ // Returns list of Object Lambda Access Points.
+ ObjectLambdaAccessPointList []*ObjectLambdaAccessPoint `locationNameList:"ObjectLambdaAccessPoint" type:"list"`
}
-// SetStatus sets the Status field's value.
-func (s *JobListDescriptor) SetStatus(v string) *JobListDescriptor {
- s.Status = &v
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListAccessPointsForObjectLambdaOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListAccessPointsForObjectLambdaOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListAccessPointsForObjectLambdaOutput) SetNextToken(v string) *ListAccessPointsForObjectLambdaOutput {
+ s.NextToken = &v
return s
}
-// SetTerminationDate sets the TerminationDate field's value.
-func (s *JobListDescriptor) SetTerminationDate(v time.Time) *JobListDescriptor {
- s.TerminationDate = &v
+// SetObjectLambdaAccessPointList sets the ObjectLambdaAccessPointList field's value.
+func (s *ListAccessPointsForObjectLambdaOutput) SetObjectLambdaAccessPointList(v []*ObjectLambdaAccessPoint) *ListAccessPointsForObjectLambdaOutput {
+ s.ObjectLambdaAccessPointList = v
return s
}
-// Contains the configuration information for a job's manifest.
-type JobManifest struct {
- _ struct{} `type:"structure"`
+type ListAccessPointsInput struct {
+ _ struct{} `locationName:"ListAccessPointsRequest" type:"structure"`
- // Contains the information required to locate the specified job's manifest.
+ // The Amazon Web Services account ID for the account that owns the specified
+ // access points.
//
- // Location is a required field
- Location *JobManifestLocation `type:"structure" required:"true"`
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // Describes the format of the specified job's manifest. If the manifest is
- // in CSV format, also describes the columns contained within the manifest.
+ // The name of the bucket whose associated access points you want to list.
//
- // Spec is a required field
- Spec *JobManifestSpec `type:"structure" required:"true"`
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
+ //
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the bucket accessed in the format
+ // arn:aws:s3-outposts:::outpost//bucket/.
+ // For example, to access the bucket reports through Outpost my-outpost owned
+ // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
+ // The value must be URL encoded.
+ Bucket *string `location:"querystring" locationName:"bucket" min:"3" type:"string"`
+
+ // The maximum number of access points that you want to include in the list.
+ // If the specified bucket has more than this number of access points, then
+ // the response will include a continuation token in the NextToken field that
+ // you can use to retrieve the next page of access points.
+ MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
+
+ // A continuation token. If a previous call to ListAccessPoints returned a continuation
+ // token in the NextToken field, then providing that value here causes Amazon
+ // S3 to retrieve the next page of results.
+ NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation.
@@ -14114,7 +16442,7 @@ type JobManifest struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobManifest) String() string {
+func (s ListAccessPointsInput) String() string {
return awsutil.Prettify(s)
}
@@ -14123,28 +16451,24 @@ func (s JobManifest) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobManifest) GoString() string {
+func (s ListAccessPointsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *JobManifest) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "JobManifest"}
- if s.Location == nil {
- invalidParams.Add(request.NewErrParamRequired("Location"))
+func (s *ListAccessPointsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListAccessPointsInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
- if s.Spec == nil {
- invalidParams.Add(request.NewErrParamRequired("Spec"))
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Location != nil {
- if err := s.Location.Validate(); err != nil {
- invalidParams.AddNested("Location", err.(request.ErrInvalidParams))
- }
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
}
- if s.Spec != nil {
- if err := s.Spec.Validate(); err != nil {
- invalidParams.AddNested("Spec", err.(request.ErrInvalidParams))
- }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
@@ -14153,84 +16477,88 @@ func (s *JobManifest) Validate() error {
return nil
}
-// SetLocation sets the Location field's value.
-func (s *JobManifest) SetLocation(v *JobManifestLocation) *JobManifest {
- s.Location = v
+// SetAccountId sets the AccountId field's value.
+func (s *ListAccessPointsInput) SetAccountId(v string) *ListAccessPointsInput {
+ s.AccountId = &v
return s
}
-// SetSpec sets the Spec field's value.
-func (s *JobManifest) SetSpec(v *JobManifestSpec) *JobManifest {
- s.Spec = v
+// SetBucket sets the Bucket field's value.
+func (s *ListAccessPointsInput) SetBucket(v string) *ListAccessPointsInput {
+ s.Bucket = &v
return s
}
-// Configures the type of the job's ManifestGenerator.
-type JobManifestGenerator struct {
- _ struct{} `type:"structure"`
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListAccessPointsInput) SetMaxResults(v int64) *ListAccessPointsInput {
+ s.MaxResults = &v
+ return s
+}
- // The S3 job ManifestGenerator's configuration details.
- S3JobManifestGenerator *S3JobManifestGenerator `type:"structure"`
+// SetNextToken sets the NextToken field's value.
+func (s *ListAccessPointsInput) SetNextToken(v string) *ListAccessPointsInput {
+ s.NextToken = &v
+ return s
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s JobManifestGenerator) String() string {
- return awsutil.Prettify(s)
+func (s *ListAccessPointsInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s JobManifestGenerator) GoString() string {
- return s.String()
+func (s *ListAccessPointsInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *JobManifestGenerator) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "JobManifestGenerator"}
- if s.S3JobManifestGenerator != nil {
- if err := s.S3JobManifestGenerator.Validate(); err != nil {
- invalidParams.AddNested("S3JobManifestGenerator", err.(request.ErrInvalidParams))
- }
+func (s *ListAccessPointsInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
}
+ return arn.IsARN(*s.Bucket)
+}
- if invalidParams.Len() > 0 {
- return invalidParams
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s ListAccessPointsInput) updateArnableField(v string) (interface{}, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
}
- return nil
+ s.Bucket = aws.String(v)
+ return &s, nil
}
-// SetS3JobManifestGenerator sets the S3JobManifestGenerator field's value.
-func (s *JobManifestGenerator) SetS3JobManifestGenerator(v *S3JobManifestGenerator) *JobManifestGenerator {
- s.S3JobManifestGenerator = v
- return s
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s ListAccessPointsInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
}
-// The filter used to describe a set of objects for the job's manifest.
-type JobManifestGeneratorFilter struct {
+type ListAccessPointsOutput struct {
_ struct{} `type:"structure"`
- // If provided, the generated manifest should include only source bucket objects
- // that were created after this time.
- CreatedAfter *time.Time `type:"timestamp"`
-
- // If provided, the generated manifest should include only source bucket objects
- // that were created before this time.
- CreatedBefore *time.Time `type:"timestamp"`
-
- // Include objects in the generated manifest only if they are eligible for replication
- // according to the Replication configuration on the source bucket.
- EligibleForReplication *bool `type:"boolean"`
+ // Contains identification and configuration information for one or more access
+ // points associated with the specified bucket.
+ AccessPointList []*AccessPoint `locationNameList:"AccessPoint" type:"list"`
- // If provided, the generated manifest should include only source bucket objects
- // that have one of the specified Replication statuses.
- ObjectReplicationStatuses []*string `type:"list" enum:"ReplicationStatus"`
+ // If the specified bucket has more access points than can be returned in one
+ // call to this API, this field contains a continuation token that you can provide
+ // in subsequent calls to this API to retrieve additional access points.
+ NextToken *string `min:"1" type:"string"`
}
// String returns the string representation.
@@ -14238,7 +16566,7 @@ type JobManifestGeneratorFilter struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobManifestGeneratorFilter) String() string {
+func (s ListAccessPointsOutput) String() string {
return awsutil.Prettify(s)
}
@@ -14247,55 +16575,44 @@ func (s JobManifestGeneratorFilter) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobManifestGeneratorFilter) GoString() string {
+func (s ListAccessPointsOutput) GoString() string {
return s.String()
}
-// SetCreatedAfter sets the CreatedAfter field's value.
-func (s *JobManifestGeneratorFilter) SetCreatedAfter(v time.Time) *JobManifestGeneratorFilter {
- s.CreatedAfter = &v
- return s
-}
-
-// SetCreatedBefore sets the CreatedBefore field's value.
-func (s *JobManifestGeneratorFilter) SetCreatedBefore(v time.Time) *JobManifestGeneratorFilter {
- s.CreatedBefore = &v
- return s
-}
-
-// SetEligibleForReplication sets the EligibleForReplication field's value.
-func (s *JobManifestGeneratorFilter) SetEligibleForReplication(v bool) *JobManifestGeneratorFilter {
- s.EligibleForReplication = &v
+// SetAccessPointList sets the AccessPointList field's value.
+func (s *ListAccessPointsOutput) SetAccessPointList(v []*AccessPoint) *ListAccessPointsOutput {
+ s.AccessPointList = v
return s
}
-// SetObjectReplicationStatuses sets the ObjectReplicationStatuses field's value.
-func (s *JobManifestGeneratorFilter) SetObjectReplicationStatuses(v []*string) *JobManifestGeneratorFilter {
- s.ObjectReplicationStatuses = v
+// SetNextToken sets the NextToken field's value.
+func (s *ListAccessPointsOutput) SetNextToken(v string) *ListAccessPointsOutput {
+ s.NextToken = &v
return s
}
-// Contains the information required to locate a manifest object.
-type JobManifestLocation struct {
- _ struct{} `type:"structure"`
+type ListJobsInput struct {
+ _ struct{} `locationName:"ListJobsRequest" type:"structure"`
- // The ETag for the specified manifest object.
+ // The Amazon Web Services account ID associated with the S3 Batch Operations
+ // job.
//
- // ETag is a required field
- ETag *string `min:"1" type:"string" required:"true"`
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) for a manifest object.
- //
- // When you're using XML requests, you must replace special characters (such
- // as carriage returns) in object keys with their equivalent XML entity codes.
- // For more information, see XML-related object key constraints (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints)
- // in the Amazon S3 User Guide.
- //
- // ObjectArn is a required field
- ObjectArn *string `min:"1" type:"string" required:"true"`
+ // The List Jobs request returns jobs that match the statuses listed in this
+ // element.
+ JobStatuses []*string `location:"querystring" locationName:"jobStatuses" type:"list" enum:"JobStatus"`
- // The optional version ID to identify a specific version of the manifest object.
- ObjectVersionId *string `min:"1" type:"string"`
+ // The maximum number of jobs that Amazon S3 will include in the List Jobs response.
+ // If there are more jobs than this number, the response will include a pagination
+ // token in the NextToken field to enable you to retrieve the next page of results.
+ MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
+
+ // A pagination token to request the next page of results. Use the token that
+ // Amazon S3 returned in the NextToken element of the ListJobsResult from the
+ // previous List Jobs request.
+ NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation.
@@ -14303,7 +16620,7 @@ type JobManifestLocation struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobManifestLocation) String() string {
+func (s ListJobsInput) String() string {
return awsutil.Prettify(s)
}
@@ -14312,27 +16629,21 @@ func (s JobManifestLocation) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobManifestLocation) GoString() string {
+func (s ListJobsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *JobManifestLocation) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "JobManifestLocation"}
- if s.ETag == nil {
- invalidParams.Add(request.NewErrParamRequired("ETag"))
- }
- if s.ETag != nil && len(*s.ETag) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ETag", 1))
- }
- if s.ObjectArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ObjectArn"))
+func (s *ListJobsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListJobsInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
- if s.ObjectArn != nil && len(*s.ObjectArn) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ObjectArn", 1))
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.ObjectVersionId != nil && len(*s.ObjectVersionId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ObjectVersionId", 1))
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
@@ -14341,37 +16652,46 @@ func (s *JobManifestLocation) Validate() error {
return nil
}
-// SetETag sets the ETag field's value.
-func (s *JobManifestLocation) SetETag(v string) *JobManifestLocation {
- s.ETag = &v
+// SetAccountId sets the AccountId field's value.
+func (s *ListJobsInput) SetAccountId(v string) *ListJobsInput {
+ s.AccountId = &v
return s
}
-// SetObjectArn sets the ObjectArn field's value.
-func (s *JobManifestLocation) SetObjectArn(v string) *JobManifestLocation {
- s.ObjectArn = &v
+// SetJobStatuses sets the JobStatuses field's value.
+func (s *ListJobsInput) SetJobStatuses(v []*string) *ListJobsInput {
+ s.JobStatuses = v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListJobsInput) SetMaxResults(v int64) *ListJobsInput {
+ s.MaxResults = &v
return s
}
-// SetObjectVersionId sets the ObjectVersionId field's value.
-func (s *JobManifestLocation) SetObjectVersionId(v string) *JobManifestLocation {
- s.ObjectVersionId = &v
+// SetNextToken sets the NextToken field's value.
+func (s *ListJobsInput) SetNextToken(v string) *ListJobsInput {
+ s.NextToken = &v
return s
}
-// Describes the format of a manifest. If the manifest is in CSV format, also
-// describes the columns contained within the manifest.
-type JobManifestSpec struct {
+func (s *ListJobsInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
+
+type ListJobsOutput struct {
_ struct{} `type:"structure"`
- // If the specified manifest object is in the S3BatchOperations_CSV_20180820
- // format, this element describes which columns contain the required data.
- Fields []*string `type:"list" enum:"JobManifestFieldName"`
+ // The list of current jobs and jobs that have ended within the last 30 days.
+ Jobs []*JobListDescriptor `type:"list"`
- // Indicates which of the available formats the specified manifest uses.
- //
- // Format is a required field
- Format *string `type:"string" required:"true" enum:"JobManifestFormat"`
+ // If the List Jobs request produced more than the maximum number of results,
+ // you can pass this value into a subsequent List Jobs request in order to retrieve
+ // the next page of results.
+ NextToken *string `min:"1" type:"string"`
}
// String returns the string representation.
@@ -14379,7 +16699,7 @@ type JobManifestSpec struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobManifestSpec) String() string {
+func (s ListJobsOutput) String() string {
return awsutil.Prettify(s)
}
@@ -14388,83 +16708,36 @@ func (s JobManifestSpec) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobManifestSpec) GoString() string {
+func (s ListJobsOutput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *JobManifestSpec) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "JobManifestSpec"}
- if s.Format == nil {
- invalidParams.Add(request.NewErrParamRequired("Format"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetFields sets the Fields field's value.
-func (s *JobManifestSpec) SetFields(v []*string) *JobManifestSpec {
- s.Fields = v
+// SetJobs sets the Jobs field's value.
+func (s *ListJobsOutput) SetJobs(v []*JobListDescriptor) *ListJobsOutput {
+ s.Jobs = v
return s
}
-// SetFormat sets the Format field's value.
-func (s *JobManifestSpec) SetFormat(v string) *JobManifestSpec {
- s.Format = &v
+// SetNextToken sets the NextToken field's value.
+func (s *ListJobsOutput) SetNextToken(v string) *ListJobsOutput {
+ s.NextToken = &v
return s
}
-// The operation that you want this job to perform on every object listed in
-// the manifest. For more information about the available operations, see Operations
-// (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-operations.html)
-// in the Amazon S3 User Guide.
-type JobOperation struct {
- _ struct{} `type:"structure"`
-
- // Directs the specified job to invoke an Lambda function on every object in
- // the manifest.
- LambdaInvoke *LambdaInvokeOperation `type:"structure"`
-
- // Directs the specified job to execute a DELETE Object tagging call on every
- // object in the manifest.
- S3DeleteObjectTagging *S3DeleteObjectTaggingOperation `type:"structure"`
-
- // Directs the specified job to initiate restore requests for every archived
- // object in the manifest.
- S3InitiateRestoreObject *S3InitiateRestoreObjectOperation `type:"structure"`
-
- // Directs the specified job to run a PutObjectAcl call on every object in the
- // manifest.
- S3PutObjectAcl *S3SetObjectAclOperation `type:"structure"`
-
- // Directs the specified job to run a PUT Copy object call on every object in
- // the manifest.
- S3PutObjectCopy *S3CopyObjectOperation `type:"structure"`
-
- // Contains the configuration for an S3 Object Lock legal hold operation that
- // an S3 Batch Operations job passes to every object to the underlying PutObjectLegalHold
- // API operation. For more information, see Using S3 Object Lock legal hold
- // with S3 Batch Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-legal-hold.html)
- // in the Amazon S3 User Guide.
- S3PutObjectLegalHold *S3SetObjectLegalHoldOperation `type:"structure"`
+type ListMultiRegionAccessPointsInput struct {
+ _ struct{} `locationName:"ListMultiRegionAccessPointsRequest" type:"structure"`
- // Contains the configuration parameters for the Object Lock retention action
- // for an S3 Batch Operations job. Batch Operations passes every object to the
- // underlying PutObjectRetention API operation. For more information, see Using
- // S3 Object Lock retention with S3 Batch Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-retention-date.html)
- // in the Amazon S3 User Guide.
- S3PutObjectRetention *S3SetObjectRetentionOperation `type:"structure"`
+ // The Amazon Web Services account ID for the owner of the Multi-Region Access
+ // Point.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // Directs the specified job to run a PUT Object tagging call on every object
- // in the manifest.
- S3PutObjectTagging *S3SetObjectTaggingOperation `type:"structure"`
+ // Not currently used. Do not use this parameter.
+ MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
- // Directs the specified job to invoke ReplicateObject on every object in the
- // job's manifest.
- S3ReplicateObject *S3ReplicateObjectOperation `type:"structure"`
+ // Not currently used. Do not use this parameter.
+ NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation.
@@ -14472,7 +16745,7 @@ type JobOperation struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobOperation) String() string {
+func (s ListMultiRegionAccessPointsInput) String() string {
return awsutil.Prettify(s)
}
@@ -14481,42 +16754,21 @@ func (s JobOperation) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobOperation) GoString() string {
+func (s ListMultiRegionAccessPointsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *JobOperation) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "JobOperation"}
- if s.LambdaInvoke != nil {
- if err := s.LambdaInvoke.Validate(); err != nil {
- invalidParams.AddNested("LambdaInvoke", err.(request.ErrInvalidParams))
- }
- }
- if s.S3PutObjectAcl != nil {
- if err := s.S3PutObjectAcl.Validate(); err != nil {
- invalidParams.AddNested("S3PutObjectAcl", err.(request.ErrInvalidParams))
- }
- }
- if s.S3PutObjectCopy != nil {
- if err := s.S3PutObjectCopy.Validate(); err != nil {
- invalidParams.AddNested("S3PutObjectCopy", err.(request.ErrInvalidParams))
- }
- }
- if s.S3PutObjectLegalHold != nil {
- if err := s.S3PutObjectLegalHold.Validate(); err != nil {
- invalidParams.AddNested("S3PutObjectLegalHold", err.(request.ErrInvalidParams))
- }
+func (s *ListMultiRegionAccessPointsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListMultiRegionAccessPointsInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
- if s.S3PutObjectRetention != nil {
- if err := s.S3PutObjectRetention.Validate(); err != nil {
- invalidParams.AddNested("S3PutObjectRetention", err.(request.ErrInvalidParams))
- }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.S3PutObjectTagging != nil {
- if err := s.S3PutObjectTagging.Validate(); err != nil {
- invalidParams.AddNested("S3PutObjectTagging", err.(request.ErrInvalidParams))
- }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
@@ -14525,73 +16777,41 @@ func (s *JobOperation) Validate() error {
return nil
}
-// SetLambdaInvoke sets the LambdaInvoke field's value.
-func (s *JobOperation) SetLambdaInvoke(v *LambdaInvokeOperation) *JobOperation {
- s.LambdaInvoke = v
- return s
-}
-
-// SetS3DeleteObjectTagging sets the S3DeleteObjectTagging field's value.
-func (s *JobOperation) SetS3DeleteObjectTagging(v *S3DeleteObjectTaggingOperation) *JobOperation {
- s.S3DeleteObjectTagging = v
- return s
-}
-
-// SetS3InitiateRestoreObject sets the S3InitiateRestoreObject field's value.
-func (s *JobOperation) SetS3InitiateRestoreObject(v *S3InitiateRestoreObjectOperation) *JobOperation {
- s.S3InitiateRestoreObject = v
- return s
-}
-
-// SetS3PutObjectAcl sets the S3PutObjectAcl field's value.
-func (s *JobOperation) SetS3PutObjectAcl(v *S3SetObjectAclOperation) *JobOperation {
- s.S3PutObjectAcl = v
- return s
-}
-
-// SetS3PutObjectCopy sets the S3PutObjectCopy field's value.
-func (s *JobOperation) SetS3PutObjectCopy(v *S3CopyObjectOperation) *JobOperation {
- s.S3PutObjectCopy = v
- return s
-}
-
-// SetS3PutObjectLegalHold sets the S3PutObjectLegalHold field's value.
-func (s *JobOperation) SetS3PutObjectLegalHold(v *S3SetObjectLegalHoldOperation) *JobOperation {
- s.S3PutObjectLegalHold = v
+// SetAccountId sets the AccountId field's value.
+func (s *ListMultiRegionAccessPointsInput) SetAccountId(v string) *ListMultiRegionAccessPointsInput {
+ s.AccountId = &v
return s
}
-// SetS3PutObjectRetention sets the S3PutObjectRetention field's value.
-func (s *JobOperation) SetS3PutObjectRetention(v *S3SetObjectRetentionOperation) *JobOperation {
- s.S3PutObjectRetention = v
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListMultiRegionAccessPointsInput) SetMaxResults(v int64) *ListMultiRegionAccessPointsInput {
+ s.MaxResults = &v
return s
}
-// SetS3PutObjectTagging sets the S3PutObjectTagging field's value.
-func (s *JobOperation) SetS3PutObjectTagging(v *S3SetObjectTaggingOperation) *JobOperation {
- s.S3PutObjectTagging = v
+// SetNextToken sets the NextToken field's value.
+func (s *ListMultiRegionAccessPointsInput) SetNextToken(v string) *ListMultiRegionAccessPointsInput {
+ s.NextToken = &v
return s
}
-// SetS3ReplicateObject sets the S3ReplicateObject field's value.
-func (s *JobOperation) SetS3ReplicateObject(v *S3ReplicateObjectOperation) *JobOperation {
- s.S3ReplicateObject = v
- return s
+func (s *ListMultiRegionAccessPointsInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
}
-// Describes the total number of tasks that the specified job has started, the
-// number of tasks that succeeded, and the number of tasks that failed.
-type JobProgressSummary struct {
+type ListMultiRegionAccessPointsOutput struct {
_ struct{} `type:"structure"`
- NumberOfTasksFailed *int64 `type:"long"`
-
- NumberOfTasksSucceeded *int64 `type:"long"`
-
- // The JobTimers attribute of a job's progress summary.
- Timers *JobTimers `type:"structure"`
+ // The list of Multi-Region Access Points associated with the user.
+ AccessPoints []*MultiRegionAccessPointReport `locationNameList:"AccessPoint" type:"list"`
- TotalNumberOfTasks *int64 `type:"long"`
+ // If the specified bucket has more Multi-Region Access Points than can be returned
+ // in one call to this action, this field contains a continuation token. You
+ // can use this token tin subsequent calls to this action to retrieve additional
+ // Multi-Region Access Points.
+ NextToken *string `min:"1" type:"string"`
}
// String returns the string representation.
@@ -14599,7 +16819,7 @@ type JobProgressSummary struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobProgressSummary) String() string {
+func (s ListMultiRegionAccessPointsOutput) String() string {
return awsutil.Prettify(s)
}
@@ -14608,57 +16828,38 @@ func (s JobProgressSummary) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobProgressSummary) GoString() string {
+func (s ListMultiRegionAccessPointsOutput) GoString() string {
return s.String()
}
-// SetNumberOfTasksFailed sets the NumberOfTasksFailed field's value.
-func (s *JobProgressSummary) SetNumberOfTasksFailed(v int64) *JobProgressSummary {
- s.NumberOfTasksFailed = &v
- return s
-}
-
-// SetNumberOfTasksSucceeded sets the NumberOfTasksSucceeded field's value.
-func (s *JobProgressSummary) SetNumberOfTasksSucceeded(v int64) *JobProgressSummary {
- s.NumberOfTasksSucceeded = &v
- return s
-}
-
-// SetTimers sets the Timers field's value.
-func (s *JobProgressSummary) SetTimers(v *JobTimers) *JobProgressSummary {
- s.Timers = v
+// SetAccessPoints sets the AccessPoints field's value.
+func (s *ListMultiRegionAccessPointsOutput) SetAccessPoints(v []*MultiRegionAccessPointReport) *ListMultiRegionAccessPointsOutput {
+ s.AccessPoints = v
return s
}
-// SetTotalNumberOfTasks sets the TotalNumberOfTasks field's value.
-func (s *JobProgressSummary) SetTotalNumberOfTasks(v int64) *JobProgressSummary {
- s.TotalNumberOfTasks = &v
+// SetNextToken sets the NextToken field's value.
+func (s *ListMultiRegionAccessPointsOutput) SetNextToken(v string) *ListMultiRegionAccessPointsOutput {
+ s.NextToken = &v
return s
}
-// Contains the configuration parameters for a job-completion report.
-type JobReport struct {
- _ struct{} `type:"structure"`
-
- // The Amazon Resource Name (ARN) for the bucket where specified job-completion
- // report will be stored.
- Bucket *string `min:"1" type:"string"`
+type ListRegionalBucketsInput struct {
+ _ struct{} `locationName:"ListRegionalBucketsRequest" type:"structure"`
- // Indicates whether the specified job will generate a job-completion report.
+ // The Amazon Web Services account ID of the Outposts bucket.
//
- // Enabled is a required field
- Enabled *bool `type:"boolean" required:"true"`
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The format of the specified job-completion report.
- Format *string `type:"string" enum:"JobReportFormat"`
+ MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
- // An optional prefix to describe where in the specified bucket the job-completion
- // report will be stored. Amazon S3 stores the job-completion report at /job-/report.json.
- Prefix *string `min:"1" type:"string"`
+ NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
- // Indicates whether the job-completion report will include details of all tasks
- // or only failed tasks.
- ReportScope *string `type:"string" enum:"JobReportScope"`
+ // The ID of the Outposts resource.
+ //
+ // This ID is required by Amazon S3 on Outposts buckets.
+ OutpostId *string `location:"header" locationName:"x-amz-outpost-id" min:"1" type:"string"`
}
// String returns the string representation.
@@ -14666,7 +16867,7 @@ type JobReport struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobReport) String() string {
+func (s ListRegionalBucketsInput) String() string {
return awsutil.Prettify(s)
}
@@ -14675,21 +16876,24 @@ func (s JobReport) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobReport) GoString() string {
+func (s ListRegionalBucketsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *JobReport) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "JobReport"}
- if s.Bucket != nil && len(*s.Bucket) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 1))
+func (s *ListRegionalBucketsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListRegionalBucketsInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
- if s.Enabled == nil {
- invalidParams.Add(request.NewErrParamRequired("Enabled"))
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Prefix != nil && len(*s.Prefix) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Prefix", 1))
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+ if s.OutpostId != nil && len(*s.OutpostId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OutpostId", 1))
}
if invalidParams.Len() > 0 {
@@ -14698,43 +16902,59 @@ func (s *JobReport) Validate() error {
return nil
}
-// SetBucket sets the Bucket field's value.
-func (s *JobReport) SetBucket(v string) *JobReport {
- s.Bucket = &v
+// SetAccountId sets the AccountId field's value.
+func (s *ListRegionalBucketsInput) SetAccountId(v string) *ListRegionalBucketsInput {
+ s.AccountId = &v
return s
}
-// SetEnabled sets the Enabled field's value.
-func (s *JobReport) SetEnabled(v bool) *JobReport {
- s.Enabled = &v
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListRegionalBucketsInput) SetMaxResults(v int64) *ListRegionalBucketsInput {
+ s.MaxResults = &v
return s
}
-// SetFormat sets the Format field's value.
-func (s *JobReport) SetFormat(v string) *JobReport {
- s.Format = &v
+// SetNextToken sets the NextToken field's value.
+func (s *ListRegionalBucketsInput) SetNextToken(v string) *ListRegionalBucketsInput {
+ s.NextToken = &v
return s
}
-// SetPrefix sets the Prefix field's value.
-func (s *JobReport) SetPrefix(v string) *JobReport {
- s.Prefix = &v
+// SetOutpostId sets the OutpostId field's value.
+func (s *ListRegionalBucketsInput) SetOutpostId(v string) *ListRegionalBucketsInput {
+ s.OutpostId = &v
return s
}
-// SetReportScope sets the ReportScope field's value.
-func (s *JobReport) SetReportScope(v string) *JobReport {
- s.ReportScope = &v
- return s
+func (s *ListRegionalBucketsInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
}
-// Provides timing details for the job.
-type JobTimers struct {
+func (s *ListRegionalBucketsInput) getOutpostID() (string, error) {
+ if s.OutpostId == nil {
+ return "", fmt.Errorf("member OutpostId is nil")
+ }
+ return *s.OutpostId, nil
+}
+
+func (s *ListRegionalBucketsInput) hasOutpostID() bool {
+ if s.OutpostId == nil {
+ return false
+ }
+ return true
+}
+
+type ListRegionalBucketsOutput struct {
_ struct{} `type:"structure"`
- // Indicates the elapsed time in seconds the job has been in the Active job
- // state.
- ElapsedTimeInActiveSeconds *int64 `type:"long"`
+ // NextToken is sent when isTruncated is true, which means there are more buckets
+ // that can be listed. The next list requests to Amazon S3 can be continued
+ // with this NextToken. NextToken is obfuscated and is not a real key.
+ NextToken *string `min:"1" type:"string"`
+
+ RegionalBucketList []*RegionalBucket `locationNameList:"RegionalBucket" type:"list"`
}
// String returns the string representation.
@@ -14742,7 +16962,7 @@ type JobTimers struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobTimers) String() string {
+func (s ListRegionalBucketsOutput) String() string {
return awsutil.Prettify(s)
}
@@ -14751,23 +16971,47 @@ func (s JobTimers) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s JobTimers) GoString() string {
+func (s ListRegionalBucketsOutput) GoString() string {
return s.String()
}
-// SetElapsedTimeInActiveSeconds sets the ElapsedTimeInActiveSeconds field's value.
-func (s *JobTimers) SetElapsedTimeInActiveSeconds(v int64) *JobTimers {
- s.ElapsedTimeInActiveSeconds = &v
+// SetNextToken sets the NextToken field's value.
+func (s *ListRegionalBucketsOutput) SetNextToken(v string) *ListRegionalBucketsOutput {
+ s.NextToken = &v
return s
}
-// Contains the configuration parameters for a Lambda Invoke operation.
-type LambdaInvokeOperation struct {
+// SetRegionalBucketList sets the RegionalBucketList field's value.
+func (s *ListRegionalBucketsOutput) SetRegionalBucketList(v []*RegionalBucket) *ListRegionalBucketsOutput {
+ s.RegionalBucketList = v
+ return s
+}
+
+// Part of ListStorageLensConfigurationResult. Each entry includes the description
+// of the S3 Storage Lens configuration, its home Region, whether it is enabled,
+// its Amazon Resource Name (ARN), and config ID.
+type ListStorageLensConfigurationEntry struct {
_ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) for the Lambda function that the specified
- // job will invoke on every object in the manifest.
- FunctionArn *string `min:"1" type:"string"`
+ // A container for the S3 Storage Lens home Region. Your metrics data is stored
+ // and retained in your designated S3 Storage Lens home Region.
+ //
+ // HomeRegion is a required field
+ HomeRegion *string `min:"5" type:"string" required:"true"`
+
+ // A container for the S3 Storage Lens configuration ID.
+ //
+ // Id is a required field
+ Id *string `min:"1" type:"string" required:"true"`
+
+ // A container for whether the S3 Storage Lens configuration is enabled. This
+ // property is required.
+ IsEnabled *bool `type:"boolean"`
+
+ // The ARN of the S3 Storage Lens configuration. This property is read-only.
+ //
+ // StorageLensArn is a required field
+ StorageLensArn *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -14775,7 +17019,7 @@ type LambdaInvokeOperation struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LambdaInvokeOperation) String() string {
+func (s ListStorageLensConfigurationEntry) String() string {
return awsutil.Prettify(s)
}
@@ -14784,15 +17028,72 @@ func (s LambdaInvokeOperation) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LambdaInvokeOperation) GoString() string {
+func (s ListStorageLensConfigurationEntry) GoString() string {
+ return s.String()
+}
+
+// SetHomeRegion sets the HomeRegion field's value.
+func (s *ListStorageLensConfigurationEntry) SetHomeRegion(v string) *ListStorageLensConfigurationEntry {
+ s.HomeRegion = &v
+ return s
+}
+
+// SetId sets the Id field's value.
+func (s *ListStorageLensConfigurationEntry) SetId(v string) *ListStorageLensConfigurationEntry {
+ s.Id = &v
+ return s
+}
+
+// SetIsEnabled sets the IsEnabled field's value.
+func (s *ListStorageLensConfigurationEntry) SetIsEnabled(v bool) *ListStorageLensConfigurationEntry {
+ s.IsEnabled = &v
+ return s
+}
+
+// SetStorageLensArn sets the StorageLensArn field's value.
+func (s *ListStorageLensConfigurationEntry) SetStorageLensArn(v string) *ListStorageLensConfigurationEntry {
+ s.StorageLensArn = &v
+ return s
+}
+
+type ListStorageLensConfigurationsInput struct {
+ _ struct{} `locationName:"ListStorageLensConfigurationsRequest" type:"structure"`
+
+ // The account ID of the requester.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+
+ // A pagination token to request the next page of results.
+ NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListStorageLensConfigurationsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListStorageLensConfigurationsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *LambdaInvokeOperation) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LambdaInvokeOperation"}
- if s.FunctionArn != nil && len(*s.FunctionArn) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FunctionArn", 1))
+func (s *ListStorageLensConfigurationsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListStorageLensConfigurationsInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
if invalidParams.Len() > 0 {
@@ -14801,18 +17102,34 @@ func (s *LambdaInvokeOperation) Validate() error {
return nil
}
-// SetFunctionArn sets the FunctionArn field's value.
-func (s *LambdaInvokeOperation) SetFunctionArn(v string) *LambdaInvokeOperation {
- s.FunctionArn = &v
+// SetAccountId sets the AccountId field's value.
+func (s *ListStorageLensConfigurationsInput) SetAccountId(v string) *ListStorageLensConfigurationsInput {
+ s.AccountId = &v
return s
}
-// The container for the Outposts bucket lifecycle configuration.
-type LifecycleConfiguration struct {
+// SetNextToken sets the NextToken field's value.
+func (s *ListStorageLensConfigurationsInput) SetNextToken(v string) *ListStorageLensConfigurationsInput {
+ s.NextToken = &v
+ return s
+}
+
+func (s *ListStorageLensConfigurationsInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
+
+type ListStorageLensConfigurationsOutput struct {
_ struct{} `type:"structure"`
- // A lifecycle rule for individual objects in an Outposts bucket.
- Rules []*LifecycleRule `locationNameList:"Rule" type:"list"`
+ // If the request produced more than the maximum number of S3 Storage Lens configuration
+ // results, you can pass this value into a subsequent request to retrieve the
+ // next page of results.
+ NextToken *string `type:"string"`
+
+ // A list of S3 Storage Lens configurations.
+ StorageLensConfigurationList []*ListStorageLensConfigurationEntry `locationNameList:"StorageLensConfiguration" type:"list" flattened:"true"`
}
// String returns the string representation.
@@ -14820,7 +17137,7 @@ type LifecycleConfiguration struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LifecycleConfiguration) String() string {
+func (s ListStorageLensConfigurationsOutput) String() string {
return awsutil.Prettify(s)
}
@@ -14829,53 +17146,44 @@ func (s LifecycleConfiguration) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LifecycleConfiguration) GoString() string {
+func (s ListStorageLensConfigurationsOutput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *LifecycleConfiguration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LifecycleConfiguration"}
- if s.Rules != nil {
- for i, v := range s.Rules {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams))
- }
- }
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetNextToken sets the NextToken field's value.
+func (s *ListStorageLensConfigurationsOutput) SetNextToken(v string) *ListStorageLensConfigurationsOutput {
+ s.NextToken = &v
+ return s
}
-// SetRules sets the Rules field's value.
-func (s *LifecycleConfiguration) SetRules(v []*LifecycleRule) *LifecycleConfiguration {
- s.Rules = v
+// SetStorageLensConfigurationList sets the StorageLensConfigurationList field's value.
+func (s *ListStorageLensConfigurationsOutput) SetStorageLensConfigurationList(v []*ListStorageLensConfigurationEntry) *ListStorageLensConfigurationsOutput {
+ s.StorageLensConfigurationList = v
return s
}
-// The container of the Outposts bucket lifecycle expiration.
-type LifecycleExpiration struct {
+// Each entry contains a Storage Lens group that exists in the specified home
+// Region.
+type ListStorageLensGroupEntry struct {
_ struct{} `type:"structure"`
- // Indicates at what date the object is to be deleted. Should be in GMT ISO
- // 8601 format.
- Date *time.Time `type:"timestamp"`
+ // Contains the Amazon Web Services Region where the Storage Lens group was
+ // created.
+ //
+ // HomeRegion is a required field
+ HomeRegion *string `min:"5" type:"string" required:"true"`
- // Indicates the lifetime, in days, of the objects that are subject to the rule.
- // The value must be a non-zero positive integer.
- Days *int64 `type:"integer"`
+ // Contains the name of the Storage Lens group that exists in the specified
+ // home Region.
+ //
+ // Name is a required field
+ Name *string `min:"1" type:"string" required:"true"`
- // Indicates whether Amazon S3 will remove a delete marker with no noncurrent
- // versions. If set to true, the delete marker will be expired. If set to false,
- // the policy takes no action. This cannot be specified with Days or Date in
- // a Lifecycle Expiration Policy.
- ExpiredObjectDeleteMarker *bool `type:"boolean"`
+ // Contains the Amazon Resource Name (ARN) of the Storage Lens group. This property
+ // is read-only.
+ //
+ // StorageLensGroupArn is a required field
+ StorageLensGroupArn *string `min:"4" type:"string" required:"true"`
}
// String returns the string representation.
@@ -14883,7 +17191,7 @@ type LifecycleExpiration struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LifecycleExpiration) String() string {
+func (s ListStorageLensGroupEntry) String() string {
return awsutil.Prettify(s)
}
@@ -14892,71 +17200,38 @@ func (s LifecycleExpiration) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LifecycleExpiration) GoString() string {
+func (s ListStorageLensGroupEntry) GoString() string {
return s.String()
}
-// SetDate sets the Date field's value.
-func (s *LifecycleExpiration) SetDate(v time.Time) *LifecycleExpiration {
- s.Date = &v
+// SetHomeRegion sets the HomeRegion field's value.
+func (s *ListStorageLensGroupEntry) SetHomeRegion(v string) *ListStorageLensGroupEntry {
+ s.HomeRegion = &v
return s
}
-// SetDays sets the Days field's value.
-func (s *LifecycleExpiration) SetDays(v int64) *LifecycleExpiration {
- s.Days = &v
+// SetName sets the Name field's value.
+func (s *ListStorageLensGroupEntry) SetName(v string) *ListStorageLensGroupEntry {
+ s.Name = &v
return s
}
-// SetExpiredObjectDeleteMarker sets the ExpiredObjectDeleteMarker field's value.
-func (s *LifecycleExpiration) SetExpiredObjectDeleteMarker(v bool) *LifecycleExpiration {
- s.ExpiredObjectDeleteMarker = &v
+// SetStorageLensGroupArn sets the StorageLensGroupArn field's value.
+func (s *ListStorageLensGroupEntry) SetStorageLensGroupArn(v string) *ListStorageLensGroupEntry {
+ s.StorageLensGroupArn = &v
return s
}
-// The container for the Outposts bucket lifecycle rule.
-type LifecycleRule struct {
- _ struct{} `type:"structure"`
-
- // Specifies the days since the initiation of an incomplete multipart upload
- // that Amazon S3 waits before permanently removing all parts of the upload.
- // For more information, see Aborting Incomplete Multipart Uploads Using a Bucket
- // Lifecycle Configuration (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config)
- // in the Amazon S3 User Guide.
- AbortIncompleteMultipartUpload *AbortIncompleteMultipartUpload `type:"structure"`
-
- // Specifies the expiration for the lifecycle of the object in the form of date,
- // days and, whether the object has a delete marker.
- Expiration *LifecycleExpiration `type:"structure"`
-
- // The container for the filter of lifecycle rule.
- Filter *LifecycleRuleFilter `type:"structure"`
-
- // Unique identifier for the rule. The value cannot be longer than 255 characters.
- ID *string `type:"string"`
-
- // The noncurrent version expiration of the lifecycle rule.
- NoncurrentVersionExpiration *NoncurrentVersionExpiration `type:"structure"`
-
- // Specifies the transition rule for the lifecycle rule that describes when
- // noncurrent objects transition to a specific storage class. If your bucket
- // is versioning-enabled (or versioning is suspended), you can set this action
- // to request that Amazon S3 transition noncurrent object versions to a specific
- // storage class at a set period in the object's lifetime.
- //
- // This is not supported by Amazon S3 on Outposts buckets.
- NoncurrentVersionTransitions []*NoncurrentVersionTransition `locationNameList:"NoncurrentVersionTransition" type:"list"`
+type ListStorageLensGroupsInput struct {
+ _ struct{} `locationName:"ListStorageLensGroupsRequest" type:"structure"`
- // If 'Enabled', the rule is currently being applied. If 'Disabled', the rule
- // is not currently being applied.
+ // The Amazon Web Services account ID that owns the Storage Lens groups.
//
- // Status is a required field
- Status *string `type:"string" required:"true" enum:"ExpirationStatus"`
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // Specifies when an Amazon S3 object transitions to a specified storage class.
- //
- // This is not supported by Amazon S3 on Outposts buckets.
- Transitions []*Transition `locationNameList:"Transition" type:"list"`
+ // The token for the next set of results, or null if there are no more results.
+ NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
// String returns the string representation.
@@ -14964,7 +17239,7 @@ type LifecycleRule struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LifecycleRule) String() string {
+func (s ListStorageLensGroupsInput) String() string {
return awsutil.Prettify(s)
}
@@ -14973,20 +17248,18 @@ func (s LifecycleRule) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LifecycleRule) GoString() string {
+func (s ListStorageLensGroupsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *LifecycleRule) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LifecycleRule"}
- if s.Status == nil {
- invalidParams.Add(request.NewErrParamRequired("Status"))
+func (s *ListStorageLensGroupsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListStorageLensGroupsInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
- if s.Filter != nil {
- if err := s.Filter.Validate(); err != nil {
- invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
- }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
if invalidParams.Len() > 0 {
@@ -14995,70 +17268,80 @@ func (s *LifecycleRule) Validate() error {
return nil
}
-// SetAbortIncompleteMultipartUpload sets the AbortIncompleteMultipartUpload field's value.
-func (s *LifecycleRule) SetAbortIncompleteMultipartUpload(v *AbortIncompleteMultipartUpload) *LifecycleRule {
- s.AbortIncompleteMultipartUpload = v
+// SetAccountId sets the AccountId field's value.
+func (s *ListStorageLensGroupsInput) SetAccountId(v string) *ListStorageLensGroupsInput {
+ s.AccountId = &v
return s
}
-// SetExpiration sets the Expiration field's value.
-func (s *LifecycleRule) SetExpiration(v *LifecycleExpiration) *LifecycleRule {
- s.Expiration = v
+// SetNextToken sets the NextToken field's value.
+func (s *ListStorageLensGroupsInput) SetNextToken(v string) *ListStorageLensGroupsInput {
+ s.NextToken = &v
return s
}
-// SetFilter sets the Filter field's value.
-func (s *LifecycleRule) SetFilter(v *LifecycleRuleFilter) *LifecycleRule {
- s.Filter = v
- return s
+func (s *ListStorageLensGroupsInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
}
-// SetID sets the ID field's value.
-func (s *LifecycleRule) SetID(v string) *LifecycleRule {
- s.ID = &v
- return s
+type ListStorageLensGroupsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // If NextToken is returned, there are more Storage Lens groups results available.
+ // The value of NextToken is a unique pagination token for each page. Make the
+ // call again using the returned token to retrieve the next page. Keep all other
+ // arguments unchanged. Each pagination token expires after 24 hours.
+ NextToken *string `type:"string"`
+
+ // The list of Storage Lens groups that exist in the specified home Region.
+ StorageLensGroupList []*ListStorageLensGroupEntry `locationNameList:"StorageLensGroup" type:"list" flattened:"true"`
}
-// SetNoncurrentVersionExpiration sets the NoncurrentVersionExpiration field's value.
-func (s *LifecycleRule) SetNoncurrentVersionExpiration(v *NoncurrentVersionExpiration) *LifecycleRule {
- s.NoncurrentVersionExpiration = v
- return s
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListStorageLensGroupsOutput) String() string {
+ return awsutil.Prettify(s)
}
-// SetNoncurrentVersionTransitions sets the NoncurrentVersionTransitions field's value.
-func (s *LifecycleRule) SetNoncurrentVersionTransitions(v []*NoncurrentVersionTransition) *LifecycleRule {
- s.NoncurrentVersionTransitions = v
- return s
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListStorageLensGroupsOutput) GoString() string {
+ return s.String()
}
-// SetStatus sets the Status field's value.
-func (s *LifecycleRule) SetStatus(v string) *LifecycleRule {
- s.Status = &v
+// SetNextToken sets the NextToken field's value.
+func (s *ListStorageLensGroupsOutput) SetNextToken(v string) *ListStorageLensGroupsOutput {
+ s.NextToken = &v
return s
}
-// SetTransitions sets the Transitions field's value.
-func (s *LifecycleRule) SetTransitions(v []*Transition) *LifecycleRule {
- s.Transitions = v
+// SetStorageLensGroupList sets the StorageLensGroupList field's value.
+func (s *ListStorageLensGroupsOutput) SetStorageLensGroupList(v []*ListStorageLensGroupEntry) *ListStorageLensGroupsOutput {
+ s.StorageLensGroupList = v
return s
}
-// The container for the Outposts bucket lifecycle rule and operator.
-type LifecycleRuleAndOperator struct {
- _ struct{} `type:"structure"`
-
- // Minimum object size to which the rule applies.
- ObjectSizeGreaterThan *int64 `type:"long"`
-
- // Maximum object size to which the rule applies.
- ObjectSizeLessThan *int64 `type:"long"`
+type ListTagsForResourceInput struct {
+ _ struct{} `locationName:"ListTagsForResourceRequest" type:"structure"`
- // Prefix identifying one or more objects to which the rule applies.
- Prefix *string `type:"string"`
+ // The Amazon Web Services account ID of the resource owner.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // All of these tags must exist in the object's tag set in order for the rule
- // to apply.
- Tags []*S3Tag `type:"list"`
+ // The Amazon Resource Name (ARN) of the S3 resource that you want to list the
+ // tags for.
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
}
// String returns the string representation.
@@ -15066,7 +17349,7 @@ type LifecycleRuleAndOperator struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LifecycleRuleAndOperator) String() string {
+func (s ListTagsForResourceInput) String() string {
return awsutil.Prettify(s)
}
@@ -15075,22 +17358,24 @@ func (s LifecycleRuleAndOperator) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LifecycleRuleAndOperator) GoString() string {
+func (s ListTagsForResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *LifecycleRuleAndOperator) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LifecycleRuleAndOperator"}
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
+func (s *ListTagsForResourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
}
if invalidParams.Len() > 0 {
@@ -15099,53 +17384,67 @@ func (s *LifecycleRuleAndOperator) Validate() error {
return nil
}
-// SetObjectSizeGreaterThan sets the ObjectSizeGreaterThan field's value.
-func (s *LifecycleRuleAndOperator) SetObjectSizeGreaterThan(v int64) *LifecycleRuleAndOperator {
- s.ObjectSizeGreaterThan = &v
+// SetAccountId sets the AccountId field's value.
+func (s *ListTagsForResourceInput) SetAccountId(v string) *ListTagsForResourceInput {
+ s.AccountId = &v
return s
}
-// SetObjectSizeLessThan sets the ObjectSizeLessThan field's value.
-func (s *LifecycleRuleAndOperator) SetObjectSizeLessThan(v int64) *LifecycleRuleAndOperator {
- s.ObjectSizeLessThan = &v
+// SetResourceArn sets the ResourceArn field's value.
+func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
+ s.ResourceArn = &v
return s
}
-// SetPrefix sets the Prefix field's value.
-func (s *LifecycleRuleAndOperator) SetPrefix(v string) *LifecycleRuleAndOperator {
- s.Prefix = &v
- return s
+func (s *ListTagsForResourceInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
}
-// SetTags sets the Tags field's value.
-func (s *LifecycleRuleAndOperator) SetTags(v []*S3Tag) *LifecycleRuleAndOperator {
- s.Tags = v
- return s
+type ListTagsForResourceOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Web Services resource tags that are associated with the resource.
+ Tags []*Tag `locationNameList:"Tag" type:"list"`
}
-// The container for the filter of the lifecycle rule.
-type LifecycleRuleFilter struct {
- _ struct{} `type:"structure"`
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListTagsForResourceOutput) String() string {
+ return awsutil.Prettify(s)
+}
- // The container for the AND condition for the lifecycle rule.
- And *LifecycleRuleAndOperator `type:"structure"`
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListTagsForResourceOutput) GoString() string {
+ return s.String()
+}
- // Minimum object size to which the rule applies.
- ObjectSizeGreaterThan *int64 `type:"long"`
+// SetTags sets the Tags field's value.
+func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput {
+ s.Tags = v
+ return s
+}
- // Maximum object size to which the rule applies.
- ObjectSizeLessThan *int64 `type:"long"`
+// A filter condition that specifies the object age range of included objects
+// in days. Only integers are supported.
+type MatchObjectAge struct {
+ _ struct{} `type:"structure"`
- // Prefix identifying one or more objects to which the rule applies.
- //
- // When you're using XML requests, you must replace special characters (such
- // as carriage returns) in object keys with their equivalent XML entity codes.
- // For more information, see XML-related object key constraints (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints)
- // in the Amazon S3 User Guide.
- Prefix *string `type:"string"`
+ // Specifies the maximum object age in days. Must be a positive whole number,
+ // greater than the minimum object age and less than or equal to 2,147,483,647.
+ DaysGreaterThan *int64 `type:"integer"`
- // A container for a key-value name pair.
- Tag *S3Tag `type:"structure"`
+ // Specifies the minimum object age in days. The value must be a positive whole
+ // number, greater than 0 and less than or equal to 2,147,483,647.
+ DaysLessThan *int64 `type:"integer"`
}
// String returns the string representation.
@@ -15153,7 +17452,7 @@ type LifecycleRuleFilter struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LifecycleRuleFilter) String() string {
+func (s MatchObjectAge) String() string {
return awsutil.Prettify(s)
}
@@ -15162,80 +17461,80 @@ func (s LifecycleRuleFilter) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LifecycleRuleFilter) GoString() string {
+func (s MatchObjectAge) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *LifecycleRuleFilter) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LifecycleRuleFilter"}
- if s.And != nil {
- if err := s.And.Validate(); err != nil {
- invalidParams.AddNested("And", err.(request.ErrInvalidParams))
- }
- }
- if s.Tag != nil {
- if err := s.Tag.Validate(); err != nil {
- invalidParams.AddNested("Tag", err.(request.ErrInvalidParams))
- }
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetDaysGreaterThan sets the DaysGreaterThan field's value.
+func (s *MatchObjectAge) SetDaysGreaterThan(v int64) *MatchObjectAge {
+ s.DaysGreaterThan = &v
+ return s
}
-// SetAnd sets the And field's value.
-func (s *LifecycleRuleFilter) SetAnd(v *LifecycleRuleAndOperator) *LifecycleRuleFilter {
- s.And = v
+// SetDaysLessThan sets the DaysLessThan field's value.
+func (s *MatchObjectAge) SetDaysLessThan(v int64) *MatchObjectAge {
+ s.DaysLessThan = &v
return s
}
-// SetObjectSizeGreaterThan sets the ObjectSizeGreaterThan field's value.
-func (s *LifecycleRuleFilter) SetObjectSizeGreaterThan(v int64) *LifecycleRuleFilter {
- s.ObjectSizeGreaterThan = &v
- return s
+// A filter condition that specifies the object size range of included objects
+// in bytes. Only integers are supported.
+type MatchObjectSize struct {
+ _ struct{} `type:"structure"`
+
+ // Specifies the minimum object size in Bytes. The value must be a positive
+ // number, greater than 0 and less than 5 TB.
+ BytesGreaterThan *int64 `type:"long"`
+
+ // Specifies the maximum object size in Bytes. The value must be a positive
+ // number, greater than the minimum object size and less than 5 TB.
+ BytesLessThan *int64 `type:"long"`
}
-// SetObjectSizeLessThan sets the ObjectSizeLessThan field's value.
-func (s *LifecycleRuleFilter) SetObjectSizeLessThan(v int64) *LifecycleRuleFilter {
- s.ObjectSizeLessThan = &v
- return s
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s MatchObjectSize) String() string {
+ return awsutil.Prettify(s)
}
-// SetPrefix sets the Prefix field's value.
-func (s *LifecycleRuleFilter) SetPrefix(v string) *LifecycleRuleFilter {
- s.Prefix = &v
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s MatchObjectSize) GoString() string {
+ return s.String()
+}
+
+// SetBytesGreaterThan sets the BytesGreaterThan field's value.
+func (s *MatchObjectSize) SetBytesGreaterThan(v int64) *MatchObjectSize {
+ s.BytesGreaterThan = &v
return s
}
-// SetTag sets the Tag field's value.
-func (s *LifecycleRuleFilter) SetTag(v *S3Tag) *LifecycleRuleFilter {
- s.Tag = v
+// SetBytesLessThan sets the BytesLessThan field's value.
+func (s *MatchObjectSize) SetBytesLessThan(v int64) *MatchObjectSize {
+ s.BytesLessThan = &v
return s
}
-type ListAccessPointsForObjectLambdaInput struct {
- _ struct{} `locationName:"ListAccessPointsForObjectLambdaRequest" type:"structure"`
+// A container that specifies replication metrics-related settings.
+type Metrics struct {
+ _ struct{} `type:"structure"`
- // The account ID for the account that owns the specified Object Lambda Access
- // Point.
+ // A container that specifies the time threshold for emitting the s3:Replication:OperationMissedThreshold
+ // event.
//
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
-
- // The maximum number of access points that you want to include in the list.
- // The response may contain fewer access points but will never contain more.
- // If there are more than this number of access points, then the response will
- // include a continuation token in the NextToken field that you can use to retrieve
- // the next page of access points.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
+ // This is not supported by Amazon S3 on Outposts buckets.
+ EventThreshold *ReplicationTimeValue `type:"structure"`
- // If the list has more access points than can be returned in one call to this
- // API, this field contains a continuation token that you can provide in subsequent
- // calls to this API to retrieve additional access points.
- NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
+ // Specifies whether replication metrics are enabled.
+ //
+ // Status is a required field
+ Status *string `type:"string" required:"true" enum:"MetricsStatus"`
}
// String returns the string representation.
@@ -15243,7 +17542,7 @@ type ListAccessPointsForObjectLambdaInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListAccessPointsForObjectLambdaInput) String() string {
+func (s Metrics) String() string {
return awsutil.Prettify(s)
}
@@ -15252,21 +17551,15 @@ func (s ListAccessPointsForObjectLambdaInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListAccessPointsForObjectLambdaInput) GoString() string {
+func (s Metrics) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *ListAccessPointsForObjectLambdaInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListAccessPointsForObjectLambdaInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+func (s *Metrics) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "Metrics"}
+ if s.Status == nil {
+ invalidParams.Add(request.NewErrParamRequired("Status"))
}
if invalidParams.Len() > 0 {
@@ -15275,40 +17568,73 @@ func (s *ListAccessPointsForObjectLambdaInput) Validate() error {
return nil
}
-// SetAccountId sets the AccountId field's value.
-func (s *ListAccessPointsForObjectLambdaInput) SetAccountId(v string) *ListAccessPointsForObjectLambdaInput {
- s.AccountId = &v
+// SetEventThreshold sets the EventThreshold field's value.
+func (s *Metrics) SetEventThreshold(v *ReplicationTimeValue) *Metrics {
+ s.EventThreshold = v
return s
}
-// SetMaxResults sets the MaxResults field's value.
-func (s *ListAccessPointsForObjectLambdaInput) SetMaxResults(v int64) *ListAccessPointsForObjectLambdaInput {
- s.MaxResults = &v
+// SetStatus sets the Status field's value.
+func (s *Metrics) SetStatus(v string) *Metrics {
+ s.Status = &v
return s
}
-// SetNextToken sets the NextToken field's value.
-func (s *ListAccessPointsForObjectLambdaInput) SetNextToken(v string) *ListAccessPointsForObjectLambdaInput {
- s.NextToken = &v
+// The Multi-Region Access Point access control policy.
+//
+// When you update the policy, the update is first listed as the proposed policy.
+// After the update is finished and all Regions have been updated, the proposed
+// policy is listed as the established policy. If both policies have the same
+// version number, the proposed policy is the established policy.
+type MultiRegionAccessPointPolicyDocument struct {
+ _ struct{} `type:"structure"`
+
+ // The last established policy for the Multi-Region Access Point.
+ Established *EstablishedMultiRegionAccessPointPolicy `type:"structure"`
+
+ // The proposed policy for the Multi-Region Access Point.
+ Proposed *ProposedMultiRegionAccessPointPolicy `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s MultiRegionAccessPointPolicyDocument) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s MultiRegionAccessPointPolicyDocument) GoString() string {
+ return s.String()
+}
+
+// SetEstablished sets the Established field's value.
+func (s *MultiRegionAccessPointPolicyDocument) SetEstablished(v *EstablishedMultiRegionAccessPointPolicy) *MultiRegionAccessPointPolicyDocument {
+ s.Established = v
return s
}
-func (s *ListAccessPointsForObjectLambdaInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
+// SetProposed sets the Proposed field's value.
+func (s *MultiRegionAccessPointPolicyDocument) SetProposed(v *ProposedMultiRegionAccessPointPolicy) *MultiRegionAccessPointPolicyDocument {
+ s.Proposed = v
+ return s
}
-type ListAccessPointsForObjectLambdaOutput struct {
+// Status information for a single Multi-Region Access Point Region.
+type MultiRegionAccessPointRegionalResponse struct {
_ struct{} `type:"structure"`
- // If the list has more access points than can be returned in one call to this
- // API, this field contains a continuation token that you can provide in subsequent
- // calls to this API to retrieve additional access points.
- NextToken *string `min:"1" type:"string"`
+ // The name of the Region in the Multi-Region Access Point.
+ Name *string `min:"1" type:"string"`
- // Returns list of Object Lambda Access Points.
- ObjectLambdaAccessPointList []*ObjectLambdaAccessPoint `locationNameList:"ObjectLambdaAccessPoint" type:"list"`
+ // The current status of the Multi-Region Access Point in this Region.
+ RequestStatus *string `type:"string"`
}
// String returns the string representation.
@@ -15316,7 +17642,7 @@ type ListAccessPointsForObjectLambdaOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListAccessPointsForObjectLambdaOutput) String() string {
+func (s MultiRegionAccessPointRegionalResponse) String() string {
return awsutil.Prettify(s)
}
@@ -15325,54 +17651,60 @@ func (s ListAccessPointsForObjectLambdaOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListAccessPointsForObjectLambdaOutput) GoString() string {
+func (s MultiRegionAccessPointRegionalResponse) GoString() string {
return s.String()
}
-// SetNextToken sets the NextToken field's value.
-func (s *ListAccessPointsForObjectLambdaOutput) SetNextToken(v string) *ListAccessPointsForObjectLambdaOutput {
- s.NextToken = &v
+// SetName sets the Name field's value.
+func (s *MultiRegionAccessPointRegionalResponse) SetName(v string) *MultiRegionAccessPointRegionalResponse {
+ s.Name = &v
return s
}
-// SetObjectLambdaAccessPointList sets the ObjectLambdaAccessPointList field's value.
-func (s *ListAccessPointsForObjectLambdaOutput) SetObjectLambdaAccessPointList(v []*ObjectLambdaAccessPoint) *ListAccessPointsForObjectLambdaOutput {
- s.ObjectLambdaAccessPointList = v
+// SetRequestStatus sets the RequestStatus field's value.
+func (s *MultiRegionAccessPointRegionalResponse) SetRequestStatus(v string) *MultiRegionAccessPointRegionalResponse {
+ s.RequestStatus = &v
return s
}
-type ListAccessPointsInput struct {
- _ struct{} `locationName:"ListAccessPointsRequest" type:"structure"`
+// A collection of statuses for a Multi-Region Access Point in the various Regions
+// it supports.
+type MultiRegionAccessPointReport struct {
+ _ struct{} `type:"structure"`
- // The Amazon Web Services account ID for the account that owns the specified
- // access points.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+ // The alias for the Multi-Region Access Point. For more information about the
+ // distinction between the name and the alias of an Multi-Region Access Point,
+ // see Managing Multi-Region Access Points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/CreatingMultiRegionAccessPoints.html#multi-region-access-point-naming).
+ Alias *string `type:"string"`
- // The name of the bucket whose associated access points you want to list.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
+ // When the Multi-Region Access Point create request was received.
+ CreatedAt *time.Time `type:"timestamp"`
+
+ // The name of the Multi-Region Access Point.
+ Name *string `type:"string"`
+
+ // The PublicAccessBlock configuration that you want to apply to this Amazon
+ // S3 account. You can enable the configuration options in any combination.
+ // For more information about when Amazon S3 considers a bucket or object public,
+ // see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status)
+ // in the Amazon S3 User Guide.
//
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the bucket accessed in the format
- // arn:aws:s3-outposts:::outpost//bucket/.
- // For example, to access the bucket reports through Outpost my-outpost owned
- // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
- // The value must be URL encoded.
- Bucket *string `location:"querystring" locationName:"bucket" min:"3" type:"string"`
+ // This data type is not supported for Amazon S3 on Outposts.
+ PublicAccessBlock *PublicAccessBlockConfiguration `type:"structure"`
- // The maximum number of access points that you want to include in the list.
- // If the specified bucket has more than this number of access points, then
- // the response will include a continuation token in the NextToken field that
- // you can use to retrieve the next page of access points.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
+ // A collection of the Regions and buckets associated with the Multi-Region
+ // Access Point.
+ Regions []*RegionReport `locationNameList:"Region" type:"list"`
- // A continuation token. If a previous call to ListAccessPoints returned a continuation
- // token in the NextToken field, then providing that value here causes Amazon
- // S3 to retrieve the next page of results.
- NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
+ // The current status of the Multi-Region Access Point.
+ //
+ // CREATING and DELETING are temporary states that exist while the request is
+ // propagating and being completed. If a Multi-Region Access Point has a status
+ // of PARTIALLY_CREATED, you can retry creation or send a request to delete
+ // the Multi-Region Access Point. If a Multi-Region Access Point has a status
+ // of PARTIALLY_DELETED, you can retry a delete request to finish the deletion
+ // of the Multi-Region Access Point.
+ Status *string `type:"string" enum:"MultiRegionAccessPointStatus"`
}
// String returns the string representation.
@@ -15380,7 +17712,7 @@ type ListAccessPointsInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListAccessPointsInput) String() string {
+func (s MultiRegionAccessPointReport) String() string {
return awsutil.Prettify(s)
}
@@ -15389,114 +17721,86 @@ func (s ListAccessPointsInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListAccessPointsInput) GoString() string {
+func (s MultiRegionAccessPointReport) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *ListAccessPointsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListAccessPointsInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetAccountId sets the AccountId field's value.
-func (s *ListAccessPointsInput) SetAccountId(v string) *ListAccessPointsInput {
- s.AccountId = &v
+// SetAlias sets the Alias field's value.
+func (s *MultiRegionAccessPointReport) SetAlias(v string) *MultiRegionAccessPointReport {
+ s.Alias = &v
return s
}
-// SetBucket sets the Bucket field's value.
-func (s *ListAccessPointsInput) SetBucket(v string) *ListAccessPointsInput {
- s.Bucket = &v
+// SetCreatedAt sets the CreatedAt field's value.
+func (s *MultiRegionAccessPointReport) SetCreatedAt(v time.Time) *MultiRegionAccessPointReport {
+ s.CreatedAt = &v
return s
}
-// SetMaxResults sets the MaxResults field's value.
-func (s *ListAccessPointsInput) SetMaxResults(v int64) *ListAccessPointsInput {
- s.MaxResults = &v
+// SetName sets the Name field's value.
+func (s *MultiRegionAccessPointReport) SetName(v string) *MultiRegionAccessPointReport {
+ s.Name = &v
return s
}
-// SetNextToken sets the NextToken field's value.
-func (s *ListAccessPointsInput) SetNextToken(v string) *ListAccessPointsInput {
- s.NextToken = &v
+// SetPublicAccessBlock sets the PublicAccessBlock field's value.
+func (s *MultiRegionAccessPointReport) SetPublicAccessBlock(v *PublicAccessBlockConfiguration) *MultiRegionAccessPointReport {
+ s.PublicAccessBlock = v
return s
}
-func (s *ListAccessPointsInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
-
-func (s *ListAccessPointsInput) getEndpointARN() (arn.Resource, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- return parseEndpointARN(*s.Bucket)
-}
-
-func (s *ListAccessPointsInput) hasEndpointARN() bool {
- if s.Bucket == nil {
- return false
- }
- return arn.IsARN(*s.Bucket)
-}
-
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s ListAccessPointsInput) updateArnableField(v string) (interface{}, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- s.Bucket = aws.String(v)
- return &s, nil
+// SetRegions sets the Regions field's value.
+func (s *MultiRegionAccessPointReport) SetRegions(v []*RegionReport) *MultiRegionAccessPointReport {
+ s.Regions = v
+ return s
}
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s ListAccessPointsInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
+// SetStatus sets the Status field's value.
+func (s *MultiRegionAccessPointReport) SetStatus(v string) *MultiRegionAccessPointReport {
+ s.Status = &v
+ return s
}
-type ListAccessPointsOutput struct {
+// A structure for a Multi-Region Access Point that indicates where Amazon S3
+// traffic can be routed. Routes can be either active or passive. Active routes
+// can process Amazon S3 requests through the Multi-Region Access Point, but
+// passive routes are not eligible to process Amazon S3 requests.
+//
+// Each route contains the Amazon S3 bucket name and the Amazon Web Services
+// Region that the bucket is located in. The route also includes the TrafficDialPercentage
+// value, which shows whether the bucket and Region are active (indicated by
+// a value of 100) or passive (indicated by a value of 0).
+type MultiRegionAccessPointRoute struct {
_ struct{} `type:"structure"`
- // Contains identification and configuration information for one or more access
- // points associated with the specified bucket.
- AccessPointList []*AccessPoint `locationNameList:"AccessPoint" type:"list"`
+ // The name of the Amazon S3 bucket for which you'll submit a routing configuration
+ // change. Either the Bucket or the Region value must be provided. If both are
+ // provided, the bucket must be in the specified Region.
+ Bucket *string `min:"3" type:"string"`
- // If the specified bucket has more access points than can be returned in one
- // call to this API, this field contains a continuation token that you can provide
- // in subsequent calls to this API to retrieve additional access points.
- NextToken *string `min:"1" type:"string"`
+ // The Amazon Web Services Region to which you'll be submitting a routing configuration
+ // change. Either the Bucket or the Region value must be provided. If both are
+ // provided, the bucket must be in the specified Region.
+ Region *string `min:"1" type:"string"`
+
+ // The traffic state for the specified bucket or Amazon Web Services Region.
+ //
+ // A value of 0 indicates a passive state, which means that no new traffic will
+ // be routed to the Region.
+ //
+ // A value of 100 indicates an active state, which means that traffic will be
+ // routed to the specified Region.
+ //
+ // When the routing configuration for a Region is changed from active to passive,
+ // any in-progress operations (uploads, copies, deletes, and so on) to the formerly
+ // active Region will continue to run to until a final success or failure status
+ // is reached.
+ //
+ // If all Regions in the routing configuration are designated as passive, you'll
+ // receive an InvalidRequest error.
+ //
+ // TrafficDialPercentage is a required field
+ TrafficDialPercentage *int64 `type:"integer" required:"true"`
}
// String returns the string representation.
@@ -15504,7 +17808,7 @@ type ListAccessPointsOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListAccessPointsOutput) String() string {
+func (s MultiRegionAccessPointRoute) String() string {
return awsutil.Prettify(s)
}
@@ -15513,44 +17817,55 @@ func (s ListAccessPointsOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListAccessPointsOutput) GoString() string {
+func (s MultiRegionAccessPointRoute) GoString() string {
return s.String()
}
-// SetAccessPointList sets the AccessPointList field's value.
-func (s *ListAccessPointsOutput) SetAccessPointList(v []*AccessPoint) *ListAccessPointsOutput {
- s.AccessPointList = v
- return s
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *MultiRegionAccessPointRoute) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "MultiRegionAccessPointRoute"}
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ }
+ if s.Region != nil && len(*s.Region) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Region", 1))
+ }
+ if s.TrafficDialPercentage == nil {
+ invalidParams.Add(request.NewErrParamRequired("TrafficDialPercentage"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetNextToken sets the NextToken field's value.
-func (s *ListAccessPointsOutput) SetNextToken(v string) *ListAccessPointsOutput {
- s.NextToken = &v
+// SetBucket sets the Bucket field's value.
+func (s *MultiRegionAccessPointRoute) SetBucket(v string) *MultiRegionAccessPointRoute {
+ s.Bucket = &v
return s
}
-type ListJobsInput struct {
- _ struct{} `locationName:"ListJobsRequest" type:"structure"`
-
- // The Amazon Web Services account ID associated with the S3 Batch Operations
- // job.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+// SetRegion sets the Region field's value.
+func (s *MultiRegionAccessPointRoute) SetRegion(v string) *MultiRegionAccessPointRoute {
+ s.Region = &v
+ return s
+}
- // The List Jobs request returns jobs that match the statuses listed in this
- // element.
- JobStatuses []*string `location:"querystring" locationName:"jobStatuses" type:"list" enum:"JobStatus"`
+// SetTrafficDialPercentage sets the TrafficDialPercentage field's value.
+func (s *MultiRegionAccessPointRoute) SetTrafficDialPercentage(v int64) *MultiRegionAccessPointRoute {
+ s.TrafficDialPercentage = &v
+ return s
+}
- // The maximum number of jobs that Amazon S3 will include in the List Jobs response.
- // If there are more jobs than this number, the response will include a pagination
- // token in the NextToken field to enable you to retrieve the next page of results.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
+// The Multi-Region Access Point details that are returned when querying about
+// an asynchronous request.
+type MultiRegionAccessPointsAsyncResponse struct {
+ _ struct{} `type:"structure"`
- // A pagination token to request the next page of results. Use the token that
- // Amazon S3 returned in the NextToken element of the ListJobsResult from the
- // previous List Jobs request.
- NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
+ // A collection of status information for the different Regions that a Multi-Region
+ // Access Point supports.
+ Regions []*MultiRegionAccessPointRegionalResponse `locationNameList:"Region" type:"list"`
}
// String returns the string representation.
@@ -15558,7 +17873,7 @@ type ListJobsInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListJobsInput) String() string {
+func (s MultiRegionAccessPointsAsyncResponse) String() string {
return awsutil.Prettify(s)
}
@@ -15567,69 +17882,78 @@ func (s ListJobsInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListJobsInput) GoString() string {
+func (s MultiRegionAccessPointsAsyncResponse) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *ListJobsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListJobsInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetRegions sets the Regions field's value.
+func (s *MultiRegionAccessPointsAsyncResponse) SetRegions(v []*MultiRegionAccessPointRegionalResponse) *MultiRegionAccessPointsAsyncResponse {
+ s.Regions = v
+ return s
}
-// SetAccountId sets the AccountId field's value.
-func (s *ListJobsInput) SetAccountId(v string) *ListJobsInput {
- s.AccountId = &v
- return s
+// The container of the noncurrent version expiration.
+type NoncurrentVersionExpiration struct {
+ _ struct{} `type:"structure"`
+
+ // Specifies how many noncurrent versions S3 on Outposts will retain. If there
+ // are this many more recent noncurrent versions, S3 on Outposts will take the
+ // associated action. For more information about noncurrent versions, see Lifecycle
+ // configuration elements (https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html)
+ // in the Amazon S3 User Guide.
+ NewerNoncurrentVersions *int64 `type:"integer"`
+
+ // Specifies the number of days an object is noncurrent before Amazon S3 can
+ // perform the associated action. For information about the noncurrent days
+ // calculations, see How Amazon S3 Calculates When an Object Became Noncurrent
+ // (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations)
+ // in the Amazon S3 User Guide.
+ NoncurrentDays *int64 `type:"integer"`
}
-// SetJobStatuses sets the JobStatuses field's value.
-func (s *ListJobsInput) SetJobStatuses(v []*string) *ListJobsInput {
- s.JobStatuses = v
- return s
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s NoncurrentVersionExpiration) String() string {
+ return awsutil.Prettify(s)
}
-// SetMaxResults sets the MaxResults field's value.
-func (s *ListJobsInput) SetMaxResults(v int64) *ListJobsInput {
- s.MaxResults = &v
- return s
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s NoncurrentVersionExpiration) GoString() string {
+ return s.String()
}
-// SetNextToken sets the NextToken field's value.
-func (s *ListJobsInput) SetNextToken(v string) *ListJobsInput {
- s.NextToken = &v
+// SetNewerNoncurrentVersions sets the NewerNoncurrentVersions field's value.
+func (s *NoncurrentVersionExpiration) SetNewerNoncurrentVersions(v int64) *NoncurrentVersionExpiration {
+ s.NewerNoncurrentVersions = &v
return s
}
-func (s *ListJobsInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
+// SetNoncurrentDays sets the NoncurrentDays field's value.
+func (s *NoncurrentVersionExpiration) SetNoncurrentDays(v int64) *NoncurrentVersionExpiration {
+ s.NoncurrentDays = &v
+ return s
}
-type ListJobsOutput struct {
+// The container for the noncurrent version transition.
+type NoncurrentVersionTransition struct {
_ struct{} `type:"structure"`
- // The list of current jobs and jobs that have ended within the last 30 days.
- Jobs []*JobListDescriptor `type:"list"`
+ // Specifies the number of days an object is noncurrent before Amazon S3 can
+ // perform the associated action. For information about the noncurrent days
+ // calculations, see How Amazon S3 Calculates How Long an Object Has Been Noncurrent
+ // (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations)
+ // in the Amazon S3 User Guide.
+ NoncurrentDays *int64 `type:"integer"`
- // If the List Jobs request produced more than the maximum number of results,
- // you can pass this value into a subsequent List Jobs request in order to retrieve
- // the next page of results.
- NextToken *string `min:"1" type:"string"`
+ // The class of storage used to store the object.
+ StorageClass *string `type:"string" enum:"TransitionStorageClass"`
}
// String returns the string representation.
@@ -15637,7 +17961,7 @@ type ListJobsOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListJobsOutput) String() string {
+func (s NoncurrentVersionTransition) String() string {
return awsutil.Prettify(s)
}
@@ -15646,36 +17970,37 @@ func (s ListJobsOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListJobsOutput) GoString() string {
+func (s NoncurrentVersionTransition) GoString() string {
return s.String()
}
-// SetJobs sets the Jobs field's value.
-func (s *ListJobsOutput) SetJobs(v []*JobListDescriptor) *ListJobsOutput {
- s.Jobs = v
+// SetNoncurrentDays sets the NoncurrentDays field's value.
+func (s *NoncurrentVersionTransition) SetNoncurrentDays(v int64) *NoncurrentVersionTransition {
+ s.NoncurrentDays = &v
return s
}
-// SetNextToken sets the NextToken field's value.
-func (s *ListJobsOutput) SetNextToken(v string) *ListJobsOutput {
- s.NextToken = &v
+// SetStorageClass sets the StorageClass field's value.
+func (s *NoncurrentVersionTransition) SetStorageClass(v string) *NoncurrentVersionTransition {
+ s.StorageClass = &v
return s
}
-type ListMultiRegionAccessPointsInput struct {
- _ struct{} `locationName:"ListMultiRegionAccessPointsRequest" type:"structure"`
+// An access point with an attached Lambda function used to access transformed
+// data from an Amazon S3 bucket.
+type ObjectLambdaAccessPoint struct {
+ _ struct{} `type:"structure"`
- // The Amazon Web Services account ID for the owner of the Multi-Region Access
- // Point.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+ // The alias of the Object Lambda Access Point.
+ Alias *ObjectLambdaAccessPointAlias `type:"structure"`
- // Not currently used. Do not use this parameter.
- MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
+ // The name of the Object Lambda Access Point.
+ //
+ // Name is a required field
+ Name *string `min:"3" type:"string" required:"true"`
- // Not currently used. Do not use this parameter.
- NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
+ // Specifies the ARN for the Object Lambda Access Point.
+ ObjectLambdaAccessPointArn *string `min:"1" type:"string"`
}
// String returns the string representation.
@@ -15683,7 +18008,7 @@ type ListMultiRegionAccessPointsInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListMultiRegionAccessPointsInput) String() string {
+func (s ObjectLambdaAccessPoint) String() string {
return awsutil.Prettify(s)
}
@@ -15692,64 +18017,42 @@ func (s ListMultiRegionAccessPointsInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListMultiRegionAccessPointsInput) GoString() string {
+func (s ObjectLambdaAccessPoint) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *ListMultiRegionAccessPointsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListMultiRegionAccessPointsInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetAccountId sets the AccountId field's value.
-func (s *ListMultiRegionAccessPointsInput) SetAccountId(v string) *ListMultiRegionAccessPointsInput {
- s.AccountId = &v
+// SetAlias sets the Alias field's value.
+func (s *ObjectLambdaAccessPoint) SetAlias(v *ObjectLambdaAccessPointAlias) *ObjectLambdaAccessPoint {
+ s.Alias = v
return s
}
-// SetMaxResults sets the MaxResults field's value.
-func (s *ListMultiRegionAccessPointsInput) SetMaxResults(v int64) *ListMultiRegionAccessPointsInput {
- s.MaxResults = &v
+// SetName sets the Name field's value.
+func (s *ObjectLambdaAccessPoint) SetName(v string) *ObjectLambdaAccessPoint {
+ s.Name = &v
return s
}
-// SetNextToken sets the NextToken field's value.
-func (s *ListMultiRegionAccessPointsInput) SetNextToken(v string) *ListMultiRegionAccessPointsInput {
- s.NextToken = &v
+// SetObjectLambdaAccessPointArn sets the ObjectLambdaAccessPointArn field's value.
+func (s *ObjectLambdaAccessPoint) SetObjectLambdaAccessPointArn(v string) *ObjectLambdaAccessPoint {
+ s.ObjectLambdaAccessPointArn = &v
return s
}
-func (s *ListMultiRegionAccessPointsInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
-
-type ListMultiRegionAccessPointsOutput struct {
+// The alias of an Object Lambda Access Point. For more information, see How
+// to use a bucket-style alias for your S3 bucket Object Lambda Access Point
+// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/olap-use.html#ol-access-points-alias).
+type ObjectLambdaAccessPointAlias struct {
_ struct{} `type:"structure"`
- // The list of Multi-Region Access Points associated with the user.
- AccessPoints []*MultiRegionAccessPointReport `locationNameList:"AccessPoint" type:"list"`
+ // The status of the Object Lambda Access Point alias. If the status is PROVISIONING,
+ // the Object Lambda Access Point is provisioning the alias and the alias is
+ // not ready for use yet. If the status is READY, the Object Lambda Access Point
+ // alias is successfully provisioned and ready for use.
+ Status *string `min:"2" type:"string" enum:"ObjectLambdaAccessPointAliasStatus"`
- // If the specified bucket has more Multi-Region Access Points than can be returned
- // in one call to this action, this field contains a continuation token. You
- // can use this token tin subsequent calls to this action to retrieve additional
- // Multi-Region Access Points.
- NextToken *string `min:"1" type:"string"`
+ // The alias value of the Object Lambda Access Point.
+ Value *string `min:"3" type:"string"`
}
// String returns the string representation.
@@ -15757,7 +18060,7 @@ type ListMultiRegionAccessPointsOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListMultiRegionAccessPointsOutput) String() string {
+func (s ObjectLambdaAccessPointAlias) String() string {
return awsutil.Prettify(s)
}
@@ -15766,38 +18069,43 @@ func (s ListMultiRegionAccessPointsOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListMultiRegionAccessPointsOutput) GoString() string {
+func (s ObjectLambdaAccessPointAlias) GoString() string {
return s.String()
}
-// SetAccessPoints sets the AccessPoints field's value.
-func (s *ListMultiRegionAccessPointsOutput) SetAccessPoints(v []*MultiRegionAccessPointReport) *ListMultiRegionAccessPointsOutput {
- s.AccessPoints = v
+// SetStatus sets the Status field's value.
+func (s *ObjectLambdaAccessPointAlias) SetStatus(v string) *ObjectLambdaAccessPointAlias {
+ s.Status = &v
return s
}
-// SetNextToken sets the NextToken field's value.
-func (s *ListMultiRegionAccessPointsOutput) SetNextToken(v string) *ListMultiRegionAccessPointsOutput {
- s.NextToken = &v
+// SetValue sets the Value field's value.
+func (s *ObjectLambdaAccessPointAlias) SetValue(v string) *ObjectLambdaAccessPointAlias {
+ s.Value = &v
return s
}
-type ListRegionalBucketsInput struct {
- _ struct{} `locationName:"ListRegionalBucketsRequest" type:"structure"`
+// A configuration used when creating an Object Lambda Access Point.
+type ObjectLambdaConfiguration struct {
+ _ struct{} `type:"structure"`
- // The Amazon Web Services account ID of the Outposts bucket.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+ // A container for allowed features. Valid inputs are GetObject-Range, GetObject-PartNumber,
+ // HeadObject-Range, and HeadObject-PartNumber.
+ AllowedFeatures []*string `locationNameList:"AllowedFeature" type:"list" enum:"ObjectLambdaAllowedFeature"`
- MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
+ // A container for whether the CloudWatch metrics configuration is enabled.
+ CloudWatchMetricsEnabled *bool `type:"boolean"`
- NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
+ // Standard access point associated with the Object Lambda Access Point.
+ //
+ // SupportingAccessPoint is a required field
+ SupportingAccessPoint *string `min:"1" type:"string" required:"true"`
- // The ID of the Outposts resource.
+ // A container for transformation configurations for an Object Lambda Access
+ // Point.
//
- // This ID is required by Amazon S3 on Outposts buckets.
- OutpostId *string `location:"header" locationName:"x-amz-outpost-id" min:"1" type:"string"`
+ // TransformationConfigurations is a required field
+ TransformationConfigurations []*ObjectLambdaTransformationConfiguration `locationNameList:"TransformationConfiguration" type:"list" required:"true"`
}
// String returns the string representation.
@@ -15805,7 +18113,7 @@ type ListRegionalBucketsInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListRegionalBucketsInput) String() string {
+func (s ObjectLambdaConfiguration) String() string {
return awsutil.Prettify(s)
}
@@ -15814,85 +18122,69 @@ func (s ListRegionalBucketsInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListRegionalBucketsInput) GoString() string {
+func (s ObjectLambdaConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *ListRegionalBucketsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListRegionalBucketsInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
+func (s *ObjectLambdaConfiguration) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ObjectLambdaConfiguration"}
+ if s.SupportingAccessPoint == nil {
+ invalidParams.Add(request.NewErrParamRequired("SupportingAccessPoint"))
}
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ if s.SupportingAccessPoint != nil && len(*s.SupportingAccessPoint) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("SupportingAccessPoint", 1))
}
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ if s.TransformationConfigurations == nil {
+ invalidParams.Add(request.NewErrParamRequired("TransformationConfigurations"))
}
- if s.OutpostId != nil && len(*s.OutpostId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("OutpostId", 1))
+ if s.TransformationConfigurations != nil {
+ for i, v := range s.TransformationConfigurations {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TransformationConfigurations", i), err.(request.ErrInvalidParams))
+ }
+ }
}
if invalidParams.Len() > 0 {
return invalidParams
}
- return nil
-}
-
-// SetAccountId sets the AccountId field's value.
-func (s *ListRegionalBucketsInput) SetAccountId(v string) *ListRegionalBucketsInput {
- s.AccountId = &v
- return s
-}
-
-// SetMaxResults sets the MaxResults field's value.
-func (s *ListRegionalBucketsInput) SetMaxResults(v int64) *ListRegionalBucketsInput {
- s.MaxResults = &v
- return s
+ return nil
}
-// SetNextToken sets the NextToken field's value.
-func (s *ListRegionalBucketsInput) SetNextToken(v string) *ListRegionalBucketsInput {
- s.NextToken = &v
+// SetAllowedFeatures sets the AllowedFeatures field's value.
+func (s *ObjectLambdaConfiguration) SetAllowedFeatures(v []*string) *ObjectLambdaConfiguration {
+ s.AllowedFeatures = v
return s
}
-// SetOutpostId sets the OutpostId field's value.
-func (s *ListRegionalBucketsInput) SetOutpostId(v string) *ListRegionalBucketsInput {
- s.OutpostId = &v
+// SetCloudWatchMetricsEnabled sets the CloudWatchMetricsEnabled field's value.
+func (s *ObjectLambdaConfiguration) SetCloudWatchMetricsEnabled(v bool) *ObjectLambdaConfiguration {
+ s.CloudWatchMetricsEnabled = &v
return s
}
-func (s *ListRegionalBucketsInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
-
-func (s *ListRegionalBucketsInput) getOutpostID() (string, error) {
- if s.OutpostId == nil {
- return "", fmt.Errorf("member OutpostId is nil")
- }
- return *s.OutpostId, nil
+// SetSupportingAccessPoint sets the SupportingAccessPoint field's value.
+func (s *ObjectLambdaConfiguration) SetSupportingAccessPoint(v string) *ObjectLambdaConfiguration {
+ s.SupportingAccessPoint = &v
+ return s
}
-func (s *ListRegionalBucketsInput) hasOutpostID() bool {
- if s.OutpostId == nil {
- return false
- }
- return true
+// SetTransformationConfigurations sets the TransformationConfigurations field's value.
+func (s *ObjectLambdaConfiguration) SetTransformationConfigurations(v []*ObjectLambdaTransformationConfiguration) *ObjectLambdaConfiguration {
+ s.TransformationConfigurations = v
+ return s
}
-type ListRegionalBucketsOutput struct {
+// A container for AwsLambdaTransformation.
+type ObjectLambdaContentTransformation struct {
_ struct{} `type:"structure"`
- // NextToken is sent when isTruncated is true, which means there are more buckets
- // that can be listed. The next list requests to Amazon S3 can be continued
- // with this NextToken. NextToken is obfuscated and is not a real key.
- NextToken *string `min:"1" type:"string"`
-
- RegionalBucketList []*RegionalBucket `locationNameList:"RegionalBucket" type:"list"`
+ // A container for an Lambda function.
+ AwsLambda *AwsLambdaTransformation `type:"structure"`
}
// String returns the string representation.
@@ -15900,7 +18192,7 @@ type ListRegionalBucketsOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListRegionalBucketsOutput) String() string {
+func (s ObjectLambdaContentTransformation) String() string {
return awsutil.Prettify(s)
}
@@ -15909,47 +18201,46 @@ func (s ListRegionalBucketsOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListRegionalBucketsOutput) GoString() string {
+func (s ObjectLambdaContentTransformation) GoString() string {
return s.String()
}
-// SetNextToken sets the NextToken field's value.
-func (s *ListRegionalBucketsOutput) SetNextToken(v string) *ListRegionalBucketsOutput {
- s.NextToken = &v
- return s
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ObjectLambdaContentTransformation) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ObjectLambdaContentTransformation"}
+ if s.AwsLambda != nil {
+ if err := s.AwsLambda.Validate(); err != nil {
+ invalidParams.AddNested("AwsLambda", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetRegionalBucketList sets the RegionalBucketList field's value.
-func (s *ListRegionalBucketsOutput) SetRegionalBucketList(v []*RegionalBucket) *ListRegionalBucketsOutput {
- s.RegionalBucketList = v
+// SetAwsLambda sets the AwsLambda field's value.
+func (s *ObjectLambdaContentTransformation) SetAwsLambda(v *AwsLambdaTransformation) *ObjectLambdaContentTransformation {
+ s.AwsLambda = v
return s
}
-// Part of ListStorageLensConfigurationResult. Each entry includes the description
-// of the S3 Storage Lens configuration, its home Region, whether it is enabled,
-// its Amazon Resource Name (ARN), and config ID.
-type ListStorageLensConfigurationEntry struct {
+// A configuration used when creating an Object Lambda Access Point transformation.
+type ObjectLambdaTransformationConfiguration struct {
_ struct{} `type:"structure"`
- // A container for the S3 Storage Lens home Region. Your metrics data is stored
- // and retained in your designated S3 Storage Lens home Region.
- //
- // HomeRegion is a required field
- HomeRegion *string `min:"5" type:"string" required:"true"`
-
- // A container for the S3 Storage Lens configuration ID.
+ // A container for the action of an Object Lambda Access Point configuration.
+ // Valid inputs are GetObject, ListObjects, HeadObject, and ListObjectsV2.
//
- // Id is a required field
- Id *string `min:"1" type:"string" required:"true"`
-
- // A container for whether the S3 Storage Lens configuration is enabled. This
- // property is required.
- IsEnabled *bool `type:"boolean"`
+ // Actions is a required field
+ Actions []*string `locationNameList:"Action" type:"list" required:"true" enum:"ObjectLambdaTransformationConfigurationAction"`
- // The ARN of the S3 Storage Lens configuration. This property is read-only.
+ // A container for the content transformation of an Object Lambda Access Point
+ // configuration.
//
- // StorageLensArn is a required field
- StorageLensArn *string `min:"1" type:"string" required:"true"`
+ // ContentTransformation is a required field
+ ContentTransformation *ObjectLambdaContentTransformation `type:"structure" required:"true"`
}
// String returns the string representation.
@@ -15957,7 +18248,7 @@ type ListStorageLensConfigurationEntry struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListStorageLensConfigurationEntry) String() string {
+func (s ObjectLambdaTransformationConfiguration) String() string {
return awsutil.Prettify(s)
}
@@ -15966,44 +18257,51 @@ func (s ListStorageLensConfigurationEntry) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListStorageLensConfigurationEntry) GoString() string {
+func (s ObjectLambdaTransformationConfiguration) GoString() string {
return s.String()
}
-// SetHomeRegion sets the HomeRegion field's value.
-func (s *ListStorageLensConfigurationEntry) SetHomeRegion(v string) *ListStorageLensConfigurationEntry {
- s.HomeRegion = &v
- return s
-}
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ObjectLambdaTransformationConfiguration) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ObjectLambdaTransformationConfiguration"}
+ if s.Actions == nil {
+ invalidParams.Add(request.NewErrParamRequired("Actions"))
+ }
+ if s.ContentTransformation == nil {
+ invalidParams.Add(request.NewErrParamRequired("ContentTransformation"))
+ }
+ if s.ContentTransformation != nil {
+ if err := s.ContentTransformation.Validate(); err != nil {
+ invalidParams.AddNested("ContentTransformation", err.(request.ErrInvalidParams))
+ }
+ }
-// SetId sets the Id field's value.
-func (s *ListStorageLensConfigurationEntry) SetId(v string) *ListStorageLensConfigurationEntry {
- s.Id = &v
- return s
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetIsEnabled sets the IsEnabled field's value.
-func (s *ListStorageLensConfigurationEntry) SetIsEnabled(v bool) *ListStorageLensConfigurationEntry {
- s.IsEnabled = &v
+// SetActions sets the Actions field's value.
+func (s *ObjectLambdaTransformationConfiguration) SetActions(v []*string) *ObjectLambdaTransformationConfiguration {
+ s.Actions = v
return s
}
-// SetStorageLensArn sets the StorageLensArn field's value.
-func (s *ListStorageLensConfigurationEntry) SetStorageLensArn(v string) *ListStorageLensConfigurationEntry {
- s.StorageLensArn = &v
+// SetContentTransformation sets the ContentTransformation field's value.
+func (s *ObjectLambdaTransformationConfiguration) SetContentTransformation(v *ObjectLambdaContentTransformation) *ObjectLambdaTransformationConfiguration {
+ s.ContentTransformation = v
return s
}
-type ListStorageLensConfigurationsInput struct {
- _ struct{} `locationName:"ListStorageLensConfigurationsRequest" type:"structure"`
-
- // The account ID of the requester.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+// Indicates whether this access point policy is public. For more information
+// about how Amazon S3 evaluates policies to determine whether they are public,
+// see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status)
+// in the Amazon S3 User Guide.
+type PolicyStatus struct {
+ _ struct{} `type:"structure"`
- // A pagination token to request the next page of results.
- NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
+ IsPublic *bool `locationName:"IsPublic" type:"boolean"`
}
// String returns the string representation.
@@ -16011,7 +18309,7 @@ type ListStorageLensConfigurationsInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListStorageLensConfigurationsInput) String() string {
+func (s PolicyStatus) String() string {
return awsutil.Prettify(s)
}
@@ -16020,54 +18318,24 @@ func (s ListStorageLensConfigurationsInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListStorageLensConfigurationsInput) GoString() string {
+func (s PolicyStatus) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *ListStorageLensConfigurationsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListStorageLensConfigurationsInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetAccountId sets the AccountId field's value.
-func (s *ListStorageLensConfigurationsInput) SetAccountId(v string) *ListStorageLensConfigurationsInput {
- s.AccountId = &v
- return s
-}
-
-// SetNextToken sets the NextToken field's value.
-func (s *ListStorageLensConfigurationsInput) SetNextToken(v string) *ListStorageLensConfigurationsInput {
- s.NextToken = &v
+// SetIsPublic sets the IsPublic field's value.
+func (s *PolicyStatus) SetIsPublic(v bool) *PolicyStatus {
+ s.IsPublic = &v
return s
}
-func (s *ListStorageLensConfigurationsInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
-
-type ListStorageLensConfigurationsOutput struct {
+// A container for the prefix-level configuration.
+type PrefixLevel struct {
_ struct{} `type:"structure"`
- // If the request produced more than the maximum number of S3 Storage Lens configuration
- // results, you can pass this value into a subsequent request to retrieve the
- // next page of results.
- NextToken *string `type:"string"`
-
- // A list of S3 Storage Lens configurations.
- StorageLensConfigurationList []*ListStorageLensConfigurationEntry `locationNameList:"StorageLensConfiguration" type:"list" flattened:"true"`
+ // A container for the prefix-level storage metrics for S3 Storage Lens.
+ //
+ // StorageMetrics is a required field
+ StorageMetrics *PrefixLevelStorageMetrics `type:"structure" required:"true"`
}
// String returns the string representation.
@@ -16075,7 +18343,7 @@ type ListStorageLensConfigurationsOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListStorageLensConfigurationsOutput) String() string {
+func (s PrefixLevel) String() string {
return awsutil.Prettify(s)
}
@@ -16084,36 +18352,42 @@ func (s ListStorageLensConfigurationsOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListStorageLensConfigurationsOutput) GoString() string {
+func (s PrefixLevel) GoString() string {
return s.String()
}
-// SetNextToken sets the NextToken field's value.
-func (s *ListStorageLensConfigurationsOutput) SetNextToken(v string) *ListStorageLensConfigurationsOutput {
- s.NextToken = &v
- return s
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PrefixLevel) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PrefixLevel"}
+ if s.StorageMetrics == nil {
+ invalidParams.Add(request.NewErrParamRequired("StorageMetrics"))
+ }
+ if s.StorageMetrics != nil {
+ if err := s.StorageMetrics.Validate(); err != nil {
+ invalidParams.AddNested("StorageMetrics", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetStorageLensConfigurationList sets the StorageLensConfigurationList field's value.
-func (s *ListStorageLensConfigurationsOutput) SetStorageLensConfigurationList(v []*ListStorageLensConfigurationEntry) *ListStorageLensConfigurationsOutput {
- s.StorageLensConfigurationList = v
+// SetStorageMetrics sets the StorageMetrics field's value.
+func (s *PrefixLevel) SetStorageMetrics(v *PrefixLevelStorageMetrics) *PrefixLevel {
+ s.StorageMetrics = v
return s
}
-// A container that specifies replication metrics-related settings.
-type Metrics struct {
+// A container for the prefix-level storage metrics for S3 Storage Lens.
+type PrefixLevelStorageMetrics struct {
_ struct{} `type:"structure"`
- // A container that specifies the time threshold for emitting the s3:Replication:OperationMissedThreshold
- // event.
- //
- // This is not supported by Amazon S3 on Outposts buckets.
- EventThreshold *ReplicationTimeValue `type:"structure"`
+ // A container for whether prefix-level storage metrics are enabled.
+ IsEnabled *bool `type:"boolean"`
- // Specifies whether replication metrics are enabled.
- //
- // Status is a required field
- Status *string `type:"string" required:"true" enum:"MetricsStatus"`
+ SelectionCriteria *SelectionCriteria `type:"structure"`
}
// String returns the string representation.
@@ -16121,7 +18395,7 @@ type Metrics struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s Metrics) String() string {
+func (s PrefixLevelStorageMetrics) String() string {
return awsutil.Prettify(s)
}
@@ -16130,15 +18404,17 @@ func (s Metrics) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s Metrics) GoString() string {
+func (s PrefixLevelStorageMetrics) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *Metrics) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Metrics"}
- if s.Status == nil {
- invalidParams.Add(request.NewErrParamRequired("Status"))
+func (s *PrefixLevelStorageMetrics) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PrefixLevelStorageMetrics"}
+ if s.SelectionCriteria != nil {
+ if err := s.SelectionCriteria.Validate(); err != nil {
+ invalidParams.AddNested("SelectionCriteria", err.(request.ErrInvalidParams))
+ }
}
if invalidParams.Len() > 0 {
@@ -16147,32 +18423,29 @@ func (s *Metrics) Validate() error {
return nil
}
-// SetEventThreshold sets the EventThreshold field's value.
-func (s *Metrics) SetEventThreshold(v *ReplicationTimeValue) *Metrics {
- s.EventThreshold = v
+// SetIsEnabled sets the IsEnabled field's value.
+func (s *PrefixLevelStorageMetrics) SetIsEnabled(v bool) *PrefixLevelStorageMetrics {
+ s.IsEnabled = &v
return s
}
-// SetStatus sets the Status field's value.
-func (s *Metrics) SetStatus(v string) *Metrics {
- s.Status = &v
+// SetSelectionCriteria sets the SelectionCriteria field's value.
+func (s *PrefixLevelStorageMetrics) SetSelectionCriteria(v *SelectionCriteria) *PrefixLevelStorageMetrics {
+ s.SelectionCriteria = v
return s
}
-// The Multi-Region Access Point access control policy.
+// The proposed access control policy for the Multi-Region Access Point.
//
// When you update the policy, the update is first listed as the proposed policy.
// After the update is finished and all Regions have been updated, the proposed
// policy is listed as the established policy. If both policies have the same
// version number, the proposed policy is the established policy.
-type MultiRegionAccessPointPolicyDocument struct {
+type ProposedMultiRegionAccessPointPolicy struct {
_ struct{} `type:"structure"`
- // The last established policy for the Multi-Region Access Point.
- Established *EstablishedMultiRegionAccessPointPolicy `type:"structure"`
-
- // The proposed policy for the Multi-Region Access Point.
- Proposed *ProposedMultiRegionAccessPointPolicy `type:"structure"`
+ // The details of the proposed policy.
+ Policy *string `type:"string"`
}
// String returns the string representation.
@@ -16180,7 +18453,7 @@ type MultiRegionAccessPointPolicyDocument struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s MultiRegionAccessPointPolicyDocument) String() string {
+func (s ProposedMultiRegionAccessPointPolicy) String() string {
return awsutil.Prettify(s)
}
@@ -16189,101 +18462,71 @@ func (s MultiRegionAccessPointPolicyDocument) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s MultiRegionAccessPointPolicyDocument) GoString() string {
+func (s ProposedMultiRegionAccessPointPolicy) GoString() string {
return s.String()
}
-// SetEstablished sets the Established field's value.
-func (s *MultiRegionAccessPointPolicyDocument) SetEstablished(v *EstablishedMultiRegionAccessPointPolicy) *MultiRegionAccessPointPolicyDocument {
- s.Established = v
- return s
-}
-
-// SetProposed sets the Proposed field's value.
-func (s *MultiRegionAccessPointPolicyDocument) SetProposed(v *ProposedMultiRegionAccessPointPolicy) *MultiRegionAccessPointPolicyDocument {
- s.Proposed = v
+// SetPolicy sets the Policy field's value.
+func (s *ProposedMultiRegionAccessPointPolicy) SetPolicy(v string) *ProposedMultiRegionAccessPointPolicy {
+ s.Policy = &v
return s
}
-// Status information for a single Multi-Region Access Point Region.
-type MultiRegionAccessPointRegionalResponse struct {
- _ struct{} `type:"structure"`
-
- // The name of the Region in the Multi-Region Access Point.
- Name *string `min:"1" type:"string"`
-
- // The current status of the Multi-Region Access Point in this Region.
- RequestStatus *string `type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s MultiRegionAccessPointRegionalResponse) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
+// The PublicAccessBlock configuration that you want to apply to this Amazon
+// S3 account. You can enable the configuration options in any combination.
+// For more information about when Amazon S3 considers a bucket or object public,
+// see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status)
+// in the Amazon S3 User Guide.
//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s MultiRegionAccessPointRegionalResponse) GoString() string {
- return s.String()
-}
-
-// SetName sets the Name field's value.
-func (s *MultiRegionAccessPointRegionalResponse) SetName(v string) *MultiRegionAccessPointRegionalResponse {
- s.Name = &v
- return s
-}
-
-// SetRequestStatus sets the RequestStatus field's value.
-func (s *MultiRegionAccessPointRegionalResponse) SetRequestStatus(v string) *MultiRegionAccessPointRegionalResponse {
- s.RequestStatus = &v
- return s
-}
-
-// A collection of statuses for a Multi-Region Access Point in the various Regions
-// it supports.
-type MultiRegionAccessPointReport struct {
+// This data type is not supported for Amazon S3 on Outposts.
+type PublicAccessBlockConfiguration struct {
_ struct{} `type:"structure"`
- // The alias for the Multi-Region Access Point. For more information about the
- // distinction between the name and the alias of an Multi-Region Access Point,
- // see Managing Multi-Region Access Points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/CreatingMultiRegionAccessPoints.html#multi-region-access-point-naming).
- Alias *string `type:"string"`
-
- // When the Multi-Region Access Point create request was received.
- CreatedAt *time.Time `type:"timestamp"`
-
- // The name of the Multi-Region Access Point.
- Name *string `type:"string"`
+ // Specifies whether Amazon S3 should block public access control lists (ACLs)
+ // for buckets in this account. Setting this element to TRUE causes the following
+ // behavior:
+ //
+ // * PutBucketAcl and PutObjectAcl calls fail if the specified ACL is public.
+ //
+ // * PUT Object calls fail if the request includes a public ACL.
+ //
+ // * PUT Bucket calls fail if the request includes a public ACL.
+ //
+ // Enabling this setting doesn't affect existing policies or ACLs.
+ //
+ // This property is not supported for Amazon S3 on Outposts.
+ BlockPublicAcls *bool `locationName:"BlockPublicAcls" type:"boolean"`
- // The PublicAccessBlock configuration that you want to apply to this Amazon
- // S3 account. You can enable the configuration options in any combination.
- // For more information about when Amazon S3 considers a bucket or object public,
- // see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status)
- // in the Amazon S3 User Guide.
+ // Specifies whether Amazon S3 should block public bucket policies for buckets
+ // in this account. Setting this element to TRUE causes Amazon S3 to reject
+ // calls to PUT Bucket policy if the specified bucket policy allows public access.
//
- // This data type is not supported for Amazon S3 on Outposts.
- PublicAccessBlock *PublicAccessBlockConfiguration `type:"structure"`
+ // Enabling this setting doesn't affect existing bucket policies.
+ //
+ // This property is not supported for Amazon S3 on Outposts.
+ BlockPublicPolicy *bool `locationName:"BlockPublicPolicy" type:"boolean"`
- // A collection of the Regions and buckets associated with the Multi-Region
- // Access Point.
- Regions []*RegionReport `locationNameList:"Region" type:"list"`
+ // Specifies whether Amazon S3 should ignore public ACLs for buckets in this
+ // account. Setting this element to TRUE causes Amazon S3 to ignore all public
+ // ACLs on buckets in this account and any objects that they contain.
+ //
+ // Enabling this setting doesn't affect the persistence of any existing ACLs
+ // and doesn't prevent new public ACLs from being set.
+ //
+ // This property is not supported for Amazon S3 on Outposts.
+ IgnorePublicAcls *bool `locationName:"IgnorePublicAcls" type:"boolean"`
- // The current status of the Multi-Region Access Point.
+ // Specifies whether Amazon S3 should restrict public bucket policies for buckets
+ // in this account. Setting this element to TRUE restricts access to buckets
+ // with public policies to only Amazon Web Service principals and authorized
+ // users within this account.
//
- // CREATING and DELETING are temporary states that exist while the request is
- // propagating and being completed. If a Multi-Region Access Point has a status
- // of PARTIALLY_CREATED, you can retry creation or send a request to delete
- // the Multi-Region Access Point. If a Multi-Region Access Point has a status
- // of PARTIALLY_DELETED, you can retry a delete request to finish the deletion
- // of the Multi-Region Access Point.
- Status *string `type:"string" enum:"MultiRegionAccessPointStatus"`
+ // Enabling this setting doesn't affect previously stored bucket policies, except
+ // that public and cross-account access within any public bucket policy, including
+ // non-public delegation to specific accounts, is blocked.
+ //
+ // This property is not supported for Amazon S3 on Outposts.
+ RestrictPublicBuckets *bool `locationName:"RestrictPublicBuckets" type:"boolean"`
}
// String returns the string representation.
@@ -16291,7 +18534,7 @@ type MultiRegionAccessPointReport struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s MultiRegionAccessPointReport) String() string {
+func (s PublicAccessBlockConfiguration) String() string {
return awsutil.Prettify(s)
}
@@ -16300,86 +18543,52 @@ func (s MultiRegionAccessPointReport) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s MultiRegionAccessPointReport) GoString() string {
+func (s PublicAccessBlockConfiguration) GoString() string {
return s.String()
}
-// SetAlias sets the Alias field's value.
-func (s *MultiRegionAccessPointReport) SetAlias(v string) *MultiRegionAccessPointReport {
- s.Alias = &v
- return s
-}
-
-// SetCreatedAt sets the CreatedAt field's value.
-func (s *MultiRegionAccessPointReport) SetCreatedAt(v time.Time) *MultiRegionAccessPointReport {
- s.CreatedAt = &v
- return s
-}
-
-// SetName sets the Name field's value.
-func (s *MultiRegionAccessPointReport) SetName(v string) *MultiRegionAccessPointReport {
- s.Name = &v
+// SetBlockPublicAcls sets the BlockPublicAcls field's value.
+func (s *PublicAccessBlockConfiguration) SetBlockPublicAcls(v bool) *PublicAccessBlockConfiguration {
+ s.BlockPublicAcls = &v
return s
}
-// SetPublicAccessBlock sets the PublicAccessBlock field's value.
-func (s *MultiRegionAccessPointReport) SetPublicAccessBlock(v *PublicAccessBlockConfiguration) *MultiRegionAccessPointReport {
- s.PublicAccessBlock = v
+// SetBlockPublicPolicy sets the BlockPublicPolicy field's value.
+func (s *PublicAccessBlockConfiguration) SetBlockPublicPolicy(v bool) *PublicAccessBlockConfiguration {
+ s.BlockPublicPolicy = &v
return s
}
-// SetRegions sets the Regions field's value.
-func (s *MultiRegionAccessPointReport) SetRegions(v []*RegionReport) *MultiRegionAccessPointReport {
- s.Regions = v
+// SetIgnorePublicAcls sets the IgnorePublicAcls field's value.
+func (s *PublicAccessBlockConfiguration) SetIgnorePublicAcls(v bool) *PublicAccessBlockConfiguration {
+ s.IgnorePublicAcls = &v
return s
}
-// SetStatus sets the Status field's value.
-func (s *MultiRegionAccessPointReport) SetStatus(v string) *MultiRegionAccessPointReport {
- s.Status = &v
+// SetRestrictPublicBuckets sets the RestrictPublicBuckets field's value.
+func (s *PublicAccessBlockConfiguration) SetRestrictPublicBuckets(v bool) *PublicAccessBlockConfiguration {
+ s.RestrictPublicBuckets = &v
return s
}
-// A structure for a Multi-Region Access Point that indicates where Amazon S3
-// traffic can be routed. Routes can be either active or passive. Active routes
-// can process Amazon S3 requests through the Multi-Region Access Point, but
-// passive routes are not eligible to process Amazon S3 requests.
-//
-// Each route contains the Amazon S3 bucket name and the Amazon Web Services
-// Region that the bucket is located in. The route also includes the TrafficDialPercentage
-// value, which shows whether the bucket and Region are active (indicated by
-// a value of 100) or passive (indicated by a value of 0).
-type MultiRegionAccessPointRoute struct {
- _ struct{} `type:"structure"`
-
- // The name of the Amazon S3 bucket for which you'll submit a routing configuration
- // change. Either the Bucket or the Region value must be provided. If both are
- // provided, the bucket must be in the specified Region.
- Bucket *string `min:"3" type:"string"`
-
- // The Amazon Web Services Region to which you'll be submitting a routing configuration
- // change. Either the Bucket or the Region value must be provided. If both are
- // provided, the bucket must be in the specified Region.
- Region *string `min:"1" type:"string"`
+type PutAccessPointConfigurationForObjectLambdaInput struct {
+ _ struct{} `locationName:"PutAccessPointConfigurationForObjectLambdaRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
- // The traffic state for the specified bucket or Amazon Web Services Region.
- //
- // A value of 0 indicates a passive state, which means that no new traffic will
- // be routed to the Region.
- //
- // A value of 100 indicates an active state, which means that traffic will be
- // routed to the specified Region.
+ // The account ID for the account that owns the specified Object Lambda Access
+ // Point.
//
- // When the routing configuration for a Region is changed from active to passive,
- // any in-progress operations (uploads, copies, deletes, and so on) to the formerly
- // active Region will continue to run to until a final success or failure status
- // is reached.
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+
+ // Object Lambda Access Point configuration document.
//
- // If all Regions in the routing configuration are designated as passive, you'll
- // receive an InvalidRequest error.
+ // Configuration is a required field
+ Configuration *ObjectLambdaConfiguration `type:"structure" required:"true"`
+
+ // The name of the Object Lambda Access Point.
//
- // TrafficDialPercentage is a required field
- TrafficDialPercentage *int64 `type:"integer" required:"true"`
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
}
// String returns the string representation.
@@ -16387,7 +18596,7 @@ type MultiRegionAccessPointRoute struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s MultiRegionAccessPointRoute) String() string {
+func (s PutAccessPointConfigurationForObjectLambdaInput) String() string {
return awsutil.Prettify(s)
}
@@ -16396,21 +18605,32 @@ func (s MultiRegionAccessPointRoute) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s MultiRegionAccessPointRoute) GoString() string {
+func (s PutAccessPointConfigurationForObjectLambdaInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *MultiRegionAccessPointRoute) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "MultiRegionAccessPointRoute"}
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+func (s *PutAccessPointConfigurationForObjectLambdaInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutAccessPointConfigurationForObjectLambdaInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
- if s.Region != nil && len(*s.Region) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Region", 1))
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.TrafficDialPercentage == nil {
- invalidParams.Add(request.NewErrParamRequired("TrafficDialPercentage"))
+ if s.Configuration == nil {
+ invalidParams.Add(request.NewErrParamRequired("Configuration"))
+ }
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ }
+ if s.Configuration != nil {
+ if err := s.Configuration.Validate(); err != nil {
+ invalidParams.AddNested("Configuration", err.(request.ErrInvalidParams))
+ }
}
if invalidParams.Len() > 0 {
@@ -16419,32 +18639,32 @@ func (s *MultiRegionAccessPointRoute) Validate() error {
return nil
}
-// SetBucket sets the Bucket field's value.
-func (s *MultiRegionAccessPointRoute) SetBucket(v string) *MultiRegionAccessPointRoute {
- s.Bucket = &v
+// SetAccountId sets the AccountId field's value.
+func (s *PutAccessPointConfigurationForObjectLambdaInput) SetAccountId(v string) *PutAccessPointConfigurationForObjectLambdaInput {
+ s.AccountId = &v
return s
}
-// SetRegion sets the Region field's value.
-func (s *MultiRegionAccessPointRoute) SetRegion(v string) *MultiRegionAccessPointRoute {
- s.Region = &v
+// SetConfiguration sets the Configuration field's value.
+func (s *PutAccessPointConfigurationForObjectLambdaInput) SetConfiguration(v *ObjectLambdaConfiguration) *PutAccessPointConfigurationForObjectLambdaInput {
+ s.Configuration = v
return s
}
-// SetTrafficDialPercentage sets the TrafficDialPercentage field's value.
-func (s *MultiRegionAccessPointRoute) SetTrafficDialPercentage(v int64) *MultiRegionAccessPointRoute {
- s.TrafficDialPercentage = &v
+// SetName sets the Name field's value.
+func (s *PutAccessPointConfigurationForObjectLambdaInput) SetName(v string) *PutAccessPointConfigurationForObjectLambdaInput {
+ s.Name = &v
return s
}
-// The Multi-Region Access Point details that are returned when querying about
-// an asynchronous request.
-type MultiRegionAccessPointsAsyncResponse struct {
- _ struct{} `type:"structure"`
+func (s *PutAccessPointConfigurationForObjectLambdaInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
- // A collection of status information for the different Regions that a Multi-Region
- // Access Point supports.
- Regions []*MultiRegionAccessPointRegionalResponse `locationNameList:"Region" type:"list"`
+type PutAccessPointConfigurationForObjectLambdaOutput struct {
+ _ struct{} `type:"structure"`
}
// String returns the string representation.
@@ -16452,7 +18672,7 @@ type MultiRegionAccessPointsAsyncResponse struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s MultiRegionAccessPointsAsyncResponse) String() string {
+func (s PutAccessPointConfigurationForObjectLambdaOutput) String() string {
return awsutil.Prettify(s)
}
@@ -16461,33 +18681,28 @@ func (s MultiRegionAccessPointsAsyncResponse) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s MultiRegionAccessPointsAsyncResponse) GoString() string {
+func (s PutAccessPointConfigurationForObjectLambdaOutput) GoString() string {
return s.String()
}
-// SetRegions sets the Regions field's value.
-func (s *MultiRegionAccessPointsAsyncResponse) SetRegions(v []*MultiRegionAccessPointRegionalResponse) *MultiRegionAccessPointsAsyncResponse {
- s.Regions = v
- return s
-}
+type PutAccessPointPolicyForObjectLambdaInput struct {
+ _ struct{} `locationName:"PutAccessPointPolicyForObjectLambdaRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
-// The container of the noncurrent version expiration.
-type NoncurrentVersionExpiration struct {
- _ struct{} `type:"structure"`
+ // The account ID for the account that owns the specified Object Lambda Access
+ // Point.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // Specifies how many noncurrent versions S3 on Outposts will retain. If there
- // are this many more recent noncurrent versions, S3 on Outposts will take the
- // associated action. For more information about noncurrent versions, see Lifecycle
- // configuration elements (https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html)
- // in the Amazon S3 User Guide.
- NewerNoncurrentVersions *int64 `type:"integer"`
+ // The name of the Object Lambda Access Point.
+ //
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
- // Specifies the number of days an object is noncurrent before Amazon S3 can
- // perform the associated action. For information about the noncurrent days
- // calculations, see How Amazon S3 Calculates When an Object Became Noncurrent
- // (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations)
- // in the Amazon S3 User Guide.
- NoncurrentDays *int64 `type:"integer"`
+ // Object Lambda Access Point resource policy document.
+ //
+ // Policy is a required field
+ Policy *string `type:"string" required:"true"`
}
// String returns the string representation.
@@ -16495,7 +18710,7 @@ type NoncurrentVersionExpiration struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s NoncurrentVersionExpiration) String() string {
+func (s PutAccessPointPolicyForObjectLambdaInput) String() string {
return awsutil.Prettify(s)
}
@@ -16504,35 +18719,61 @@ func (s NoncurrentVersionExpiration) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s NoncurrentVersionExpiration) GoString() string {
+func (s PutAccessPointPolicyForObjectLambdaInput) GoString() string {
return s.String()
}
-// SetNewerNoncurrentVersions sets the NewerNoncurrentVersions field's value.
-func (s *NoncurrentVersionExpiration) SetNewerNoncurrentVersions(v int64) *NoncurrentVersionExpiration {
- s.NewerNoncurrentVersions = &v
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PutAccessPointPolicyForObjectLambdaInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutAccessPointPolicyForObjectLambdaInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ }
+ if s.Policy == nil {
+ invalidParams.Add(request.NewErrParamRequired("Policy"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *PutAccessPointPolicyForObjectLambdaInput) SetAccountId(v string) *PutAccessPointPolicyForObjectLambdaInput {
+ s.AccountId = &v
return s
}
-// SetNoncurrentDays sets the NoncurrentDays field's value.
-func (s *NoncurrentVersionExpiration) SetNoncurrentDays(v int64) *NoncurrentVersionExpiration {
- s.NoncurrentDays = &v
+// SetName sets the Name field's value.
+func (s *PutAccessPointPolicyForObjectLambdaInput) SetName(v string) *PutAccessPointPolicyForObjectLambdaInput {
+ s.Name = &v
return s
}
-// The container for the noncurrent version transition.
-type NoncurrentVersionTransition struct {
- _ struct{} `type:"structure"`
+// SetPolicy sets the Policy field's value.
+func (s *PutAccessPointPolicyForObjectLambdaInput) SetPolicy(v string) *PutAccessPointPolicyForObjectLambdaInput {
+ s.Policy = &v
+ return s
+}
- // Specifies the number of days an object is noncurrent before Amazon S3 can
- // perform the associated action. For information about the noncurrent days
- // calculations, see How Amazon S3 Calculates How Long an Object Has Been Noncurrent
- // (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations)
- // in the Amazon S3 User Guide.
- NoncurrentDays *int64 `type:"integer"`
+func (s *PutAccessPointPolicyForObjectLambdaInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
- // The class of storage used to store the object.
- StorageClass *string `type:"string" enum:"TransitionStorageClass"`
+type PutAccessPointPolicyForObjectLambdaOutput struct {
+ _ struct{} `type:"structure"`
}
// String returns the string representation.
@@ -16540,7 +18781,7 @@ type NoncurrentVersionTransition struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s NoncurrentVersionTransition) String() string {
+func (s PutAccessPointPolicyForObjectLambdaOutput) String() string {
return awsutil.Prettify(s)
}
@@ -16549,37 +18790,43 @@ func (s NoncurrentVersionTransition) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s NoncurrentVersionTransition) GoString() string {
+func (s PutAccessPointPolicyForObjectLambdaOutput) GoString() string {
return s.String()
}
-// SetNoncurrentDays sets the NoncurrentDays field's value.
-func (s *NoncurrentVersionTransition) SetNoncurrentDays(v int64) *NoncurrentVersionTransition {
- s.NoncurrentDays = &v
- return s
-}
-
-// SetStorageClass sets the StorageClass field's value.
-func (s *NoncurrentVersionTransition) SetStorageClass(v string) *NoncurrentVersionTransition {
- s.StorageClass = &v
- return s
-}
-
-// An access point with an attached Lambda function used to access transformed
-// data from an Amazon S3 bucket.
-type ObjectLambdaAccessPoint struct {
- _ struct{} `type:"structure"`
+type PutAccessPointPolicyInput struct {
+ _ struct{} `locationName:"PutAccessPointPolicyRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
- // The alias of the Object Lambda Access Point.
- Alias *ObjectLambdaAccessPointAlias `type:"structure"`
+ // The Amazon Web Services account ID for owner of the bucket associated with
+ // the specified access point.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The name of the Object Lambda Access Point.
+ // The name of the access point that you want to associate with the specified
+ // policy.
+ //
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
+ //
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the access point accessed in the
+ // format arn:aws:s3-outposts:::outpost//accesspoint/.
+ // For example, to access the access point reports-ap through Outpost my-outpost
+ // owned by account 123456789012 in Region us-west-2, use the URL encoding of
+ // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap.
+ // The value must be URL encoded.
//
// Name is a required field
- Name *string `min:"3" type:"string" required:"true"`
+ Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
- // Specifies the ARN for the Object Lambda Access Point.
- ObjectLambdaAccessPointArn *string `min:"1" type:"string"`
+ // The policy that you want to apply to the specified access point. For more
+ // information about access point policies, see Managing data access with Amazon
+ // S3 access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html)
+ // in the Amazon S3 User Guide.
+ //
+ // Policy is a required field
+ Policy *string `type:"string" required:"true"`
}
// String returns the string representation.
@@ -16587,7 +18834,7 @@ type ObjectLambdaAccessPoint struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ObjectLambdaAccessPoint) String() string {
+func (s PutAccessPointPolicyInput) String() string {
return awsutil.Prettify(s)
}
@@ -16596,42 +18843,102 @@ func (s ObjectLambdaAccessPoint) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ObjectLambdaAccessPoint) GoString() string {
+func (s PutAccessPointPolicyInput) GoString() string {
return s.String()
}
-// SetAlias sets the Alias field's value.
-func (s *ObjectLambdaAccessPoint) SetAlias(v *ObjectLambdaAccessPointAlias) *ObjectLambdaAccessPoint {
- s.Alias = v
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PutAccessPointPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutAccessPointPolicyInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ }
+ if s.Policy == nil {
+ invalidParams.Add(request.NewErrParamRequired("Policy"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *PutAccessPointPolicyInput) SetAccountId(v string) *PutAccessPointPolicyInput {
+ s.AccountId = &v
return s
}
// SetName sets the Name field's value.
-func (s *ObjectLambdaAccessPoint) SetName(v string) *ObjectLambdaAccessPoint {
+func (s *PutAccessPointPolicyInput) SetName(v string) *PutAccessPointPolicyInput {
s.Name = &v
return s
}
-// SetObjectLambdaAccessPointArn sets the ObjectLambdaAccessPointArn field's value.
-func (s *ObjectLambdaAccessPoint) SetObjectLambdaAccessPointArn(v string) *ObjectLambdaAccessPoint {
- s.ObjectLambdaAccessPointArn = &v
+// SetPolicy sets the Policy field's value.
+func (s *PutAccessPointPolicyInput) SetPolicy(v string) *PutAccessPointPolicyInput {
+ s.Policy = &v
return s
}
-// The alias of an Object Lambda Access Point. For more information, see How
-// to use a bucket-style alias for your S3 bucket Object Lambda Access Point
-// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/olap-use.html#ol-access-points-alias).
-type ObjectLambdaAccessPointAlias struct {
- _ struct{} `type:"structure"`
+func (s *PutAccessPointPolicyInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
- // The status of the Object Lambda Access Point alias. If the status is PROVISIONING,
- // the Object Lambda Access Point is provisioning the alias and the alias is
- // not ready for use yet. If the status is READY, the Object Lambda Access Point
- // alias is successfully provisioned and ready for use.
- Status *string `min:"2" type:"string" enum:"ObjectLambdaAccessPointAliasStatus"`
+func (s *PutAccessPointPolicyInput) getEndpointARN() (arn.Resource, error) {
+ if s.Name == nil {
+ return nil, fmt.Errorf("member Name is nil")
+ }
+ return parseEndpointARN(*s.Name)
+}
- // The alias value of the Object Lambda Access Point.
- Value *string `min:"3" type:"string"`
+func (s *PutAccessPointPolicyInput) hasEndpointARN() bool {
+ if s.Name == nil {
+ return false
+ }
+ return arn.IsARN(*s.Name)
+}
+
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s PutAccessPointPolicyInput) updateArnableField(v string) (interface{}, error) {
+ if s.Name == nil {
+ return nil, fmt.Errorf("member Name is nil")
+ }
+ s.Name = aws.String(v)
+ return &s, nil
+}
+
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s PutAccessPointPolicyInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
+}
+
+type PutAccessPointPolicyOutput struct {
+ _ struct{} `type:"structure"`
}
// String returns the string representation.
@@ -16639,7 +18946,7 @@ type ObjectLambdaAccessPointAlias struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ObjectLambdaAccessPointAlias) String() string {
+func (s PutAccessPointPolicyOutput) String() string {
return awsutil.Prettify(s)
}
@@ -16648,43 +18955,25 @@ func (s ObjectLambdaAccessPointAlias) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ObjectLambdaAccessPointAlias) GoString() string {
+func (s PutAccessPointPolicyOutput) GoString() string {
return s.String()
}
-// SetStatus sets the Status field's value.
-func (s *ObjectLambdaAccessPointAlias) SetStatus(v string) *ObjectLambdaAccessPointAlias {
- s.Status = &v
- return s
-}
-
-// SetValue sets the Value field's value.
-func (s *ObjectLambdaAccessPointAlias) SetValue(v string) *ObjectLambdaAccessPointAlias {
- s.Value = &v
- return s
-}
-
-// A configuration used when creating an Object Lambda Access Point.
-type ObjectLambdaConfiguration struct {
- _ struct{} `type:"structure"`
-
- // A container for allowed features. Valid inputs are GetObject-Range, GetObject-PartNumber,
- // HeadObject-Range, and HeadObject-PartNumber.
- AllowedFeatures []*string `locationNameList:"AllowedFeature" type:"list" enum:"ObjectLambdaAllowedFeature"`
-
- // A container for whether the CloudWatch metrics configuration is enabled.
- CloudWatchMetricsEnabled *bool `type:"boolean"`
+type PutBucketLifecycleConfigurationInput struct {
+ _ struct{} `locationName:"PutBucketLifecycleConfigurationRequest" type:"structure" payload:"LifecycleConfiguration"`
- // Standard access point associated with the Object Lambda Access Point.
+ // The Amazon Web Services account ID of the Outposts bucket.
//
- // SupportingAccessPoint is a required field
- SupportingAccessPoint *string `min:"1" type:"string" required:"true"`
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // A container for transformation configurations for an Object Lambda Access
- // Point.
+ // The name of the bucket for which to set the configuration.
//
- // TransformationConfigurations is a required field
- TransformationConfigurations []*ObjectLambdaTransformationConfiguration `locationNameList:"TransformationConfiguration" type:"list" required:"true"`
+ // Bucket is a required field
+ Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+
+ // Container for lifecycle rules. You can add as many as 1,000 rules.
+ LifecycleConfiguration *LifecycleConfiguration `locationName:"LifecycleConfiguration" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
}
// String returns the string representation.
@@ -16692,7 +18981,7 @@ type ObjectLambdaConfiguration struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ObjectLambdaConfiguration) String() string {
+func (s PutBucketLifecycleConfigurationInput) String() string {
return awsutil.Prettify(s)
}
@@ -16701,30 +18990,28 @@ func (s ObjectLambdaConfiguration) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ObjectLambdaConfiguration) GoString() string {
+func (s PutBucketLifecycleConfigurationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *ObjectLambdaConfiguration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ObjectLambdaConfiguration"}
- if s.SupportingAccessPoint == nil {
- invalidParams.Add(request.NewErrParamRequired("SupportingAccessPoint"))
+func (s *PutBucketLifecycleConfigurationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutBucketLifecycleConfigurationInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
- if s.SupportingAccessPoint != nil && len(*s.SupportingAccessPoint) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SupportingAccessPoint", 1))
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.TransformationConfigurations == nil {
- invalidParams.Add(request.NewErrParamRequired("TransformationConfigurations"))
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
}
- if s.TransformationConfigurations != nil {
- for i, v := range s.TransformationConfigurations {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TransformationConfigurations", i), err.(request.ErrInvalidParams))
- }
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ }
+ if s.LifecycleConfiguration != nil {
+ if err := s.LifecycleConfiguration.Validate(); err != nil {
+ invalidParams.AddNested("LifecycleConfiguration", err.(request.ErrInvalidParams))
}
}
@@ -16734,36 +19021,73 @@ func (s *ObjectLambdaConfiguration) Validate() error {
return nil
}
-// SetAllowedFeatures sets the AllowedFeatures field's value.
-func (s *ObjectLambdaConfiguration) SetAllowedFeatures(v []*string) *ObjectLambdaConfiguration {
- s.AllowedFeatures = v
+// SetAccountId sets the AccountId field's value.
+func (s *PutBucketLifecycleConfigurationInput) SetAccountId(v string) *PutBucketLifecycleConfigurationInput {
+ s.AccountId = &v
return s
}
-// SetCloudWatchMetricsEnabled sets the CloudWatchMetricsEnabled field's value.
-func (s *ObjectLambdaConfiguration) SetCloudWatchMetricsEnabled(v bool) *ObjectLambdaConfiguration {
- s.CloudWatchMetricsEnabled = &v
+// SetBucket sets the Bucket field's value.
+func (s *PutBucketLifecycleConfigurationInput) SetBucket(v string) *PutBucketLifecycleConfigurationInput {
+ s.Bucket = &v
return s
}
-// SetSupportingAccessPoint sets the SupportingAccessPoint field's value.
-func (s *ObjectLambdaConfiguration) SetSupportingAccessPoint(v string) *ObjectLambdaConfiguration {
- s.SupportingAccessPoint = &v
+// SetLifecycleConfiguration sets the LifecycleConfiguration field's value.
+func (s *PutBucketLifecycleConfigurationInput) SetLifecycleConfiguration(v *LifecycleConfiguration) *PutBucketLifecycleConfigurationInput {
+ s.LifecycleConfiguration = v
return s
}
-// SetTransformationConfigurations sets the TransformationConfigurations field's value.
-func (s *ObjectLambdaConfiguration) SetTransformationConfigurations(v []*ObjectLambdaTransformationConfiguration) *ObjectLambdaConfiguration {
- s.TransformationConfigurations = v
- return s
+func (s *PutBucketLifecycleConfigurationInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
}
-// A container for AwsLambdaTransformation.
-type ObjectLambdaContentTransformation struct {
- _ struct{} `type:"structure"`
+func (s *PutBucketLifecycleConfigurationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
- // A container for an Lambda function.
- AwsLambda *AwsLambdaTransformation `type:"structure"`
+func (s *PutBucketLifecycleConfigurationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s PutBucketLifecycleConfigurationInput) updateArnableField(v string) (interface{}, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ s.Bucket = aws.String(v)
+ return &s, nil
+}
+
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s PutBucketLifecycleConfigurationInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
+}
+
+type PutBucketLifecycleConfigurationOutput struct {
+ _ struct{} `type:"structure"`
}
// String returns the string representation.
@@ -16771,7 +19095,7 @@ type ObjectLambdaContentTransformation struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ObjectLambdaContentTransformation) String() string {
+func (s PutBucketLifecycleConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
@@ -16780,46 +19104,43 @@ func (s ObjectLambdaContentTransformation) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ObjectLambdaContentTransformation) GoString() string {
+func (s PutBucketLifecycleConfigurationOutput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *ObjectLambdaContentTransformation) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ObjectLambdaContentTransformation"}
- if s.AwsLambda != nil {
- if err := s.AwsLambda.Validate(); err != nil {
- invalidParams.AddNested("AwsLambda", err.(request.ErrInvalidParams))
- }
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
+type PutBucketPolicyInput struct {
+ _ struct{} `locationName:"PutBucketPolicyRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
-// SetAwsLambda sets the AwsLambda field's value.
-func (s *ObjectLambdaContentTransformation) SetAwsLambda(v *AwsLambdaTransformation) *ObjectLambdaContentTransformation {
- s.AwsLambda = v
- return s
-}
+ // The Amazon Web Services account ID of the Outposts bucket.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
-// A configuration used when creating an Object Lambda Access Point transformation.
-type ObjectLambdaTransformationConfiguration struct {
- _ struct{} `type:"structure"`
+ // Specifies the bucket.
+ //
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
+ //
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the bucket accessed in the format
+ // arn:aws:s3-outposts:::outpost//bucket/.
+ // For example, to access the bucket reports through Outpost my-outpost owned
+ // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
+ // The value must be URL encoded.
+ //
+ // Bucket is a required field
+ Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
- // A container for the action of an Object Lambda Access Point configuration.
- // Valid inputs are GetObject, ListObjects, HeadObject, and ListObjectsV2.
+ // Set this parameter to true to confirm that you want to remove your permissions
+ // to change this bucket policy in the future.
//
- // Actions is a required field
- Actions []*string `locationNameList:"Action" type:"list" required:"true" enum:"ObjectLambdaTransformationConfigurationAction"`
+ // This is not supported by Amazon S3 on Outposts buckets.
+ ConfirmRemoveSelfBucketAccess *bool `location:"header" locationName:"x-amz-confirm-remove-self-bucket-access" type:"boolean"`
- // A container for the content transformation of an Object Lambda Access Point
- // configuration.
+ // The bucket policy as a JSON document.
//
- // ContentTransformation is a required field
- ContentTransformation *ObjectLambdaContentTransformation `type:"structure" required:"true"`
+ // Policy is a required field
+ Policy *string `type:"string" required:"true"`
}
// String returns the string representation.
@@ -16827,7 +19148,7 @@ type ObjectLambdaTransformationConfiguration struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ObjectLambdaTransformationConfiguration) String() string {
+func (s PutBucketPolicyInput) String() string {
return awsutil.Prettify(s)
}
@@ -16836,23 +19157,27 @@ func (s ObjectLambdaTransformationConfiguration) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ObjectLambdaTransformationConfiguration) GoString() string {
+func (s PutBucketPolicyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *ObjectLambdaTransformationConfiguration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ObjectLambdaTransformationConfiguration"}
- if s.Actions == nil {
- invalidParams.Add(request.NewErrParamRequired("Actions"))
+func (s *PutBucketPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutBucketPolicyInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
- if s.ContentTransformation == nil {
- invalidParams.Add(request.NewErrParamRequired("ContentTransformation"))
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.ContentTransformation != nil {
- if err := s.ContentTransformation.Validate(); err != nil {
- invalidParams.AddNested("ContentTransformation", err.(request.ErrInvalidParams))
- }
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
+ }
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ }
+ if s.Policy == nil {
+ invalidParams.Add(request.NewErrParamRequired("Policy"))
}
if invalidParams.Len() > 0 {
@@ -16861,60 +19186,79 @@ func (s *ObjectLambdaTransformationConfiguration) Validate() error {
return nil
}
-// SetActions sets the Actions field's value.
-func (s *ObjectLambdaTransformationConfiguration) SetActions(v []*string) *ObjectLambdaTransformationConfiguration {
- s.Actions = v
+// SetAccountId sets the AccountId field's value.
+func (s *PutBucketPolicyInput) SetAccountId(v string) *PutBucketPolicyInput {
+ s.AccountId = &v
return s
}
-// SetContentTransformation sets the ContentTransformation field's value.
-func (s *ObjectLambdaTransformationConfiguration) SetContentTransformation(v *ObjectLambdaContentTransformation) *ObjectLambdaTransformationConfiguration {
- s.ContentTransformation = v
+// SetBucket sets the Bucket field's value.
+func (s *PutBucketPolicyInput) SetBucket(v string) *PutBucketPolicyInput {
+ s.Bucket = &v
return s
}
-// Indicates whether this access point policy is public. For more information
-// about how Amazon S3 evaluates policies to determine whether they are public,
-// see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status)
-// in the Amazon S3 User Guide.
-type PolicyStatus struct {
- _ struct{} `type:"structure"`
+// SetConfirmRemoveSelfBucketAccess sets the ConfirmRemoveSelfBucketAccess field's value.
+func (s *PutBucketPolicyInput) SetConfirmRemoveSelfBucketAccess(v bool) *PutBucketPolicyInput {
+ s.ConfirmRemoveSelfBucketAccess = &v
+ return s
+}
- IsPublic *bool `locationName:"IsPublic" type:"boolean"`
+// SetPolicy sets the Policy field's value.
+func (s *PutBucketPolicyInput) SetPolicy(v string) *PutBucketPolicyInput {
+ s.Policy = &v
+ return s
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s PolicyStatus) String() string {
- return awsutil.Prettify(s)
+func (s *PutBucketPolicyInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s PolicyStatus) GoString() string {
- return s.String()
+func (s *PutBucketPolicyInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
}
-// SetIsPublic sets the IsPublic field's value.
-func (s *PolicyStatus) SetIsPublic(v bool) *PolicyStatus {
- s.IsPublic = &v
- return s
+func (s *PutBucketPolicyInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
}
-// A container for the prefix-level configuration.
-type PrefixLevel struct {
- _ struct{} `type:"structure"`
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s PutBucketPolicyInput) updateArnableField(v string) (interface{}, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ s.Bucket = aws.String(v)
+ return &s, nil
+}
- // A container for the prefix-level storage metrics for S3 Storage Lens.
- //
- // StorageMetrics is a required field
- StorageMetrics *PrefixLevelStorageMetrics `type:"structure" required:"true"`
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s PutBucketPolicyInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
+}
+
+type PutBucketPolicyOutput struct {
+ _ struct{} `type:"structure"`
}
// String returns the string representation.
@@ -16922,7 +19266,7 @@ type PrefixLevel struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PrefixLevel) String() string {
+func (s PutBucketPolicyOutput) String() string {
return awsutil.Prettify(s)
}
@@ -16931,42 +19275,39 @@ func (s PrefixLevel) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PrefixLevel) GoString() string {
+func (s PutBucketPolicyOutput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *PrefixLevel) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PrefixLevel"}
- if s.StorageMetrics == nil {
- invalidParams.Add(request.NewErrParamRequired("StorageMetrics"))
- }
- if s.StorageMetrics != nil {
- if err := s.StorageMetrics.Validate(); err != nil {
- invalidParams.AddNested("StorageMetrics", err.(request.ErrInvalidParams))
- }
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetStorageMetrics sets the StorageMetrics field's value.
-func (s *PrefixLevel) SetStorageMetrics(v *PrefixLevelStorageMetrics) *PrefixLevel {
- s.StorageMetrics = v
- return s
-}
+type PutBucketReplicationInput struct {
+ _ struct{} `locationName:"PutBucketReplicationRequest" type:"structure" payload:"ReplicationConfiguration"`
-// A container for the prefix-level storage metrics for S3 Storage Lens.
-type PrefixLevelStorageMetrics struct {
- _ struct{} `type:"structure"`
+ // The Amazon Web Services account ID of the Outposts bucket.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // A container for whether prefix-level storage metrics are enabled.
- IsEnabled *bool `type:"boolean"`
+ // Specifies the S3 on Outposts bucket to set the configuration for.
+ //
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
+ //
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the bucket accessed in the format
+ // arn:aws:s3-outposts:::outpost//bucket/.
+ // For example, to access the bucket reports through Outpost my-outpost owned
+ // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
+ // The value must be URL encoded.
+ //
+ // Bucket is a required field
+ Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
- SelectionCriteria *SelectionCriteria `type:"structure"`
+ // A container for one or more replication rules. A replication configuration
+ // must have at least one rule and you can add up to 100 rules. The maximum
+ // size of a replication configuration is 128 KB.
+ //
+ // ReplicationConfiguration is a required field
+ ReplicationConfiguration *ReplicationConfiguration `locationName:"ReplicationConfiguration" type:"structure" required:"true" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
}
// String returns the string representation.
@@ -16974,7 +19315,7 @@ type PrefixLevelStorageMetrics struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PrefixLevelStorageMetrics) String() string {
+func (s PutBucketReplicationInput) String() string {
return awsutil.Prettify(s)
}
@@ -16983,16 +19324,31 @@ func (s PrefixLevelStorageMetrics) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PrefixLevelStorageMetrics) GoString() string {
+func (s PutBucketReplicationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *PrefixLevelStorageMetrics) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PrefixLevelStorageMetrics"}
- if s.SelectionCriteria != nil {
- if err := s.SelectionCriteria.Validate(); err != nil {
- invalidParams.AddNested("SelectionCriteria", err.(request.ErrInvalidParams))
+func (s *PutBucketReplicationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutBucketReplicationInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
+ }
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ }
+ if s.ReplicationConfiguration == nil {
+ invalidParams.Add(request.NewErrParamRequired("ReplicationConfiguration"))
+ }
+ if s.ReplicationConfiguration != nil {
+ if err := s.ReplicationConfiguration.Validate(); err != nil {
+ invalidParams.AddNested("ReplicationConfiguration", err.(request.ErrInvalidParams))
}
}
@@ -17002,110 +19358,73 @@ func (s *PrefixLevelStorageMetrics) Validate() error {
return nil
}
-// SetIsEnabled sets the IsEnabled field's value.
-func (s *PrefixLevelStorageMetrics) SetIsEnabled(v bool) *PrefixLevelStorageMetrics {
- s.IsEnabled = &v
+// SetAccountId sets the AccountId field's value.
+func (s *PutBucketReplicationInput) SetAccountId(v string) *PutBucketReplicationInput {
+ s.AccountId = &v
+ return s
+}
+
+// SetBucket sets the Bucket field's value.
+func (s *PutBucketReplicationInput) SetBucket(v string) *PutBucketReplicationInput {
+ s.Bucket = &v
return s
}
-// SetSelectionCriteria sets the SelectionCriteria field's value.
-func (s *PrefixLevelStorageMetrics) SetSelectionCriteria(v *SelectionCriteria) *PrefixLevelStorageMetrics {
- s.SelectionCriteria = v
+// SetReplicationConfiguration sets the ReplicationConfiguration field's value.
+func (s *PutBucketReplicationInput) SetReplicationConfiguration(v *ReplicationConfiguration) *PutBucketReplicationInput {
+ s.ReplicationConfiguration = v
return s
}
-// The proposed access control policy for the Multi-Region Access Point.
-//
-// When you update the policy, the update is first listed as the proposed policy.
-// After the update is finished and all Regions have been updated, the proposed
-// policy is listed as the established policy. If both policies have the same
-// version number, the proposed policy is the established policy.
-type ProposedMultiRegionAccessPointPolicy struct {
- _ struct{} `type:"structure"`
+func (s *PutBucketReplicationInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
- // The details of the proposed policy.
- Policy *string `type:"string"`
+func (s *PutBucketReplicationInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ProposedMultiRegionAccessPointPolicy) String() string {
- return awsutil.Prettify(s)
+func (s *PutBucketReplicationInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ProposedMultiRegionAccessPointPolicy) GoString() string {
- return s.String()
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s PutBucketReplicationInput) updateArnableField(v string) (interface{}, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ s.Bucket = aws.String(v)
+ return &s, nil
}
-// SetPolicy sets the Policy field's value.
-func (s *ProposedMultiRegionAccessPointPolicy) SetPolicy(v string) *ProposedMultiRegionAccessPointPolicy {
- s.Policy = &v
- return s
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s PutBucketReplicationInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
}
-// The PublicAccessBlock configuration that you want to apply to this Amazon
-// S3 account. You can enable the configuration options in any combination.
-// For more information about when Amazon S3 considers a bucket or object public,
-// see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status)
-// in the Amazon S3 User Guide.
-//
-// This data type is not supported for Amazon S3 on Outposts.
-type PublicAccessBlockConfiguration struct {
+type PutBucketReplicationOutput struct {
_ struct{} `type:"structure"`
-
- // Specifies whether Amazon S3 should block public access control lists (ACLs)
- // for buckets in this account. Setting this element to TRUE causes the following
- // behavior:
- //
- // * PutBucketAcl and PutObjectAcl calls fail if the specified ACL is public.
- //
- // * PUT Object calls fail if the request includes a public ACL.
- //
- // * PUT Bucket calls fail if the request includes a public ACL.
- //
- // Enabling this setting doesn't affect existing policies or ACLs.
- //
- // This property is not supported for Amazon S3 on Outposts.
- BlockPublicAcls *bool `locationName:"BlockPublicAcls" type:"boolean"`
-
- // Specifies whether Amazon S3 should block public bucket policies for buckets
- // in this account. Setting this element to TRUE causes Amazon S3 to reject
- // calls to PUT Bucket policy if the specified bucket policy allows public access.
- //
- // Enabling this setting doesn't affect existing bucket policies.
- //
- // This property is not supported for Amazon S3 on Outposts.
- BlockPublicPolicy *bool `locationName:"BlockPublicPolicy" type:"boolean"`
-
- // Specifies whether Amazon S3 should ignore public ACLs for buckets in this
- // account. Setting this element to TRUE causes Amazon S3 to ignore all public
- // ACLs on buckets in this account and any objects that they contain.
- //
- // Enabling this setting doesn't affect the persistence of any existing ACLs
- // and doesn't prevent new public ACLs from being set.
- //
- // This property is not supported for Amazon S3 on Outposts.
- IgnorePublicAcls *bool `locationName:"IgnorePublicAcls" type:"boolean"`
-
- // Specifies whether Amazon S3 should restrict public bucket policies for buckets
- // in this account. Setting this element to TRUE restricts access to buckets
- // with public policies to only Amazon Web Service principals and authorized
- // users within this account.
- //
- // Enabling this setting doesn't affect previously stored bucket policies, except
- // that public and cross-account access within any public bucket policy, including
- // non-public delegation to specific accounts, is blocked.
- //
- // This property is not supported for Amazon S3 on Outposts.
- RestrictPublicBuckets *bool `locationName:"RestrictPublicBuckets" type:"boolean"`
}
// String returns the string representation.
@@ -17113,7 +19432,7 @@ type PublicAccessBlockConfiguration struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PublicAccessBlockConfiguration) String() string {
+func (s PutBucketReplicationOutput) String() string {
return awsutil.Prettify(s)
}
@@ -17122,52 +19441,35 @@ func (s PublicAccessBlockConfiguration) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PublicAccessBlockConfiguration) GoString() string {
+func (s PutBucketReplicationOutput) GoString() string {
return s.String()
}
-// SetBlockPublicAcls sets the BlockPublicAcls field's value.
-func (s *PublicAccessBlockConfiguration) SetBlockPublicAcls(v bool) *PublicAccessBlockConfiguration {
- s.BlockPublicAcls = &v
- return s
-}
-
-// SetBlockPublicPolicy sets the BlockPublicPolicy field's value.
-func (s *PublicAccessBlockConfiguration) SetBlockPublicPolicy(v bool) *PublicAccessBlockConfiguration {
- s.BlockPublicPolicy = &v
- return s
-}
-
-// SetIgnorePublicAcls sets the IgnorePublicAcls field's value.
-func (s *PublicAccessBlockConfiguration) SetIgnorePublicAcls(v bool) *PublicAccessBlockConfiguration {
- s.IgnorePublicAcls = &v
- return s
-}
-
-// SetRestrictPublicBuckets sets the RestrictPublicBuckets field's value.
-func (s *PublicAccessBlockConfiguration) SetRestrictPublicBuckets(v bool) *PublicAccessBlockConfiguration {
- s.RestrictPublicBuckets = &v
- return s
-}
-
-type PutAccessPointConfigurationForObjectLambdaInput struct {
- _ struct{} `locationName:"PutAccessPointConfigurationForObjectLambdaRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+type PutBucketTaggingInput struct {
+ _ struct{} `locationName:"PutBucketTaggingRequest" type:"structure" payload:"Tagging"`
- // The account ID for the account that owns the specified Object Lambda Access
- // Point.
+ // The Amazon Web Services account ID of the Outposts bucket.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // Object Lambda Access Point configuration document.
+ // The Amazon Resource Name (ARN) of the bucket.
//
- // Configuration is a required field
- Configuration *ObjectLambdaConfiguration `type:"structure" required:"true"`
-
- // The name of the Object Lambda Access Point.
+ // For using this parameter with Amazon S3 on Outposts with the REST API, you
+ // must specify the name and the x-amz-outpost-id as well.
//
- // Name is a required field
- Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // For using this parameter with S3 on Outposts with the Amazon Web Services
+ // SDK and CLI, you must specify the ARN of the bucket accessed in the format
+ // arn:aws:s3-outposts:::outpost//bucket/.
+ // For example, to access the bucket reports through Outpost my-outpost owned
+ // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
+ // The value must be URL encoded.
+ //
+ // Bucket is a required field
+ Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+
+ // Tagging is a required field
+ Tagging *Tagging `locationName:"Tagging" type:"structure" required:"true" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
}
// String returns the string representation.
@@ -17175,7 +19477,7 @@ type PutAccessPointConfigurationForObjectLambdaInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutAccessPointConfigurationForObjectLambdaInput) String() string {
+func (s PutBucketTaggingInput) String() string {
return awsutil.Prettify(s)
}
@@ -17184,31 +19486,31 @@ func (s PutAccessPointConfigurationForObjectLambdaInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutAccessPointConfigurationForObjectLambdaInput) GoString() string {
+func (s PutBucketTaggingInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *PutAccessPointConfigurationForObjectLambdaInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutAccessPointConfigurationForObjectLambdaInput"}
+func (s *PutBucketTaggingInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutBucketTaggingInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Configuration == nil {
- invalidParams.Add(request.NewErrParamRequired("Configuration"))
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
}
- if s.Name != nil && len(*s.Name) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ if s.Tagging == nil {
+ invalidParams.Add(request.NewErrParamRequired("Tagging"))
}
- if s.Configuration != nil {
- if err := s.Configuration.Validate(); err != nil {
- invalidParams.AddNested("Configuration", err.(request.ErrInvalidParams))
+ if s.Tagging != nil {
+ if err := s.Tagging.Validate(); err != nil {
+ invalidParams.AddNested("Tagging", err.(request.ErrInvalidParams))
}
}
@@ -17219,30 +19521,71 @@ func (s *PutAccessPointConfigurationForObjectLambdaInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *PutAccessPointConfigurationForObjectLambdaInput) SetAccountId(v string) *PutAccessPointConfigurationForObjectLambdaInput {
+func (s *PutBucketTaggingInput) SetAccountId(v string) *PutBucketTaggingInput {
s.AccountId = &v
return s
}
-// SetConfiguration sets the Configuration field's value.
-func (s *PutAccessPointConfigurationForObjectLambdaInput) SetConfiguration(v *ObjectLambdaConfiguration) *PutAccessPointConfigurationForObjectLambdaInput {
- s.Configuration = v
+// SetBucket sets the Bucket field's value.
+func (s *PutBucketTaggingInput) SetBucket(v string) *PutBucketTaggingInput {
+ s.Bucket = &v
return s
}
-// SetName sets the Name field's value.
-func (s *PutAccessPointConfigurationForObjectLambdaInput) SetName(v string) *PutAccessPointConfigurationForObjectLambdaInput {
- s.Name = &v
+// SetTagging sets the Tagging field's value.
+func (s *PutBucketTaggingInput) SetTagging(v *Tagging) *PutBucketTaggingInput {
+ s.Tagging = v
return s
}
-func (s *PutAccessPointConfigurationForObjectLambdaInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
+func (s *PutBucketTaggingInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
+
+func (s *PutBucketTaggingInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketTaggingInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s PutBucketTaggingInput) updateArnableField(v string) (interface{}, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ s.Bucket = aws.String(v)
+ return &s, nil
+}
+
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s PutBucketTaggingInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
}
+ return nil, nil
}
-type PutAccessPointConfigurationForObjectLambdaOutput struct {
+type PutBucketTaggingOutput struct {
_ struct{} `type:"structure"`
}
@@ -17251,7 +19594,7 @@ type PutAccessPointConfigurationForObjectLambdaOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutAccessPointConfigurationForObjectLambdaOutput) String() string {
+func (s PutBucketTaggingOutput) String() string {
return awsutil.Prettify(s)
}
@@ -17260,28 +19603,31 @@ func (s PutAccessPointConfigurationForObjectLambdaOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutAccessPointConfigurationForObjectLambdaOutput) GoString() string {
+func (s PutBucketTaggingOutput) GoString() string {
return s.String()
}
-type PutAccessPointPolicyForObjectLambdaInput struct {
- _ struct{} `locationName:"PutAccessPointPolicyForObjectLambdaRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+type PutBucketVersioningInput struct {
+ _ struct{} `locationName:"PutBucketVersioningRequest" type:"structure" payload:"VersioningConfiguration"`
- // The account ID for the account that owns the specified Object Lambda Access
- // Point.
+ // The Amazon Web Services account ID of the S3 on Outposts bucket.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The name of the Object Lambda Access Point.
+ // The S3 on Outposts bucket to set the versioning state for.
//
- // Name is a required field
- Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // Bucket is a required field
+ Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
- // Object Lambda Access Point resource policy document.
+ // The concatenation of the authentication device's serial number, a space,
+ // and the value that is displayed on your authentication device.
+ MFA *string `location:"header" locationName:"x-amz-mfa" type:"string"`
+
+ // The root-level tag for the VersioningConfiguration parameters.
//
- // Policy is a required field
- Policy *string `type:"string" required:"true"`
+ // VersioningConfiguration is a required field
+ VersioningConfiguration *VersioningConfiguration `locationName:"VersioningConfiguration" type:"structure" required:"true" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
}
// String returns the string representation.
@@ -17289,7 +19635,7 @@ type PutAccessPointPolicyForObjectLambdaInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutAccessPointPolicyForObjectLambdaInput) String() string {
+func (s PutBucketVersioningInput) String() string {
return awsutil.Prettify(s)
}
@@ -17298,27 +19644,27 @@ func (s PutAccessPointPolicyForObjectLambdaInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutAccessPointPolicyForObjectLambdaInput) GoString() string {
+func (s PutBucketVersioningInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *PutAccessPointPolicyForObjectLambdaInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutAccessPointPolicyForObjectLambdaInput"}
+func (s *PutBucketVersioningInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutBucketVersioningInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
}
- if s.Name != nil && len(*s.Name) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
}
- if s.Policy == nil {
- invalidParams.Add(request.NewErrParamRequired("Policy"))
+ if s.VersioningConfiguration == nil {
+ invalidParams.Add(request.NewErrParamRequired("VersioningConfiguration"))
}
if invalidParams.Len() > 0 {
@@ -17328,30 +19674,77 @@ func (s *PutAccessPointPolicyForObjectLambdaInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *PutAccessPointPolicyForObjectLambdaInput) SetAccountId(v string) *PutAccessPointPolicyForObjectLambdaInput {
+func (s *PutBucketVersioningInput) SetAccountId(v string) *PutBucketVersioningInput {
s.AccountId = &v
return s
}
-// SetName sets the Name field's value.
-func (s *PutAccessPointPolicyForObjectLambdaInput) SetName(v string) *PutAccessPointPolicyForObjectLambdaInput {
- s.Name = &v
+// SetBucket sets the Bucket field's value.
+func (s *PutBucketVersioningInput) SetBucket(v string) *PutBucketVersioningInput {
+ s.Bucket = &v
return s
}
-// SetPolicy sets the Policy field's value.
-func (s *PutAccessPointPolicyForObjectLambdaInput) SetPolicy(v string) *PutAccessPointPolicyForObjectLambdaInput {
- s.Policy = &v
+// SetMFA sets the MFA field's value.
+func (s *PutBucketVersioningInput) SetMFA(v string) *PutBucketVersioningInput {
+ s.MFA = &v
return s
}
-func (s *PutAccessPointPolicyForObjectLambdaInput) hostLabels() map[string]string {
+// SetVersioningConfiguration sets the VersioningConfiguration field's value.
+func (s *PutBucketVersioningInput) SetVersioningConfiguration(v *VersioningConfiguration) *PutBucketVersioningInput {
+ s.VersioningConfiguration = v
+ return s
+}
+
+func (s *PutBucketVersioningInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-type PutAccessPointPolicyForObjectLambdaOutput struct {
+func (s *PutBucketVersioningInput) getEndpointARN() (arn.Resource, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ return parseEndpointARN(*s.Bucket)
+}
+
+func (s *PutBucketVersioningInput) hasEndpointARN() bool {
+ if s.Bucket == nil {
+ return false
+ }
+ return arn.IsARN(*s.Bucket)
+}
+
+// updateArnableField updates the value of the input field that
+// takes an ARN as an input. This method is useful to backfill
+// the parsed resource name from ARN into the input member.
+// It returns a pointer to a modified copy of input and an error.
+// Note that original input is not modified.
+func (s PutBucketVersioningInput) updateArnableField(v string) (interface{}, error) {
+ if s.Bucket == nil {
+ return nil, fmt.Errorf("member Bucket is nil")
+ }
+ s.Bucket = aws.String(v)
+ return &s, nil
+}
+
+// updateAccountID returns a pointer to a modified copy of input,
+// if account id is not provided, we update the account id in modified input
+// if account id is provided, but doesn't match with the one in ARN, we throw an error
+// if account id is not updated, we return nil. Note that original input is not modified.
+func (s PutBucketVersioningInput) updateAccountID(accountId string) (interface{}, error) {
+ if s.AccountId == nil {
+ s.AccountId = aws.String(accountId)
+ return &s, nil
+ } else if *s.AccountId != accountId {
+ return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+ }
+ return nil, nil
+}
+
+type PutBucketVersioningOutput struct {
_ struct{} `type:"structure"`
}
@@ -17360,7 +19753,7 @@ type PutAccessPointPolicyForObjectLambdaOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutAccessPointPolicyForObjectLambdaOutput) String() string {
+func (s PutBucketVersioningOutput) String() string {
return awsutil.Prettify(s)
}
@@ -17369,43 +19762,28 @@ func (s PutAccessPointPolicyForObjectLambdaOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutAccessPointPolicyForObjectLambdaOutput) GoString() string {
+func (s PutBucketVersioningOutput) GoString() string {
return s.String()
}
-type PutAccessPointPolicyInput struct {
- _ struct{} `locationName:"PutAccessPointPolicyRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+type PutJobTaggingInput struct {
+ _ struct{} `locationName:"PutJobTaggingRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
- // The Amazon Web Services account ID for owner of the bucket associated with
- // the specified access point.
+ // The Amazon Web Services account ID associated with the S3 Batch Operations
+ // job.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The name of the access point that you want to associate with the specified
- // policy.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
- //
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the access point accessed in the
- // format arn:aws:s3-outposts:::outpost//accesspoint/.
- // For example, to access the access point reports-ap through Outpost my-outpost
- // owned by account 123456789012 in Region us-west-2, use the URL encoding of
- // arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/accesspoint/reports-ap.
- // The value must be URL encoded.
+ // The ID for the S3 Batch Operations job whose tags you want to replace.
//
- // Name is a required field
- Name *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // JobId is a required field
+ JobId *string `location:"uri" locationName:"id" min:"5" type:"string" required:"true"`
- // The policy that you want to apply to the specified access point. For more
- // information about access point policies, see Managing data access with Amazon
- // S3 access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html)
- // in the Amazon S3 User Guide.
+ // The set of tags to associate with the S3 Batch Operations job.
//
- // Policy is a required field
- Policy *string `type:"string" required:"true"`
+ // Tags is a required field
+ Tags []*S3Tag `type:"list" required:"true"`
}
// String returns the string representation.
@@ -17413,7 +19791,7 @@ type PutAccessPointPolicyInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutAccessPointPolicyInput) String() string {
+func (s PutJobTaggingInput) String() string {
return awsutil.Prettify(s)
}
@@ -17422,27 +19800,37 @@ func (s PutAccessPointPolicyInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutAccessPointPolicyInput) GoString() string {
+func (s PutJobTaggingInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *PutAccessPointPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutAccessPointPolicyInput"}
+func (s *PutJobTaggingInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutJobTaggingInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
+ if s.JobId == nil {
+ invalidParams.Add(request.NewErrParamRequired("JobId"))
}
- if s.Name != nil && len(*s.Name) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 3))
+ if s.JobId != nil && len(*s.JobId) < 5 {
+ invalidParams.Add(request.NewErrParamMinLen("JobId", 5))
}
- if s.Policy == nil {
- invalidParams.Add(request.NewErrParamRequired("Policy"))
+ if s.Tags == nil {
+ invalidParams.Add(request.NewErrParamRequired("Tags"))
+ }
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
+ }
}
if invalidParams.Len() > 0 {
@@ -17452,71 +19840,30 @@ func (s *PutAccessPointPolicyInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *PutAccessPointPolicyInput) SetAccountId(v string) *PutAccessPointPolicyInput {
+func (s *PutJobTaggingInput) SetAccountId(v string) *PutJobTaggingInput {
s.AccountId = &v
return s
}
-// SetName sets the Name field's value.
-func (s *PutAccessPointPolicyInput) SetName(v string) *PutAccessPointPolicyInput {
- s.Name = &v
+// SetJobId sets the JobId field's value.
+func (s *PutJobTaggingInput) SetJobId(v string) *PutJobTaggingInput {
+ s.JobId = &v
return s
}
-// SetPolicy sets the Policy field's value.
-func (s *PutAccessPointPolicyInput) SetPolicy(v string) *PutAccessPointPolicyInput {
- s.Policy = &v
+// SetTags sets the Tags field's value.
+func (s *PutJobTaggingInput) SetTags(v []*S3Tag) *PutJobTaggingInput {
+ s.Tags = v
return s
}
-func (s *PutAccessPointPolicyInput) hostLabels() map[string]string {
+func (s *PutJobTaggingInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-func (s *PutAccessPointPolicyInput) getEndpointARN() (arn.Resource, error) {
- if s.Name == nil {
- return nil, fmt.Errorf("member Name is nil")
- }
- return parseEndpointARN(*s.Name)
-}
-
-func (s *PutAccessPointPolicyInput) hasEndpointARN() bool {
- if s.Name == nil {
- return false
- }
- return arn.IsARN(*s.Name)
-}
-
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s PutAccessPointPolicyInput) updateArnableField(v string) (interface{}, error) {
- if s.Name == nil {
- return nil, fmt.Errorf("member Name is nil")
- }
- s.Name = aws.String(v)
- return &s, nil
-}
-
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s PutAccessPointPolicyInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
-}
-
-type PutAccessPointPolicyOutput struct {
+type PutJobTaggingOutput struct {
_ struct{} `type:"structure"`
}
@@ -17525,7 +19872,7 @@ type PutAccessPointPolicyOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutAccessPointPolicyOutput) String() string {
+func (s PutJobTaggingOutput) String() string {
return awsutil.Prettify(s)
}
@@ -17534,25 +19881,28 @@ func (s PutAccessPointPolicyOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutAccessPointPolicyOutput) GoString() string {
+func (s PutJobTaggingOutput) GoString() string {
return s.String()
}
-type PutBucketLifecycleConfigurationInput struct {
- _ struct{} `locationName:"PutBucketLifecycleConfigurationRequest" type:"structure" payload:"LifecycleConfiguration"`
+type PutMultiRegionAccessPointPolicyInput struct {
+ _ struct{} `locationName:"PutMultiRegionAccessPointPolicyRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
- // The Amazon Web Services account ID of the Outposts bucket.
+ // The Amazon Web Services account ID for the owner of the Multi-Region Access
+ // Point.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The name of the bucket for which to set the configuration.
- //
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // An idempotency token used to identify the request and guarantee that requests
+ // are unique.
+ ClientToken *string `type:"string" idempotencyToken:"true"`
- // Container for lifecycle rules. You can add as many as 1,000 rules.
- LifecycleConfiguration *LifecycleConfiguration `locationName:"LifecycleConfiguration" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+ // A container element containing the details of the policy for the Multi-Region
+ // Access Point.
+ //
+ // Details is a required field
+ Details *PutMultiRegionAccessPointPolicyInput_ `type:"structure" required:"true"`
}
// String returns the string representation.
@@ -17560,7 +19910,7 @@ type PutBucketLifecycleConfigurationInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketLifecycleConfigurationInput) String() string {
+func (s PutMultiRegionAccessPointPolicyInput) String() string {
return awsutil.Prettify(s)
}
@@ -17569,28 +19919,25 @@ func (s PutBucketLifecycleConfigurationInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketLifecycleConfigurationInput) GoString() string {
+func (s PutMultiRegionAccessPointPolicyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *PutBucketLifecycleConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutBucketLifecycleConfigurationInput"}
+func (s *PutMultiRegionAccessPointPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutMultiRegionAccessPointPolicyInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
- }
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ if s.Details == nil {
+ invalidParams.Add(request.NewErrParamRequired("Details"))
}
- if s.LifecycleConfiguration != nil {
- if err := s.LifecycleConfiguration.Validate(); err != nil {
- invalidParams.AddNested("LifecycleConfiguration", err.(request.ErrInvalidParams))
+ if s.Details != nil {
+ if err := s.Details.Validate(); err != nil {
+ invalidParams.AddNested("Details", err.(request.ErrInvalidParams))
}
}
@@ -17601,122 +19948,41 @@ func (s *PutBucketLifecycleConfigurationInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *PutBucketLifecycleConfigurationInput) SetAccountId(v string) *PutBucketLifecycleConfigurationInput {
+func (s *PutMultiRegionAccessPointPolicyInput) SetAccountId(v string) *PutMultiRegionAccessPointPolicyInput {
s.AccountId = &v
return s
}
-// SetBucket sets the Bucket field's value.
-func (s *PutBucketLifecycleConfigurationInput) SetBucket(v string) *PutBucketLifecycleConfigurationInput {
- s.Bucket = &v
+// SetClientToken sets the ClientToken field's value.
+func (s *PutMultiRegionAccessPointPolicyInput) SetClientToken(v string) *PutMultiRegionAccessPointPolicyInput {
+ s.ClientToken = &v
return s
}
-// SetLifecycleConfiguration sets the LifecycleConfiguration field's value.
-func (s *PutBucketLifecycleConfigurationInput) SetLifecycleConfiguration(v *LifecycleConfiguration) *PutBucketLifecycleConfigurationInput {
- s.LifecycleConfiguration = v
+// SetDetails sets the Details field's value.
+func (s *PutMultiRegionAccessPointPolicyInput) SetDetails(v *PutMultiRegionAccessPointPolicyInput_) *PutMultiRegionAccessPointPolicyInput {
+ s.Details = v
return s
}
-func (s *PutBucketLifecycleConfigurationInput) hostLabels() map[string]string {
+func (s *PutMultiRegionAccessPointPolicyInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-func (s *PutBucketLifecycleConfigurationInput) getEndpointARN() (arn.Resource, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- return parseEndpointARN(*s.Bucket)
-}
-
-func (s *PutBucketLifecycleConfigurationInput) hasEndpointARN() bool {
- if s.Bucket == nil {
- return false
- }
- return arn.IsARN(*s.Bucket)
-}
-
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s PutBucketLifecycleConfigurationInput) updateArnableField(v string) (interface{}, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- s.Bucket = aws.String(v)
- return &s, nil
-}
-
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s PutBucketLifecycleConfigurationInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
-}
-
-type PutBucketLifecycleConfigurationOutput struct {
+// A container for the information associated with a PutMultiRegionAccessPoint
+// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutMultiRegionAccessPoint.html)
+// request.
+type PutMultiRegionAccessPointPolicyInput_ struct {
_ struct{} `type:"structure"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s PutBucketLifecycleConfigurationOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s PutBucketLifecycleConfigurationOutput) GoString() string {
- return s.String()
-}
-type PutBucketPolicyInput struct {
- _ struct{} `locationName:"PutBucketPolicyRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
-
- // The Amazon Web Services account ID of the Outposts bucket.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
-
- // Specifies the bucket.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
- //
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the bucket accessed in the format
- // arn:aws:s3-outposts:::outpost//bucket/.
- // For example, to access the bucket reports through Outpost my-outpost owned
- // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
- // The value must be URL encoded.
- //
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
-
- // Set this parameter to true to confirm that you want to remove your permissions
- // to change this bucket policy in the future.
+ // The name of the Multi-Region Access Point associated with the request.
//
- // This is not supported by Amazon S3 on Outposts buckets.
- ConfirmRemoveSelfBucketAccess *bool `location:"header" locationName:"x-amz-confirm-remove-self-bucket-access" type:"boolean"`
+ // Name is a required field
+ Name *string `type:"string" required:"true"`
- // The bucket policy as a JSON document.
+ // The policy details for the PutMultiRegionAccessPoint request.
//
// Policy is a required field
Policy *string `type:"string" required:"true"`
@@ -17727,7 +19993,7 @@ type PutBucketPolicyInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketPolicyInput) String() string {
+func (s PutMultiRegionAccessPointPolicyInput_) String() string {
return awsutil.Prettify(s)
}
@@ -17736,24 +20002,15 @@ func (s PutBucketPolicyInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketPolicyInput) GoString() string {
+func (s PutMultiRegionAccessPointPolicyInput_) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *PutBucketPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutBucketPolicyInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
- }
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+func (s *PutMultiRegionAccessPointPolicyInput_) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutMultiRegionAccessPointPolicyInput_"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Policy == nil {
invalidParams.Add(request.NewErrParamRequired("Policy"))
@@ -17765,79 +20022,25 @@ func (s *PutBucketPolicyInput) Validate() error {
return nil
}
-// SetAccountId sets the AccountId field's value.
-func (s *PutBucketPolicyInput) SetAccountId(v string) *PutBucketPolicyInput {
- s.AccountId = &v
- return s
-}
-
-// SetBucket sets the Bucket field's value.
-func (s *PutBucketPolicyInput) SetBucket(v string) *PutBucketPolicyInput {
- s.Bucket = &v
- return s
-}
-
-// SetConfirmRemoveSelfBucketAccess sets the ConfirmRemoveSelfBucketAccess field's value.
-func (s *PutBucketPolicyInput) SetConfirmRemoveSelfBucketAccess(v bool) *PutBucketPolicyInput {
- s.ConfirmRemoveSelfBucketAccess = &v
+// SetName sets the Name field's value.
+func (s *PutMultiRegionAccessPointPolicyInput_) SetName(v string) *PutMultiRegionAccessPointPolicyInput_ {
+ s.Name = &v
return s
}
// SetPolicy sets the Policy field's value.
-func (s *PutBucketPolicyInput) SetPolicy(v string) *PutBucketPolicyInput {
+func (s *PutMultiRegionAccessPointPolicyInput_) SetPolicy(v string) *PutMultiRegionAccessPointPolicyInput_ {
s.Policy = &v
return s
}
-func (s *PutBucketPolicyInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
-
-func (s *PutBucketPolicyInput) getEndpointARN() (arn.Resource, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- return parseEndpointARN(*s.Bucket)
-}
-
-func (s *PutBucketPolicyInput) hasEndpointARN() bool {
- if s.Bucket == nil {
- return false
- }
- return arn.IsARN(*s.Bucket)
-}
-
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s PutBucketPolicyInput) updateArnableField(v string) (interface{}, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- s.Bucket = aws.String(v)
- return &s, nil
-}
-
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s PutBucketPolicyInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
-}
-
-type PutBucketPolicyOutput struct {
+type PutMultiRegionAccessPointPolicyOutput struct {
_ struct{} `type:"structure"`
+
+ // The request token associated with the request. You can use this token with
+ // DescribeMultiRegionAccessPointOperation (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeMultiRegionAccessPointOperation.html)
+ // to determine the status of asynchronous requests.
+ RequestTokenARN *string `min:"1" type:"string"`
}
// String returns the string representation.
@@ -17845,7 +20048,7 @@ type PutBucketPolicyOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketPolicyOutput) String() string {
+func (s PutMultiRegionAccessPointPolicyOutput) String() string {
return awsutil.Prettify(s)
}
@@ -17854,39 +20057,30 @@ func (s PutBucketPolicyOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketPolicyOutput) GoString() string {
+func (s PutMultiRegionAccessPointPolicyOutput) GoString() string {
return s.String()
}
-type PutBucketReplicationInput struct {
- _ struct{} `locationName:"PutBucketReplicationRequest" type:"structure" payload:"ReplicationConfiguration"`
+// SetRequestTokenARN sets the RequestTokenARN field's value.
+func (s *PutMultiRegionAccessPointPolicyOutput) SetRequestTokenARN(v string) *PutMultiRegionAccessPointPolicyOutput {
+ s.RequestTokenARN = &v
+ return s
+}
- // The Amazon Web Services account ID of the Outposts bucket.
+type PutPublicAccessBlockInput struct {
+ _ struct{} `locationName:"PutPublicAccessBlockRequest" type:"structure" payload:"PublicAccessBlockConfiguration"`
+
+ // The account ID for the Amazon Web Services account whose PublicAccessBlock
+ // configuration you want to set.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // Specifies the S3 on Outposts bucket to set the configuration for.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
- //
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the bucket accessed in the format
- // arn:aws:s3-outposts:::outpost//bucket/.
- // For example, to access the bucket reports through Outpost my-outpost owned
- // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
- // The value must be URL encoded.
- //
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
-
- // A container for one or more replication rules. A replication configuration
- // must have at least one rule and you can add up to 100 rules. The maximum
- // size of a replication configuration is 128 KB.
+ // The PublicAccessBlock configuration that you want to apply to the specified
+ // Amazon Web Services account.
//
- // ReplicationConfiguration is a required field
- ReplicationConfiguration *ReplicationConfiguration `locationName:"ReplicationConfiguration" type:"structure" required:"true" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+ // PublicAccessBlockConfiguration is a required field
+ PublicAccessBlockConfiguration *PublicAccessBlockConfiguration `locationName:"PublicAccessBlockConfiguration" type:"structure" required:"true" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
}
// String returns the string representation.
@@ -17894,7 +20088,7 @@ type PutBucketReplicationInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketReplicationInput) String() string {
+func (s PutPublicAccessBlockInput) String() string {
return awsutil.Prettify(s)
}
@@ -17903,32 +20097,21 @@ func (s PutBucketReplicationInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketReplicationInput) GoString() string {
+func (s PutPublicAccessBlockInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *PutBucketReplicationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutBucketReplicationInput"}
+func (s *PutPublicAccessBlockInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutPublicAccessBlockInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
- }
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
- }
- if s.ReplicationConfiguration == nil {
- invalidParams.Add(request.NewErrParamRequired("ReplicationConfiguration"))
- }
- if s.ReplicationConfiguration != nil {
- if err := s.ReplicationConfiguration.Validate(); err != nil {
- invalidParams.AddNested("ReplicationConfiguration", err.(request.ErrInvalidParams))
- }
+ if s.PublicAccessBlockConfiguration == nil {
+ invalidParams.Add(request.NewErrParamRequired("PublicAccessBlockConfiguration"))
}
if invalidParams.Len() > 0 {
@@ -17938,71 +20121,24 @@ func (s *PutBucketReplicationInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *PutBucketReplicationInput) SetAccountId(v string) *PutBucketReplicationInput {
+func (s *PutPublicAccessBlockInput) SetAccountId(v string) *PutPublicAccessBlockInput {
s.AccountId = &v
return s
}
-// SetBucket sets the Bucket field's value.
-func (s *PutBucketReplicationInput) SetBucket(v string) *PutBucketReplicationInput {
- s.Bucket = &v
- return s
-}
-
-// SetReplicationConfiguration sets the ReplicationConfiguration field's value.
-func (s *PutBucketReplicationInput) SetReplicationConfiguration(v *ReplicationConfiguration) *PutBucketReplicationInput {
- s.ReplicationConfiguration = v
+// SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field's value.
+func (s *PutPublicAccessBlockInput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *PutPublicAccessBlockInput {
+ s.PublicAccessBlockConfiguration = v
return s
}
-func (s *PutBucketReplicationInput) hostLabels() map[string]string {
+func (s *PutPublicAccessBlockInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-func (s *PutBucketReplicationInput) getEndpointARN() (arn.Resource, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- return parseEndpointARN(*s.Bucket)
-}
-
-func (s *PutBucketReplicationInput) hasEndpointARN() bool {
- if s.Bucket == nil {
- return false
- }
- return arn.IsARN(*s.Bucket)
-}
-
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s PutBucketReplicationInput) updateArnableField(v string) (interface{}, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- s.Bucket = aws.String(v)
- return &s, nil
-}
-
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s PutBucketReplicationInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
-}
-
-type PutBucketReplicationOutput struct {
+type PutPublicAccessBlockOutput struct {
_ struct{} `type:"structure"`
}
@@ -18011,7 +20147,7 @@ type PutBucketReplicationOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketReplicationOutput) String() string {
+func (s PutPublicAccessBlockOutput) String() string {
return awsutil.Prettify(s)
}
@@ -18020,35 +20156,32 @@ func (s PutBucketReplicationOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketReplicationOutput) GoString() string {
+func (s PutPublicAccessBlockOutput) GoString() string {
return s.String()
}
-type PutBucketTaggingInput struct {
- _ struct{} `locationName:"PutBucketTaggingRequest" type:"structure" payload:"Tagging"`
+type PutStorageLensConfigurationInput struct {
+ _ struct{} `locationName:"PutStorageLensConfigurationRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
- // The Amazon Web Services account ID of the Outposts bucket.
+ // The account ID of the requester.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the bucket.
- //
- // For using this parameter with Amazon S3 on Outposts with the REST API, you
- // must specify the name and the x-amz-outpost-id as well.
+ // The ID of the S3 Storage Lens configuration.
//
- // For using this parameter with S3 on Outposts with the Amazon Web Services
- // SDK and CLI, you must specify the ARN of the bucket accessed in the format
- // arn:aws:s3-outposts:::outpost//bucket/.
- // For example, to access the bucket reports through Outpost my-outpost owned
- // by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports.
- // The value must be URL encoded.
+ // ConfigId is a required field
+ ConfigId *string `location:"uri" locationName:"storagelensid" min:"1" type:"string" required:"true"`
+
+ // The S3 Storage Lens configuration.
//
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
+ // StorageLensConfiguration is a required field
+ StorageLensConfiguration *StorageLensConfiguration `type:"structure" required:"true"`
- // Tagging is a required field
- Tagging *Tagging `locationName:"Tagging" type:"structure" required:"true" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+ // The tag set of the S3 Storage Lens configuration.
+ //
+ // You can set up to a maximum of 50 tags.
+ Tags []*StorageLensTag `locationNameList:"Tag" type:"list"`
}
// String returns the string representation.
@@ -18056,7 +20189,7 @@ type PutBucketTaggingInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketTaggingInput) String() string {
+func (s PutStorageLensConfigurationInput) String() string {
return awsutil.Prettify(s)
}
@@ -18065,31 +20198,41 @@ func (s PutBucketTaggingInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketTaggingInput) GoString() string {
+func (s PutStorageLensConfigurationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *PutBucketTaggingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutBucketTaggingInput"}
+func (s *PutStorageLensConfigurationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutStorageLensConfigurationInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
+ if s.ConfigId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ConfigId"))
}
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ if s.ConfigId != nil && len(*s.ConfigId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConfigId", 1))
}
- if s.Tagging == nil {
- invalidParams.Add(request.NewErrParamRequired("Tagging"))
+ if s.StorageLensConfiguration == nil {
+ invalidParams.Add(request.NewErrParamRequired("StorageLensConfiguration"))
}
- if s.Tagging != nil {
- if err := s.Tagging.Validate(); err != nil {
- invalidParams.AddNested("Tagging", err.(request.ErrInvalidParams))
+ if s.StorageLensConfiguration != nil {
+ if err := s.StorageLensConfiguration.Validate(); err != nil {
+ invalidParams.AddNested("StorageLensConfiguration", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
}
}
@@ -18100,71 +20243,36 @@ func (s *PutBucketTaggingInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *PutBucketTaggingInput) SetAccountId(v string) *PutBucketTaggingInput {
+func (s *PutStorageLensConfigurationInput) SetAccountId(v string) *PutStorageLensConfigurationInput {
s.AccountId = &v
return s
}
-// SetBucket sets the Bucket field's value.
-func (s *PutBucketTaggingInput) SetBucket(v string) *PutBucketTaggingInput {
- s.Bucket = &v
+// SetConfigId sets the ConfigId field's value.
+func (s *PutStorageLensConfigurationInput) SetConfigId(v string) *PutStorageLensConfigurationInput {
+ s.ConfigId = &v
return s
}
-// SetTagging sets the Tagging field's value.
-func (s *PutBucketTaggingInput) SetTagging(v *Tagging) *PutBucketTaggingInput {
- s.Tagging = v
+// SetStorageLensConfiguration sets the StorageLensConfiguration field's value.
+func (s *PutStorageLensConfigurationInput) SetStorageLensConfiguration(v *StorageLensConfiguration) *PutStorageLensConfigurationInput {
+ s.StorageLensConfiguration = v
return s
}
-func (s *PutBucketTaggingInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
-
-func (s *PutBucketTaggingInput) getEndpointARN() (arn.Resource, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- return parseEndpointARN(*s.Bucket)
-}
-
-func (s *PutBucketTaggingInput) hasEndpointARN() bool {
- if s.Bucket == nil {
- return false
- }
- return arn.IsARN(*s.Bucket)
-}
-
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s PutBucketTaggingInput) updateArnableField(v string) (interface{}, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- s.Bucket = aws.String(v)
- return &s, nil
+// SetTags sets the Tags field's value.
+func (s *PutStorageLensConfigurationInput) SetTags(v []*StorageLensTag) *PutStorageLensConfigurationInput {
+ s.Tags = v
+ return s
}
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s PutBucketTaggingInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
+func (s *PutStorageLensConfigurationInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
}
- return nil, nil
}
-type PutBucketTaggingOutput struct {
+type PutStorageLensConfigurationOutput struct {
_ struct{} `type:"structure"`
}
@@ -18173,7 +20281,7 @@ type PutBucketTaggingOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketTaggingOutput) String() string {
+func (s PutStorageLensConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
@@ -18182,31 +20290,29 @@ func (s PutBucketTaggingOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketTaggingOutput) GoString() string {
+func (s PutStorageLensConfigurationOutput) GoString() string {
return s.String()
}
-type PutBucketVersioningInput struct {
- _ struct{} `locationName:"PutBucketVersioningRequest" type:"structure" payload:"VersioningConfiguration"`
+type PutStorageLensConfigurationTaggingInput struct {
+ _ struct{} `locationName:"PutStorageLensConfigurationTaggingRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
- // The Amazon Web Services account ID of the S3 on Outposts bucket.
+ // The account ID of the requester.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The S3 on Outposts bucket to set the versioning state for.
+ // The ID of the S3 Storage Lens configuration.
//
- // Bucket is a required field
- Bucket *string `location:"uri" locationName:"name" min:"3" type:"string" required:"true"`
-
- // The concatenation of the authentication device's serial number, a space,
- // and the value that is displayed on your authentication device.
- MFA *string `location:"header" locationName:"x-amz-mfa" type:"string"`
+ // ConfigId is a required field
+ ConfigId *string `location:"uri" locationName:"storagelensid" min:"1" type:"string" required:"true"`
- // The root-level tag for the VersioningConfiguration parameters.
+ // The tag set of the S3 Storage Lens configuration.
//
- // VersioningConfiguration is a required field
- VersioningConfiguration *VersioningConfiguration `locationName:"VersioningConfiguration" type:"structure" required:"true" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+ // You can set up to a maximum of 50 tags.
+ //
+ // Tags is a required field
+ Tags []*StorageLensTag `locationNameList:"Tag" type:"list" required:"true"`
}
// String returns the string representation.
@@ -18214,7 +20320,7 @@ type PutBucketVersioningInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketVersioningInput) String() string {
+func (s PutStorageLensConfigurationTaggingInput) String() string {
return awsutil.Prettify(s)
}
@@ -18223,27 +20329,37 @@ func (s PutBucketVersioningInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketVersioningInput) GoString() string {
+func (s PutStorageLensConfigurationTaggingInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *PutBucketVersioningInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutBucketVersioningInput"}
+func (s *PutStorageLensConfigurationTaggingInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutStorageLensConfigurationTaggingInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
+ if s.ConfigId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ConfigId"))
}
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ if s.ConfigId != nil && len(*s.ConfigId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConfigId", 1))
}
- if s.VersioningConfiguration == nil {
- invalidParams.Add(request.NewErrParamRequired("VersioningConfiguration"))
+ if s.Tags == nil {
+ invalidParams.Add(request.NewErrParamRequired("Tags"))
+ }
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
+ }
}
if invalidParams.Len() > 0 {
@@ -18253,77 +20369,30 @@ func (s *PutBucketVersioningInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *PutBucketVersioningInput) SetAccountId(v string) *PutBucketVersioningInput {
+func (s *PutStorageLensConfigurationTaggingInput) SetAccountId(v string) *PutStorageLensConfigurationTaggingInput {
s.AccountId = &v
return s
}
-// SetBucket sets the Bucket field's value.
-func (s *PutBucketVersioningInput) SetBucket(v string) *PutBucketVersioningInput {
- s.Bucket = &v
- return s
-}
-
-// SetMFA sets the MFA field's value.
-func (s *PutBucketVersioningInput) SetMFA(v string) *PutBucketVersioningInput {
- s.MFA = &v
+// SetConfigId sets the ConfigId field's value.
+func (s *PutStorageLensConfigurationTaggingInput) SetConfigId(v string) *PutStorageLensConfigurationTaggingInput {
+ s.ConfigId = &v
return s
}
-// SetVersioningConfiguration sets the VersioningConfiguration field's value.
-func (s *PutBucketVersioningInput) SetVersioningConfiguration(v *VersioningConfiguration) *PutBucketVersioningInput {
- s.VersioningConfiguration = v
+// SetTags sets the Tags field's value.
+func (s *PutStorageLensConfigurationTaggingInput) SetTags(v []*StorageLensTag) *PutStorageLensConfigurationTaggingInput {
+ s.Tags = v
return s
}
-func (s *PutBucketVersioningInput) hostLabels() map[string]string {
+func (s *PutStorageLensConfigurationTaggingInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-func (s *PutBucketVersioningInput) getEndpointARN() (arn.Resource, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- return parseEndpointARN(*s.Bucket)
-}
-
-func (s *PutBucketVersioningInput) hasEndpointARN() bool {
- if s.Bucket == nil {
- return false
- }
- return arn.IsARN(*s.Bucket)
-}
-
-// updateArnableField updates the value of the input field that
-// takes an ARN as an input. This method is useful to backfill
-// the parsed resource name from ARN into the input member.
-// It returns a pointer to a modified copy of input and an error.
-// Note that original input is not modified.
-func (s PutBucketVersioningInput) updateArnableField(v string) (interface{}, error) {
- if s.Bucket == nil {
- return nil, fmt.Errorf("member Bucket is nil")
- }
- s.Bucket = aws.String(v)
- return &s, nil
-}
-
-// updateAccountID returns a pointer to a modified copy of input,
-// if account id is not provided, we update the account id in modified input
-// if account id is provided, but doesn't match with the one in ARN, we throw an error
-// if account id is not updated, we return nil. Note that original input is not modified.
-func (s PutBucketVersioningInput) updateAccountID(accountId string) (interface{}, error) {
- if s.AccountId == nil {
- s.AccountId = aws.String(accountId)
- return &s, nil
- } else if *s.AccountId != accountId {
- return &s, fmt.Errorf("Account ID mismatch, the Account ID cannot be specified in an ARN and in the accountId field")
- }
- return nil, nil
-}
-
-type PutBucketVersioningOutput struct {
+type PutStorageLensConfigurationTaggingOutput struct {
_ struct{} `type:"structure"`
}
@@ -18332,7 +20401,7 @@ type PutBucketVersioningOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketVersioningOutput) String() string {
+func (s PutStorageLensConfigurationTaggingOutput) String() string {
return awsutil.Prettify(s)
}
@@ -18341,28 +20410,23 @@ func (s PutBucketVersioningOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutBucketVersioningOutput) GoString() string {
+func (s PutStorageLensConfigurationTaggingOutput) GoString() string {
return s.String()
}
-type PutJobTaggingInput struct {
- _ struct{} `locationName:"PutJobTaggingRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
-
- // The Amazon Web Services account ID associated with the S3 Batch Operations
- // job.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+// A Region that supports a Multi-Region Access Point as well as the associated
+// bucket for the Region.
+type Region struct {
+ _ struct{} `type:"structure"`
- // The ID for the S3 Batch Operations job whose tags you want to replace.
+ // The name of the associated bucket for the Region.
//
- // JobId is a required field
- JobId *string `location:"uri" locationName:"id" min:"5" type:"string" required:"true"`
+ // Bucket is a required field
+ Bucket *string `min:"3" type:"string" required:"true"`
- // The set of tags to associate with the S3 Batch Operations job.
- //
- // Tags is a required field
- Tags []*S3Tag `type:"list" required:"true"`
+ // The Amazon Web Services account ID that owns the Amazon S3 bucket that's
+ // associated with this Multi-Region Access Point.
+ BucketAccountId *string `type:"string"`
}
// String returns the string representation.
@@ -18370,7 +20434,7 @@ type PutJobTaggingInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutJobTaggingInput) String() string {
+func (s Region) String() string {
return awsutil.Prettify(s)
}
@@ -18379,37 +20443,18 @@ func (s PutJobTaggingInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutJobTaggingInput) GoString() string {
+func (s Region) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *PutJobTaggingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutJobTaggingInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 5))
- }
- if s.Tags == nil {
- invalidParams.Add(request.NewErrParamRequired("Tags"))
+func (s *Region) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "Region"}
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
}
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
+ if s.Bucket != nil && len(*s.Bucket) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
}
if invalidParams.Len() > 0 {
@@ -18418,32 +20463,32 @@ func (s *PutJobTaggingInput) Validate() error {
return nil
}
-// SetAccountId sets the AccountId field's value.
-func (s *PutJobTaggingInput) SetAccountId(v string) *PutJobTaggingInput {
- s.AccountId = &v
+// SetBucket sets the Bucket field's value.
+func (s *Region) SetBucket(v string) *Region {
+ s.Bucket = &v
return s
}
-// SetJobId sets the JobId field's value.
-func (s *PutJobTaggingInput) SetJobId(v string) *PutJobTaggingInput {
- s.JobId = &v
+// SetBucketAccountId sets the BucketAccountId field's value.
+func (s *Region) SetBucketAccountId(v string) *Region {
+ s.BucketAccountId = &v
return s
}
-// SetTags sets the Tags field's value.
-func (s *PutJobTaggingInput) SetTags(v []*S3Tag) *PutJobTaggingInput {
- s.Tags = v
- return s
-}
+// A combination of a bucket and Region that's part of a Multi-Region Access
+// Point.
+type RegionReport struct {
+ _ struct{} `type:"structure"`
-func (s *PutJobTaggingInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
+ // The name of the bucket.
+ Bucket *string `min:"3" type:"string"`
-type PutJobTaggingOutput struct {
- _ struct{} `type:"structure"`
+ // The Amazon Web Services account ID that owns the Amazon S3 bucket that's
+ // associated with this Multi-Region Access Point.
+ BucketAccountId *string `type:"string"`
+
+ // The name of the Region.
+ Region *string `min:"1" type:"string"`
}
// String returns the string representation.
@@ -18451,7 +20496,7 @@ type PutJobTaggingOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutJobTaggingOutput) String() string {
+func (s RegionReport) String() string {
return awsutil.Prettify(s)
}
@@ -18460,28 +20505,48 @@ func (s PutJobTaggingOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutJobTaggingOutput) GoString() string {
+func (s RegionReport) GoString() string {
return s.String()
}
-type PutMultiRegionAccessPointPolicyInput struct {
- _ struct{} `locationName:"PutMultiRegionAccessPointPolicyRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+// SetBucket sets the Bucket field's value.
+func (s *RegionReport) SetBucket(v string) *RegionReport {
+ s.Bucket = &v
+ return s
+}
+
+// SetBucketAccountId sets the BucketAccountId field's value.
+func (s *RegionReport) SetBucketAccountId(v string) *RegionReport {
+ s.BucketAccountId = &v
+ return s
+}
+
+// SetRegion sets the Region field's value.
+func (s *RegionReport) SetRegion(v string) *RegionReport {
+ s.Region = &v
+ return s
+}
+
+// The container for the regional bucket.
+type RegionalBucket struct {
+ _ struct{} `type:"structure"`
+
+ // Bucket is a required field
+ Bucket *string `min:"3" type:"string" required:"true"`
+
+ // The Amazon Resource Name (ARN) for the regional bucket.
+ BucketArn *string `min:"4" type:"string"`
- // The Amazon Web Services account ID for the owner of the Multi-Region Access
- // Point.
+ // The creation date of the regional bucket
//
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+ // CreationDate is a required field
+ CreationDate *time.Time `type:"timestamp" required:"true"`
- // An idempotency token used to identify the request and guarantee that requests
- // are unique.
- ClientToken *string `type:"string" idempotencyToken:"true"`
+ // The Outposts ID of the regional bucket.
+ OutpostId *string `min:"1" type:"string"`
- // A container element containing the details of the policy for the Multi-Region
- // Access Point.
- //
- // Details is a required field
- Details *PutMultiRegionAccessPointPolicyInput_ `type:"structure" required:"true"`
+ // PublicAccessBlockEnabled is a required field
+ PublicAccessBlockEnabled *bool `type:"boolean" required:"true"`
}
// String returns the string representation.
@@ -18489,7 +20554,7 @@ type PutMultiRegionAccessPointPolicyInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutMultiRegionAccessPointPolicyInput) String() string {
+func (s RegionalBucket) String() string {
return awsutil.Prettify(s)
}
@@ -18498,73 +20563,61 @@ func (s PutMultiRegionAccessPointPolicyInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutMultiRegionAccessPointPolicyInput) GoString() string {
+func (s RegionalBucket) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *PutMultiRegionAccessPointPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutMultiRegionAccessPointPolicyInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
- if s.Details == nil {
- invalidParams.Add(request.NewErrParamRequired("Details"))
- }
- if s.Details != nil {
- if err := s.Details.Validate(); err != nil {
- invalidParams.AddNested("Details", err.(request.ErrInvalidParams))
- }
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetBucket sets the Bucket field's value.
+func (s *RegionalBucket) SetBucket(v string) *RegionalBucket {
+ s.Bucket = &v
+ return s
}
-// SetAccountId sets the AccountId field's value.
-func (s *PutMultiRegionAccessPointPolicyInput) SetAccountId(v string) *PutMultiRegionAccessPointPolicyInput {
- s.AccountId = &v
+// SetBucketArn sets the BucketArn field's value.
+func (s *RegionalBucket) SetBucketArn(v string) *RegionalBucket {
+ s.BucketArn = &v
return s
}
-// SetClientToken sets the ClientToken field's value.
-func (s *PutMultiRegionAccessPointPolicyInput) SetClientToken(v string) *PutMultiRegionAccessPointPolicyInput {
- s.ClientToken = &v
+// SetCreationDate sets the CreationDate field's value.
+func (s *RegionalBucket) SetCreationDate(v time.Time) *RegionalBucket {
+ s.CreationDate = &v
return s
}
-// SetDetails sets the Details field's value.
-func (s *PutMultiRegionAccessPointPolicyInput) SetDetails(v *PutMultiRegionAccessPointPolicyInput_) *PutMultiRegionAccessPointPolicyInput {
- s.Details = v
+// SetOutpostId sets the OutpostId field's value.
+func (s *RegionalBucket) SetOutpostId(v string) *RegionalBucket {
+ s.OutpostId = &v
return s
}
-func (s *PutMultiRegionAccessPointPolicyInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
+// SetPublicAccessBlockEnabled sets the PublicAccessBlockEnabled field's value.
+func (s *RegionalBucket) SetPublicAccessBlockEnabled(v bool) *RegionalBucket {
+ s.PublicAccessBlockEnabled = &v
+ return s
}
-// A container for the information associated with a PutMultiRegionAccessPoint
-// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutMultiRegionAccessPoint.html)
-// request.
-type PutMultiRegionAccessPointPolicyInput_ struct {
+// A filter that you can use to specify whether replica modification sync is
+// enabled. S3 on Outposts replica modification sync can help you keep object
+// metadata synchronized between replicas and source objects. By default, S3
+// on Outposts replicates metadata from the source objects to the replicas only.
+// When replica modification sync is enabled, S3 on Outposts replicates metadata
+// changes made to the replica copies back to the source object, making the
+// replication bidirectional.
+//
+// To replicate object metadata modifications on replicas, you can specify this
+// element and set the Status of this element to Enabled.
+//
+// You must enable replica modification sync on the source and destination buckets
+// to replicate replica metadata changes between the source and the replicas.
+type ReplicaModifications struct {
_ struct{} `type:"structure"`
- // The name of the Multi-Region Access Point associated with the request.
- //
- // Name is a required field
- Name *string `type:"string" required:"true"`
-
- // The policy details for the PutMultiRegionAccessPoint request.
+ // Specifies whether S3 on Outposts replicates modifications to object metadata
+ // on replicas.
//
- // Policy is a required field
- Policy *string `type:"string" required:"true"`
+ // Status is a required field
+ Status *string `type:"string" required:"true" enum:"ReplicaModificationsStatus"`
}
// String returns the string representation.
@@ -18572,7 +20625,7 @@ type PutMultiRegionAccessPointPolicyInput_ struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutMultiRegionAccessPointPolicyInput_) String() string {
+func (s ReplicaModifications) String() string {
return awsutil.Prettify(s)
}
@@ -18581,18 +20634,15 @@ func (s PutMultiRegionAccessPointPolicyInput_) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutMultiRegionAccessPointPolicyInput_) GoString() string {
+func (s ReplicaModifications) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *PutMultiRegionAccessPointPolicyInput_) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutMultiRegionAccessPointPolicyInput_"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Policy == nil {
- invalidParams.Add(request.NewErrParamRequired("Policy"))
+func (s *ReplicaModifications) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ReplicaModifications"}
+ if s.Status == nil {
+ invalidParams.Add(request.NewErrParamRequired("Status"))
}
if invalidParams.Len() > 0 {
@@ -18601,65 +20651,33 @@ func (s *PutMultiRegionAccessPointPolicyInput_) Validate() error {
return nil
}
-// SetName sets the Name field's value.
-func (s *PutMultiRegionAccessPointPolicyInput_) SetName(v string) *PutMultiRegionAccessPointPolicyInput_ {
- s.Name = &v
- return s
-}
-
-// SetPolicy sets the Policy field's value.
-func (s *PutMultiRegionAccessPointPolicyInput_) SetPolicy(v string) *PutMultiRegionAccessPointPolicyInput_ {
- s.Policy = &v
+// SetStatus sets the Status field's value.
+func (s *ReplicaModifications) SetStatus(v string) *ReplicaModifications {
+ s.Status = &v
return s
}
-type PutMultiRegionAccessPointPolicyOutput struct {
+// A container for one or more replication rules. A replication configuration
+// must have at least one rule and you can add up to 100 rules. The maximum
+// size of a replication configuration is 128 KB.
+type ReplicationConfiguration struct {
_ struct{} `type:"structure"`
- // The request token associated with the request. You can use this token with
- // DescribeMultiRegionAccessPointOperation (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DescribeMultiRegionAccessPointOperation.html)
- // to determine the status of asynchronous requests.
- RequestTokenARN *string `min:"1" type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s PutMultiRegionAccessPointPolicyOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s PutMultiRegionAccessPointPolicyOutput) GoString() string {
- return s.String()
-}
-
-// SetRequestTokenARN sets the RequestTokenARN field's value.
-func (s *PutMultiRegionAccessPointPolicyOutput) SetRequestTokenARN(v string) *PutMultiRegionAccessPointPolicyOutput {
- s.RequestTokenARN = &v
- return s
-}
-
-type PutPublicAccessBlockInput struct {
- _ struct{} `locationName:"PutPublicAccessBlockRequest" type:"structure" payload:"PublicAccessBlockConfiguration"`
-
- // The account ID for the Amazon Web Services account whose PublicAccessBlock
- // configuration you want to set.
+ // The Amazon Resource Name (ARN) of the Identity and Access Management (IAM)
+ // role that S3 on Outposts assumes when replicating objects. For information
+ // about S3 replication on Outposts configuration, see Setting up replication
+ // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/outposts-replication-how-setup.html)
+ // in the Amazon S3 User Guide.
//
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+ // Role is a required field
+ Role *string `type:"string" required:"true"`
- // The PublicAccessBlock configuration that you want to apply to the specified
- // Amazon Web Services account.
+ // A container for one or more replication rules. A replication configuration
+ // must have at least one rule and can contain an array of 100 rules at the
+ // most.
//
- // PublicAccessBlockConfiguration is a required field
- PublicAccessBlockConfiguration *PublicAccessBlockConfiguration `locationName:"PublicAccessBlockConfiguration" type:"structure" required:"true" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+ // Rules is a required field
+ Rules []*ReplicationRule `locationNameList:"Rule" type:"list" required:"true"`
}
// String returns the string representation.
@@ -18667,7 +20685,7 @@ type PutPublicAccessBlockInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutPublicAccessBlockInput) String() string {
+func (s ReplicationConfiguration) String() string {
return awsutil.Prettify(s)
}
@@ -18676,21 +20694,28 @@ func (s PutPublicAccessBlockInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutPublicAccessBlockInput) GoString() string {
+func (s ReplicationConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *PutPublicAccessBlockInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutPublicAccessBlockInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
+func (s *ReplicationConfiguration) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ReplicationConfiguration"}
+ if s.Role == nil {
+ invalidParams.Add(request.NewErrParamRequired("Role"))
}
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ if s.Rules == nil {
+ invalidParams.Add(request.NewErrParamRequired("Rules"))
}
- if s.PublicAccessBlockConfiguration == nil {
- invalidParams.Add(request.NewErrParamRequired("PublicAccessBlockConfiguration"))
+ if s.Rules != nil {
+ for i, v := range s.Rules {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams))
+ }
+ }
}
if invalidParams.Len() > 0 {
@@ -18699,68 +20724,91 @@ func (s *PutPublicAccessBlockInput) Validate() error {
return nil
}
-// SetAccountId sets the AccountId field's value.
-func (s *PutPublicAccessBlockInput) SetAccountId(v string) *PutPublicAccessBlockInput {
- s.AccountId = &v
+// SetRole sets the Role field's value.
+func (s *ReplicationConfiguration) SetRole(v string) *ReplicationConfiguration {
+ s.Role = &v
return s
}
-// SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field's value.
-func (s *PutPublicAccessBlockInput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *PutPublicAccessBlockInput {
- s.PublicAccessBlockConfiguration = v
+// SetRules sets the Rules field's value.
+func (s *ReplicationConfiguration) SetRules(v []*ReplicationRule) *ReplicationConfiguration {
+ s.Rules = v
return s
}
-func (s *PutPublicAccessBlockInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
+// Specifies which S3 on Outposts objects to replicate and where to store the
+// replicas.
+type ReplicationRule struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the access point for the source Outposts
+ // bucket that you want S3 on Outposts to replicate the objects from.
+ //
+ // Bucket is a required field
+ Bucket *string `type:"string" required:"true"`
+
+ // Specifies whether S3 on Outposts replicates delete markers. If you specify
+ // a Filter element in your replication configuration, you must also include
+ // a DeleteMarkerReplication element. If your Filter includes a Tag element,
+ // the DeleteMarkerReplication element's Status child element must be set to
+ // Disabled, because S3 on Outposts doesn't support replicating delete markers
+ // for tag-based rules.
+ //
+ // For more information about delete marker replication, see How delete operations
+ // affect replication (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OutpostsReplication.html#outposts-replication-what-is-replicated)
+ // in the Amazon S3 User Guide.
+ DeleteMarkerReplication *DeleteMarkerReplication `type:"structure"`
-type PutPublicAccessBlockOutput struct {
- _ struct{} `type:"structure"`
-}
+ // A container for information about the replication destination and its configurations.
+ //
+ // Destination is a required field
+ Destination *Destination `type:"structure" required:"true"`
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s PutPublicAccessBlockOutput) String() string {
- return awsutil.Prettify(s)
-}
+ // An optional configuration to replicate existing source bucket objects.
+ //
+ // This is not supported by Amazon S3 on Outposts buckets.
+ ExistingObjectReplication *ExistingObjectReplication `type:"structure"`
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s PutPublicAccessBlockOutput) GoString() string {
- return s.String()
-}
+ // A filter that identifies the subset of objects to which the replication rule
+ // applies. A Filter element must specify exactly one Prefix, Tag, or And child
+ // element.
+ Filter *ReplicationRuleFilter `type:"structure"`
-type PutStorageLensConfigurationInput struct {
- _ struct{} `locationName:"PutStorageLensConfigurationRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+ // A unique identifier for the rule. The maximum value is 255 characters.
+ ID *string `type:"string"`
- // The account ID of the requester.
+ // An object key name prefix that identifies the object or objects to which
+ // the rule applies. The maximum prefix length is 1,024 characters. To include
+ // all objects in an Outposts bucket, specify an empty string.
//
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
-
- // The ID of the S3 Storage Lens configuration.
+ // When you're using XML requests, you must replace special characters (such
+ // as carriage returns) in object keys with their equivalent XML entity codes.
+ // For more information, see XML-related object key constraints (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints)
+ // in the Amazon S3 User Guide.
//
- // ConfigId is a required field
- ConfigId *string `location:"uri" locationName:"storagelensid" min:"1" type:"string" required:"true"`
+ // Deprecated: Prefix has been deprecated
+ Prefix *string `deprecated:"true" type:"string"`
- // The S3 Storage Lens configuration.
+ // The priority indicates which rule has precedence whenever two or more replication
+ // rules conflict. S3 on Outposts attempts to replicate objects according to
+ // all replication rules. However, if there are two or more rules with the same
+ // destination Outposts bucket, then objects will be replicated according to
+ // the rule with the highest priority. The higher the number, the higher the
+ // priority.
//
- // StorageLensConfiguration is a required field
- StorageLensConfiguration *StorageLensConfiguration `type:"structure" required:"true"`
+ // For more information, see Creating replication rules on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication-between-outposts.html)
+ // in the Amazon S3 User Guide.
+ Priority *int64 `type:"integer"`
- // The tag set of the S3 Storage Lens configuration.
+ // A container that describes additional filters for identifying the source
+ // Outposts objects that you want to replicate. You can choose to enable or
+ // disable the replication of these objects.
+ SourceSelectionCriteria *SourceSelectionCriteria `type:"structure"`
+
+ // Specifies whether the rule is enabled.
//
- // You can set up to a maximum of 50 tags.
- Tags []*StorageLensTag `locationNameList:"Tag" type:"list"`
+ // Status is a required field
+ Status *string `type:"string" required:"true" enum:"ReplicationRuleStatus"`
}
// String returns the string representation.
@@ -18768,7 +20816,7 @@ type PutStorageLensConfigurationInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutStorageLensConfigurationInput) String() string {
+func (s ReplicationRule) String() string {
return awsutil.Prettify(s)
}
@@ -18777,41 +20825,45 @@ func (s PutStorageLensConfigurationInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutStorageLensConfigurationInput) GoString() string {
+func (s ReplicationRule) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *PutStorageLensConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutStorageLensConfigurationInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
+func (s *ReplicationRule) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ReplicationRule"}
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
}
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ if s.Destination == nil {
+ invalidParams.Add(request.NewErrParamRequired("Destination"))
}
- if s.ConfigId == nil {
- invalidParams.Add(request.NewErrParamRequired("ConfigId"))
+ if s.Status == nil {
+ invalidParams.Add(request.NewErrParamRequired("Status"))
}
- if s.ConfigId != nil && len(*s.ConfigId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ConfigId", 1))
+ if s.DeleteMarkerReplication != nil {
+ if err := s.DeleteMarkerReplication.Validate(); err != nil {
+ invalidParams.AddNested("DeleteMarkerReplication", err.(request.ErrInvalidParams))
+ }
}
- if s.StorageLensConfiguration == nil {
- invalidParams.Add(request.NewErrParamRequired("StorageLensConfiguration"))
+ if s.Destination != nil {
+ if err := s.Destination.Validate(); err != nil {
+ invalidParams.AddNested("Destination", err.(request.ErrInvalidParams))
+ }
}
- if s.StorageLensConfiguration != nil {
- if err := s.StorageLensConfiguration.Validate(); err != nil {
- invalidParams.AddNested("StorageLensConfiguration", err.(request.ErrInvalidParams))
+ if s.ExistingObjectReplication != nil {
+ if err := s.ExistingObjectReplication.Validate(); err != nil {
+ invalidParams.AddNested("ExistingObjectReplication", err.(request.ErrInvalidParams))
}
}
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
+ if s.Filter != nil {
+ if err := s.Filter.Validate(); err != nil {
+ invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.SourceSelectionCriteria != nil {
+ if err := s.SourceSelectionCriteria.Validate(); err != nil {
+ invalidParams.AddNested("SourceSelectionCriteria", err.(request.ErrInvalidParams))
}
}
@@ -18821,77 +20873,86 @@ func (s *PutStorageLensConfigurationInput) Validate() error {
return nil
}
-// SetAccountId sets the AccountId field's value.
-func (s *PutStorageLensConfigurationInput) SetAccountId(v string) *PutStorageLensConfigurationInput {
- s.AccountId = &v
+// SetBucket sets the Bucket field's value.
+func (s *ReplicationRule) SetBucket(v string) *ReplicationRule {
+ s.Bucket = &v
return s
}
-// SetConfigId sets the ConfigId field's value.
-func (s *PutStorageLensConfigurationInput) SetConfigId(v string) *PutStorageLensConfigurationInput {
- s.ConfigId = &v
+// SetDeleteMarkerReplication sets the DeleteMarkerReplication field's value.
+func (s *ReplicationRule) SetDeleteMarkerReplication(v *DeleteMarkerReplication) *ReplicationRule {
+ s.DeleteMarkerReplication = v
return s
}
-// SetStorageLensConfiguration sets the StorageLensConfiguration field's value.
-func (s *PutStorageLensConfigurationInput) SetStorageLensConfiguration(v *StorageLensConfiguration) *PutStorageLensConfigurationInput {
- s.StorageLensConfiguration = v
+// SetDestination sets the Destination field's value.
+func (s *ReplicationRule) SetDestination(v *Destination) *ReplicationRule {
+ s.Destination = v
return s
}
-// SetTags sets the Tags field's value.
-func (s *PutStorageLensConfigurationInput) SetTags(v []*StorageLensTag) *PutStorageLensConfigurationInput {
- s.Tags = v
+// SetExistingObjectReplication sets the ExistingObjectReplication field's value.
+func (s *ReplicationRule) SetExistingObjectReplication(v *ExistingObjectReplication) *ReplicationRule {
+ s.ExistingObjectReplication = v
return s
}
-func (s *PutStorageLensConfigurationInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
+// SetFilter sets the Filter field's value.
+func (s *ReplicationRule) SetFilter(v *ReplicationRuleFilter) *ReplicationRule {
+ s.Filter = v
+ return s
}
-type PutStorageLensConfigurationOutput struct {
- _ struct{} `type:"structure"`
+// SetID sets the ID field's value.
+func (s *ReplicationRule) SetID(v string) *ReplicationRule {
+ s.ID = &v
+ return s
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s PutStorageLensConfigurationOutput) String() string {
- return awsutil.Prettify(s)
+// SetPrefix sets the Prefix field's value.
+func (s *ReplicationRule) SetPrefix(v string) *ReplicationRule {
+ s.Prefix = &v
+ return s
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s PutStorageLensConfigurationOutput) GoString() string {
- return s.String()
+// SetPriority sets the Priority field's value.
+func (s *ReplicationRule) SetPriority(v int64) *ReplicationRule {
+ s.Priority = &v
+ return s
}
-type PutStorageLensConfigurationTaggingInput struct {
- _ struct{} `locationName:"PutStorageLensConfigurationTaggingRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+// SetSourceSelectionCriteria sets the SourceSelectionCriteria field's value.
+func (s *ReplicationRule) SetSourceSelectionCriteria(v *SourceSelectionCriteria) *ReplicationRule {
+ s.SourceSelectionCriteria = v
+ return s
+}
- // The account ID of the requester.
- //
- // AccountId is a required field
- AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+// SetStatus sets the Status field's value.
+func (s *ReplicationRule) SetStatus(v string) *ReplicationRule {
+ s.Status = &v
+ return s
+}
- // The ID of the S3 Storage Lens configuration.
- //
- // ConfigId is a required field
- ConfigId *string `location:"uri" locationName:"storagelensid" min:"1" type:"string" required:"true"`
+// A container for specifying rule filters. The filters determine the subset
+// of objects to which the rule applies. This element is required only if you
+// specify more than one filter.
+//
+// For example:
+//
+// - If you specify both a Prefix and a Tag filter, wrap these filters in
+// an And element.
+//
+// - If you specify a filter based on multiple tags, wrap the Tag elements
+// in an And element.
+type ReplicationRuleAndOperator struct {
+ _ struct{} `type:"structure"`
- // The tag set of the S3 Storage Lens configuration.
- //
- // You can set up to a maximum of 50 tags.
- //
- // Tags is a required field
- Tags []*StorageLensTag `locationNameList:"Tag" type:"list" required:"true"`
+ // An object key name prefix that identifies the subset of objects that the
+ // rule applies to.
+ Prefix *string `type:"string"`
+
+ // An array of tags that contain key and value pairs.
+ Tags []*S3Tag `type:"list"`
}
// String returns the string representation.
@@ -18899,7 +20960,7 @@ type PutStorageLensConfigurationTaggingInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutStorageLensConfigurationTaggingInput) String() string {
+func (s ReplicationRuleAndOperator) String() string {
return awsutil.Prettify(s)
}
@@ -18908,28 +20969,13 @@ func (s PutStorageLensConfigurationTaggingInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutStorageLensConfigurationTaggingInput) GoString() string {
+func (s ReplicationRuleAndOperator) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *PutStorageLensConfigurationTaggingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutStorageLensConfigurationTaggingInput"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.AccountId != nil && len(*s.AccountId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
- }
- if s.ConfigId == nil {
- invalidParams.Add(request.NewErrParamRequired("ConfigId"))
- }
- if s.ConfigId != nil && len(*s.ConfigId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ConfigId", 1))
- }
- if s.Tags == nil {
- invalidParams.Add(request.NewErrParamRequired("Tags"))
- }
+func (s *ReplicationRuleAndOperator) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ReplicationRuleAndOperator"}
if s.Tags != nil {
for i, v := range s.Tags {
if v == nil {
@@ -18947,32 +20993,46 @@ func (s *PutStorageLensConfigurationTaggingInput) Validate() error {
return nil
}
-// SetAccountId sets the AccountId field's value.
-func (s *PutStorageLensConfigurationTaggingInput) SetAccountId(v string) *PutStorageLensConfigurationTaggingInput {
- s.AccountId = &v
- return s
-}
-
-// SetConfigId sets the ConfigId field's value.
-func (s *PutStorageLensConfigurationTaggingInput) SetConfigId(v string) *PutStorageLensConfigurationTaggingInput {
- s.ConfigId = &v
+// SetPrefix sets the Prefix field's value.
+func (s *ReplicationRuleAndOperator) SetPrefix(v string) *ReplicationRuleAndOperator {
+ s.Prefix = &v
return s
}
// SetTags sets the Tags field's value.
-func (s *PutStorageLensConfigurationTaggingInput) SetTags(v []*StorageLensTag) *PutStorageLensConfigurationTaggingInput {
+func (s *ReplicationRuleAndOperator) SetTags(v []*S3Tag) *ReplicationRuleAndOperator {
s.Tags = v
return s
}
-func (s *PutStorageLensConfigurationTaggingInput) hostLabels() map[string]string {
- return map[string]string{
- "AccountId": aws.StringValue(s.AccountId),
- }
-}
-
-type PutStorageLensConfigurationTaggingOutput struct {
+// A filter that identifies the subset of objects to which the replication rule
+// applies. A Filter element must specify exactly one Prefix, Tag, or And child
+// element.
+type ReplicationRuleFilter struct {
_ struct{} `type:"structure"`
+
+ // A container for specifying rule filters. The filters determine the subset
+ // of objects that the rule applies to. This element is required only if you
+ // specify more than one filter. For example:
+ //
+ // * If you specify both a Prefix and a Tag filter, wrap these filters in
+ // an And element.
+ //
+ // * If you specify a filter based on multiple tags, wrap the Tag elements
+ // in an And element.
+ And *ReplicationRuleAndOperator `type:"structure"`
+
+ // An object key name prefix that identifies the subset of objects that the
+ // rule applies to.
+ //
+ // When you're using XML requests, you must replace special characters (such
+ // as carriage returns) in object keys with their equivalent XML entity codes.
+ // For more information, see XML-related object key constraints (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints)
+ // in the Amazon S3 User Guide.
+ Prefix *string `type:"string"`
+
+ // A container for a key-value name pair.
+ Tag *S3Tag `type:"structure"`
}
// String returns the string representation.
@@ -18980,7 +21040,7 @@ type PutStorageLensConfigurationTaggingOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutStorageLensConfigurationTaggingOutput) String() string {
+func (s ReplicationRuleFilter) String() string {
return awsutil.Prettify(s)
}
@@ -18989,23 +21049,66 @@ func (s PutStorageLensConfigurationTaggingOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutStorageLensConfigurationTaggingOutput) GoString() string {
+func (s ReplicationRuleFilter) GoString() string {
return s.String()
}
-// A Region that supports a Multi-Region Access Point as well as the associated
-// bucket for the Region.
-type Region struct {
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ReplicationRuleFilter) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ReplicationRuleFilter"}
+ if s.And != nil {
+ if err := s.And.Validate(); err != nil {
+ invalidParams.AddNested("And", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.Tag != nil {
+ if err := s.Tag.Validate(); err != nil {
+ invalidParams.AddNested("Tag", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAnd sets the And field's value.
+func (s *ReplicationRuleFilter) SetAnd(v *ReplicationRuleAndOperator) *ReplicationRuleFilter {
+ s.And = v
+ return s
+}
+
+// SetPrefix sets the Prefix field's value.
+func (s *ReplicationRuleFilter) SetPrefix(v string) *ReplicationRuleFilter {
+ s.Prefix = &v
+ return s
+}
+
+// SetTag sets the Tag field's value.
+func (s *ReplicationRuleFilter) SetTag(v *S3Tag) *ReplicationRuleFilter {
+ s.Tag = v
+ return s
+}
+
+// A container that specifies S3 Replication Time Control (S3 RTC) related information,
+// including whether S3 RTC is enabled and the time when all objects and operations
+// on objects must be replicated.
+//
+// This is not supported by Amazon S3 on Outposts buckets.
+type ReplicationTime struct {
_ struct{} `type:"structure"`
- // The name of the associated bucket for the Region.
+ // Specifies whether S3 Replication Time Control (S3 RTC) is enabled.
//
- // Bucket is a required field
- Bucket *string `min:"3" type:"string" required:"true"`
+ // Status is a required field
+ Status *string `type:"string" required:"true" enum:"ReplicationTimeStatus"`
- // The Amazon Web Services account ID that owns the Amazon S3 bucket that's
- // associated with this Multi-Region Access Point.
- BucketAccountId *string `type:"string"`
+ // A container that specifies the time by which replication should be complete
+ // for all objects and operations on objects.
+ //
+ // Time is a required field
+ Time *ReplicationTimeValue `type:"structure" required:"true"`
}
// String returns the string representation.
@@ -19013,7 +21116,7 @@ type Region struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s Region) String() string {
+func (s ReplicationTime) String() string {
return awsutil.Prettify(s)
}
@@ -19022,18 +21125,18 @@ func (s Region) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s Region) GoString() string {
+func (s ReplicationTime) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *Region) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Region"}
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
+func (s *ReplicationTime) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ReplicationTime"}
+ if s.Status == nil {
+ invalidParams.Add(request.NewErrParamRequired("Status"))
}
- if s.Bucket != nil && len(*s.Bucket) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 3))
+ if s.Time == nil {
+ invalidParams.Add(request.NewErrParamRequired("Time"))
}
if invalidParams.Len() > 0 {
@@ -19042,32 +21145,30 @@ func (s *Region) Validate() error {
return nil
}
-// SetBucket sets the Bucket field's value.
-func (s *Region) SetBucket(v string) *Region {
- s.Bucket = &v
+// SetStatus sets the Status field's value.
+func (s *ReplicationTime) SetStatus(v string) *ReplicationTime {
+ s.Status = &v
return s
}
-// SetBucketAccountId sets the BucketAccountId field's value.
-func (s *Region) SetBucketAccountId(v string) *Region {
- s.BucketAccountId = &v
+// SetTime sets the Time field's value.
+func (s *ReplicationTime) SetTime(v *ReplicationTimeValue) *ReplicationTime {
+ s.Time = v
return s
}
-// A combination of a bucket and Region that's part of a Multi-Region Access
-// Point.
-type RegionReport struct {
+// A container that specifies the time value for S3 Replication Time Control
+// (S3 RTC). This value is also used for the replication metrics EventThreshold
+// element.
+//
+// This is not supported by Amazon S3 on Outposts buckets.
+type ReplicationTimeValue struct {
_ struct{} `type:"structure"`
- // The name of the bucket.
- Bucket *string `min:"3" type:"string"`
-
- // The Amazon Web Services account ID that owns the Amazon S3 bucket that's
- // associated with this Multi-Region Access Point.
- BucketAccountId *string `type:"string"`
-
- // The name of the Region.
- Region *string `min:"1" type:"string"`
+ // Contains an integer that specifies the time period in minutes.
+ //
+ // Valid value: 15
+ Minutes *int64 `type:"integer"`
}
// String returns the string representation.
@@ -19075,7 +21176,7 @@ type RegionReport struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s RegionReport) String() string {
+func (s ReplicationTimeValue) String() string {
return awsutil.Prettify(s)
}
@@ -19084,48 +21185,23 @@ func (s RegionReport) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s RegionReport) GoString() string {
+func (s ReplicationTimeValue) GoString() string {
return s.String()
}
-// SetBucket sets the Bucket field's value.
-func (s *RegionReport) SetBucket(v string) *RegionReport {
- s.Bucket = &v
- return s
-}
-
-// SetBucketAccountId sets the BucketAccountId field's value.
-func (s *RegionReport) SetBucketAccountId(v string) *RegionReport {
- s.BucketAccountId = &v
- return s
-}
-
-// SetRegion sets the Region field's value.
-func (s *RegionReport) SetRegion(v string) *RegionReport {
- s.Region = &v
+// SetMinutes sets the Minutes field's value.
+func (s *ReplicationTimeValue) SetMinutes(v int64) *ReplicationTimeValue {
+ s.Minutes = &v
return s
}
-// The container for the regional bucket.
-type RegionalBucket struct {
+type S3AccessControlList struct {
_ struct{} `type:"structure"`
- // Bucket is a required field
- Bucket *string `min:"3" type:"string" required:"true"`
-
- // The Amazon Resource Name (ARN) for the regional bucket.
- BucketArn *string `min:"4" type:"string"`
-
- // The creation date of the regional bucket
- //
- // CreationDate is a required field
- CreationDate *time.Time `type:"timestamp" required:"true"`
-
- // The Outposts ID of the regional bucket.
- OutpostId *string `min:"1" type:"string"`
+ Grants []*S3Grant `type:"list"`
- // PublicAccessBlockEnabled is a required field
- PublicAccessBlockEnabled *bool `type:"boolean" required:"true"`
+ // Owner is a required field
+ Owner *S3ObjectOwner `type:"structure" required:"true"`
}
// String returns the string representation.
@@ -19133,7 +21209,7 @@ type RegionalBucket struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s RegionalBucket) String() string {
+func (s S3AccessControlList) String() string {
return awsutil.Prettify(s)
}
@@ -19142,61 +21218,56 @@ func (s RegionalBucket) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s RegionalBucket) GoString() string {
+func (s S3AccessControlList) GoString() string {
return s.String()
}
-// SetBucket sets the Bucket field's value.
-func (s *RegionalBucket) SetBucket(v string) *RegionalBucket {
- s.Bucket = &v
- return s
-}
-
-// SetBucketArn sets the BucketArn field's value.
-func (s *RegionalBucket) SetBucketArn(v string) *RegionalBucket {
- s.BucketArn = &v
- return s
-}
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *S3AccessControlList) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "S3AccessControlList"}
+ if s.Owner == nil {
+ invalidParams.Add(request.NewErrParamRequired("Owner"))
+ }
+ if s.Grants != nil {
+ for i, v := range s.Grants {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Grants", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+ if s.Owner != nil {
+ if err := s.Owner.Validate(); err != nil {
+ invalidParams.AddNested("Owner", err.(request.ErrInvalidParams))
+ }
+ }
-// SetCreationDate sets the CreationDate field's value.
-func (s *RegionalBucket) SetCreationDate(v time.Time) *RegionalBucket {
- s.CreationDate = &v
- return s
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetOutpostId sets the OutpostId field's value.
-func (s *RegionalBucket) SetOutpostId(v string) *RegionalBucket {
- s.OutpostId = &v
+// SetGrants sets the Grants field's value.
+func (s *S3AccessControlList) SetGrants(v []*S3Grant) *S3AccessControlList {
+ s.Grants = v
return s
}
-// SetPublicAccessBlockEnabled sets the PublicAccessBlockEnabled field's value.
-func (s *RegionalBucket) SetPublicAccessBlockEnabled(v bool) *RegionalBucket {
- s.PublicAccessBlockEnabled = &v
+// SetOwner sets the Owner field's value.
+func (s *S3AccessControlList) SetOwner(v *S3ObjectOwner) *S3AccessControlList {
+ s.Owner = v
return s
}
-// A filter that you can use to specify whether replica modification sync is
-// enabled. S3 on Outposts replica modification sync can help you keep object
-// metadata synchronized between replicas and source objects. By default, S3
-// on Outposts replicates metadata from the source objects to the replicas only.
-// When replica modification sync is enabled, S3 on Outposts replicates metadata
-// changes made to the replica copies back to the source object, making the
-// replication bidirectional.
-//
-// To replicate object metadata modifications on replicas, you can specify this
-// element and set the Status of this element to Enabled.
-//
-// You must enable replica modification sync on the source and destination buckets
-// to replicate replica metadata changes between the source and the replicas.
-type ReplicaModifications struct {
+type S3AccessControlPolicy struct {
_ struct{} `type:"structure"`
- // Specifies whether S3 on Outposts replicates modifications to object metadata
- // on replicas.
- //
- // Status is a required field
- Status *string `type:"string" required:"true" enum:"ReplicaModificationsStatus"`
+ AccessControlList *S3AccessControlList `type:"structure"`
+
+ CannedAccessControlList *string `type:"string" enum:"S3CannedAccessControlList"`
}
// String returns the string representation.
@@ -19204,7 +21275,7 @@ type ReplicaModifications struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ReplicaModifications) String() string {
+func (s S3AccessControlPolicy) String() string {
return awsutil.Prettify(s)
}
@@ -19213,15 +21284,17 @@ func (s ReplicaModifications) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ReplicaModifications) GoString() string {
+func (s S3AccessControlPolicy) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *ReplicaModifications) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ReplicaModifications"}
- if s.Status == nil {
- invalidParams.Add(request.NewErrParamRequired("Status"))
+func (s *S3AccessControlPolicy) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "S3AccessControlPolicy"}
+ if s.AccessControlList != nil {
+ if err := s.AccessControlList.Validate(); err != nil {
+ invalidParams.AddNested("AccessControlList", err.(request.ErrInvalidParams))
+ }
}
if invalidParams.Len() > 0 {
@@ -19230,33 +21303,47 @@ func (s *ReplicaModifications) Validate() error {
return nil
}
-// SetStatus sets the Status field's value.
-func (s *ReplicaModifications) SetStatus(v string) *ReplicaModifications {
- s.Status = &v
+// SetAccessControlList sets the AccessControlList field's value.
+func (s *S3AccessControlPolicy) SetAccessControlList(v *S3AccessControlList) *S3AccessControlPolicy {
+ s.AccessControlList = v
return s
}
-// A container for one or more replication rules. A replication configuration
-// must have at least one rule and you can add up to 100 rules. The maximum
-// size of a replication configuration is 128 KB.
-type ReplicationConfiguration struct {
+// SetCannedAccessControlList sets the CannedAccessControlList field's value.
+func (s *S3AccessControlPolicy) SetCannedAccessControlList(v string) *S3AccessControlPolicy {
+ s.CannedAccessControlList = &v
+ return s
+}
+
+// A container for the bucket where the Amazon S3 Storage Lens metrics export
+// files are located.
+type S3BucketDestination struct {
_ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the Identity and Access Management (IAM)
- // role that S3 on Outposts assumes when replicating objects. For information
- // about S3 replication on Outposts configuration, see Setting up replication
- // (https://docs.aws.amazon.com/AmazonS3/latest/userguide/outposts-replication-how-setup.html)
- // in the Amazon S3 User Guide.
+ // The account ID of the owner of the S3 Storage Lens metrics export bucket.
//
- // Role is a required field
- Role *string `type:"string" required:"true"`
+ // AccountId is a required field
+ AccountId *string `type:"string" required:"true"`
- // A container for one or more replication rules. A replication configuration
- // must have at least one rule and can contain an array of 100 rules at the
- // most.
+ // The Amazon Resource Name (ARN) of the bucket. This property is read-only
+ // and follows the following format: arn:aws:s3:us-east-1:example-account-id:bucket/your-destination-bucket-name
//
- // Rules is a required field
- Rules []*ReplicationRule `locationNameList:"Rule" type:"list" required:"true"`
+ // Arn is a required field
+ Arn *string `min:"1" type:"string" required:"true"`
+
+ // The container for the type encryption of the metrics exports in this bucket.
+ Encryption *StorageLensDataExportEncryption `type:"structure"`
+
+ // Format is a required field
+ Format *string `type:"string" required:"true" enum:"Format"`
+
+ // The schema version of the export file.
+ //
+ // OutputSchemaVersion is a required field
+ OutputSchemaVersion *string `type:"string" required:"true" enum:"OutputSchemaVersion"`
+
+ // The prefix of the destination bucket where the metrics export will be delivered.
+ Prefix *string `type:"string"`
}
// String returns the string representation.
@@ -19264,7 +21351,7 @@ type ReplicationConfiguration struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ReplicationConfiguration) String() string {
+func (s S3BucketDestination) String() string {
return awsutil.Prettify(s)
}
@@ -19273,27 +21360,31 @@ func (s ReplicationConfiguration) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ReplicationConfiguration) GoString() string {
+func (s S3BucketDestination) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *ReplicationConfiguration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ReplicationConfiguration"}
- if s.Role == nil {
- invalidParams.Add(request.NewErrParamRequired("Role"))
+func (s *S3BucketDestination) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "S3BucketDestination"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
- if s.Rules == nil {
- invalidParams.Add(request.NewErrParamRequired("Rules"))
+ if s.Arn == nil {
+ invalidParams.Add(request.NewErrParamRequired("Arn"))
}
- if s.Rules != nil {
- for i, v := range s.Rules {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams))
- }
+ if s.Arn != nil && len(*s.Arn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Arn", 1))
+ }
+ if s.Format == nil {
+ invalidParams.Add(request.NewErrParamRequired("Format"))
+ }
+ if s.OutputSchemaVersion == nil {
+ invalidParams.Add(request.NewErrParamRequired("OutputSchemaVersion"))
+ }
+ if s.Encryption != nil {
+ if err := s.Encryption.Validate(); err != nil {
+ invalidParams.AddNested("Encryption", err.(request.ErrInvalidParams))
}
}
@@ -19303,91 +21394,110 @@ func (s *ReplicationConfiguration) Validate() error {
return nil
}
-// SetRole sets the Role field's value.
-func (s *ReplicationConfiguration) SetRole(v string) *ReplicationConfiguration {
- s.Role = &v
+// SetAccountId sets the AccountId field's value.
+func (s *S3BucketDestination) SetAccountId(v string) *S3BucketDestination {
+ s.AccountId = &v
return s
}
-// SetRules sets the Rules field's value.
-func (s *ReplicationConfiguration) SetRules(v []*ReplicationRule) *ReplicationConfiguration {
- s.Rules = v
+// SetArn sets the Arn field's value.
+func (s *S3BucketDestination) SetArn(v string) *S3BucketDestination {
+ s.Arn = &v
return s
}
-// Specifies which S3 on Outposts objects to replicate and where to store the
-// replicas.
-type ReplicationRule struct {
+// SetEncryption sets the Encryption field's value.
+func (s *S3BucketDestination) SetEncryption(v *StorageLensDataExportEncryption) *S3BucketDestination {
+ s.Encryption = v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *S3BucketDestination) SetFormat(v string) *S3BucketDestination {
+ s.Format = &v
+ return s
+}
+
+// SetOutputSchemaVersion sets the OutputSchemaVersion field's value.
+func (s *S3BucketDestination) SetOutputSchemaVersion(v string) *S3BucketDestination {
+ s.OutputSchemaVersion = &v
+ return s
+}
+
+// SetPrefix sets the Prefix field's value.
+func (s *S3BucketDestination) SetPrefix(v string) *S3BucketDestination {
+ s.Prefix = &v
+ return s
+}
+
+// Contains the configuration parameters for a PUT Copy object operation. S3
+// Batch Operations passes every object to the underlying CopyObject API operation.
+// For more information about the parameters for this operation, see CopyObject
+// (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectCOPY.html).
+type S3CopyObjectOperation struct {
_ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the access point for the source Outposts
- // bucket that you want S3 on Outposts to replicate the objects from.
- //
- // Bucket is a required field
- Bucket *string `type:"string" required:"true"`
+ AccessControlGrants []*S3Grant `type:"list"`
- // Specifies whether S3 on Outposts replicates delete markers. If you specify
- // a Filter element in your replication configuration, you must also include
- // a DeleteMarkerReplication element. If your Filter includes a Tag element,
- // the DeleteMarkerReplication element's Status child element must be set to
- // Disabled, because S3 on Outposts doesn't support replicating delete markers
- // for tag-based rules.
+ // Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption
+ // with server-side encryption using Amazon Web Services KMS (SSE-KMS). Setting
+ // this header to true causes Amazon S3 to use an S3 Bucket Key for object encryption
+ // with SSE-KMS.
//
- // For more information about delete marker replication, see How delete operations
- // affect replication (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OutpostsReplication.html#outposts-replication-what-is-replicated)
+ // Specifying this header with an object action doesn’t affect bucket-level
+ // settings for S3 Bucket Key.
+ BucketKeyEnabled *bool `type:"boolean"`
+
+ CannedAccessControlList *string `type:"string" enum:"S3CannedAccessControlList"`
+
+ // Indicates the algorithm that you want Amazon S3 to use to create the checksum.
+ // For more information, see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html)
// in the Amazon S3 User Guide.
- DeleteMarkerReplication *DeleteMarkerReplication `type:"structure"`
+ ChecksumAlgorithm *string `type:"string" enum:"S3ChecksumAlgorithm"`
- // A container for information about the replication destination and its configurations.
- //
- // Destination is a required field
- Destination *Destination `type:"structure" required:"true"`
+ MetadataDirective *string `type:"string" enum:"S3MetadataDirective"`
- // An optional configuration to replicate existing source bucket objects.
- //
- // This is not supported by Amazon S3 on Outposts buckets.
- ExistingObjectReplication *ExistingObjectReplication `type:"structure"`
+ ModifiedSinceConstraint *time.Time `type:"timestamp"`
- // A filter that identifies the subset of objects to which the replication rule
- // applies. A Filter element must specify exactly one Prefix, Tag, or And child
- // element.
- Filter *ReplicationRuleFilter `type:"structure"`
+ // If you don't provide this parameter, Amazon S3 copies all the metadata from
+ // the original objects. If you specify an empty set, the new objects will have
+ // no tags. Otherwise, Amazon S3 assigns the supplied tags to the new objects.
+ NewObjectMetadata *S3ObjectMetadata `type:"structure"`
- // A unique identifier for the rule. The maximum value is 255 characters.
- ID *string `type:"string"`
+ NewObjectTagging []*S3Tag `type:"list"`
- // An object key name prefix that identifies the object or objects to which
- // the rule applies. The maximum prefix length is 1,024 characters. To include
- // all objects in an Outposts bucket, specify an empty string.
- //
- // When you're using XML requests, you must replace special characters (such
- // as carriage returns) in object keys with their equivalent XML entity codes.
- // For more information, see XML-related object key constraints (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints)
- // in the Amazon S3 User Guide.
- //
- // Deprecated: Prefix has been deprecated
- Prefix *string `deprecated:"true" type:"string"`
+ // The legal hold status to be applied to all objects in the Batch Operations
+ // job.
+ ObjectLockLegalHoldStatus *string `type:"string" enum:"S3ObjectLockLegalHoldStatus"`
+
+ // The retention mode to be applied to all objects in the Batch Operations job.
+ ObjectLockMode *string `type:"string" enum:"S3ObjectLockMode"`
+
+ // The date when the applied object retention configuration expires on all objects
+ // in the Batch Operations job.
+ ObjectLockRetainUntilDate *time.Time `type:"timestamp"`
+
+ // Specifies an optional metadata property for website redirects, x-amz-website-redirect-location.
+ // Allows webpage redirects if the object is accessed through a website endpoint.
+ RedirectLocation *string `min:"1" type:"string"`
+
+ RequesterPays *bool `type:"boolean"`
+
+ SSEAwsKmsKeyId *string `min:"1" type:"string"`
+
+ StorageClass *string `type:"string" enum:"S3StorageClass"`
- // The priority indicates which rule has precedence whenever two or more replication
- // rules conflict. S3 on Outposts attempts to replicate objects according to
- // all replication rules. However, if there are two or more rules with the same
- // destination Outposts bucket, then objects will be replicated according to
- // the rule with the highest priority. The higher the number, the higher the
- // priority.
- //
- // For more information, see Creating replication rules on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication-between-outposts.html)
- // in the Amazon S3 User Guide.
- Priority *int64 `type:"integer"`
+ // Specifies the folder prefix that you want the objects to be copied into.
+ // For example, to copy objects into a folder named Folder1 in the destination
+ // bucket, set the TargetKeyPrefix property to Folder1.
+ TargetKeyPrefix *string `min:"1" type:"string"`
- // A container that describes additional filters for identifying the source
- // Outposts objects that you want to replicate. You can choose to enable or
- // disable the replication of these objects.
- SourceSelectionCriteria *SourceSelectionCriteria `type:"structure"`
+ // Specifies the destination bucket Amazon Resource Name (ARN) for the batch
+ // copy operation. For example, to copy objects to a bucket named destinationBucket,
+ // set the TargetResource property to arn:aws:s3:::destinationBucket.
+ TargetResource *string `min:"1" type:"string"`
- // Specifies whether the rule is enabled.
- //
- // Status is a required field
- Status *string `type:"string" required:"true" enum:"ReplicationRuleStatus"`
+ UnModifiedSinceConstraint *time.Time `type:"timestamp"`
}
// String returns the string representation.
@@ -19395,7 +21505,7 @@ type ReplicationRule struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ReplicationRule) String() string {
+func (s S3CopyObjectOperation) String() string {
return awsutil.Prettify(s)
}
@@ -19404,45 +21514,48 @@ func (s ReplicationRule) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ReplicationRule) GoString() string {
+func (s S3CopyObjectOperation) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *ReplicationRule) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ReplicationRule"}
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
- }
- if s.Destination == nil {
- invalidParams.Add(request.NewErrParamRequired("Destination"))
+func (s *S3CopyObjectOperation) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "S3CopyObjectOperation"}
+ if s.RedirectLocation != nil && len(*s.RedirectLocation) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("RedirectLocation", 1))
}
- if s.Status == nil {
- invalidParams.Add(request.NewErrParamRequired("Status"))
+ if s.SSEAwsKmsKeyId != nil && len(*s.SSEAwsKmsKeyId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("SSEAwsKmsKeyId", 1))
}
- if s.DeleteMarkerReplication != nil {
- if err := s.DeleteMarkerReplication.Validate(); err != nil {
- invalidParams.AddNested("DeleteMarkerReplication", err.(request.ErrInvalidParams))
- }
+ if s.TargetKeyPrefix != nil && len(*s.TargetKeyPrefix) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("TargetKeyPrefix", 1))
}
- if s.Destination != nil {
- if err := s.Destination.Validate(); err != nil {
- invalidParams.AddNested("Destination", err.(request.ErrInvalidParams))
- }
+ if s.TargetResource != nil && len(*s.TargetResource) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("TargetResource", 1))
}
- if s.ExistingObjectReplication != nil {
- if err := s.ExistingObjectReplication.Validate(); err != nil {
- invalidParams.AddNested("ExistingObjectReplication", err.(request.ErrInvalidParams))
+ if s.AccessControlGrants != nil {
+ for i, v := range s.AccessControlGrants {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AccessControlGrants", i), err.(request.ErrInvalidParams))
+ }
}
}
- if s.Filter != nil {
- if err := s.Filter.Validate(); err != nil {
- invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
+ if s.NewObjectMetadata != nil {
+ if err := s.NewObjectMetadata.Validate(); err != nil {
+ invalidParams.AddNested("NewObjectMetadata", err.(request.ErrInvalidParams))
}
}
- if s.SourceSelectionCriteria != nil {
- if err := s.SourceSelectionCriteria.Validate(); err != nil {
- invalidParams.AddNested("SourceSelectionCriteria", err.(request.ErrInvalidParams))
+ if s.NewObjectTagging != nil {
+ for i, v := range s.NewObjectTagging {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NewObjectTagging", i), err.(request.ErrInvalidParams))
+ }
}
}
@@ -19452,166 +21565,119 @@ func (s *ReplicationRule) Validate() error {
return nil
}
-// SetBucket sets the Bucket field's value.
-func (s *ReplicationRule) SetBucket(v string) *ReplicationRule {
- s.Bucket = &v
+// SetAccessControlGrants sets the AccessControlGrants field's value.
+func (s *S3CopyObjectOperation) SetAccessControlGrants(v []*S3Grant) *S3CopyObjectOperation {
+ s.AccessControlGrants = v
return s
}
-// SetDeleteMarkerReplication sets the DeleteMarkerReplication field's value.
-func (s *ReplicationRule) SetDeleteMarkerReplication(v *DeleteMarkerReplication) *ReplicationRule {
- s.DeleteMarkerReplication = v
+// SetBucketKeyEnabled sets the BucketKeyEnabled field's value.
+func (s *S3CopyObjectOperation) SetBucketKeyEnabled(v bool) *S3CopyObjectOperation {
+ s.BucketKeyEnabled = &v
return s
}
-// SetDestination sets the Destination field's value.
-func (s *ReplicationRule) SetDestination(v *Destination) *ReplicationRule {
- s.Destination = v
+// SetCannedAccessControlList sets the CannedAccessControlList field's value.
+func (s *S3CopyObjectOperation) SetCannedAccessControlList(v string) *S3CopyObjectOperation {
+ s.CannedAccessControlList = &v
return s
}
-// SetExistingObjectReplication sets the ExistingObjectReplication field's value.
-func (s *ReplicationRule) SetExistingObjectReplication(v *ExistingObjectReplication) *ReplicationRule {
- s.ExistingObjectReplication = v
+// SetChecksumAlgorithm sets the ChecksumAlgorithm field's value.
+func (s *S3CopyObjectOperation) SetChecksumAlgorithm(v string) *S3CopyObjectOperation {
+ s.ChecksumAlgorithm = &v
return s
}
-// SetFilter sets the Filter field's value.
-func (s *ReplicationRule) SetFilter(v *ReplicationRuleFilter) *ReplicationRule {
- s.Filter = v
+// SetMetadataDirective sets the MetadataDirective field's value.
+func (s *S3CopyObjectOperation) SetMetadataDirective(v string) *S3CopyObjectOperation {
+ s.MetadataDirective = &v
return s
}
-// SetID sets the ID field's value.
-func (s *ReplicationRule) SetID(v string) *ReplicationRule {
- s.ID = &v
+// SetModifiedSinceConstraint sets the ModifiedSinceConstraint field's value.
+func (s *S3CopyObjectOperation) SetModifiedSinceConstraint(v time.Time) *S3CopyObjectOperation {
+ s.ModifiedSinceConstraint = &v
return s
}
-// SetPrefix sets the Prefix field's value.
-func (s *ReplicationRule) SetPrefix(v string) *ReplicationRule {
- s.Prefix = &v
+// SetNewObjectMetadata sets the NewObjectMetadata field's value.
+func (s *S3CopyObjectOperation) SetNewObjectMetadata(v *S3ObjectMetadata) *S3CopyObjectOperation {
+ s.NewObjectMetadata = v
return s
}
-// SetPriority sets the Priority field's value.
-func (s *ReplicationRule) SetPriority(v int64) *ReplicationRule {
- s.Priority = &v
+// SetNewObjectTagging sets the NewObjectTagging field's value.
+func (s *S3CopyObjectOperation) SetNewObjectTagging(v []*S3Tag) *S3CopyObjectOperation {
+ s.NewObjectTagging = v
return s
}
-// SetSourceSelectionCriteria sets the SourceSelectionCriteria field's value.
-func (s *ReplicationRule) SetSourceSelectionCriteria(v *SourceSelectionCriteria) *ReplicationRule {
- s.SourceSelectionCriteria = v
+// SetObjectLockLegalHoldStatus sets the ObjectLockLegalHoldStatus field's value.
+func (s *S3CopyObjectOperation) SetObjectLockLegalHoldStatus(v string) *S3CopyObjectOperation {
+ s.ObjectLockLegalHoldStatus = &v
return s
}
-// SetStatus sets the Status field's value.
-func (s *ReplicationRule) SetStatus(v string) *ReplicationRule {
- s.Status = &v
+// SetObjectLockMode sets the ObjectLockMode field's value.
+func (s *S3CopyObjectOperation) SetObjectLockMode(v string) *S3CopyObjectOperation {
+ s.ObjectLockMode = &v
return s
}
-// A container for specifying rule filters. The filters determine the subset
-// of objects to which the rule applies. This element is required only if you
-// specify more than one filter.
-//
-// For example:
-//
-// - If you specify both a Prefix and a Tag filter, wrap these filters in
-// an And element.
-//
-// - If you specify a filter based on multiple tags, wrap the Tag elements
-// in an And element.
-type ReplicationRuleAndOperator struct {
- _ struct{} `type:"structure"`
-
- // An object key name prefix that identifies the subset of objects that the
- // rule applies to.
- Prefix *string `type:"string"`
-
- // An array of tags that contain key and value pairs.
- Tags []*S3Tag `type:"list"`
+// SetObjectLockRetainUntilDate sets the ObjectLockRetainUntilDate field's value.
+func (s *S3CopyObjectOperation) SetObjectLockRetainUntilDate(v time.Time) *S3CopyObjectOperation {
+ s.ObjectLockRetainUntilDate = &v
+ return s
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ReplicationRuleAndOperator) String() string {
- return awsutil.Prettify(s)
+// SetRedirectLocation sets the RedirectLocation field's value.
+func (s *S3CopyObjectOperation) SetRedirectLocation(v string) *S3CopyObjectOperation {
+ s.RedirectLocation = &v
+ return s
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ReplicationRuleAndOperator) GoString() string {
- return s.String()
+// SetRequesterPays sets the RequesterPays field's value.
+func (s *S3CopyObjectOperation) SetRequesterPays(v bool) *S3CopyObjectOperation {
+ s.RequesterPays = &v
+ return s
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *ReplicationRuleAndOperator) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ReplicationRuleAndOperator"}
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetSSEAwsKmsKeyId sets the SSEAwsKmsKeyId field's value.
+func (s *S3CopyObjectOperation) SetSSEAwsKmsKeyId(v string) *S3CopyObjectOperation {
+ s.SSEAwsKmsKeyId = &v
+ return s
}
-// SetPrefix sets the Prefix field's value.
-func (s *ReplicationRuleAndOperator) SetPrefix(v string) *ReplicationRuleAndOperator {
- s.Prefix = &v
+// SetStorageClass sets the StorageClass field's value.
+func (s *S3CopyObjectOperation) SetStorageClass(v string) *S3CopyObjectOperation {
+ s.StorageClass = &v
return s
}
-// SetTags sets the Tags field's value.
-func (s *ReplicationRuleAndOperator) SetTags(v []*S3Tag) *ReplicationRuleAndOperator {
- s.Tags = v
+// SetTargetKeyPrefix sets the TargetKeyPrefix field's value.
+func (s *S3CopyObjectOperation) SetTargetKeyPrefix(v string) *S3CopyObjectOperation {
+ s.TargetKeyPrefix = &v
return s
}
-// A filter that identifies the subset of objects to which the replication rule
-// applies. A Filter element must specify exactly one Prefix, Tag, or And child
-// element.
-type ReplicationRuleFilter struct {
- _ struct{} `type:"structure"`
-
- // A container for specifying rule filters. The filters determine the subset
- // of objects that the rule applies to. This element is required only if you
- // specify more than one filter. For example:
- //
- // * If you specify both a Prefix and a Tag filter, wrap these filters in
- // an And element.
- //
- // * If you specify a filter based on multiple tags, wrap the Tag elements
- // in an And element.
- And *ReplicationRuleAndOperator `type:"structure"`
+// SetTargetResource sets the TargetResource field's value.
+func (s *S3CopyObjectOperation) SetTargetResource(v string) *S3CopyObjectOperation {
+ s.TargetResource = &v
+ return s
+}
- // An object key name prefix that identifies the subset of objects that the
- // rule applies to.
- //
- // When you're using XML requests, you must replace special characters (such
- // as carriage returns) in object keys with their equivalent XML entity codes.
- // For more information, see XML-related object key constraints (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints)
- // in the Amazon S3 User Guide.
- Prefix *string `type:"string"`
+// SetUnModifiedSinceConstraint sets the UnModifiedSinceConstraint field's value.
+func (s *S3CopyObjectOperation) SetUnModifiedSinceConstraint(v time.Time) *S3CopyObjectOperation {
+ s.UnModifiedSinceConstraint = &v
+ return s
+}
- // A container for a key-value name pair.
- Tag *S3Tag `type:"structure"`
+// Contains no configuration parameters because the DELETE Object tagging (DeleteObjectTagging)
+// API operation accepts only the bucket name and key name as parameters, which
+// are defined in the job's manifest.
+type S3DeleteObjectTaggingOperation struct {
+ _ struct{} `type:"structure"`
}
// String returns the string representation.
@@ -19619,7 +21685,7 @@ type ReplicationRuleFilter struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ReplicationRuleFilter) String() string {
+func (s S3DeleteObjectTaggingOperation) String() string {
return awsutil.Prettify(s)
}
@@ -19628,66 +21694,21 @@ func (s ReplicationRuleFilter) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ReplicationRuleFilter) GoString() string {
+func (s S3DeleteObjectTaggingOperation) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *ReplicationRuleFilter) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ReplicationRuleFilter"}
- if s.And != nil {
- if err := s.And.Validate(); err != nil {
- invalidParams.AddNested("And", err.(request.ErrInvalidParams))
- }
- }
- if s.Tag != nil {
- if err := s.Tag.Validate(); err != nil {
- invalidParams.AddNested("Tag", err.(request.ErrInvalidParams))
- }
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetAnd sets the And field's value.
-func (s *ReplicationRuleFilter) SetAnd(v *ReplicationRuleAndOperator) *ReplicationRuleFilter {
- s.And = v
- return s
-}
-
-// SetPrefix sets the Prefix field's value.
-func (s *ReplicationRuleFilter) SetPrefix(v string) *ReplicationRuleFilter {
- s.Prefix = &v
- return s
-}
-
-// SetTag sets the Tag field's value.
-func (s *ReplicationRuleFilter) SetTag(v *S3Tag) *ReplicationRuleFilter {
- s.Tag = v
- return s
-}
-
-// A container that specifies S3 Replication Time Control (S3 RTC) related information,
-// including whether S3 RTC is enabled and the time when all objects and operations
-// on objects must be replicated.
-//
-// This is not supported by Amazon S3 on Outposts buckets.
-type ReplicationTime struct {
+// Describes the specified job's generated manifest. Batch Operations jobs created
+// with a ManifestGenerator populate details of this descriptor after execution
+// of the ManifestGenerator.
+type S3GeneratedManifestDescriptor struct {
_ struct{} `type:"structure"`
- // Specifies whether S3 Replication Time Control (S3 RTC) is enabled.
- //
- // Status is a required field
- Status *string `type:"string" required:"true" enum:"ReplicationTimeStatus"`
+ // The format of the generated manifest.
+ Format *string `type:"string" enum:"GeneratedManifestFormat"`
- // A container that specifies the time by which replication should be complete
- // for all objects and operations on objects.
- //
- // Time is a required field
- Time *ReplicationTimeValue `type:"structure" required:"true"`
+ // Contains the information required to locate a manifest object.
+ Location *JobManifestLocation `type:"structure"`
}
// String returns the string representation.
@@ -19695,7 +21716,7 @@ type ReplicationTime struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ReplicationTime) String() string {
+func (s S3GeneratedManifestDescriptor) String() string {
return awsutil.Prettify(s)
}
@@ -19704,50 +21725,28 @@ func (s ReplicationTime) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ReplicationTime) GoString() string {
+func (s S3GeneratedManifestDescriptor) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *ReplicationTime) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ReplicationTime"}
- if s.Status == nil {
- invalidParams.Add(request.NewErrParamRequired("Status"))
- }
- if s.Time == nil {
- invalidParams.Add(request.NewErrParamRequired("Time"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetStatus sets the Status field's value.
-func (s *ReplicationTime) SetStatus(v string) *ReplicationTime {
- s.Status = &v
+// SetFormat sets the Format field's value.
+func (s *S3GeneratedManifestDescriptor) SetFormat(v string) *S3GeneratedManifestDescriptor {
+ s.Format = &v
return s
}
-// SetTime sets the Time field's value.
-func (s *ReplicationTime) SetTime(v *ReplicationTimeValue) *ReplicationTime {
- s.Time = v
+// SetLocation sets the Location field's value.
+func (s *S3GeneratedManifestDescriptor) SetLocation(v *JobManifestLocation) *S3GeneratedManifestDescriptor {
+ s.Location = v
return s
}
-// A container that specifies the time value for S3 Replication Time Control
-// (S3 RTC). This value is also used for the replication metrics EventThreshold
-// element.
-//
-// This is not supported by Amazon S3 on Outposts buckets.
-type ReplicationTimeValue struct {
+type S3Grant struct {
_ struct{} `type:"structure"`
- // Contains an integer that specifies the time period in minutes.
- //
- // Valid value: 15
- Minutes *int64 `type:"integer"`
+ Grantee *S3Grantee `type:"structure"`
+
+ Permission *string `type:"string" enum:"S3Permission"`
}
// String returns the string representation.
@@ -19755,7 +21754,7 @@ type ReplicationTimeValue struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ReplicationTimeValue) String() string {
+func (s S3Grant) String() string {
return awsutil.Prettify(s)
}
@@ -19764,23 +21763,45 @@ func (s ReplicationTimeValue) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ReplicationTimeValue) GoString() string {
+func (s S3Grant) GoString() string {
return s.String()
}
-// SetMinutes sets the Minutes field's value.
-func (s *ReplicationTimeValue) SetMinutes(v int64) *ReplicationTimeValue {
- s.Minutes = &v
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *S3Grant) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "S3Grant"}
+ if s.Grantee != nil {
+ if err := s.Grantee.Validate(); err != nil {
+ invalidParams.AddNested("Grantee", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetGrantee sets the Grantee field's value.
+func (s *S3Grant) SetGrantee(v *S3Grantee) *S3Grant {
+ s.Grantee = v
return s
}
-type S3AccessControlList struct {
+// SetPermission sets the Permission field's value.
+func (s *S3Grant) SetPermission(v string) *S3Grant {
+ s.Permission = &v
+ return s
+}
+
+type S3Grantee struct {
_ struct{} `type:"structure"`
- Grants []*S3Grant `type:"list"`
+ DisplayName *string `min:"1" type:"string"`
- // Owner is a required field
- Owner *S3ObjectOwner `type:"structure" required:"true"`
+ Identifier *string `min:"1" type:"string"`
+
+ TypeIdentifier *string `type:"string" enum:"S3GranteeTypeIdentifier"`
}
// String returns the string representation.
@@ -19788,7 +21809,7 @@ type S3AccessControlList struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3AccessControlList) String() string {
+func (s S3Grantee) String() string {
return awsutil.Prettify(s)
}
@@ -19797,30 +21818,18 @@ func (s S3AccessControlList) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3AccessControlList) GoString() string {
+func (s S3Grantee) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *S3AccessControlList) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3AccessControlList"}
- if s.Owner == nil {
- invalidParams.Add(request.NewErrParamRequired("Owner"))
- }
- if s.Grants != nil {
- for i, v := range s.Grants {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Grants", i), err.(request.ErrInvalidParams))
- }
- }
+func (s *S3Grantee) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "S3Grantee"}
+ if s.DisplayName != nil && len(*s.DisplayName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1))
}
- if s.Owner != nil {
- if err := s.Owner.Validate(); err != nil {
- invalidParams.AddNested("Owner", err.(request.ErrInvalidParams))
- }
+ if s.Identifier != nil && len(*s.Identifier) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Identifier", 1))
}
if invalidParams.Len() > 0 {
@@ -19829,24 +21838,52 @@ func (s *S3AccessControlList) Validate() error {
return nil
}
-// SetGrants sets the Grants field's value.
-func (s *S3AccessControlList) SetGrants(v []*S3Grant) *S3AccessControlList {
- s.Grants = v
+// SetDisplayName sets the DisplayName field's value.
+func (s *S3Grantee) SetDisplayName(v string) *S3Grantee {
+ s.DisplayName = &v
return s
}
-// SetOwner sets the Owner field's value.
-func (s *S3AccessControlList) SetOwner(v *S3ObjectOwner) *S3AccessControlList {
- s.Owner = v
+// SetIdentifier sets the Identifier field's value.
+func (s *S3Grantee) SetIdentifier(v string) *S3Grantee {
+ s.Identifier = &v
return s
}
-type S3AccessControlPolicy struct {
+// SetTypeIdentifier sets the TypeIdentifier field's value.
+func (s *S3Grantee) SetTypeIdentifier(v string) *S3Grantee {
+ s.TypeIdentifier = &v
+ return s
+}
+
+// Contains the configuration parameters for a POST Object restore job. S3 Batch
+// Operations passes every object to the underlying RestoreObject API operation.
+// For more information about the parameters for this operation, see RestoreObject
+// (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOSTrestore.html#RESTObjectPOSTrestore-restore-request).
+type S3InitiateRestoreObjectOperation struct {
_ struct{} `type:"structure"`
- AccessControlList *S3AccessControlList `type:"structure"`
+ // This argument specifies how long the S3 Glacier or S3 Glacier Deep Archive
+ // object remains available in Amazon S3. S3 Initiate Restore Object jobs that
+ // target S3 Glacier and S3 Glacier Deep Archive objects require ExpirationInDays
+ // set to 1 or greater.
+ //
+ // Conversely, do not set ExpirationInDays when creating S3 Initiate Restore
+ // Object jobs that target S3 Intelligent-Tiering Archive Access and Deep Archive
+ // Access tier objects. Objects in S3 Intelligent-Tiering archive access tiers
+ // are not subject to restore expiry, so specifying ExpirationInDays results
+ // in restore request failure.
+ //
+ // S3 Batch Operations jobs can operate either on S3 Glacier and S3 Glacier
+ // Deep Archive storage class objects or on S3 Intelligent-Tiering Archive Access
+ // and Deep Archive Access storage tier objects, but not both types in the same
+ // job. If you need to restore objects of both types you must create separate
+ // Batch Operations jobs.
+ ExpirationInDays *int64 `type:"integer"`
- CannedAccessControlList *string `type:"string" enum:"S3CannedAccessControlList"`
+ // S3 Batch Operations supports STANDARD and BULK retrieval tiers, but not the
+ // EXPEDITED retrieval tier.
+ GlacierJobTier *string `type:"string" enum:"S3GlacierJobTier"`
}
// String returns the string representation.
@@ -19854,75 +21891,57 @@ type S3AccessControlPolicy struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3AccessControlPolicy) String() string {
+func (s S3InitiateRestoreObjectOperation) String() string {
return awsutil.Prettify(s)
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s S3AccessControlPolicy) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *S3AccessControlPolicy) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3AccessControlPolicy"}
- if s.AccessControlList != nil {
- if err := s.AccessControlList.Validate(); err != nil {
- invalidParams.AddNested("AccessControlList", err.(request.ErrInvalidParams))
- }
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s S3InitiateRestoreObjectOperation) GoString() string {
+ return s.String()
}
-// SetAccessControlList sets the AccessControlList field's value.
-func (s *S3AccessControlPolicy) SetAccessControlList(v *S3AccessControlList) *S3AccessControlPolicy {
- s.AccessControlList = v
+// SetExpirationInDays sets the ExpirationInDays field's value.
+func (s *S3InitiateRestoreObjectOperation) SetExpirationInDays(v int64) *S3InitiateRestoreObjectOperation {
+ s.ExpirationInDays = &v
return s
}
-// SetCannedAccessControlList sets the CannedAccessControlList field's value.
-func (s *S3AccessControlPolicy) SetCannedAccessControlList(v string) *S3AccessControlPolicy {
- s.CannedAccessControlList = &v
+// SetGlacierJobTier sets the GlacierJobTier field's value.
+func (s *S3InitiateRestoreObjectOperation) SetGlacierJobTier(v string) *S3InitiateRestoreObjectOperation {
+ s.GlacierJobTier = &v
return s
}
-// A container for the bucket where the Amazon S3 Storage Lens metrics export
-// files are located.
-type S3BucketDestination struct {
+// The container for the service that will create the S3 manifest.
+type S3JobManifestGenerator struct {
_ struct{} `type:"structure"`
- // The account ID of the owner of the S3 Storage Lens metrics export bucket.
+ // Determines whether or not to write the job's generated manifest to a bucket.
//
- // AccountId is a required field
- AccountId *string `type:"string" required:"true"`
+ // EnableManifestOutput is a required field
+ EnableManifestOutput *bool `type:"boolean" required:"true"`
- // The Amazon Resource Name (ARN) of the bucket. This property is read-only
- // and follows the following format: arn:aws:s3:us-east-1:example-account-id:bucket/your-destination-bucket-name
- //
- // Arn is a required field
- Arn *string `min:"1" type:"string" required:"true"`
+ // The Amazon Web Services account ID that owns the bucket the generated manifest
+ // is written to. If provided the generated manifest bucket's owner Amazon Web
+ // Services account ID must match this value, else the job fails.
+ ExpectedBucketOwner *string `type:"string"`
- // The container for the type encryption of the metrics exports in this bucket.
- Encryption *StorageLensDataExportEncryption `type:"structure"`
+ // Specifies rules the S3JobManifestGenerator should use to use to decide whether
+ // an object in the source bucket should or should not be included in the generated
+ // job manifest.
+ Filter *JobManifestGeneratorFilter `type:"structure"`
- // Format is a required field
- Format *string `type:"string" required:"true" enum:"Format"`
+ // Specifies the location the generated manifest will be written to.
+ ManifestOutputLocation *S3ManifestOutputLocation `type:"structure"`
- // The schema version of the export file.
+ // The source bucket used by the ManifestGenerator.
//
- // OutputSchemaVersion is a required field
- OutputSchemaVersion *string `type:"string" required:"true" enum:"OutputSchemaVersion"`
-
- // The prefix of the destination bucket where the metrics export will be delivered.
- Prefix *string `type:"string"`
+ // SourceBucket is a required field
+ SourceBucket *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -19930,7 +21949,7 @@ type S3BucketDestination struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3BucketDestination) String() string {
+func (s S3JobManifestGenerator) String() string {
return awsutil.Prettify(s)
}
@@ -19939,31 +21958,25 @@ func (s S3BucketDestination) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3BucketDestination) GoString() string {
+func (s S3JobManifestGenerator) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *S3BucketDestination) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3BucketDestination"}
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.Arn == nil {
- invalidParams.Add(request.NewErrParamRequired("Arn"))
- }
- if s.Arn != nil && len(*s.Arn) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Arn", 1))
+func (s *S3JobManifestGenerator) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "S3JobManifestGenerator"}
+ if s.EnableManifestOutput == nil {
+ invalidParams.Add(request.NewErrParamRequired("EnableManifestOutput"))
}
- if s.Format == nil {
- invalidParams.Add(request.NewErrParamRequired("Format"))
+ if s.SourceBucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("SourceBucket"))
}
- if s.OutputSchemaVersion == nil {
- invalidParams.Add(request.NewErrParamRequired("OutputSchemaVersion"))
+ if s.SourceBucket != nil && len(*s.SourceBucket) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("SourceBucket", 1))
}
- if s.Encryption != nil {
- if err := s.Encryption.Validate(); err != nil {
- invalidParams.AddNested("Encryption", err.(request.ErrInvalidParams))
+ if s.ManifestOutputLocation != nil {
+ if err := s.ManifestOutputLocation.Validate(); err != nil {
+ invalidParams.AddNested("ManifestOutputLocation", err.(request.ErrInvalidParams))
}
}
@@ -19973,110 +21986,59 @@ func (s *S3BucketDestination) Validate() error {
return nil
}
-// SetAccountId sets the AccountId field's value.
-func (s *S3BucketDestination) SetAccountId(v string) *S3BucketDestination {
- s.AccountId = &v
- return s
-}
-
-// SetArn sets the Arn field's value.
-func (s *S3BucketDestination) SetArn(v string) *S3BucketDestination {
- s.Arn = &v
+// SetEnableManifestOutput sets the EnableManifestOutput field's value.
+func (s *S3JobManifestGenerator) SetEnableManifestOutput(v bool) *S3JobManifestGenerator {
+ s.EnableManifestOutput = &v
return s
}
-// SetEncryption sets the Encryption field's value.
-func (s *S3BucketDestination) SetEncryption(v *StorageLensDataExportEncryption) *S3BucketDestination {
- s.Encryption = v
+// SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.
+func (s *S3JobManifestGenerator) SetExpectedBucketOwner(v string) *S3JobManifestGenerator {
+ s.ExpectedBucketOwner = &v
return s
}
-// SetFormat sets the Format field's value.
-func (s *S3BucketDestination) SetFormat(v string) *S3BucketDestination {
- s.Format = &v
+// SetFilter sets the Filter field's value.
+func (s *S3JobManifestGenerator) SetFilter(v *JobManifestGeneratorFilter) *S3JobManifestGenerator {
+ s.Filter = v
return s
}
-// SetOutputSchemaVersion sets the OutputSchemaVersion field's value.
-func (s *S3BucketDestination) SetOutputSchemaVersion(v string) *S3BucketDestination {
- s.OutputSchemaVersion = &v
+// SetManifestOutputLocation sets the ManifestOutputLocation field's value.
+func (s *S3JobManifestGenerator) SetManifestOutputLocation(v *S3ManifestOutputLocation) *S3JobManifestGenerator {
+ s.ManifestOutputLocation = v
return s
}
-// SetPrefix sets the Prefix field's value.
-func (s *S3BucketDestination) SetPrefix(v string) *S3BucketDestination {
- s.Prefix = &v
+// SetSourceBucket sets the SourceBucket field's value.
+func (s *S3JobManifestGenerator) SetSourceBucket(v string) *S3JobManifestGenerator {
+ s.SourceBucket = &v
return s
}
-// Contains the configuration parameters for a PUT Copy object operation. S3
-// Batch Operations passes every object to the underlying CopyObject API operation.
-// For more information about the parameters for this operation, see CopyObject
-// (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectCOPY.html).
-type S3CopyObjectOperation struct {
+// Location details for where the generated manifest should be written.
+type S3ManifestOutputLocation struct {
_ struct{} `type:"structure"`
- AccessControlGrants []*S3Grant `type:"list"`
-
- // Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption
- // with server-side encryption using Amazon Web Services KMS (SSE-KMS). Setting
- // this header to true causes Amazon S3 to use an S3 Bucket Key for object encryption
- // with SSE-KMS.
+ // The bucket ARN the generated manifest should be written to.
//
- // Specifying this header with an object action doesn’t affect bucket-level
- // settings for S3 Bucket Key.
- BucketKeyEnabled *bool `type:"boolean"`
-
- CannedAccessControlList *string `type:"string" enum:"S3CannedAccessControlList"`
-
- // Indicates the algorithm that you want Amazon S3 to use to create the checksum.
- // For more information, see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/CheckingObjectIntegrity.xml)
- // in the Amazon S3 User Guide.
- ChecksumAlgorithm *string `type:"string" enum:"S3ChecksumAlgorithm"`
-
- MetadataDirective *string `type:"string" enum:"S3MetadataDirective"`
-
- ModifiedSinceConstraint *time.Time `type:"timestamp"`
-
- // If you don't provide this parameter, Amazon S3 copies all the metadata from
- // the original objects. If you specify an empty set, the new objects will have
- // no tags. Otherwise, Amazon S3 assigns the supplied tags to the new objects.
- NewObjectMetadata *S3ObjectMetadata `type:"structure"`
-
- NewObjectTagging []*S3Tag `type:"list"`
-
- // The legal hold status to be applied to all objects in the Batch Operations
- // job.
- ObjectLockLegalHoldStatus *string `type:"string" enum:"S3ObjectLockLegalHoldStatus"`
-
- // The retention mode to be applied to all objects in the Batch Operations job.
- ObjectLockMode *string `type:"string" enum:"S3ObjectLockMode"`
-
- // The date when the applied object retention configuration expires on all objects
- // in the Batch Operations job.
- ObjectLockRetainUntilDate *time.Time `type:"timestamp"`
-
- // Specifies an optional metadata property for website redirects, x-amz-website-redirect-location.
- // Allows webpage redirects if the object is accessed through a website endpoint.
- RedirectLocation *string `min:"1" type:"string"`
-
- RequesterPays *bool `type:"boolean"`
-
- SSEAwsKmsKeyId *string `min:"1" type:"string"`
+ // Bucket is a required field
+ Bucket *string `min:"1" type:"string" required:"true"`
- StorageClass *string `type:"string" enum:"S3StorageClass"`
+ // The Account ID that owns the bucket the generated manifest is written to.
+ ExpectedManifestBucketOwner *string `type:"string"`
- // Specifies the folder prefix that you want the objects to be copied into.
- // For example, to copy objects into a folder named Folder1 in the destination
- // bucket, set the TargetKeyPrefix property to Folder1.
- TargetKeyPrefix *string `min:"1" type:"string"`
+ // Specifies what encryption should be used when the generated manifest objects
+ // are written.
+ ManifestEncryption *GeneratedManifestEncryption `type:"structure"`
- // Specifies the destination bucket Amazon Resource Name (ARN) for the batch
- // copy operation. For example, to copy objects to a bucket named destinationBucket,
- // set the TargetResource property to arn:aws:s3:::destinationBucket.
- TargetResource *string `min:"1" type:"string"`
+ // The format of the generated manifest.
+ //
+ // ManifestFormat is a required field
+ ManifestFormat *string `type:"string" required:"true" enum:"GeneratedManifestFormat"`
- UnModifiedSinceConstraint *time.Time `type:"timestamp"`
+ // Prefix identifying one or more objects to which the manifest applies.
+ ManifestPrefix *string `min:"1" type:"string"`
}
// String returns the string representation.
@@ -20084,7 +22046,7 @@ type S3CopyObjectOperation struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3CopyObjectOperation) String() string {
+func (s S3ManifestOutputLocation) String() string {
return awsutil.Prettify(s)
}
@@ -20093,48 +22055,28 @@ func (s S3CopyObjectOperation) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3CopyObjectOperation) GoString() string {
+func (s S3ManifestOutputLocation) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *S3CopyObjectOperation) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3CopyObjectOperation"}
- if s.RedirectLocation != nil && len(*s.RedirectLocation) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RedirectLocation", 1))
- }
- if s.SSEAwsKmsKeyId != nil && len(*s.SSEAwsKmsKeyId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SSEAwsKmsKeyId", 1))
- }
- if s.TargetKeyPrefix != nil && len(*s.TargetKeyPrefix) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TargetKeyPrefix", 1))
+func (s *S3ManifestOutputLocation) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "S3ManifestOutputLocation"}
+ if s.Bucket == nil {
+ invalidParams.Add(request.NewErrParamRequired("Bucket"))
}
- if s.TargetResource != nil && len(*s.TargetResource) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TargetResource", 1))
+ if s.Bucket != nil && len(*s.Bucket) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Bucket", 1))
}
- if s.AccessControlGrants != nil {
- for i, v := range s.AccessControlGrants {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AccessControlGrants", i), err.(request.ErrInvalidParams))
- }
- }
+ if s.ManifestFormat == nil {
+ invalidParams.Add(request.NewErrParamRequired("ManifestFormat"))
}
- if s.NewObjectMetadata != nil {
- if err := s.NewObjectMetadata.Validate(); err != nil {
- invalidParams.AddNested("NewObjectMetadata", err.(request.ErrInvalidParams))
- }
+ if s.ManifestPrefix != nil && len(*s.ManifestPrefix) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ManifestPrefix", 1))
}
- if s.NewObjectTagging != nil {
- for i, v := range s.NewObjectTagging {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NewObjectTagging", i), err.(request.ErrInvalidParams))
- }
+ if s.ManifestEncryption != nil {
+ if err := s.ManifestEncryption.Validate(); err != nil {
+ invalidParams.AddNested("ManifestEncryption", err.(request.ErrInvalidParams))
}
}
@@ -20144,119 +22086,109 @@ func (s *S3CopyObjectOperation) Validate() error {
return nil
}
-// SetAccessControlGrants sets the AccessControlGrants field's value.
-func (s *S3CopyObjectOperation) SetAccessControlGrants(v []*S3Grant) *S3CopyObjectOperation {
- s.AccessControlGrants = v
+// SetBucket sets the Bucket field's value.
+func (s *S3ManifestOutputLocation) SetBucket(v string) *S3ManifestOutputLocation {
+ s.Bucket = &v
return s
}
-// SetBucketKeyEnabled sets the BucketKeyEnabled field's value.
-func (s *S3CopyObjectOperation) SetBucketKeyEnabled(v bool) *S3CopyObjectOperation {
- s.BucketKeyEnabled = &v
+// SetExpectedManifestBucketOwner sets the ExpectedManifestBucketOwner field's value.
+func (s *S3ManifestOutputLocation) SetExpectedManifestBucketOwner(v string) *S3ManifestOutputLocation {
+ s.ExpectedManifestBucketOwner = &v
return s
}
-// SetCannedAccessControlList sets the CannedAccessControlList field's value.
-func (s *S3CopyObjectOperation) SetCannedAccessControlList(v string) *S3CopyObjectOperation {
- s.CannedAccessControlList = &v
+// SetManifestEncryption sets the ManifestEncryption field's value.
+func (s *S3ManifestOutputLocation) SetManifestEncryption(v *GeneratedManifestEncryption) *S3ManifestOutputLocation {
+ s.ManifestEncryption = v
return s
}
-// SetChecksumAlgorithm sets the ChecksumAlgorithm field's value.
-func (s *S3CopyObjectOperation) SetChecksumAlgorithm(v string) *S3CopyObjectOperation {
- s.ChecksumAlgorithm = &v
+// SetManifestFormat sets the ManifestFormat field's value.
+func (s *S3ManifestOutputLocation) SetManifestFormat(v string) *S3ManifestOutputLocation {
+ s.ManifestFormat = &v
return s
}
-// SetMetadataDirective sets the MetadataDirective field's value.
-func (s *S3CopyObjectOperation) SetMetadataDirective(v string) *S3CopyObjectOperation {
- s.MetadataDirective = &v
+// SetManifestPrefix sets the ManifestPrefix field's value.
+func (s *S3ManifestOutputLocation) SetManifestPrefix(v string) *S3ManifestOutputLocation {
+ s.ManifestPrefix = &v
return s
}
-// SetModifiedSinceConstraint sets the ModifiedSinceConstraint field's value.
-func (s *S3CopyObjectOperation) SetModifiedSinceConstraint(v time.Time) *S3CopyObjectOperation {
- s.ModifiedSinceConstraint = &v
- return s
-}
+// Whether S3 Object Lock legal hold will be applied to objects in an S3 Batch
+// Operations job.
+type S3ObjectLockLegalHold struct {
+ _ struct{} `type:"structure"`
-// SetNewObjectMetadata sets the NewObjectMetadata field's value.
-func (s *S3CopyObjectOperation) SetNewObjectMetadata(v *S3ObjectMetadata) *S3CopyObjectOperation {
- s.NewObjectMetadata = v
- return s
+ // The Object Lock legal hold status to be applied to all objects in the Batch
+ // Operations job.
+ //
+ // Status is a required field
+ Status *string `type:"string" required:"true" enum:"S3ObjectLockLegalHoldStatus"`
}
-// SetNewObjectTagging sets the NewObjectTagging field's value.
-func (s *S3CopyObjectOperation) SetNewObjectTagging(v []*S3Tag) *S3CopyObjectOperation {
- s.NewObjectTagging = v
- return s
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s S3ObjectLockLegalHold) String() string {
+ return awsutil.Prettify(s)
}
-// SetObjectLockLegalHoldStatus sets the ObjectLockLegalHoldStatus field's value.
-func (s *S3CopyObjectOperation) SetObjectLockLegalHoldStatus(v string) *S3CopyObjectOperation {
- s.ObjectLockLegalHoldStatus = &v
- return s
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s S3ObjectLockLegalHold) GoString() string {
+ return s.String()
}
-// SetObjectLockMode sets the ObjectLockMode field's value.
-func (s *S3CopyObjectOperation) SetObjectLockMode(v string) *S3CopyObjectOperation {
- s.ObjectLockMode = &v
- return s
-}
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *S3ObjectLockLegalHold) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "S3ObjectLockLegalHold"}
+ if s.Status == nil {
+ invalidParams.Add(request.NewErrParamRequired("Status"))
+ }
-// SetObjectLockRetainUntilDate sets the ObjectLockRetainUntilDate field's value.
-func (s *S3CopyObjectOperation) SetObjectLockRetainUntilDate(v time.Time) *S3CopyObjectOperation {
- s.ObjectLockRetainUntilDate = &v
- return s
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetRedirectLocation sets the RedirectLocation field's value.
-func (s *S3CopyObjectOperation) SetRedirectLocation(v string) *S3CopyObjectOperation {
- s.RedirectLocation = &v
+// SetStatus sets the Status field's value.
+func (s *S3ObjectLockLegalHold) SetStatus(v string) *S3ObjectLockLegalHold {
+ s.Status = &v
return s
}
-// SetRequesterPays sets the RequesterPays field's value.
-func (s *S3CopyObjectOperation) SetRequesterPays(v bool) *S3CopyObjectOperation {
- s.RequesterPays = &v
- return s
-}
+type S3ObjectMetadata struct {
+ _ struct{} `type:"structure"`
-// SetSSEAwsKmsKeyId sets the SSEAwsKmsKeyId field's value.
-func (s *S3CopyObjectOperation) SetSSEAwsKmsKeyId(v string) *S3CopyObjectOperation {
- s.SSEAwsKmsKeyId = &v
- return s
-}
+ CacheControl *string `min:"1" type:"string"`
-// SetStorageClass sets the StorageClass field's value.
-func (s *S3CopyObjectOperation) SetStorageClass(v string) *S3CopyObjectOperation {
- s.StorageClass = &v
- return s
-}
+ ContentDisposition *string `min:"1" type:"string"`
-// SetTargetKeyPrefix sets the TargetKeyPrefix field's value.
-func (s *S3CopyObjectOperation) SetTargetKeyPrefix(v string) *S3CopyObjectOperation {
- s.TargetKeyPrefix = &v
- return s
-}
+ ContentEncoding *string `min:"1" type:"string"`
-// SetTargetResource sets the TargetResource field's value.
-func (s *S3CopyObjectOperation) SetTargetResource(v string) *S3CopyObjectOperation {
- s.TargetResource = &v
- return s
-}
+ ContentLanguage *string `min:"1" type:"string"`
-// SetUnModifiedSinceConstraint sets the UnModifiedSinceConstraint field's value.
-func (s *S3CopyObjectOperation) SetUnModifiedSinceConstraint(v time.Time) *S3CopyObjectOperation {
- s.UnModifiedSinceConstraint = &v
- return s
-}
+ ContentLength *int64 `type:"long"`
-// Contains no configuration parameters because the DELETE Object tagging (DeleteObjectTagging)
-// API operation accepts only the bucket name and key name as parameters, which
-// are defined in the job's manifest.
-type S3DeleteObjectTaggingOperation struct {
- _ struct{} `type:"structure"`
+ ContentMD5 *string `min:"1" type:"string"`
+
+ ContentType *string `min:"1" type:"string"`
+
+ HttpExpiresDate *time.Time `type:"timestamp"`
+
+ RequesterCharged *bool `type:"boolean"`
+
+ SSEAlgorithm *string `type:"string" enum:"S3SSEAlgorithm"`
+
+ UserMetadata map[string]*string `type:"map"`
}
// String returns the string representation.
@@ -20264,7 +22196,7 @@ type S3DeleteObjectTaggingOperation struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3DeleteObjectTaggingOperation) String() string {
+func (s S3ObjectMetadata) String() string {
return awsutil.Prettify(s)
}
@@ -20273,59 +22205,110 @@ func (s S3DeleteObjectTaggingOperation) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3DeleteObjectTaggingOperation) GoString() string {
+func (s S3ObjectMetadata) GoString() string {
return s.String()
}
-// Describes the specified job's generated manifest. Batch Operations jobs created
-// with a ManifestGenerator populate details of this descriptor after execution
-// of the ManifestGenerator.
-type S3GeneratedManifestDescriptor struct {
- _ struct{} `type:"structure"`
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *S3ObjectMetadata) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "S3ObjectMetadata"}
+ if s.CacheControl != nil && len(*s.CacheControl) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("CacheControl", 1))
+ }
+ if s.ContentDisposition != nil && len(*s.ContentDisposition) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ContentDisposition", 1))
+ }
+ if s.ContentEncoding != nil && len(*s.ContentEncoding) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ContentEncoding", 1))
+ }
+ if s.ContentLanguage != nil && len(*s.ContentLanguage) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ContentLanguage", 1))
+ }
+ if s.ContentMD5 != nil && len(*s.ContentMD5) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ContentMD5", 1))
+ }
+ if s.ContentType != nil && len(*s.ContentType) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ContentType", 1))
+ }
- // The format of the generated manifest.
- Format *string `type:"string" enum:"GeneratedManifestFormat"`
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
- // Contains the information required to locate a manifest object.
- Location *JobManifestLocation `type:"structure"`
+// SetCacheControl sets the CacheControl field's value.
+func (s *S3ObjectMetadata) SetCacheControl(v string) *S3ObjectMetadata {
+ s.CacheControl = &v
+ return s
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s S3GeneratedManifestDescriptor) String() string {
- return awsutil.Prettify(s)
+// SetContentDisposition sets the ContentDisposition field's value.
+func (s *S3ObjectMetadata) SetContentDisposition(v string) *S3ObjectMetadata {
+ s.ContentDisposition = &v
+ return s
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s S3GeneratedManifestDescriptor) GoString() string {
- return s.String()
+// SetContentEncoding sets the ContentEncoding field's value.
+func (s *S3ObjectMetadata) SetContentEncoding(v string) *S3ObjectMetadata {
+ s.ContentEncoding = &v
+ return s
}
-// SetFormat sets the Format field's value.
-func (s *S3GeneratedManifestDescriptor) SetFormat(v string) *S3GeneratedManifestDescriptor {
- s.Format = &v
+// SetContentLanguage sets the ContentLanguage field's value.
+func (s *S3ObjectMetadata) SetContentLanguage(v string) *S3ObjectMetadata {
+ s.ContentLanguage = &v
return s
}
-// SetLocation sets the Location field's value.
-func (s *S3GeneratedManifestDescriptor) SetLocation(v *JobManifestLocation) *S3GeneratedManifestDescriptor {
- s.Location = v
+// SetContentLength sets the ContentLength field's value.
+func (s *S3ObjectMetadata) SetContentLength(v int64) *S3ObjectMetadata {
+ s.ContentLength = &v
+ return s
+}
+
+// SetContentMD5 sets the ContentMD5 field's value.
+func (s *S3ObjectMetadata) SetContentMD5(v string) *S3ObjectMetadata {
+ s.ContentMD5 = &v
+ return s
+}
+
+// SetContentType sets the ContentType field's value.
+func (s *S3ObjectMetadata) SetContentType(v string) *S3ObjectMetadata {
+ s.ContentType = &v
+ return s
+}
+
+// SetHttpExpiresDate sets the HttpExpiresDate field's value.
+func (s *S3ObjectMetadata) SetHttpExpiresDate(v time.Time) *S3ObjectMetadata {
+ s.HttpExpiresDate = &v
+ return s
+}
+
+// SetRequesterCharged sets the RequesterCharged field's value.
+func (s *S3ObjectMetadata) SetRequesterCharged(v bool) *S3ObjectMetadata {
+ s.RequesterCharged = &v
+ return s
+}
+
+// SetSSEAlgorithm sets the SSEAlgorithm field's value.
+func (s *S3ObjectMetadata) SetSSEAlgorithm(v string) *S3ObjectMetadata {
+ s.SSEAlgorithm = &v
+ return s
+}
+
+// SetUserMetadata sets the UserMetadata field's value.
+func (s *S3ObjectMetadata) SetUserMetadata(v map[string]*string) *S3ObjectMetadata {
+ s.UserMetadata = v
return s
}
-type S3Grant struct {
+type S3ObjectOwner struct {
_ struct{} `type:"structure"`
- Grantee *S3Grantee `type:"structure"`
+ DisplayName *string `min:"1" type:"string"`
- Permission *string `type:"string" enum:"S3Permission"`
+ ID *string `min:"1" type:"string"`
}
// String returns the string representation.
@@ -20333,7 +22316,7 @@ type S3Grant struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3Grant) String() string {
+func (s S3ObjectOwner) String() string {
return awsutil.Prettify(s)
}
@@ -20342,17 +22325,18 @@ func (s S3Grant) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3Grant) GoString() string {
+func (s S3ObjectOwner) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *S3Grant) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3Grant"}
- if s.Grantee != nil {
- if err := s.Grantee.Validate(); err != nil {
- invalidParams.AddNested("Grantee", err.(request.ErrInvalidParams))
- }
+func (s *S3ObjectOwner) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "S3ObjectOwner"}
+ if s.DisplayName != nil && len(*s.DisplayName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1))
+ }
+ if s.ID != nil && len(*s.ID) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ID", 1))
}
if invalidParams.Len() > 0 {
@@ -20361,26 +22345,22 @@ func (s *S3Grant) Validate() error {
return nil
}
-// SetGrantee sets the Grantee field's value.
-func (s *S3Grant) SetGrantee(v *S3Grantee) *S3Grant {
- s.Grantee = v
+// SetDisplayName sets the DisplayName field's value.
+func (s *S3ObjectOwner) SetDisplayName(v string) *S3ObjectOwner {
+ s.DisplayName = &v
return s
}
-// SetPermission sets the Permission field's value.
-func (s *S3Grant) SetPermission(v string) *S3Grant {
- s.Permission = &v
+// SetID sets the ID field's value.
+func (s *S3ObjectOwner) SetID(v string) *S3ObjectOwner {
+ s.ID = &v
return s
}
-type S3Grantee struct {
+// Directs the specified job to invoke ReplicateObject on every object in the
+// job's manifest.
+type S3ReplicateObjectOperation struct {
_ struct{} `type:"structure"`
-
- DisplayName *string `min:"1" type:"string"`
-
- Identifier *string `min:"1" type:"string"`
-
- TypeIdentifier *string `type:"string" enum:"S3GranteeTypeIdentifier"`
}
// String returns the string representation.
@@ -20388,7 +22368,7 @@ type S3Grantee struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3Grantee) String() string {
+func (s S3ReplicateObjectOperation) String() string {
return awsutil.Prettify(s)
}
@@ -20397,72 +22377,26 @@ func (s S3Grantee) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3Grantee) GoString() string {
+func (s S3ReplicateObjectOperation) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *S3Grantee) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3Grantee"}
- if s.DisplayName != nil && len(*s.DisplayName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1))
- }
- if s.Identifier != nil && len(*s.Identifier) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Identifier", 1))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetDisplayName sets the DisplayName field's value.
-func (s *S3Grantee) SetDisplayName(v string) *S3Grantee {
- s.DisplayName = &v
- return s
-}
-
-// SetIdentifier sets the Identifier field's value.
-func (s *S3Grantee) SetIdentifier(v string) *S3Grantee {
- s.Identifier = &v
- return s
-}
-
-// SetTypeIdentifier sets the TypeIdentifier field's value.
-func (s *S3Grantee) SetTypeIdentifier(v string) *S3Grantee {
- s.TypeIdentifier = &v
- return s
-}
-
-// Contains the configuration parameters for a POST Object restore job. S3 Batch
-// Operations passes every object to the underlying RestoreObject API operation.
-// For more information about the parameters for this operation, see RestoreObject
-// (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOSTrestore.html#RESTObjectPOSTrestore-restore-request).
-type S3InitiateRestoreObjectOperation struct {
+// Contains the S3 Object Lock retention mode to be applied to all objects in
+// the S3 Batch Operations job. If you don't provide Mode and RetainUntilDate
+// data types in your operation, you will remove the retention from your objects.
+// For more information, see Using S3 Object Lock retention with S3 Batch Operations
+// (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-retention-date.html)
+// in the Amazon S3 User Guide.
+type S3Retention struct {
_ struct{} `type:"structure"`
- // This argument specifies how long the S3 Glacier or S3 Glacier Deep Archive
- // object remains available in Amazon S3. S3 Initiate Restore Object jobs that
- // target S3 Glacier and S3 Glacier Deep Archive objects require ExpirationInDays
- // set to 1 or greater.
- //
- // Conversely, do not set ExpirationInDays when creating S3 Initiate Restore
- // Object jobs that target S3 Intelligent-Tiering Archive Access and Deep Archive
- // Access tier objects. Objects in S3 Intelligent-Tiering archive access tiers
- // are not subject to restore expiry, so specifying ExpirationInDays results
- // in restore request failure.
- //
- // S3 Batch Operations jobs can operate either on S3 Glacier and S3 Glacier
- // Deep Archive storage class objects or on S3 Intelligent-Tiering Archive Access
- // and Deep Archive Access storage tier objects, but not both types in the same
- // job. If you need to restore objects of both types you must create separate
- // Batch Operations jobs.
- ExpirationInDays *int64 `type:"integer"`
+ // The Object Lock retention mode to be applied to all objects in the Batch
+ // Operations job.
+ Mode *string `type:"string" enum:"S3ObjectLockRetentionMode"`
- // S3 Batch Operations supports STANDARD and BULK retrieval tiers, but not the
- // EXPEDITED retrieval tier.
- GlacierJobTier *string `type:"string" enum:"S3GlacierJobTier"`
+ // The date when the applied Object Lock retention will expire on all objects
+ // set by the Batch Operations job.
+ RetainUntilDate *time.Time `type:"timestamp"`
}
// String returns the string representation.
@@ -20470,7 +22404,7 @@ type S3InitiateRestoreObjectOperation struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3InitiateRestoreObjectOperation) String() string {
+func (s S3Retention) String() string {
return awsutil.Prettify(s)
}
@@ -20479,48 +22413,30 @@ func (s S3InitiateRestoreObjectOperation) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3InitiateRestoreObjectOperation) GoString() string {
+func (s S3Retention) GoString() string {
return s.String()
}
-// SetExpirationInDays sets the ExpirationInDays field's value.
-func (s *S3InitiateRestoreObjectOperation) SetExpirationInDays(v int64) *S3InitiateRestoreObjectOperation {
- s.ExpirationInDays = &v
+// SetMode sets the Mode field's value.
+func (s *S3Retention) SetMode(v string) *S3Retention {
+ s.Mode = &v
return s
}
-// SetGlacierJobTier sets the GlacierJobTier field's value.
-func (s *S3InitiateRestoreObjectOperation) SetGlacierJobTier(v string) *S3InitiateRestoreObjectOperation {
- s.GlacierJobTier = &v
+// SetRetainUntilDate sets the RetainUntilDate field's value.
+func (s *S3Retention) SetRetainUntilDate(v time.Time) *S3Retention {
+ s.RetainUntilDate = &v
return s
}
-// The container for the service that will create the S3 manifest.
-type S3JobManifestGenerator struct {
+// Contains the configuration parameters for a PUT Object ACL operation. S3
+// Batch Operations passes every object to the underlying PutObjectAcl API operation.
+// For more information about the parameters for this operation, see PutObjectAcl
+// (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUTacl.html).
+type S3SetObjectAclOperation struct {
_ struct{} `type:"structure"`
- // Determines whether or not to write the job's generated manifest to a bucket.
- //
- // EnableManifestOutput is a required field
- EnableManifestOutput *bool `type:"boolean" required:"true"`
-
- // The Amazon Web Services account ID that owns the bucket the generated manifest
- // is written to. If provided the generated manifest bucket's owner Amazon Web
- // Services account ID must match this value, else the job fails.
- ExpectedBucketOwner *string `type:"string"`
-
- // Specifies rules the S3JobManifestGenerator should use to use to decide whether
- // an object in the source bucket should or should not be included in the generated
- // job manifest.
- Filter *JobManifestGeneratorFilter `type:"structure"`
-
- // Specifies the location the generated manifest will be written to.
- ManifestOutputLocation *S3ManifestOutputLocation `type:"structure"`
-
- // The source bucket used by the ManifestGenerator.
- //
- // SourceBucket is a required field
- SourceBucket *string `min:"1" type:"string" required:"true"`
+ AccessControlPolicy *S3AccessControlPolicy `type:"structure"`
}
// String returns the string representation.
@@ -20528,7 +22444,7 @@ type S3JobManifestGenerator struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3JobManifestGenerator) String() string {
+func (s S3SetObjectAclOperation) String() string {
return awsutil.Prettify(s)
}
@@ -20537,25 +22453,16 @@ func (s S3JobManifestGenerator) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3JobManifestGenerator) GoString() string {
+func (s S3SetObjectAclOperation) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *S3JobManifestGenerator) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3JobManifestGenerator"}
- if s.EnableManifestOutput == nil {
- invalidParams.Add(request.NewErrParamRequired("EnableManifestOutput"))
- }
- if s.SourceBucket == nil {
- invalidParams.Add(request.NewErrParamRequired("SourceBucket"))
- }
- if s.SourceBucket != nil && len(*s.SourceBucket) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SourceBucket", 1))
- }
- if s.ManifestOutputLocation != nil {
- if err := s.ManifestOutputLocation.Validate(); err != nil {
- invalidParams.AddNested("ManifestOutputLocation", err.(request.ErrInvalidParams))
+func (s *S3SetObjectAclOperation) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "S3SetObjectAclOperation"}
+ if s.AccessControlPolicy != nil {
+ if err := s.AccessControlPolicy.Validate(); err != nil {
+ invalidParams.AddNested("AccessControlPolicy", err.(request.ErrInvalidParams))
}
}
@@ -20565,59 +22472,88 @@ func (s *S3JobManifestGenerator) Validate() error {
return nil
}
-// SetEnableManifestOutput sets the EnableManifestOutput field's value.
-func (s *S3JobManifestGenerator) SetEnableManifestOutput(v bool) *S3JobManifestGenerator {
- s.EnableManifestOutput = &v
+// SetAccessControlPolicy sets the AccessControlPolicy field's value.
+func (s *S3SetObjectAclOperation) SetAccessControlPolicy(v *S3AccessControlPolicy) *S3SetObjectAclOperation {
+ s.AccessControlPolicy = v
return s
}
-// SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.
-func (s *S3JobManifestGenerator) SetExpectedBucketOwner(v string) *S3JobManifestGenerator {
- s.ExpectedBucketOwner = &v
- return s
+// Contains the configuration for an S3 Object Lock legal hold operation that
+// an S3 Batch Operations job passes to every object to the underlying PutObjectLegalHold
+// API operation. For more information, see Using S3 Object Lock legal hold
+// with S3 Batch Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-legal-hold.html)
+// in the Amazon S3 User Guide.
+type S3SetObjectLegalHoldOperation struct {
+ _ struct{} `type:"structure"`
+
+ // Contains the Object Lock legal hold status to be applied to all objects in
+ // the Batch Operations job.
+ //
+ // LegalHold is a required field
+ LegalHold *S3ObjectLockLegalHold `type:"structure" required:"true"`
}
-// SetFilter sets the Filter field's value.
-func (s *S3JobManifestGenerator) SetFilter(v *JobManifestGeneratorFilter) *S3JobManifestGenerator {
- s.Filter = v
- return s
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s S3SetObjectLegalHoldOperation) String() string {
+ return awsutil.Prettify(s)
}
-// SetManifestOutputLocation sets the ManifestOutputLocation field's value.
-func (s *S3JobManifestGenerator) SetManifestOutputLocation(v *S3ManifestOutputLocation) *S3JobManifestGenerator {
- s.ManifestOutputLocation = v
- return s
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s S3SetObjectLegalHoldOperation) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *S3SetObjectLegalHoldOperation) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "S3SetObjectLegalHoldOperation"}
+ if s.LegalHold == nil {
+ invalidParams.Add(request.NewErrParamRequired("LegalHold"))
+ }
+ if s.LegalHold != nil {
+ if err := s.LegalHold.Validate(); err != nil {
+ invalidParams.AddNested("LegalHold", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetSourceBucket sets the SourceBucket field's value.
-func (s *S3JobManifestGenerator) SetSourceBucket(v string) *S3JobManifestGenerator {
- s.SourceBucket = &v
+// SetLegalHold sets the LegalHold field's value.
+func (s *S3SetObjectLegalHoldOperation) SetLegalHold(v *S3ObjectLockLegalHold) *S3SetObjectLegalHoldOperation {
+ s.LegalHold = v
return s
}
-// Location details for where the generated manifest should be written.
-type S3ManifestOutputLocation struct {
+// Contains the configuration parameters for the Object Lock retention action
+// for an S3 Batch Operations job. Batch Operations passes every object to the
+// underlying PutObjectRetention API operation. For more information, see Using
+// S3 Object Lock retention with S3 Batch Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-retention-date.html)
+// in the Amazon S3 User Guide.
+type S3SetObjectRetentionOperation struct {
_ struct{} `type:"structure"`
- // The bucket ARN the generated manifest should be written to.
- //
- // Bucket is a required field
- Bucket *string `min:"1" type:"string" required:"true"`
-
- // The Account ID that owns the bucket the generated manifest is written to.
- ExpectedManifestBucketOwner *string `type:"string"`
-
- // Specifies what encryption should be used when the generated manifest objects
- // are written.
- ManifestEncryption *GeneratedManifestEncryption `type:"structure"`
+ // Indicates if the action should be applied to objects in the Batch Operations
+ // job even if they have Object Lock GOVERNANCE type in place.
+ BypassGovernanceRetention *bool `type:"boolean"`
- // The format of the generated manifest.
+ // Contains the Object Lock retention mode to be applied to all objects in the
+ // Batch Operations job. For more information, see Using S3 Object Lock retention
+ // with S3 Batch Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-retention-date.html)
+ // in the Amazon S3 User Guide.
//
- // ManifestFormat is a required field
- ManifestFormat *string `type:"string" required:"true" enum:"GeneratedManifestFormat"`
-
- // Prefix identifying one or more objects to which the manifest applies.
- ManifestPrefix *string `min:"1" type:"string"`
+ // Retention is a required field
+ Retention *S3Retention `type:"structure" required:"true"`
}
// String returns the string representation.
@@ -20625,7 +22561,7 @@ type S3ManifestOutputLocation struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3ManifestOutputLocation) String() string {
+func (s S3SetObjectRetentionOperation) String() string {
return awsutil.Prettify(s)
}
@@ -20634,29 +22570,15 @@ func (s S3ManifestOutputLocation) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3ManifestOutputLocation) GoString() string {
+func (s S3SetObjectRetentionOperation) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *S3ManifestOutputLocation) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3ManifestOutputLocation"}
- if s.Bucket == nil {
- invalidParams.Add(request.NewErrParamRequired("Bucket"))
- }
- if s.Bucket != nil && len(*s.Bucket) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Bucket", 1))
- }
- if s.ManifestFormat == nil {
- invalidParams.Add(request.NewErrParamRequired("ManifestFormat"))
- }
- if s.ManifestPrefix != nil && len(*s.ManifestPrefix) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ManifestPrefix", 1))
- }
- if s.ManifestEncryption != nil {
- if err := s.ManifestEncryption.Validate(); err != nil {
- invalidParams.AddNested("ManifestEncryption", err.(request.ErrInvalidParams))
- }
+func (s *S3SetObjectRetentionOperation) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "S3SetObjectRetentionOperation"}
+ if s.Retention == nil {
+ invalidParams.Add(request.NewErrParamRequired("Retention"))
}
if invalidParams.Len() > 0 {
@@ -20665,46 +22587,26 @@ func (s *S3ManifestOutputLocation) Validate() error {
return nil
}
-// SetBucket sets the Bucket field's value.
-func (s *S3ManifestOutputLocation) SetBucket(v string) *S3ManifestOutputLocation {
- s.Bucket = &v
- return s
-}
-
-// SetExpectedManifestBucketOwner sets the ExpectedManifestBucketOwner field's value.
-func (s *S3ManifestOutputLocation) SetExpectedManifestBucketOwner(v string) *S3ManifestOutputLocation {
- s.ExpectedManifestBucketOwner = &v
- return s
-}
-
-// SetManifestEncryption sets the ManifestEncryption field's value.
-func (s *S3ManifestOutputLocation) SetManifestEncryption(v *GeneratedManifestEncryption) *S3ManifestOutputLocation {
- s.ManifestEncryption = v
- return s
-}
-
-// SetManifestFormat sets the ManifestFormat field's value.
-func (s *S3ManifestOutputLocation) SetManifestFormat(v string) *S3ManifestOutputLocation {
- s.ManifestFormat = &v
+// SetBypassGovernanceRetention sets the BypassGovernanceRetention field's value.
+func (s *S3SetObjectRetentionOperation) SetBypassGovernanceRetention(v bool) *S3SetObjectRetentionOperation {
+ s.BypassGovernanceRetention = &v
return s
}
-// SetManifestPrefix sets the ManifestPrefix field's value.
-func (s *S3ManifestOutputLocation) SetManifestPrefix(v string) *S3ManifestOutputLocation {
- s.ManifestPrefix = &v
+// SetRetention sets the Retention field's value.
+func (s *S3SetObjectRetentionOperation) SetRetention(v *S3Retention) *S3SetObjectRetentionOperation {
+ s.Retention = v
return s
}
-// Whether S3 Object Lock legal hold will be applied to objects in an S3 Batch
-// Operations job.
-type S3ObjectLockLegalHold struct {
+// Contains the configuration parameters for a PUT Object Tagging operation.
+// S3 Batch Operations passes every object to the underlying PutObjectTagging
+// API operation. For more information about the parameters for this operation,
+// see PutObjectTagging (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUTtagging.html).
+type S3SetObjectTaggingOperation struct {
_ struct{} `type:"structure"`
- // The Object Lock legal hold status to be applied to all objects in the Batch
- // Operations job.
- //
- // Status is a required field
- Status *string `type:"string" required:"true" enum:"S3ObjectLockLegalHoldStatus"`
+ TagSet []*S3Tag `type:"list"`
}
// String returns the string representation.
@@ -20712,7 +22614,7 @@ type S3ObjectLockLegalHold struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3ObjectLockLegalHold) String() string {
+func (s S3SetObjectTaggingOperation) String() string {
return awsutil.Prettify(s)
}
@@ -20721,15 +22623,22 @@ func (s S3ObjectLockLegalHold) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3ObjectLockLegalHold) GoString() string {
+func (s S3SetObjectTaggingOperation) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *S3ObjectLockLegalHold) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3ObjectLockLegalHold"}
- if s.Status == nil {
- invalidParams.Add(request.NewErrParamRequired("Status"))
+func (s *S3SetObjectTaggingOperation) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "S3SetObjectTaggingOperation"}
+ if s.TagSet != nil {
+ for i, v := range s.TagSet {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TagSet", i), err.(request.ErrInvalidParams))
+ }
+ }
}
if invalidParams.Len() > 0 {
@@ -20738,36 +22647,25 @@ func (s *S3ObjectLockLegalHold) Validate() error {
return nil
}
-// SetStatus sets the Status field's value.
-func (s *S3ObjectLockLegalHold) SetStatus(v string) *S3ObjectLockLegalHold {
- s.Status = &v
+// SetTagSet sets the TagSet field's value.
+func (s *S3SetObjectTaggingOperation) SetTagSet(v []*S3Tag) *S3SetObjectTaggingOperation {
+ s.TagSet = v
return s
}
-type S3ObjectMetadata struct {
+// A container for a key-value name pair.
+type S3Tag struct {
_ struct{} `type:"structure"`
- CacheControl *string `min:"1" type:"string"`
-
- ContentDisposition *string `min:"1" type:"string"`
-
- ContentEncoding *string `min:"1" type:"string"`
-
- ContentLanguage *string `min:"1" type:"string"`
-
- ContentLength *int64 `type:"long"`
-
- ContentMD5 *string `min:"1" type:"string"`
-
- ContentType *string `min:"1" type:"string"`
-
- HttpExpiresDate *time.Time `type:"timestamp"`
-
- RequesterCharged *bool `type:"boolean"`
-
- SSEAlgorithm *string `type:"string" enum:"S3SSEAlgorithm"`
+ // Key of the tag
+ //
+ // Key is a required field
+ Key *string `min:"1" type:"string" required:"true"`
- UserMetadata map[string]*string `type:"map"`
+ // Value of the tag
+ //
+ // Value is a required field
+ Value *string `type:"string" required:"true"`
}
// String returns the string representation.
@@ -20775,7 +22673,7 @@ type S3ObjectMetadata struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3ObjectMetadata) String() string {
+func (s S3Tag) String() string {
return awsutil.Prettify(s)
}
@@ -20784,30 +22682,21 @@ func (s S3ObjectMetadata) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3ObjectMetadata) GoString() string {
+func (s S3Tag) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *S3ObjectMetadata) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3ObjectMetadata"}
- if s.CacheControl != nil && len(*s.CacheControl) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CacheControl", 1))
- }
- if s.ContentDisposition != nil && len(*s.ContentDisposition) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ContentDisposition", 1))
- }
- if s.ContentEncoding != nil && len(*s.ContentEncoding) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ContentEncoding", 1))
- }
- if s.ContentLanguage != nil && len(*s.ContentLanguage) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ContentLanguage", 1))
+func (s *S3Tag) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "S3Tag"}
+ if s.Key == nil {
+ invalidParams.Add(request.NewErrParamRequired("Key"))
}
- if s.ContentMD5 != nil && len(*s.ContentMD5) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ContentMD5", 1))
+ if s.Key != nil && len(*s.Key) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))
}
- if s.ContentType != nil && len(*s.ContentType) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ContentType", 1))
+ if s.Value == nil {
+ invalidParams.Add(request.NewErrParamRequired("Value"))
}
if invalidParams.Len() > 0 {
@@ -20816,78 +22705,75 @@ func (s *S3ObjectMetadata) Validate() error {
return nil
}
-// SetCacheControl sets the CacheControl field's value.
-func (s *S3ObjectMetadata) SetCacheControl(v string) *S3ObjectMetadata {
- s.CacheControl = &v
- return s
-}
-
-// SetContentDisposition sets the ContentDisposition field's value.
-func (s *S3ObjectMetadata) SetContentDisposition(v string) *S3ObjectMetadata {
- s.ContentDisposition = &v
- return s
-}
-
-// SetContentEncoding sets the ContentEncoding field's value.
-func (s *S3ObjectMetadata) SetContentEncoding(v string) *S3ObjectMetadata {
- s.ContentEncoding = &v
+// SetKey sets the Key field's value.
+func (s *S3Tag) SetKey(v string) *S3Tag {
+ s.Key = &v
return s
}
-// SetContentLanguage sets the ContentLanguage field's value.
-func (s *S3ObjectMetadata) SetContentLanguage(v string) *S3ObjectMetadata {
- s.ContentLanguage = &v
+// SetValue sets the Value field's value.
+func (s *S3Tag) SetValue(v string) *S3Tag {
+ s.Value = &v
return s
}
-// SetContentLength sets the ContentLength field's value.
-func (s *S3ObjectMetadata) SetContentLength(v int64) *S3ObjectMetadata {
- s.ContentLength = &v
- return s
-}
+type SSEKMS struct {
+ _ struct{} `locationName:"SSE-KMS" type:"structure"`
-// SetContentMD5 sets the ContentMD5 field's value.
-func (s *S3ObjectMetadata) SetContentMD5(v string) *S3ObjectMetadata {
- s.ContentMD5 = &v
- return s
+ // A container for the ARN of the SSE-KMS encryption. This property is read-only
+ // and follows the following format: arn:aws:kms:us-east-1:example-account-id:key/example-9a73-4afc-8d29-8f5900cef44e
+ //
+ // KeyId is a required field
+ KeyId *string `type:"string" required:"true"`
}
-// SetContentType sets the ContentType field's value.
-func (s *S3ObjectMetadata) SetContentType(v string) *S3ObjectMetadata {
- s.ContentType = &v
- return s
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SSEKMS) String() string {
+ return awsutil.Prettify(s)
}
-// SetHttpExpiresDate sets the HttpExpiresDate field's value.
-func (s *S3ObjectMetadata) SetHttpExpiresDate(v time.Time) *S3ObjectMetadata {
- s.HttpExpiresDate = &v
- return s
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SSEKMS) GoString() string {
+ return s.String()
}
-// SetRequesterCharged sets the RequesterCharged field's value.
-func (s *S3ObjectMetadata) SetRequesterCharged(v bool) *S3ObjectMetadata {
- s.RequesterCharged = &v
- return s
-}
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *SSEKMS) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SSEKMS"}
+ if s.KeyId == nil {
+ invalidParams.Add(request.NewErrParamRequired("KeyId"))
+ }
-// SetSSEAlgorithm sets the SSEAlgorithm field's value.
-func (s *S3ObjectMetadata) SetSSEAlgorithm(v string) *S3ObjectMetadata {
- s.SSEAlgorithm = &v
- return s
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetUserMetadata sets the UserMetadata field's value.
-func (s *S3ObjectMetadata) SetUserMetadata(v map[string]*string) *S3ObjectMetadata {
- s.UserMetadata = v
+// SetKeyId sets the KeyId field's value.
+func (s *SSEKMS) SetKeyId(v string) *SSEKMS {
+ s.KeyId = &v
return s
}
-type S3ObjectOwner struct {
- _ struct{} `type:"structure"`
-
- DisplayName *string `min:"1" type:"string"`
+// Configuration for the use of SSE-KMS to encrypt generated manifest objects.
+type SSEKMSEncryption struct {
+ _ struct{} `locationName:"SSE-KMS" type:"structure"`
- ID *string `min:"1" type:"string"`
+ // Specifies the ID of the Amazon Web Services Key Management Service (Amazon
+ // Web Services KMS) symmetric encryption customer managed key to use for encrypting
+ // generated manifest objects.
+ //
+ // KeyId is a required field
+ KeyId *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -20895,7 +22781,7 @@ type S3ObjectOwner struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3ObjectOwner) String() string {
+func (s SSEKMSEncryption) String() string {
return awsutil.Prettify(s)
}
@@ -20904,18 +22790,18 @@ func (s S3ObjectOwner) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3ObjectOwner) GoString() string {
+func (s SSEKMSEncryption) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *S3ObjectOwner) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3ObjectOwner"}
- if s.DisplayName != nil && len(*s.DisplayName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1))
+func (s *SSEKMSEncryption) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SSEKMSEncryption"}
+ if s.KeyId == nil {
+ invalidParams.Add(request.NewErrParamRequired("KeyId"))
}
- if s.ID != nil && len(*s.ID) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ID", 1))
+ if s.KeyId != nil && len(*s.KeyId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("KeyId", 1))
}
if invalidParams.Len() > 0 {
@@ -20924,22 +22810,14 @@ func (s *S3ObjectOwner) Validate() error {
return nil
}
-// SetDisplayName sets the DisplayName field's value.
-func (s *S3ObjectOwner) SetDisplayName(v string) *S3ObjectOwner {
- s.DisplayName = &v
- return s
-}
-
-// SetID sets the ID field's value.
-func (s *S3ObjectOwner) SetID(v string) *S3ObjectOwner {
- s.ID = &v
+// SetKeyId sets the KeyId field's value.
+func (s *SSEKMSEncryption) SetKeyId(v string) *SSEKMSEncryption {
+ s.KeyId = &v
return s
}
-// Directs the specified job to invoke ReplicateObject on every object in the
-// job's manifest.
-type S3ReplicateObjectOperation struct {
- _ struct{} `type:"structure"`
+type SSES3 struct {
+ _ struct{} `locationName:"SSE-S3" type:"structure"`
}
// String returns the string representation.
@@ -20947,7 +22825,7 @@ type S3ReplicateObjectOperation struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3ReplicateObjectOperation) String() string {
+func (s SSES3) String() string {
return awsutil.Prettify(s)
}
@@ -20956,26 +22834,13 @@ func (s S3ReplicateObjectOperation) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3ReplicateObjectOperation) GoString() string {
+func (s SSES3) GoString() string {
return s.String()
}
-// Contains the S3 Object Lock retention mode to be applied to all objects in
-// the S3 Batch Operations job. If you don't provide Mode and RetainUntilDate
-// data types in your operation, you will remove the retention from your objects.
-// For more information, see Using S3 Object Lock retention with S3 Batch Operations
-// (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-retention-date.html)
-// in the Amazon S3 User Guide.
-type S3Retention struct {
- _ struct{} `type:"structure"`
-
- // The Object Lock retention mode to be applied to all objects in the Batch
- // Operations job.
- Mode *string `type:"string" enum:"S3ObjectLockRetentionMode"`
-
- // The date when the applied Object Lock retention will expire on all objects
- // set by the Batch Operations job.
- RetainUntilDate *time.Time `type:"timestamp"`
+// Configuration for the use of SSE-S3 to encrypt generated manifest objects.
+type SSES3Encryption struct {
+ _ struct{} `locationName:"SSE-S3" type:"structure"`
}
// String returns the string representation.
@@ -20983,7 +22848,7 @@ type S3Retention struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3Retention) String() string {
+func (s SSES3Encryption) String() string {
return awsutil.Prettify(s)
}
@@ -20992,30 +22857,23 @@ func (s S3Retention) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3Retention) GoString() string {
+func (s SSES3Encryption) GoString() string {
return s.String()
}
-// SetMode sets the Mode field's value.
-func (s *S3Retention) SetMode(v string) *S3Retention {
- s.Mode = &v
- return s
-}
+type SelectionCriteria struct {
+ _ struct{} `type:"structure"`
-// SetRetainUntilDate sets the RetainUntilDate field's value.
-func (s *S3Retention) SetRetainUntilDate(v time.Time) *S3Retention {
- s.RetainUntilDate = &v
- return s
-}
+ // A container for the delimiter of the selection criteria being used.
+ Delimiter *string `type:"string"`
-// Contains the configuration parameters for a PUT Object ACL operation. S3
-// Batch Operations passes every object to the underlying PutObjectAcl API operation.
-// For more information about the parameters for this operation, see PutObjectAcl
-// (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUTacl.html).
-type S3SetObjectAclOperation struct {
- _ struct{} `type:"structure"`
+ // The max depth of the selection criteria
+ MaxDepth *int64 `min:"1" type:"integer"`
- AccessControlPolicy *S3AccessControlPolicy `type:"structure"`
+ // The minimum number of storage bytes percentage whose metrics will be selected.
+ //
+ // You must choose a value greater than or equal to 1.0.
+ MinStorageBytesPercentage *float64 `min:"0.1" type:"double"`
}
// String returns the string representation.
@@ -21023,7 +22881,7 @@ type S3SetObjectAclOperation struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3SetObjectAclOperation) String() string {
+func (s SelectionCriteria) String() string {
return awsutil.Prettify(s)
}
@@ -21032,17 +22890,18 @@ func (s S3SetObjectAclOperation) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3SetObjectAclOperation) GoString() string {
+func (s SelectionCriteria) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *S3SetObjectAclOperation) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3SetObjectAclOperation"}
- if s.AccessControlPolicy != nil {
- if err := s.AccessControlPolicy.Validate(); err != nil {
- invalidParams.AddNested("AccessControlPolicy", err.(request.ErrInvalidParams))
- }
+func (s *SelectionCriteria) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SelectionCriteria"}
+ if s.MaxDepth != nil && *s.MaxDepth < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxDepth", 1))
+ }
+ if s.MinStorageBytesPercentage != nil && *s.MinStorageBytesPercentage < 0.1 {
+ invalidParams.Add(request.NewErrParamMinValue("MinStorageBytesPercentage", 0.1))
}
if invalidParams.Len() > 0 {
@@ -21051,25 +22910,52 @@ func (s *S3SetObjectAclOperation) Validate() error {
return nil
}
-// SetAccessControlPolicy sets the AccessControlPolicy field's value.
-func (s *S3SetObjectAclOperation) SetAccessControlPolicy(v *S3AccessControlPolicy) *S3SetObjectAclOperation {
- s.AccessControlPolicy = v
+// SetDelimiter sets the Delimiter field's value.
+func (s *SelectionCriteria) SetDelimiter(v string) *SelectionCriteria {
+ s.Delimiter = &v
return s
}
-// Contains the configuration for an S3 Object Lock legal hold operation that
-// an S3 Batch Operations job passes to every object to the underlying PutObjectLegalHold
-// API operation. For more information, see Using S3 Object Lock legal hold
-// with S3 Batch Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-legal-hold.html)
-// in the Amazon S3 User Guide.
-type S3SetObjectLegalHoldOperation struct {
+// SetMaxDepth sets the MaxDepth field's value.
+func (s *SelectionCriteria) SetMaxDepth(v int64) *SelectionCriteria {
+ s.MaxDepth = &v
+ return s
+}
+
+// SetMinStorageBytesPercentage sets the MinStorageBytesPercentage field's value.
+func (s *SelectionCriteria) SetMinStorageBytesPercentage(v float64) *SelectionCriteria {
+ s.MinStorageBytesPercentage = &v
+ return s
+}
+
+// A container that describes additional filters for identifying the source
+// objects that you want to replicate. You can choose to enable or disable the
+// replication of these objects.
+type SourceSelectionCriteria struct {
_ struct{} `type:"structure"`
- // Contains the Object Lock legal hold status to be applied to all objects in
- // the Batch Operations job.
+ // A filter that you can use to specify whether replica modification sync is
+ // enabled. S3 on Outposts replica modification sync can help you keep object
+ // metadata synchronized between replicas and source objects. By default, S3
+ // on Outposts replicates metadata from the source objects to the replicas only.
+ // When replica modification sync is enabled, S3 on Outposts replicates metadata
+ // changes made to the replica copies back to the source object, making the
+ // replication bidirectional.
//
- // LegalHold is a required field
- LegalHold *S3ObjectLockLegalHold `type:"structure" required:"true"`
+ // To replicate object metadata modifications on replicas, you can specify this
+ // element and set the Status of this element to Enabled.
+ //
+ // You must enable replica modification sync on the source and destination buckets
+ // to replicate replica metadata changes between the source and the replicas.
+ ReplicaModifications *ReplicaModifications `type:"structure"`
+
+ // A filter that you can use to select Amazon S3 objects that are encrypted
+ // with server-side encryption by using Key Management Service (KMS) keys. If
+ // you include SourceSelectionCriteria in the replication configuration, this
+ // element is required.
+ //
+ // This is not supported by Amazon S3 on Outposts buckets.
+ SseKmsEncryptedObjects *SseKmsEncryptedObjects `type:"structure"`
}
// String returns the string representation.
@@ -21077,7 +22963,7 @@ type S3SetObjectLegalHoldOperation struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3SetObjectLegalHoldOperation) String() string {
+func (s SourceSelectionCriteria) String() string {
return awsutil.Prettify(s)
}
@@ -21086,19 +22972,21 @@ func (s S3SetObjectLegalHoldOperation) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3SetObjectLegalHoldOperation) GoString() string {
+func (s SourceSelectionCriteria) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *S3SetObjectLegalHoldOperation) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3SetObjectLegalHoldOperation"}
- if s.LegalHold == nil {
- invalidParams.Add(request.NewErrParamRequired("LegalHold"))
+func (s *SourceSelectionCriteria) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SourceSelectionCriteria"}
+ if s.ReplicaModifications != nil {
+ if err := s.ReplicaModifications.Validate(); err != nil {
+ invalidParams.AddNested("ReplicaModifications", err.(request.ErrInvalidParams))
+ }
}
- if s.LegalHold != nil {
- if err := s.LegalHold.Validate(); err != nil {
- invalidParams.AddNested("LegalHold", err.(request.ErrInvalidParams))
+ if s.SseKmsEncryptedObjects != nil {
+ if err := s.SseKmsEncryptedObjects.Validate(); err != nil {
+ invalidParams.AddNested("SseKmsEncryptedObjects", err.(request.ErrInvalidParams))
}
}
@@ -21108,31 +22996,30 @@ func (s *S3SetObjectLegalHoldOperation) Validate() error {
return nil
}
-// SetLegalHold sets the LegalHold field's value.
-func (s *S3SetObjectLegalHoldOperation) SetLegalHold(v *S3ObjectLockLegalHold) *S3SetObjectLegalHoldOperation {
- s.LegalHold = v
+// SetReplicaModifications sets the ReplicaModifications field's value.
+func (s *SourceSelectionCriteria) SetReplicaModifications(v *ReplicaModifications) *SourceSelectionCriteria {
+ s.ReplicaModifications = v
return s
}
-// Contains the configuration parameters for the Object Lock retention action
-// for an S3 Batch Operations job. Batch Operations passes every object to the
-// underlying PutObjectRetention API operation. For more information, see Using
-// S3 Object Lock retention with S3 Batch Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-retention-date.html)
-// in the Amazon S3 User Guide.
-type S3SetObjectRetentionOperation struct {
- _ struct{} `type:"structure"`
+// SetSseKmsEncryptedObjects sets the SseKmsEncryptedObjects field's value.
+func (s *SourceSelectionCriteria) SetSseKmsEncryptedObjects(v *SseKmsEncryptedObjects) *SourceSelectionCriteria {
+ s.SseKmsEncryptedObjects = v
+ return s
+}
- // Indicates if the action should be applied to objects in the Batch Operations
- // job even if they have Object Lock GOVERNANCE type in place.
- BypassGovernanceRetention *bool `type:"boolean"`
+// A container for filter information that you can use to select S3 objects
+// that are encrypted with Key Management Service (KMS).
+//
+// This is not supported by Amazon S3 on Outposts buckets.
+type SseKmsEncryptedObjects struct {
+ _ struct{} `type:"structure"`
- // Contains the Object Lock retention mode to be applied to all objects in the
- // Batch Operations job. For more information, see Using S3 Object Lock retention
- // with S3 Batch Operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-retention-date.html)
- // in the Amazon S3 User Guide.
+ // Specifies whether Amazon S3 replicates objects that are created with server-side
+ // encryption by using an KMS key stored in Key Management Service.
//
- // Retention is a required field
- Retention *S3Retention `type:"structure" required:"true"`
+ // Status is a required field
+ Status *string `type:"string" required:"true" enum:"SseKmsEncryptedObjectsStatus"`
}
// String returns the string representation.
@@ -21140,7 +23027,7 @@ type S3SetObjectRetentionOperation struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3SetObjectRetentionOperation) String() string {
+func (s SseKmsEncryptedObjects) String() string {
return awsutil.Prettify(s)
}
@@ -21149,15 +23036,15 @@ func (s S3SetObjectRetentionOperation) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3SetObjectRetentionOperation) GoString() string {
+func (s SseKmsEncryptedObjects) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *S3SetObjectRetentionOperation) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3SetObjectRetentionOperation"}
- if s.Retention == nil {
- invalidParams.Add(request.NewErrParamRequired("Retention"))
+func (s *SseKmsEncryptedObjects) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SseKmsEncryptedObjects"}
+ if s.Status == nil {
+ invalidParams.Add(request.NewErrParamRequired("Status"))
}
if invalidParams.Len() > 0 {
@@ -21166,26 +23053,22 @@ func (s *S3SetObjectRetentionOperation) Validate() error {
return nil
}
-// SetBypassGovernanceRetention sets the BypassGovernanceRetention field's value.
-func (s *S3SetObjectRetentionOperation) SetBypassGovernanceRetention(v bool) *S3SetObjectRetentionOperation {
- s.BypassGovernanceRetention = &v
- return s
-}
-
-// SetRetention sets the Retention field's value.
-func (s *S3SetObjectRetentionOperation) SetRetention(v *S3Retention) *S3SetObjectRetentionOperation {
- s.Retention = v
+// SetStatus sets the Status field's value.
+func (s *SseKmsEncryptedObjects) SetStatus(v string) *SseKmsEncryptedObjects {
+ s.Status = &v
return s
}
-// Contains the configuration parameters for a PUT Object Tagging operation.
-// S3 Batch Operations passes every object to the underlying PutObjectTagging
-// API operation. For more information about the parameters for this operation,
-// see PutObjectTagging (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUTtagging.html).
-type S3SetObjectTaggingOperation struct {
+// The Amazon Web Services organization for your S3 Storage Lens.
+type StorageLensAwsOrg struct {
_ struct{} `type:"structure"`
- TagSet []*S3Tag `type:"list"`
+ // A container for the Amazon Resource Name (ARN) of the Amazon Web Services
+ // organization. This property is read-only and follows the following format:
+ // arn:aws:organizations:us-east-1:example-account-id:organization/o-ex2l495dck
+ //
+ // Arn is a required field
+ Arn *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -21193,7 +23076,7 @@ type S3SetObjectTaggingOperation struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3SetObjectTaggingOperation) String() string {
+func (s StorageLensAwsOrg) String() string {
return awsutil.Prettify(s)
}
@@ -21202,22 +23085,18 @@ func (s S3SetObjectTaggingOperation) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3SetObjectTaggingOperation) GoString() string {
+func (s StorageLensAwsOrg) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *S3SetObjectTaggingOperation) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3SetObjectTaggingOperation"}
- if s.TagSet != nil {
- for i, v := range s.TagSet {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TagSet", i), err.(request.ErrInvalidParams))
- }
- }
+func (s *StorageLensAwsOrg) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "StorageLensAwsOrg"}
+ if s.Arn == nil {
+ invalidParams.Add(request.NewErrParamRequired("Arn"))
+ }
+ if s.Arn != nil && len(*s.Arn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Arn", 1))
}
if invalidParams.Len() > 0 {
@@ -21226,25 +23105,51 @@ func (s *S3SetObjectTaggingOperation) Validate() error {
return nil
}
-// SetTagSet sets the TagSet field's value.
-func (s *S3SetObjectTaggingOperation) SetTagSet(v []*S3Tag) *S3SetObjectTaggingOperation {
- s.TagSet = v
+// SetArn sets the Arn field's value.
+func (s *StorageLensAwsOrg) SetArn(v string) *StorageLensAwsOrg {
+ s.Arn = &v
return s
}
-// A container for a key-value name pair.
-type S3Tag struct {
+// A container for the Amazon S3 Storage Lens configuration.
+type StorageLensConfiguration struct {
_ struct{} `type:"structure"`
- // Key of the tag
+ // A container for all the account-level configurations of your S3 Storage Lens
+ // configuration.
//
- // Key is a required field
- Key *string `min:"1" type:"string" required:"true"`
+ // AccountLevel is a required field
+ AccountLevel *AccountLevel `type:"structure" required:"true"`
- // Value of the tag
+ // A container for the Amazon Web Services organization for this S3 Storage
+ // Lens configuration.
+ AwsOrg *StorageLensAwsOrg `type:"structure"`
+
+ // A container to specify the properties of your S3 Storage Lens metrics export
+ // including, the destination, schema and format.
+ DataExport *StorageLensDataExport `type:"structure"`
+
+ // A container for what is excluded in this configuration. This container can
+ // only be valid if there is no Include container submitted, and it's not empty.
+ Exclude *Exclude `type:"structure"`
+
+ // A container for the Amazon S3 Storage Lens configuration ID.
//
- // Value is a required field
- Value *string `type:"string" required:"true"`
+ // Id is a required field
+ Id *string `min:"1" type:"string" required:"true"`
+
+ // A container for what is included in this configuration. This container can
+ // only be valid if there is no Exclude container submitted, and it's not empty.
+ Include *Include `type:"structure"`
+
+ // A container for whether the S3 Storage Lens configuration is enabled.
+ //
+ // IsEnabled is a required field
+ IsEnabled *bool `type:"boolean" required:"true"`
+
+ // The Amazon Resource Name (ARN) of the S3 Storage Lens configuration. This
+ // property is read-only and follows the following format: arn:aws:s3:us-east-1:example-account-id:storage-lens/your-dashboard-name
+ StorageLensArn *string `min:"1" type:"string"`
}
// String returns the string representation.
@@ -21252,7 +23157,7 @@ type S3Tag struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3Tag) String() string {
+func (s StorageLensConfiguration) String() string {
return awsutil.Prettify(s)
}
@@ -21261,21 +23166,42 @@ func (s S3Tag) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s S3Tag) GoString() string {
+func (s StorageLensConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *S3Tag) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3Tag"}
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
+func (s *StorageLensConfiguration) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "StorageLensConfiguration"}
+ if s.AccountLevel == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountLevel"))
}
- if s.Key != nil && len(*s.Key) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Key", 1))
+ if s.Id == nil {
+ invalidParams.Add(request.NewErrParamRequired("Id"))
}
- if s.Value == nil {
- invalidParams.Add(request.NewErrParamRequired("Value"))
+ if s.Id != nil && len(*s.Id) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Id", 1))
+ }
+ if s.IsEnabled == nil {
+ invalidParams.Add(request.NewErrParamRequired("IsEnabled"))
+ }
+ if s.StorageLensArn != nil && len(*s.StorageLensArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("StorageLensArn", 1))
+ }
+ if s.AccountLevel != nil {
+ if err := s.AccountLevel.Validate(); err != nil {
+ invalidParams.AddNested("AccountLevel", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.AwsOrg != nil {
+ if err := s.AwsOrg.Validate(); err != nil {
+ invalidParams.AddNested("AwsOrg", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.DataExport != nil {
+ if err := s.DataExport.Validate(); err != nil {
+ invalidParams.AddNested("DataExport", err.(request.ErrInvalidParams))
+ }
}
if invalidParams.Len() > 0 {
@@ -21284,26 +23210,68 @@ func (s *S3Tag) Validate() error {
return nil
}
-// SetKey sets the Key field's value.
-func (s *S3Tag) SetKey(v string) *S3Tag {
- s.Key = &v
+// SetAccountLevel sets the AccountLevel field's value.
+func (s *StorageLensConfiguration) SetAccountLevel(v *AccountLevel) *StorageLensConfiguration {
+ s.AccountLevel = v
return s
}
-// SetValue sets the Value field's value.
-func (s *S3Tag) SetValue(v string) *S3Tag {
- s.Value = &v
+// SetAwsOrg sets the AwsOrg field's value.
+func (s *StorageLensConfiguration) SetAwsOrg(v *StorageLensAwsOrg) *StorageLensConfiguration {
+ s.AwsOrg = v
return s
}
-type SSEKMS struct {
- _ struct{} `locationName:"SSE-KMS" type:"structure"`
+// SetDataExport sets the DataExport field's value.
+func (s *StorageLensConfiguration) SetDataExport(v *StorageLensDataExport) *StorageLensConfiguration {
+ s.DataExport = v
+ return s
+}
- // A container for the ARN of the SSE-KMS encryption. This property is read-only
- // and follows the following format: arn:aws:kms:us-east-1:example-account-id:key/example-9a73-4afc-8d29-8f5900cef44e
+// SetExclude sets the Exclude field's value.
+func (s *StorageLensConfiguration) SetExclude(v *Exclude) *StorageLensConfiguration {
+ s.Exclude = v
+ return s
+}
+
+// SetId sets the Id field's value.
+func (s *StorageLensConfiguration) SetId(v string) *StorageLensConfiguration {
+ s.Id = &v
+ return s
+}
+
+// SetInclude sets the Include field's value.
+func (s *StorageLensConfiguration) SetInclude(v *Include) *StorageLensConfiguration {
+ s.Include = v
+ return s
+}
+
+// SetIsEnabled sets the IsEnabled field's value.
+func (s *StorageLensConfiguration) SetIsEnabled(v bool) *StorageLensConfiguration {
+ s.IsEnabled = &v
+ return s
+}
+
+// SetStorageLensArn sets the StorageLensArn field's value.
+func (s *StorageLensConfiguration) SetStorageLensArn(v string) *StorageLensConfiguration {
+ s.StorageLensArn = &v
+ return s
+}
+
+// A container to specify the properties of your S3 Storage Lens metrics export,
+// including the destination, schema, and format.
+type StorageLensDataExport struct {
+ _ struct{} `type:"structure"`
+
+ // A container for enabling Amazon CloudWatch publishing for S3 Storage Lens
+ // metrics.
+ CloudWatchMetrics *CloudWatchMetrics `type:"structure"`
+
+ // A container for the bucket where the S3 Storage Lens metrics export will
+ // be located.
//
- // KeyId is a required field
- KeyId *string `type:"string" required:"true"`
+ // This bucket must be located in the same Region as the storage lens configuration.
+ S3BucketDestination *S3BucketDestination `type:"structure"`
}
// String returns the string representation.
@@ -21311,7 +23279,7 @@ type SSEKMS struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s SSEKMS) String() string {
+func (s StorageLensDataExport) String() string {
return awsutil.Prettify(s)
}
@@ -21320,15 +23288,22 @@ func (s SSEKMS) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s SSEKMS) GoString() string {
+func (s StorageLensDataExport) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *SSEKMS) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SSEKMS"}
- if s.KeyId == nil {
- invalidParams.Add(request.NewErrParamRequired("KeyId"))
+func (s *StorageLensDataExport) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "StorageLensDataExport"}
+ if s.CloudWatchMetrics != nil {
+ if err := s.CloudWatchMetrics.Validate(); err != nil {
+ invalidParams.AddNested("CloudWatchMetrics", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.S3BucketDestination != nil {
+ if err := s.S3BucketDestination.Validate(); err != nil {
+ invalidParams.AddNested("S3BucketDestination", err.(request.ErrInvalidParams))
+ }
}
if invalidParams.Len() > 0 {
@@ -21337,22 +23312,25 @@ func (s *SSEKMS) Validate() error {
return nil
}
-// SetKeyId sets the KeyId field's value.
-func (s *SSEKMS) SetKeyId(v string) *SSEKMS {
- s.KeyId = &v
+// SetCloudWatchMetrics sets the CloudWatchMetrics field's value.
+func (s *StorageLensDataExport) SetCloudWatchMetrics(v *CloudWatchMetrics) *StorageLensDataExport {
+ s.CloudWatchMetrics = v
return s
}
-// Configuration for the use of SSE-KMS to encrypt generated manifest objects.
-type SSEKMSEncryption struct {
- _ struct{} `locationName:"SSE-KMS" type:"structure"`
+// SetS3BucketDestination sets the S3BucketDestination field's value.
+func (s *StorageLensDataExport) SetS3BucketDestination(v *S3BucketDestination) *StorageLensDataExport {
+ s.S3BucketDestination = v
+ return s
+}
- // Specifies the ID of the Amazon Web Services Key Management Service (Amazon
- // Web Services KMS) symmetric encryption customer managed key to use for encrypting
- // generated manifest objects.
- //
- // KeyId is a required field
- KeyId *string `min:"1" type:"string" required:"true"`
+// A container for the encryption of the S3 Storage Lens metrics exports.
+type StorageLensDataExportEncryption struct {
+ _ struct{} `type:"structure"`
+
+ SSEKMS *SSEKMS `locationName:"SSE-KMS" type:"structure"`
+
+ SSES3 *SSES3 `locationName:"SSE-S3" type:"structure"`
}
// String returns the string representation.
@@ -21360,7 +23338,7 @@ type SSEKMSEncryption struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s SSEKMSEncryption) String() string {
+func (s StorageLensDataExportEncryption) String() string {
return awsutil.Prettify(s)
}
@@ -21369,18 +23347,17 @@ func (s SSEKMSEncryption) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s SSEKMSEncryption) GoString() string {
+func (s StorageLensDataExportEncryption) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *SSEKMSEncryption) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SSEKMSEncryption"}
- if s.KeyId == nil {
- invalidParams.Add(request.NewErrParamRequired("KeyId"))
- }
- if s.KeyId != nil && len(*s.KeyId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("KeyId", 1))
+func (s *StorageLensDataExportEncryption) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "StorageLensDataExportEncryption"}
+ if s.SSEKMS != nil {
+ if err := s.SSEKMS.Validate(); err != nil {
+ invalidParams.AddNested("SSEKMS", err.(request.ErrInvalidParams))
+ }
}
if invalidParams.Len() > 0 {
@@ -21389,14 +23366,39 @@ func (s *SSEKMSEncryption) Validate() error {
return nil
}
-// SetKeyId sets the KeyId field's value.
-func (s *SSEKMSEncryption) SetKeyId(v string) *SSEKMSEncryption {
- s.KeyId = &v
+// SetSSEKMS sets the SSEKMS field's value.
+func (s *StorageLensDataExportEncryption) SetSSEKMS(v *SSEKMS) *StorageLensDataExportEncryption {
+ s.SSEKMS = v
return s
}
-type SSES3 struct {
- _ struct{} `locationName:"SSE-S3" type:"structure"`
+// SetSSES3 sets the SSES3 field's value.
+func (s *StorageLensDataExportEncryption) SetSSES3(v *SSES3) *StorageLensDataExportEncryption {
+ s.SSES3 = v
+ return s
+}
+
+// A custom grouping of objects that include filters for prefixes, suffixes,
+// object tags, object size, or object age. You can create an S3 Storage Lens
+// group that includes a single filter or multiple filter conditions. To specify
+// multiple filter conditions, you use AND or OR logical operators.
+type StorageLensGroup struct {
+ _ struct{} `type:"structure"`
+
+ // Sets the criteria for the Storage Lens group data that is displayed. For
+ // multiple filter conditions, the AND or OR logical operator is used.
+ //
+ // Filter is a required field
+ Filter *StorageLensGroupFilter `type:"structure" required:"true"`
+
+ // Contains the name of the Storage Lens group.
+ //
+ // Name is a required field
+ Name *string `min:"1" type:"string" required:"true"`
+
+ // Contains the Amazon Resource Name (ARN) of the Storage Lens group. This property
+ // is read-only.
+ StorageLensGroupArn *string `min:"4" type:"string"`
}
// String returns the string representation.
@@ -21404,7 +23406,7 @@ type SSES3 struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s SSES3) String() string {
+func (s StorageLensGroup) String() string {
return awsutil.Prettify(s)
}
@@ -21413,46 +23415,79 @@ func (s SSES3) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s SSES3) GoString() string {
+func (s StorageLensGroup) GoString() string {
return s.String()
}
-// Configuration for the use of SSE-S3 to encrypt generated manifest objects.
-type SSES3Encryption struct {
- _ struct{} `locationName:"SSE-S3" type:"structure"`
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *StorageLensGroup) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "StorageLensGroup"}
+ if s.Filter == nil {
+ invalidParams.Add(request.NewErrParamRequired("Filter"))
+ }
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
+ }
+ if s.StorageLensGroupArn != nil && len(*s.StorageLensGroupArn) < 4 {
+ invalidParams.Add(request.NewErrParamMinLen("StorageLensGroupArn", 4))
+ }
+ if s.Filter != nil {
+ if err := s.Filter.Validate(); err != nil {
+ invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s SSES3Encryption) String() string {
- return awsutil.Prettify(s)
+// SetFilter sets the Filter field's value.
+func (s *StorageLensGroup) SetFilter(v *StorageLensGroupFilter) *StorageLensGroup {
+ s.Filter = v
+ return s
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s SSES3Encryption) GoString() string {
- return s.String()
+// SetName sets the Name field's value.
+func (s *StorageLensGroup) SetName(v string) *StorageLensGroup {
+ s.Name = &v
+ return s
}
-type SelectionCriteria struct {
+// SetStorageLensGroupArn sets the StorageLensGroupArn field's value.
+func (s *StorageLensGroup) SetStorageLensGroupArn(v string) *StorageLensGroup {
+ s.StorageLensGroupArn = &v
+ return s
+}
+
+// A logical operator that allows multiple filter conditions to be joined for
+// more complex comparisons of Storage Lens group data.
+type StorageLensGroupAndOperator struct {
_ struct{} `type:"structure"`
- // A container for the delimiter of the selection criteria being used.
- Delimiter *string `type:"string"`
+ // Contains a list of prefixes. At least one prefix must be specified. Up to
+ // 10 prefixes are allowed.
+ MatchAnyPrefix []*string `locationNameList:"Prefix" type:"list"`
- // The max depth of the selection criteria
- MaxDepth *int64 `min:"1" type:"integer"`
+ // Contains a list of suffixes. At least one suffix must be specified. Up to
+ // 10 suffixes are allowed.
+ MatchAnySuffix []*string `locationNameList:"Suffix" type:"list"`
- // The minimum number of storage bytes percentage whose metrics will be selected.
- //
- // You must choose a value greater than or equal to 1.0.
- MinStorageBytesPercentage *float64 `min:"0.1" type:"double"`
+ // Contains the list of object tags. At least one object tag must be specified.
+ // Up to 10 object tags are allowed.
+ MatchAnyTag []*S3Tag `locationNameList:"Tag" type:"list"`
+
+ // Contains DaysGreaterThan and DaysLessThan to define the object age range
+ // (minimum and maximum number of days).
+ MatchObjectAge *MatchObjectAge `type:"structure"`
+
+ // Contains BytesGreaterThan and BytesLessThan to define the object size range
+ // (minimum and maximum number of Bytes).
+ MatchObjectSize *MatchObjectSize `type:"structure"`
}
// String returns the string representation.
@@ -21460,7 +23495,7 @@ type SelectionCriteria struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s SelectionCriteria) String() string {
+func (s StorageLensGroupAndOperator) String() string {
return awsutil.Prettify(s)
}
@@ -21469,18 +23504,22 @@ func (s SelectionCriteria) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s SelectionCriteria) GoString() string {
+func (s StorageLensGroupAndOperator) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *SelectionCriteria) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SelectionCriteria"}
- if s.MaxDepth != nil && *s.MaxDepth < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxDepth", 1))
- }
- if s.MinStorageBytesPercentage != nil && *s.MinStorageBytesPercentage < 0.1 {
- invalidParams.Add(request.NewErrParamMinValue("MinStorageBytesPercentage", 0.1))
+func (s *StorageLensGroupAndOperator) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "StorageLensGroupAndOperator"}
+ if s.MatchAnyTag != nil {
+ for i, v := range s.MatchAnyTag {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MatchAnyTag", i), err.(request.ErrInvalidParams))
+ }
+ }
}
if invalidParams.Len() > 0 {
@@ -21489,52 +23528,72 @@ func (s *SelectionCriteria) Validate() error {
return nil
}
-// SetDelimiter sets the Delimiter field's value.
-func (s *SelectionCriteria) SetDelimiter(v string) *SelectionCriteria {
- s.Delimiter = &v
+// SetMatchAnyPrefix sets the MatchAnyPrefix field's value.
+func (s *StorageLensGroupAndOperator) SetMatchAnyPrefix(v []*string) *StorageLensGroupAndOperator {
+ s.MatchAnyPrefix = v
return s
}
-// SetMaxDepth sets the MaxDepth field's value.
-func (s *SelectionCriteria) SetMaxDepth(v int64) *SelectionCriteria {
- s.MaxDepth = &v
+// SetMatchAnySuffix sets the MatchAnySuffix field's value.
+func (s *StorageLensGroupAndOperator) SetMatchAnySuffix(v []*string) *StorageLensGroupAndOperator {
+ s.MatchAnySuffix = v
return s
}
-// SetMinStorageBytesPercentage sets the MinStorageBytesPercentage field's value.
-func (s *SelectionCriteria) SetMinStorageBytesPercentage(v float64) *SelectionCriteria {
- s.MinStorageBytesPercentage = &v
+// SetMatchAnyTag sets the MatchAnyTag field's value.
+func (s *StorageLensGroupAndOperator) SetMatchAnyTag(v []*S3Tag) *StorageLensGroupAndOperator {
+ s.MatchAnyTag = v
return s
}
-// A container that describes additional filters for identifying the source
-// objects that you want to replicate. You can choose to enable or disable the
-// replication of these objects.
-type SourceSelectionCriteria struct {
+// SetMatchObjectAge sets the MatchObjectAge field's value.
+func (s *StorageLensGroupAndOperator) SetMatchObjectAge(v *MatchObjectAge) *StorageLensGroupAndOperator {
+ s.MatchObjectAge = v
+ return s
+}
+
+// SetMatchObjectSize sets the MatchObjectSize field's value.
+func (s *StorageLensGroupAndOperator) SetMatchObjectSize(v *MatchObjectSize) *StorageLensGroupAndOperator {
+ s.MatchObjectSize = v
+ return s
+}
+
+// The filter element sets the criteria for the Storage Lens group data that
+// is displayed. For multiple filter conditions, the AND or OR logical operator
+// is used.
+type StorageLensGroupFilter struct {
_ struct{} `type:"structure"`
- // A filter that you can use to specify whether replica modification sync is
- // enabled. S3 on Outposts replica modification sync can help you keep object
- // metadata synchronized between replicas and source objects. By default, S3
- // on Outposts replicates metadata from the source objects to the replicas only.
- // When replica modification sync is enabled, S3 on Outposts replicates metadata
- // changes made to the replica copies back to the source object, making the
- // replication bidirectional.
- //
- // To replicate object metadata modifications on replicas, you can specify this
- // element and set the Status of this element to Enabled.
- //
- // You must enable replica modification sync on the source and destination buckets
- // to replicate replica metadata changes between the source and the replicas.
- ReplicaModifications *ReplicaModifications `type:"structure"`
+ // A logical operator that allows multiple filter conditions to be joined for
+ // more complex comparisons of Storage Lens group data. Objects must match all
+ // of the listed filter conditions that are joined by the And logical operator.
+ // Only one of each filter condition is allowed.
+ And *StorageLensGroupAndOperator `type:"structure"`
- // A filter that you can use to select Amazon S3 objects that are encrypted
- // with server-side encryption by using Key Management Service (KMS) keys. If
- // you include SourceSelectionCriteria in the replication configuration, this
- // element is required.
- //
- // This is not supported by Amazon S3 on Outposts buckets.
- SseKmsEncryptedObjects *SseKmsEncryptedObjects `type:"structure"`
+ // Contains a list of prefixes. At least one prefix must be specified. Up to
+ // 10 prefixes are allowed.
+ MatchAnyPrefix []*string `locationNameList:"Prefix" type:"list"`
+
+ // Contains a list of suffixes. At least one suffix must be specified. Up to
+ // 10 suffixes are allowed.
+ MatchAnySuffix []*string `locationNameList:"Suffix" type:"list"`
+
+ // Contains the list of S3 object tags. At least one object tag must be specified.
+ // Up to 10 object tags are allowed.
+ MatchAnyTag []*S3Tag `locationNameList:"Tag" type:"list"`
+
+ // Contains DaysGreaterThan and DaysLessThan to define the object age range
+ // (minimum and maximum number of days).
+ MatchObjectAge *MatchObjectAge `type:"structure"`
+
+ // Contains BytesGreaterThan and BytesLessThan to define the object size range
+ // (minimum and maximum number of Bytes).
+ MatchObjectSize *MatchObjectSize `type:"structure"`
+
+ // A single logical operator that allows multiple filter conditions to be joined.
+ // Objects can match any of the listed filter conditions, which are joined by
+ // the Or logical operator. Only one of each filter condition is allowed.
+ Or *StorageLensGroupOrOperator `type:"structure"`
}
// String returns the string representation.
@@ -21542,7 +23601,7 @@ type SourceSelectionCriteria struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s SourceSelectionCriteria) String() string {
+func (s StorageLensGroupFilter) String() string {
return awsutil.Prettify(s)
}
@@ -21551,21 +23610,31 @@ func (s SourceSelectionCriteria) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s SourceSelectionCriteria) GoString() string {
+func (s StorageLensGroupFilter) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *SourceSelectionCriteria) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SourceSelectionCriteria"}
- if s.ReplicaModifications != nil {
- if err := s.ReplicaModifications.Validate(); err != nil {
- invalidParams.AddNested("ReplicaModifications", err.(request.ErrInvalidParams))
+func (s *StorageLensGroupFilter) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "StorageLensGroupFilter"}
+ if s.And != nil {
+ if err := s.And.Validate(); err != nil {
+ invalidParams.AddNested("And", err.(request.ErrInvalidParams))
}
}
- if s.SseKmsEncryptedObjects != nil {
- if err := s.SseKmsEncryptedObjects.Validate(); err != nil {
- invalidParams.AddNested("SseKmsEncryptedObjects", err.(request.ErrInvalidParams))
+ if s.MatchAnyTag != nil {
+ for i, v := range s.MatchAnyTag {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MatchAnyTag", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+ if s.Or != nil {
+ if err := s.Or.Validate(); err != nil {
+ invalidParams.AddNested("Or", err.(request.ErrInvalidParams))
}
}
@@ -21575,30 +23644,56 @@ func (s *SourceSelectionCriteria) Validate() error {
return nil
}
-// SetReplicaModifications sets the ReplicaModifications field's value.
-func (s *SourceSelectionCriteria) SetReplicaModifications(v *ReplicaModifications) *SourceSelectionCriteria {
- s.ReplicaModifications = v
+// SetAnd sets the And field's value.
+func (s *StorageLensGroupFilter) SetAnd(v *StorageLensGroupAndOperator) *StorageLensGroupFilter {
+ s.And = v
return s
}
-// SetSseKmsEncryptedObjects sets the SseKmsEncryptedObjects field's value.
-func (s *SourceSelectionCriteria) SetSseKmsEncryptedObjects(v *SseKmsEncryptedObjects) *SourceSelectionCriteria {
- s.SseKmsEncryptedObjects = v
+// SetMatchAnyPrefix sets the MatchAnyPrefix field's value.
+func (s *StorageLensGroupFilter) SetMatchAnyPrefix(v []*string) *StorageLensGroupFilter {
+ s.MatchAnyPrefix = v
return s
}
-// A container for filter information that you can use to select S3 objects
-// that are encrypted with Key Management Service (KMS).
-//
-// This is not supported by Amazon S3 on Outposts buckets.
-type SseKmsEncryptedObjects struct {
+// SetMatchAnySuffix sets the MatchAnySuffix field's value.
+func (s *StorageLensGroupFilter) SetMatchAnySuffix(v []*string) *StorageLensGroupFilter {
+ s.MatchAnySuffix = v
+ return s
+}
+
+// SetMatchAnyTag sets the MatchAnyTag field's value.
+func (s *StorageLensGroupFilter) SetMatchAnyTag(v []*S3Tag) *StorageLensGroupFilter {
+ s.MatchAnyTag = v
+ return s
+}
+
+// SetMatchObjectAge sets the MatchObjectAge field's value.
+func (s *StorageLensGroupFilter) SetMatchObjectAge(v *MatchObjectAge) *StorageLensGroupFilter {
+ s.MatchObjectAge = v
+ return s
+}
+
+// SetMatchObjectSize sets the MatchObjectSize field's value.
+func (s *StorageLensGroupFilter) SetMatchObjectSize(v *MatchObjectSize) *StorageLensGroupFilter {
+ s.MatchObjectSize = v
+ return s
+}
+
+// SetOr sets the Or field's value.
+func (s *StorageLensGroupFilter) SetOr(v *StorageLensGroupOrOperator) *StorageLensGroupFilter {
+ s.Or = v
+ return s
+}
+
+// Specifies the Storage Lens groups to include in the Storage Lens group aggregation.
+type StorageLensGroupLevel struct {
_ struct{} `type:"structure"`
- // Specifies whether Amazon S3 replicates objects that are created with server-side
- // encryption by using an KMS key stored in Key Management Service.
- //
- // Status is a required field
- Status *string `type:"string" required:"true" enum:"SseKmsEncryptedObjectsStatus"`
+ // Indicates which Storage Lens group ARNs to include or exclude in the Storage
+ // Lens group aggregation. If this value is left null, then all Storage Lens
+ // groups are selected.
+ SelectionCriteria *StorageLensGroupLevelSelectionCriteria `type:"structure"`
}
// String returns the string representation.
@@ -21606,7 +23701,7 @@ type SseKmsEncryptedObjects struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s SseKmsEncryptedObjects) String() string {
+func (s StorageLensGroupLevel) String() string {
return awsutil.Prettify(s)
}
@@ -21615,39 +23710,83 @@ func (s SseKmsEncryptedObjects) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s SseKmsEncryptedObjects) GoString() string {
+func (s StorageLensGroupLevel) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *SseKmsEncryptedObjects) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SseKmsEncryptedObjects"}
- if s.Status == nil {
- invalidParams.Add(request.NewErrParamRequired("Status"))
- }
+// SetSelectionCriteria sets the SelectionCriteria field's value.
+func (s *StorageLensGroupLevel) SetSelectionCriteria(v *StorageLensGroupLevelSelectionCriteria) *StorageLensGroupLevel {
+ s.SelectionCriteria = v
+ return s
+}
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// Indicates which Storage Lens group ARNs to include or exclude in the Storage
+// Lens group aggregation. You can only attach Storage Lens groups to your Storage
+// Lens dashboard if they're included in your Storage Lens group aggregation.
+// If this value is left null, then all Storage Lens groups are selected.
+type StorageLensGroupLevelSelectionCriteria struct {
+ _ struct{} `type:"structure"`
+
+ // Indicates which Storage Lens group ARNs to exclude from the Storage Lens
+ // group aggregation.
+ Exclude []*string `locationNameList:"Arn" type:"list"`
+
+ // Indicates which Storage Lens group ARNs to include in the Storage Lens group
+ // aggregation.
+ Include []*string `locationNameList:"Arn" type:"list"`
}
-// SetStatus sets the Status field's value.
-func (s *SseKmsEncryptedObjects) SetStatus(v string) *SseKmsEncryptedObjects {
- s.Status = &v
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s StorageLensGroupLevelSelectionCriteria) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s StorageLensGroupLevelSelectionCriteria) GoString() string {
+ return s.String()
+}
+
+// SetExclude sets the Exclude field's value.
+func (s *StorageLensGroupLevelSelectionCriteria) SetExclude(v []*string) *StorageLensGroupLevelSelectionCriteria {
+ s.Exclude = v
+ return s
+}
+
+// SetInclude sets the Include field's value.
+func (s *StorageLensGroupLevelSelectionCriteria) SetInclude(v []*string) *StorageLensGroupLevelSelectionCriteria {
+ s.Include = v
return s
}
-// The Amazon Web Services organization for your S3 Storage Lens.
-type StorageLensAwsOrg struct {
+// A container element for specifying Or rule conditions. The rule conditions
+// determine the subset of objects to which the Or rule applies. Objects can
+// match any of the listed filter conditions, which are joined by the Or logical
+// operator. Only one of each filter condition is allowed.
+type StorageLensGroupOrOperator struct {
_ struct{} `type:"structure"`
- // A container for the Amazon Resource Name (ARN) of the Amazon Web Services
- // organization. This property is read-only and follows the following format:
- // arn:aws:organizations:us-east-1:example-account-id:organization/o-ex2l495dck
- //
- // Arn is a required field
- Arn *string `min:"1" type:"string" required:"true"`
+ // Filters objects that match any of the specified prefixes.
+ MatchAnyPrefix []*string `locationNameList:"Prefix" type:"list"`
+
+ // Filters objects that match any of the specified suffixes.
+ MatchAnySuffix []*string `locationNameList:"Suffix" type:"list"`
+
+ // Filters objects that match any of the specified S3 object tags.
+ MatchAnyTag []*S3Tag `locationNameList:"Tag" type:"list"`
+
+ // Filters objects that match the specified object age range.
+ MatchObjectAge *MatchObjectAge `type:"structure"`
+
+ // Filters objects that match the specified object size range.
+ MatchObjectSize *MatchObjectSize `type:"structure"`
}
// String returns the string representation.
@@ -21655,7 +23794,7 @@ type StorageLensAwsOrg struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s StorageLensAwsOrg) String() string {
+func (s StorageLensGroupOrOperator) String() string {
return awsutil.Prettify(s)
}
@@ -21664,18 +23803,22 @@ func (s StorageLensAwsOrg) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s StorageLensAwsOrg) GoString() string {
+func (s StorageLensGroupOrOperator) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *StorageLensAwsOrg) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StorageLensAwsOrg"}
- if s.Arn == nil {
- invalidParams.Add(request.NewErrParamRequired("Arn"))
- }
- if s.Arn != nil && len(*s.Arn) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Arn", 1))
+func (s *StorageLensGroupOrOperator) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "StorageLensGroupOrOperator"}
+ if s.MatchAnyTag != nil {
+ for i, v := range s.MatchAnyTag {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MatchAnyTag", i), err.(request.ErrInvalidParams))
+ }
+ }
}
if invalidParams.Len() > 0 {
@@ -21684,51 +23827,44 @@ func (s *StorageLensAwsOrg) Validate() error {
return nil
}
-// SetArn sets the Arn field's value.
-func (s *StorageLensAwsOrg) SetArn(v string) *StorageLensAwsOrg {
- s.Arn = &v
+// SetMatchAnyPrefix sets the MatchAnyPrefix field's value.
+func (s *StorageLensGroupOrOperator) SetMatchAnyPrefix(v []*string) *StorageLensGroupOrOperator {
+ s.MatchAnyPrefix = v
return s
}
-// A container for the Amazon S3 Storage Lens configuration.
-type StorageLensConfiguration struct {
- _ struct{} `type:"structure"`
-
- // A container for all the account-level configurations of your S3 Storage Lens
- // configuration.
- //
- // AccountLevel is a required field
- AccountLevel *AccountLevel `type:"structure" required:"true"`
-
- // A container for the Amazon Web Services organization for this S3 Storage
- // Lens configuration.
- AwsOrg *StorageLensAwsOrg `type:"structure"`
+// SetMatchAnySuffix sets the MatchAnySuffix field's value.
+func (s *StorageLensGroupOrOperator) SetMatchAnySuffix(v []*string) *StorageLensGroupOrOperator {
+ s.MatchAnySuffix = v
+ return s
+}
- // A container to specify the properties of your S3 Storage Lens metrics export
- // including, the destination, schema and format.
- DataExport *StorageLensDataExport `type:"structure"`
+// SetMatchAnyTag sets the MatchAnyTag field's value.
+func (s *StorageLensGroupOrOperator) SetMatchAnyTag(v []*S3Tag) *StorageLensGroupOrOperator {
+ s.MatchAnyTag = v
+ return s
+}
- // A container for what is excluded in this configuration. This container can
- // only be valid if there is no Include container submitted, and it's not empty.
- Exclude *Exclude `type:"structure"`
+// SetMatchObjectAge sets the MatchObjectAge field's value.
+func (s *StorageLensGroupOrOperator) SetMatchObjectAge(v *MatchObjectAge) *StorageLensGroupOrOperator {
+ s.MatchObjectAge = v
+ return s
+}
- // A container for the Amazon S3 Storage Lens configuration ID.
- //
- // Id is a required field
- Id *string `min:"1" type:"string" required:"true"`
+// SetMatchObjectSize sets the MatchObjectSize field's value.
+func (s *StorageLensGroupOrOperator) SetMatchObjectSize(v *MatchObjectSize) *StorageLensGroupOrOperator {
+ s.MatchObjectSize = v
+ return s
+}
- // A container for what is included in this configuration. This container can
- // only be valid if there is no Exclude container submitted, and it's not empty.
- Include *Include `type:"structure"`
+type StorageLensTag struct {
+ _ struct{} `type:"structure"`
- // A container for whether the S3 Storage Lens configuration is enabled.
- //
- // IsEnabled is a required field
- IsEnabled *bool `type:"boolean" required:"true"`
+ // Key is a required field
+ Key *string `min:"1" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the S3 Storage Lens configuration. This
- // property is read-only and follows the following format: arn:aws:s3:us-east-1:example-account-id:storage-lens/your-dashboard-name
- StorageLensArn *string `min:"1" type:"string"`
+ // Value is a required field
+ Value *string `type:"string" required:"true"`
}
// String returns the string representation.
@@ -21736,7 +23872,7 @@ type StorageLensConfiguration struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s StorageLensConfiguration) String() string {
+func (s StorageLensTag) String() string {
return awsutil.Prettify(s)
}
@@ -21745,42 +23881,21 @@ func (s StorageLensConfiguration) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s StorageLensConfiguration) GoString() string {
+func (s StorageLensTag) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *StorageLensConfiguration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StorageLensConfiguration"}
- if s.AccountLevel == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountLevel"))
- }
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.Id != nil && len(*s.Id) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Id", 1))
- }
- if s.IsEnabled == nil {
- invalidParams.Add(request.NewErrParamRequired("IsEnabled"))
- }
- if s.StorageLensArn != nil && len(*s.StorageLensArn) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StorageLensArn", 1))
- }
- if s.AccountLevel != nil {
- if err := s.AccountLevel.Validate(); err != nil {
- invalidParams.AddNested("AccountLevel", err.(request.ErrInvalidParams))
- }
+func (s *StorageLensTag) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "StorageLensTag"}
+ if s.Key == nil {
+ invalidParams.Add(request.NewErrParamRequired("Key"))
}
- if s.AwsOrg != nil {
- if err := s.AwsOrg.Validate(); err != nil {
- invalidParams.AddNested("AwsOrg", err.(request.ErrInvalidParams))
- }
+ if s.Key != nil && len(*s.Key) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))
}
- if s.DataExport != nil {
- if err := s.DataExport.Validate(); err != nil {
- invalidParams.AddNested("DataExport", err.(request.ErrInvalidParams))
- }
+ if s.Value == nil {
+ invalidParams.Add(request.NewErrParamRequired("Value"))
}
if invalidParams.Len() > 0 {
@@ -21789,68 +23904,37 @@ func (s *StorageLensConfiguration) Validate() error {
return nil
}
-// SetAccountLevel sets the AccountLevel field's value.
-func (s *StorageLensConfiguration) SetAccountLevel(v *AccountLevel) *StorageLensConfiguration {
- s.AccountLevel = v
- return s
-}
-
-// SetAwsOrg sets the AwsOrg field's value.
-func (s *StorageLensConfiguration) SetAwsOrg(v *StorageLensAwsOrg) *StorageLensConfiguration {
- s.AwsOrg = v
- return s
-}
-
-// SetDataExport sets the DataExport field's value.
-func (s *StorageLensConfiguration) SetDataExport(v *StorageLensDataExport) *StorageLensConfiguration {
- s.DataExport = v
- return s
-}
-
-// SetExclude sets the Exclude field's value.
-func (s *StorageLensConfiguration) SetExclude(v *Exclude) *StorageLensConfiguration {
- s.Exclude = v
- return s
-}
-
-// SetId sets the Id field's value.
-func (s *StorageLensConfiguration) SetId(v string) *StorageLensConfiguration {
- s.Id = &v
- return s
-}
-
-// SetInclude sets the Include field's value.
-func (s *StorageLensConfiguration) SetInclude(v *Include) *StorageLensConfiguration {
- s.Include = v
+// SetKey sets the Key field's value.
+func (s *StorageLensTag) SetKey(v string) *StorageLensTag {
+ s.Key = &v
return s
}
-// SetIsEnabled sets the IsEnabled field's value.
-func (s *StorageLensConfiguration) SetIsEnabled(v bool) *StorageLensConfiguration {
- s.IsEnabled = &v
+// SetValue sets the Value field's value.
+func (s *StorageLensTag) SetValue(v string) *StorageLensTag {
+ s.Value = &v
return s
}
-// SetStorageLensArn sets the StorageLensArn field's value.
-func (s *StorageLensConfiguration) SetStorageLensArn(v string) *StorageLensConfiguration {
- s.StorageLensArn = &v
- return s
-}
+type SubmitMultiRegionAccessPointRoutesInput struct {
+ _ struct{} `locationName:"SubmitMultiRegionAccessPointRoutesRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
-// A container to specify the properties of your S3 Storage Lens metrics export,
-// including the destination, schema, and format.
-type StorageLensDataExport struct {
- _ struct{} `type:"structure"`
+ // The Amazon Web Services account ID for the owner of the Multi-Region Access
+ // Point.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // A container for enabling Amazon CloudWatch publishing for S3 Storage Lens
- // metrics.
- CloudWatchMetrics *CloudWatchMetrics `type:"structure"`
+ // The Multi-Region Access Point ARN.
+ //
+ // Mrap is a required field
+ Mrap *string `location:"uri" locationName:"mrap" type:"string" required:"true"`
- // A container for the bucket where the S3 Storage Lens metrics export will
- // be located.
+ // The different routes that make up the new route configuration. Active routes
+ // return a value of 100, and passive routes return a value of 0.
//
- // This bucket must be located in the same Region as the storage lens configuration.
- S3BucketDestination *S3BucketDestination `type:"structure"`
+ // RouteUpdates is a required field
+ RouteUpdates []*MultiRegionAccessPointRoute `locationNameList:"Route" type:"list" required:"true"`
}
// String returns the string representation.
@@ -21858,7 +23942,7 @@ type StorageLensDataExport struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s StorageLensDataExport) String() string {
+func (s SubmitMultiRegionAccessPointRoutesInput) String() string {
return awsutil.Prettify(s)
}
@@ -21867,21 +23951,36 @@ func (s StorageLensDataExport) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s StorageLensDataExport) GoString() string {
+func (s SubmitMultiRegionAccessPointRoutesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *StorageLensDataExport) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StorageLensDataExport"}
- if s.CloudWatchMetrics != nil {
- if err := s.CloudWatchMetrics.Validate(); err != nil {
- invalidParams.AddNested("CloudWatchMetrics", err.(request.ErrInvalidParams))
- }
+func (s *SubmitMultiRegionAccessPointRoutesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SubmitMultiRegionAccessPointRoutesInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
- if s.S3BucketDestination != nil {
- if err := s.S3BucketDestination.Validate(); err != nil {
- invalidParams.AddNested("S3BucketDestination", err.(request.ErrInvalidParams))
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.Mrap == nil {
+ invalidParams.Add(request.NewErrParamRequired("Mrap"))
+ }
+ if s.Mrap != nil && len(*s.Mrap) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Mrap", 1))
+ }
+ if s.RouteUpdates == nil {
+ invalidParams.Add(request.NewErrParamRequired("RouteUpdates"))
+ }
+ if s.RouteUpdates != nil {
+ for i, v := range s.RouteUpdates {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RouteUpdates", i), err.(request.ErrInvalidParams))
+ }
}
}
@@ -21891,25 +23990,32 @@ func (s *StorageLensDataExport) Validate() error {
return nil
}
-// SetCloudWatchMetrics sets the CloudWatchMetrics field's value.
-func (s *StorageLensDataExport) SetCloudWatchMetrics(v *CloudWatchMetrics) *StorageLensDataExport {
- s.CloudWatchMetrics = v
+// SetAccountId sets the AccountId field's value.
+func (s *SubmitMultiRegionAccessPointRoutesInput) SetAccountId(v string) *SubmitMultiRegionAccessPointRoutesInput {
+ s.AccountId = &v
return s
}
-// SetS3BucketDestination sets the S3BucketDestination field's value.
-func (s *StorageLensDataExport) SetS3BucketDestination(v *S3BucketDestination) *StorageLensDataExport {
- s.S3BucketDestination = v
+// SetMrap sets the Mrap field's value.
+func (s *SubmitMultiRegionAccessPointRoutesInput) SetMrap(v string) *SubmitMultiRegionAccessPointRoutesInput {
+ s.Mrap = &v
+ return s
+}
+
+// SetRouteUpdates sets the RouteUpdates field's value.
+func (s *SubmitMultiRegionAccessPointRoutesInput) SetRouteUpdates(v []*MultiRegionAccessPointRoute) *SubmitMultiRegionAccessPointRoutesInput {
+ s.RouteUpdates = v
return s
}
-// A container for the encryption of the S3 Storage Lens metrics exports.
-type StorageLensDataExportEncryption struct {
+func (s *SubmitMultiRegionAccessPointRoutesInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
+
+type SubmitMultiRegionAccessPointRoutesOutput struct {
_ struct{} `type:"structure"`
-
- SSEKMS *SSEKMS `locationName:"SSE-KMS" type:"structure"`
-
- SSES3 *SSES3 `locationName:"SSE-S3" type:"structure"`
}
// String returns the string representation.
@@ -21917,7 +24023,7 @@ type StorageLensDataExportEncryption struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s StorageLensDataExportEncryption) String() string {
+func (s SubmitMultiRegionAccessPointRoutesOutput) String() string {
return awsutil.Prettify(s)
}
@@ -21926,43 +24032,28 @@ func (s StorageLensDataExportEncryption) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s StorageLensDataExportEncryption) GoString() string {
+func (s SubmitMultiRegionAccessPointRoutesOutput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *StorageLensDataExportEncryption) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StorageLensDataExportEncryption"}
- if s.SSEKMS != nil {
- if err := s.SSEKMS.Validate(); err != nil {
- invalidParams.AddNested("SSEKMS", err.(request.ErrInvalidParams))
- }
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetSSEKMS sets the SSEKMS field's value.
-func (s *StorageLensDataExportEncryption) SetSSEKMS(v *SSEKMS) *StorageLensDataExportEncryption {
- s.SSEKMS = v
- return s
-}
-
-// SetSSES3 sets the SSES3 field's value.
-func (s *StorageLensDataExportEncryption) SetSSES3(v *SSES3) *StorageLensDataExportEncryption {
- s.SSES3 = v
- return s
-}
-
-type StorageLensTag struct {
+// An Amazon Web Services resource tag that's associated with your S3 resource.
+// You can add tags to new objects when you upload them, or you can add object
+// tags to existing objects.
+//
+// This data type is only supported for S3 Storage Lens groups (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-lens-groups.html).
+type Tag struct {
_ struct{} `type:"structure"`
+ // The tag key for your Amazon Web Services resource. A tag key can be up to
+ // 128 Unicode characters in length and is case-sensitive. System created tags
+ // that begin with aws: aren’t supported.
+ //
// Key is a required field
Key *string `min:"1" type:"string" required:"true"`
+ // The tag value for your Amazon Web Services resource. A tag value can be up
+ // to 256 Unicode characters in length and is case-sensitive.
+ //
// Value is a required field
Value *string `type:"string" required:"true"`
}
@@ -21972,7 +24063,7 @@ type StorageLensTag struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s StorageLensTag) String() string {
+func (s Tag) String() string {
return awsutil.Prettify(s)
}
@@ -21981,13 +24072,13 @@ func (s StorageLensTag) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s StorageLensTag) GoString() string {
+func (s Tag) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *StorageLensTag) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StorageLensTag"}
+func (s *Tag) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "Tag"}
if s.Key == nil {
invalidParams.Add(request.NewErrParamRequired("Key"))
}
@@ -22005,36 +24096,37 @@ func (s *StorageLensTag) Validate() error {
}
// SetKey sets the Key field's value.
-func (s *StorageLensTag) SetKey(v string) *StorageLensTag {
+func (s *Tag) SetKey(v string) *Tag {
s.Key = &v
return s
}
// SetValue sets the Value field's value.
-func (s *StorageLensTag) SetValue(v string) *StorageLensTag {
+func (s *Tag) SetValue(v string) *Tag {
s.Value = &v
return s
}
-type SubmitMultiRegionAccessPointRoutesInput struct {
- _ struct{} `locationName:"SubmitMultiRegionAccessPointRoutesRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+type TagResourceInput struct {
+ _ struct{} `locationName:"TagResourceRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
- // The Amazon Web Services account ID for the owner of the Multi-Region Access
- // Point.
+ // The Amazon Web Services account ID that created the S3 resource that you're
+ // trying to add tags to.
//
// AccountId is a required field
AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
- // The Multi-Region Access Point ARN.
+ // The Amazon Resource Name (ARN) of the S3 resource that you're trying to add
+ // tags to.
//
- // Mrap is a required field
- Mrap *string `location:"uri" locationName:"mrap" type:"string" required:"true"`
+ // ResourceArn is a required field
+ ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
- // The different routes that make up the new route configuration. Active routes
- // return a value of 100, and passive routes return a value of 0.
+ // The Amazon Web Services resource tags that you want to add to the specified
+ // S3 resource.
//
- // RouteUpdates is a required field
- RouteUpdates []*MultiRegionAccessPointRoute `locationNameList:"Route" type:"list" required:"true"`
+ // Tags is a required field
+ Tags []*Tag `locationNameList:"Tag" type:"list" required:"true"`
}
// String returns the string representation.
@@ -22042,7 +24134,7 @@ type SubmitMultiRegionAccessPointRoutesInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s SubmitMultiRegionAccessPointRoutesInput) String() string {
+func (s TagResourceInput) String() string {
return awsutil.Prettify(s)
}
@@ -22051,35 +24143,35 @@ func (s SubmitMultiRegionAccessPointRoutesInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s SubmitMultiRegionAccessPointRoutesInput) GoString() string {
+func (s TagResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *SubmitMultiRegionAccessPointRoutesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SubmitMultiRegionAccessPointRoutesInput"}
+func (s *TagResourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
if s.AccountId == nil {
invalidParams.Add(request.NewErrParamRequired("AccountId"))
}
if s.AccountId != nil && len(*s.AccountId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
}
- if s.Mrap == nil {
- invalidParams.Add(request.NewErrParamRequired("Mrap"))
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
- if s.Mrap != nil && len(*s.Mrap) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Mrap", 1))
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
}
- if s.RouteUpdates == nil {
- invalidParams.Add(request.NewErrParamRequired("RouteUpdates"))
+ if s.Tags == nil {
+ invalidParams.Add(request.NewErrParamRequired("Tags"))
}
- if s.RouteUpdates != nil {
- for i, v := range s.RouteUpdates {
+ if s.Tags != nil {
+ for i, v := range s.Tags {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RouteUpdates", i), err.(request.ErrInvalidParams))
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
}
}
}
@@ -22091,30 +24183,30 @@ func (s *SubmitMultiRegionAccessPointRoutesInput) Validate() error {
}
// SetAccountId sets the AccountId field's value.
-func (s *SubmitMultiRegionAccessPointRoutesInput) SetAccountId(v string) *SubmitMultiRegionAccessPointRoutesInput {
+func (s *TagResourceInput) SetAccountId(v string) *TagResourceInput {
s.AccountId = &v
return s
}
-// SetMrap sets the Mrap field's value.
-func (s *SubmitMultiRegionAccessPointRoutesInput) SetMrap(v string) *SubmitMultiRegionAccessPointRoutesInput {
- s.Mrap = &v
+// SetResourceArn sets the ResourceArn field's value.
+func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
+ s.ResourceArn = &v
return s
}
-// SetRouteUpdates sets the RouteUpdates field's value.
-func (s *SubmitMultiRegionAccessPointRoutesInput) SetRouteUpdates(v []*MultiRegionAccessPointRoute) *SubmitMultiRegionAccessPointRoutesInput {
- s.RouteUpdates = v
+// SetTags sets the Tags field's value.
+func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput {
+ s.Tags = v
return s
}
-func (s *SubmitMultiRegionAccessPointRoutesInput) hostLabels() map[string]string {
+func (s *TagResourceInput) hostLabels() map[string]string {
return map[string]string{
"AccountId": aws.StringValue(s.AccountId),
}
}
-type SubmitMultiRegionAccessPointRoutesOutput struct {
+type TagResourceOutput struct {
_ struct{} `type:"structure"`
}
@@ -22123,7 +24215,7 @@ type SubmitMultiRegionAccessPointRoutesOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s SubmitMultiRegionAccessPointRoutesOutput) String() string {
+func (s TagResourceOutput) String() string {
return awsutil.Prettify(s)
}
@@ -22132,7 +24224,7 @@ func (s SubmitMultiRegionAccessPointRoutesOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s SubmitMultiRegionAccessPointRoutesOutput) GoString() string {
+func (s TagResourceOutput) GoString() string {
return s.String()
}
@@ -22247,6 +24339,116 @@ func (s *Transition) SetStorageClass(v string) *Transition {
return s
}
+type UntagResourceInput struct {
+ _ struct{} `locationName:"UntagResourceRequest" type:"structure"`
+
+ // The Amazon Web Services account ID that owns the resource that you're trying
+ // to remove the tags from.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+
+ // The Amazon Resource Name (ARN) of the S3 resource that you want to remove
+ // the resource tags from.
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
+
+ // The tag key pair of the S3 resource tag that you're trying to remove.
+ //
+ // TagKeys is a required field
+ TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UntagResourceInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UntagResourceInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UntagResourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
+ }
+ if s.TagKeys == nil {
+ invalidParams.Add(request.NewErrParamRequired("TagKeys"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *UntagResourceInput) SetAccountId(v string) *UntagResourceInput {
+ s.AccountId = &v
+ return s
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
+ s.ResourceArn = &v
+ return s
+}
+
+// SetTagKeys sets the TagKeys field's value.
+func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
+ s.TagKeys = v
+ return s
+}
+
+func (s *UntagResourceInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
+
+type UntagResourceOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UntagResourceOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UntagResourceOutput) GoString() string {
+ return s.String()
+}
+
type UpdateJobPriorityInput struct {
_ struct{} `locationName:"UpdateJobPriorityRequest" type:"structure"`
@@ -22527,6 +24729,119 @@ func (s *UpdateJobStatusOutput) SetStatusUpdateReason(v string) *UpdateJobStatus
return s
}
+type UpdateStorageLensGroupInput struct {
+ _ struct{} `locationName:"UpdateStorageLensGroupRequest" type:"structure" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"`
+
+ // The Amazon Web Services account ID of the Storage Lens group owner.
+ //
+ // AccountId is a required field
+ AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"`
+
+ // The name of the Storage Lens group that you want to update.
+ //
+ // Name is a required field
+ Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
+
+ // The JSON file that contains the Storage Lens group configuration.
+ //
+ // StorageLensGroup is a required field
+ StorageLensGroup *StorageLensGroup `type:"structure" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdateStorageLensGroupInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdateStorageLensGroupInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateStorageLensGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateStorageLensGroupInput"}
+ if s.AccountId == nil {
+ invalidParams.Add(request.NewErrParamRequired("AccountId"))
+ }
+ if s.AccountId != nil && len(*s.AccountId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("AccountId", 1))
+ }
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
+ }
+ if s.StorageLensGroup == nil {
+ invalidParams.Add(request.NewErrParamRequired("StorageLensGroup"))
+ }
+ if s.StorageLensGroup != nil {
+ if err := s.StorageLensGroup.Validate(); err != nil {
+ invalidParams.AddNested("StorageLensGroup", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *UpdateStorageLensGroupInput) SetAccountId(v string) *UpdateStorageLensGroupInput {
+ s.AccountId = &v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *UpdateStorageLensGroupInput) SetName(v string) *UpdateStorageLensGroupInput {
+ s.Name = &v
+ return s
+}
+
+// SetStorageLensGroup sets the StorageLensGroup field's value.
+func (s *UpdateStorageLensGroupInput) SetStorageLensGroup(v *StorageLensGroup) *UpdateStorageLensGroupInput {
+ s.StorageLensGroup = v
+ return s
+}
+
+func (s *UpdateStorageLensGroupInput) hostLabels() map[string]string {
+ return map[string]string{
+ "AccountId": aws.StringValue(s.AccountId),
+ }
+}
+
+type UpdateStorageLensGroupOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdateStorageLensGroupOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdateStorageLensGroupOutput) GoString() string {
+ return s.String()
+}
+
// Describes the versioning state of an Amazon S3 on Outposts bucket. For more
// information, see PutBucketVersioning (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutBucketVersioning.html).
type VersioningConfiguration struct {
diff --git a/service/s3control/s3controliface/interface.go b/service/s3control/s3controliface/interface.go
index 48ae7aee099..a02b334cfdc 100644
--- a/service/s3control/s3controliface/interface.go
+++ b/service/s3control/s3controliface/interface.go
@@ -80,6 +80,10 @@ type S3ControlAPI interface {
CreateMultiRegionAccessPointWithContext(aws.Context, *s3control.CreateMultiRegionAccessPointInput, ...request.Option) (*s3control.CreateMultiRegionAccessPointOutput, error)
CreateMultiRegionAccessPointRequest(*s3control.CreateMultiRegionAccessPointInput) (*request.Request, *s3control.CreateMultiRegionAccessPointOutput)
+ CreateStorageLensGroup(*s3control.CreateStorageLensGroupInput) (*s3control.CreateStorageLensGroupOutput, error)
+ CreateStorageLensGroupWithContext(aws.Context, *s3control.CreateStorageLensGroupInput, ...request.Option) (*s3control.CreateStorageLensGroupOutput, error)
+ CreateStorageLensGroupRequest(*s3control.CreateStorageLensGroupInput) (*request.Request, *s3control.CreateStorageLensGroupOutput)
+
DeleteAccessPoint(*s3control.DeleteAccessPointInput) (*s3control.DeleteAccessPointOutput, error)
DeleteAccessPointWithContext(aws.Context, *s3control.DeleteAccessPointInput, ...request.Option) (*s3control.DeleteAccessPointOutput, error)
DeleteAccessPointRequest(*s3control.DeleteAccessPointInput) (*request.Request, *s3control.DeleteAccessPointOutput)
@@ -136,6 +140,10 @@ type S3ControlAPI interface {
DeleteStorageLensConfigurationTaggingWithContext(aws.Context, *s3control.DeleteStorageLensConfigurationTaggingInput, ...request.Option) (*s3control.DeleteStorageLensConfigurationTaggingOutput, error)
DeleteStorageLensConfigurationTaggingRequest(*s3control.DeleteStorageLensConfigurationTaggingInput) (*request.Request, *s3control.DeleteStorageLensConfigurationTaggingOutput)
+ DeleteStorageLensGroup(*s3control.DeleteStorageLensGroupInput) (*s3control.DeleteStorageLensGroupOutput, error)
+ DeleteStorageLensGroupWithContext(aws.Context, *s3control.DeleteStorageLensGroupInput, ...request.Option) (*s3control.DeleteStorageLensGroupOutput, error)
+ DeleteStorageLensGroupRequest(*s3control.DeleteStorageLensGroupInput) (*request.Request, *s3control.DeleteStorageLensGroupOutput)
+
DescribeJob(*s3control.DescribeJobInput) (*s3control.DescribeJobOutput, error)
DescribeJobWithContext(aws.Context, *s3control.DescribeJobInput, ...request.Option) (*s3control.DescribeJobOutput, error)
DescribeJobRequest(*s3control.DescribeJobInput) (*request.Request, *s3control.DescribeJobOutput)
@@ -228,6 +236,10 @@ type S3ControlAPI interface {
GetStorageLensConfigurationTaggingWithContext(aws.Context, *s3control.GetStorageLensConfigurationTaggingInput, ...request.Option) (*s3control.GetStorageLensConfigurationTaggingOutput, error)
GetStorageLensConfigurationTaggingRequest(*s3control.GetStorageLensConfigurationTaggingInput) (*request.Request, *s3control.GetStorageLensConfigurationTaggingOutput)
+ GetStorageLensGroup(*s3control.GetStorageLensGroupInput) (*s3control.GetStorageLensGroupOutput, error)
+ GetStorageLensGroupWithContext(aws.Context, *s3control.GetStorageLensGroupInput, ...request.Option) (*s3control.GetStorageLensGroupOutput, error)
+ GetStorageLensGroupRequest(*s3control.GetStorageLensGroupInput) (*request.Request, *s3control.GetStorageLensGroupOutput)
+
ListAccessPoints(*s3control.ListAccessPointsInput) (*s3control.ListAccessPointsOutput, error)
ListAccessPointsWithContext(aws.Context, *s3control.ListAccessPointsInput, ...request.Option) (*s3control.ListAccessPointsOutput, error)
ListAccessPointsRequest(*s3control.ListAccessPointsInput) (*request.Request, *s3control.ListAccessPointsOutput)
@@ -270,6 +282,17 @@ type S3ControlAPI interface {
ListStorageLensConfigurationsPages(*s3control.ListStorageLensConfigurationsInput, func(*s3control.ListStorageLensConfigurationsOutput, bool) bool) error
ListStorageLensConfigurationsPagesWithContext(aws.Context, *s3control.ListStorageLensConfigurationsInput, func(*s3control.ListStorageLensConfigurationsOutput, bool) bool, ...request.Option) error
+ ListStorageLensGroups(*s3control.ListStorageLensGroupsInput) (*s3control.ListStorageLensGroupsOutput, error)
+ ListStorageLensGroupsWithContext(aws.Context, *s3control.ListStorageLensGroupsInput, ...request.Option) (*s3control.ListStorageLensGroupsOutput, error)
+ ListStorageLensGroupsRequest(*s3control.ListStorageLensGroupsInput) (*request.Request, *s3control.ListStorageLensGroupsOutput)
+
+ ListStorageLensGroupsPages(*s3control.ListStorageLensGroupsInput, func(*s3control.ListStorageLensGroupsOutput, bool) bool) error
+ ListStorageLensGroupsPagesWithContext(aws.Context, *s3control.ListStorageLensGroupsInput, func(*s3control.ListStorageLensGroupsOutput, bool) bool, ...request.Option) error
+
+ ListTagsForResource(*s3control.ListTagsForResourceInput) (*s3control.ListTagsForResourceOutput, error)
+ ListTagsForResourceWithContext(aws.Context, *s3control.ListTagsForResourceInput, ...request.Option) (*s3control.ListTagsForResourceOutput, error)
+ ListTagsForResourceRequest(*s3control.ListTagsForResourceInput) (*request.Request, *s3control.ListTagsForResourceOutput)
+
PutAccessPointConfigurationForObjectLambda(*s3control.PutAccessPointConfigurationForObjectLambdaInput) (*s3control.PutAccessPointConfigurationForObjectLambdaOutput, error)
PutAccessPointConfigurationForObjectLambdaWithContext(aws.Context, *s3control.PutAccessPointConfigurationForObjectLambdaInput, ...request.Option) (*s3control.PutAccessPointConfigurationForObjectLambdaOutput, error)
PutAccessPointConfigurationForObjectLambdaRequest(*s3control.PutAccessPointConfigurationForObjectLambdaInput) (*request.Request, *s3control.PutAccessPointConfigurationForObjectLambdaOutput)
@@ -326,6 +349,14 @@ type S3ControlAPI interface {
SubmitMultiRegionAccessPointRoutesWithContext(aws.Context, *s3control.SubmitMultiRegionAccessPointRoutesInput, ...request.Option) (*s3control.SubmitMultiRegionAccessPointRoutesOutput, error)
SubmitMultiRegionAccessPointRoutesRequest(*s3control.SubmitMultiRegionAccessPointRoutesInput) (*request.Request, *s3control.SubmitMultiRegionAccessPointRoutesOutput)
+ TagResource(*s3control.TagResourceInput) (*s3control.TagResourceOutput, error)
+ TagResourceWithContext(aws.Context, *s3control.TagResourceInput, ...request.Option) (*s3control.TagResourceOutput, error)
+ TagResourceRequest(*s3control.TagResourceInput) (*request.Request, *s3control.TagResourceOutput)
+
+ UntagResource(*s3control.UntagResourceInput) (*s3control.UntagResourceOutput, error)
+ UntagResourceWithContext(aws.Context, *s3control.UntagResourceInput, ...request.Option) (*s3control.UntagResourceOutput, error)
+ UntagResourceRequest(*s3control.UntagResourceInput) (*request.Request, *s3control.UntagResourceOutput)
+
UpdateJobPriority(*s3control.UpdateJobPriorityInput) (*s3control.UpdateJobPriorityOutput, error)
UpdateJobPriorityWithContext(aws.Context, *s3control.UpdateJobPriorityInput, ...request.Option) (*s3control.UpdateJobPriorityOutput, error)
UpdateJobPriorityRequest(*s3control.UpdateJobPriorityInput) (*request.Request, *s3control.UpdateJobPriorityOutput)
@@ -333,6 +364,10 @@ type S3ControlAPI interface {
UpdateJobStatus(*s3control.UpdateJobStatusInput) (*s3control.UpdateJobStatusOutput, error)
UpdateJobStatusWithContext(aws.Context, *s3control.UpdateJobStatusInput, ...request.Option) (*s3control.UpdateJobStatusOutput, error)
UpdateJobStatusRequest(*s3control.UpdateJobStatusInput) (*request.Request, *s3control.UpdateJobStatusOutput)
+
+ UpdateStorageLensGroup(*s3control.UpdateStorageLensGroupInput) (*s3control.UpdateStorageLensGroupOutput, error)
+ UpdateStorageLensGroupWithContext(aws.Context, *s3control.UpdateStorageLensGroupInput, ...request.Option) (*s3control.UpdateStorageLensGroupOutput, error)
+ UpdateStorageLensGroupRequest(*s3control.UpdateStorageLensGroupInput) (*request.Request, *s3control.UpdateStorageLensGroupOutput)
}
var _ S3ControlAPI = (*s3control.S3Control)(nil)