# duplocloud_sdk.S3BucketApi

All URIs are relative to *http://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**s3_bucket_create**](S3BucketApi.md#s3_bucket_create) | **POST** /v3/subscriptions/{subscriptionId}/aws/s3Bucket | 
[**s3_bucket_create_s3_replication_rule**](S3BucketApi.md#s3_bucket_create_s3_replication_rule) | **POST** /v3/subscriptions/{subscriptionId}/aws/s3Bucket/{id}/replication | 
[**s3_bucket_delete**](S3BucketApi.md#s3_bucket_delete) | **DELETE** /v3/subscriptions/{subscriptionId}/aws/s3Bucket/{id} | 
[**s3_bucket_delete_s3_replication_rule**](S3BucketApi.md#s3_bucket_delete_s3_replication_rule) | **DELETE** /v3/subscriptions/{subscriptionId}/aws/s3Bucket/{id}/replication/{ruleName} | 
[**s3_bucket_get**](S3BucketApi.md#s3_bucket_get) | **GET** /v3/subscriptions/{subscriptionId}/aws/s3Bucket/{id} | 
[**s3_bucket_get_name**](S3BucketApi.md#s3_bucket_get_name) | **POST** /v3/subscriptions/{subscriptionId}/aws/s3BucketName | 
[**s3_bucket_get_s3_bucket_notifications**](S3BucketApi.md#s3_bucket_get_s3_bucket_notifications) | **GET** /v3/subscriptions/{subscriptionId}/aws/s3Bucket/{id}/notifications | 
[**s3_bucket_get_s3_replication_rules**](S3BucketApi.md#s3_bucket_get_s3_replication_rules) | **GET** /v3/subscriptions/{subscriptionId}/aws/s3Bucket/{bucket}/replication | 
[**s3_bucket_list**](S3BucketApi.md#s3_bucket_list) | **GET** /v3/subscriptions/{subscriptionId}/aws/s3Bucket | 
[**s3_bucket_put_s3_bucket_notifications**](S3BucketApi.md#s3_bucket_put_s3_bucket_notifications) | **PUT** /v3/subscriptions/{subscriptionId}/aws/s3Bucket/{id}/notifications | 
[**s3_bucket_update**](S3BucketApi.md#s3_bucket_update) | **PUT** /v3/subscriptions/{subscriptionId}/aws/s3Bucket/{id} | 
[**s3_bucket_update_s3_replication_rule**](S3BucketApi.md#s3_bucket_update_s3_replication_rule) | **PUT** /v3/subscriptions/{subscriptionId}/aws/s3Bucket/{id}/replication/{ruleName} | 


# **s3_bucket_create**
> S3CloudResource s3_bucket_create(subscription_id, s3_cloud_resource_request=s3_cloud_resource_request)

### Example

* Bearer (Duplo token) Authentication (bearerAuth):

```python
import duplocloud_sdk
from duplocloud_sdk.models.s3_cloud_resource import S3CloudResource
from duplocloud_sdk.models.s3_cloud_resource_request import S3CloudResourceRequest
from duplocloud_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = duplocloud_sdk.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (Duplo token): bearerAuth
configuration = duplocloud_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with duplocloud_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = duplocloud_sdk.S3BucketApi(api_client)
    subscription_id = 'subscription_id_example' # str | 
    s3_cloud_resource_request = duplocloud_sdk.S3CloudResourceRequest() # S3CloudResourceRequest |  (optional)

    try:
        api_response = api_instance.s3_bucket_create(subscription_id, s3_cloud_resource_request=s3_cloud_resource_request)
        print("The response of S3BucketApi->s3_bucket_create:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling S3BucketApi->s3_bucket_create: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subscription_id** | **str**|  | 
 **s3_cloud_resource_request** | [**S3CloudResourceRequest**](S3CloudResourceRequest.md)|  | [optional] 

### Return type

[**S3CloudResource**](S3CloudResource.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** |  |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **s3_bucket_create_s3_replication_rule**
> s3_bucket_create_s3_replication_rule(subscription_id, id, s3_bucket_replication_request=s3_bucket_replication_request)

### Example

* Bearer (Duplo token) Authentication (bearerAuth):

```python
import duplocloud_sdk
from duplocloud_sdk.models.s3_bucket_replication_request import S3BucketReplicationRequest
from duplocloud_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = duplocloud_sdk.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (Duplo token): bearerAuth
configuration = duplocloud_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with duplocloud_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = duplocloud_sdk.S3BucketApi(api_client)
    subscription_id = 'subscription_id_example' # str | 
    id = 'id_example' # str | 
    s3_bucket_replication_request = duplocloud_sdk.S3BucketReplicationRequest() # S3BucketReplicationRequest |  (optional)

    try:
        api_instance.s3_bucket_create_s3_replication_rule(subscription_id, id, s3_bucket_replication_request=s3_bucket_replication_request)
    except Exception as e:
        print("Exception when calling S3BucketApi->s3_bucket_create_s3_replication_rule: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subscription_id** | **str**|  | 
 **id** | **str**|  | 
 **s3_bucket_replication_request** | [**S3BucketReplicationRequest**](S3BucketReplicationRequest.md)|  | [optional] 

### Return type

void (empty response body)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: Not defined

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**204** |  |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **s3_bucket_delete**
> s3_bucket_delete(subscription_id, id)

### Example

* Bearer (Duplo token) Authentication (bearerAuth):

```python
import duplocloud_sdk
from duplocloud_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = duplocloud_sdk.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (Duplo token): bearerAuth
configuration = duplocloud_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with duplocloud_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = duplocloud_sdk.S3BucketApi(api_client)
    subscription_id = 'subscription_id_example' # str | 
    id = 'id_example' # str | 

    try:
        api_instance.s3_bucket_delete(subscription_id, id)
    except Exception as e:
        print("Exception when calling S3BucketApi->s3_bucket_delete: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subscription_id** | **str**|  | 
 **id** | **str**|  | 

### Return type

void (empty response body)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**204** |  |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **s3_bucket_delete_s3_replication_rule**
> s3_bucket_delete_s3_replication_rule(subscription_id, id, rule_name)

### Example

* Bearer (Duplo token) Authentication (bearerAuth):

```python
import duplocloud_sdk
from duplocloud_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = duplocloud_sdk.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (Duplo token): bearerAuth
configuration = duplocloud_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with duplocloud_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = duplocloud_sdk.S3BucketApi(api_client)
    subscription_id = 'subscription_id_example' # str | 
    id = 'id_example' # str | 
    rule_name = 'rule_name_example' # str | 

    try:
        api_instance.s3_bucket_delete_s3_replication_rule(subscription_id, id, rule_name)
    except Exception as e:
        print("Exception when calling S3BucketApi->s3_bucket_delete_s3_replication_rule: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subscription_id** | **str**|  | 
 **id** | **str**|  | 
 **rule_name** | **str**|  | 

### Return type

void (empty response body)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**204** |  |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **s3_bucket_get**
> S3CloudResource s3_bucket_get(subscription_id, id)

### Example

* Bearer (Duplo token) Authentication (bearerAuth):

```python
import duplocloud_sdk
from duplocloud_sdk.models.s3_cloud_resource import S3CloudResource
from duplocloud_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = duplocloud_sdk.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (Duplo token): bearerAuth
configuration = duplocloud_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with duplocloud_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = duplocloud_sdk.S3BucketApi(api_client)
    subscription_id = 'subscription_id_example' # str | 
    id = 'id_example' # str | 

    try:
        api_response = api_instance.s3_bucket_get(subscription_id, id)
        print("The response of S3BucketApi->s3_bucket_get:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling S3BucketApi->s3_bucket_get: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subscription_id** | **str**|  | 
 **id** | **str**|  | 

### Return type

[**S3CloudResource**](S3CloudResource.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** |  |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **s3_bucket_get_name**
> str s3_bucket_get_name(subscription_id, s3_bucket_request=s3_bucket_request)

### Example

* Bearer (Duplo token) Authentication (bearerAuth):

```python
import duplocloud_sdk
from duplocloud_sdk.models.s3_bucket_request import S3BucketRequest
from duplocloud_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = duplocloud_sdk.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (Duplo token): bearerAuth
configuration = duplocloud_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with duplocloud_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = duplocloud_sdk.S3BucketApi(api_client)
    subscription_id = 'subscription_id_example' # str | 
    s3_bucket_request = duplocloud_sdk.S3BucketRequest() # S3BucketRequest |  (optional)

    try:
        api_response = api_instance.s3_bucket_get_name(subscription_id, s3_bucket_request=s3_bucket_request)
        print("The response of S3BucketApi->s3_bucket_get_name:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling S3BucketApi->s3_bucket_get_name: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subscription_id** | **str**|  | 
 **s3_bucket_request** | [**S3BucketRequest**](S3BucketRequest.md)|  | [optional] 

### Return type

**str**

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** |  |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **s3_bucket_get_s3_bucket_notifications**
> GetBucketNotificationResponse s3_bucket_get_s3_bucket_notifications(subscription_id, id)

### Example

* Bearer (Duplo token) Authentication (bearerAuth):

```python
import duplocloud_sdk
from duplocloud_sdk.models.get_bucket_notification_response import GetBucketNotificationResponse
from duplocloud_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = duplocloud_sdk.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (Duplo token): bearerAuth
configuration = duplocloud_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with duplocloud_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = duplocloud_sdk.S3BucketApi(api_client)
    subscription_id = 'subscription_id_example' # str | 
    id = 'id_example' # str | 

    try:
        api_response = api_instance.s3_bucket_get_s3_bucket_notifications(subscription_id, id)
        print("The response of S3BucketApi->s3_bucket_get_s3_bucket_notifications:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling S3BucketApi->s3_bucket_get_s3_bucket_notifications: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subscription_id** | **str**|  | 
 **id** | **str**|  | 

### Return type

[**GetBucketNotificationResponse**](GetBucketNotificationResponse.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** |  |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **s3_bucket_get_s3_replication_rules**
> AwsReplicationConfiguration s3_bucket_get_s3_replication_rules(subscription_id, bucket)

### Example

* Bearer (Duplo token) Authentication (bearerAuth):

```python
import duplocloud_sdk
from duplocloud_sdk.models.aws_replication_configuration import AwsReplicationConfiguration
from duplocloud_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = duplocloud_sdk.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (Duplo token): bearerAuth
configuration = duplocloud_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with duplocloud_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = duplocloud_sdk.S3BucketApi(api_client)
    subscription_id = 'subscription_id_example' # str | 
    bucket = 'bucket_example' # str | 

    try:
        api_response = api_instance.s3_bucket_get_s3_replication_rules(subscription_id, bucket)
        print("The response of S3BucketApi->s3_bucket_get_s3_replication_rules:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling S3BucketApi->s3_bucket_get_s3_replication_rules: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subscription_id** | **str**|  | 
 **bucket** | **str**|  | 

### Return type

[**AwsReplicationConfiguration**](AwsReplicationConfiguration.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** |  |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **s3_bucket_list**
> List[S3CloudResource] s3_bucket_list(subscription_id)

### Example

* Bearer (Duplo token) Authentication (bearerAuth):

```python
import duplocloud_sdk
from duplocloud_sdk.models.s3_cloud_resource import S3CloudResource
from duplocloud_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = duplocloud_sdk.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (Duplo token): bearerAuth
configuration = duplocloud_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with duplocloud_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = duplocloud_sdk.S3BucketApi(api_client)
    subscription_id = 'subscription_id_example' # str | 

    try:
        api_response = api_instance.s3_bucket_list(subscription_id)
        print("The response of S3BucketApi->s3_bucket_list:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling S3BucketApi->s3_bucket_list: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subscription_id** | **str**|  | 

### Return type

[**List[S3CloudResource]**](S3CloudResource.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** |  |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **s3_bucket_put_s3_bucket_notifications**
> bytearray s3_bucket_put_s3_bucket_notifications(subscription_id, id, s3_notifications_update_request=s3_notifications_update_request)

### Example

* Bearer (Duplo token) Authentication (bearerAuth):

```python
import duplocloud_sdk
from duplocloud_sdk.models.s3_notifications_update_request import S3NotificationsUpdateRequest
from duplocloud_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = duplocloud_sdk.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (Duplo token): bearerAuth
configuration = duplocloud_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with duplocloud_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = duplocloud_sdk.S3BucketApi(api_client)
    subscription_id = 'subscription_id_example' # str | 
    id = 'id_example' # str | 
    s3_notifications_update_request = duplocloud_sdk.S3NotificationsUpdateRequest() # S3NotificationsUpdateRequest |  (optional)

    try:
        api_response = api_instance.s3_bucket_put_s3_bucket_notifications(subscription_id, id, s3_notifications_update_request=s3_notifications_update_request)
        print("The response of S3BucketApi->s3_bucket_put_s3_bucket_notifications:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling S3BucketApi->s3_bucket_put_s3_bucket_notifications: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subscription_id** | **str**|  | 
 **id** | **str**|  | 
 **s3_notifications_update_request** | [**S3NotificationsUpdateRequest**](S3NotificationsUpdateRequest.md)|  | [optional] 

### Return type

**bytearray**

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/octet-stream

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** |  |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **s3_bucket_update**
> S3CloudResource s3_bucket_update(subscription_id, id, s3_cloud_resource_request=s3_cloud_resource_request)

### Example

* Bearer (Duplo token) Authentication (bearerAuth):

```python
import duplocloud_sdk
from duplocloud_sdk.models.s3_cloud_resource import S3CloudResource
from duplocloud_sdk.models.s3_cloud_resource_request import S3CloudResourceRequest
from duplocloud_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = duplocloud_sdk.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (Duplo token): bearerAuth
configuration = duplocloud_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with duplocloud_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = duplocloud_sdk.S3BucketApi(api_client)
    subscription_id = 'subscription_id_example' # str | 
    id = 'id_example' # str | 
    s3_cloud_resource_request = duplocloud_sdk.S3CloudResourceRequest() # S3CloudResourceRequest |  (optional)

    try:
        api_response = api_instance.s3_bucket_update(subscription_id, id, s3_cloud_resource_request=s3_cloud_resource_request)
        print("The response of S3BucketApi->s3_bucket_update:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling S3BucketApi->s3_bucket_update: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subscription_id** | **str**|  | 
 **id** | **str**|  | 
 **s3_cloud_resource_request** | [**S3CloudResourceRequest**](S3CloudResourceRequest.md)|  | [optional] 

### Return type

[**S3CloudResource**](S3CloudResource.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** |  |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **s3_bucket_update_s3_replication_rule**
> s3_bucket_update_s3_replication_rule(subscription_id, id, rule_name, s3_bucket_replication_request=s3_bucket_replication_request)

### Example

* Bearer (Duplo token) Authentication (bearerAuth):

```python
import duplocloud_sdk
from duplocloud_sdk.models.s3_bucket_replication_request import S3BucketReplicationRequest
from duplocloud_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = duplocloud_sdk.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (Duplo token): bearerAuth
configuration = duplocloud_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with duplocloud_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = duplocloud_sdk.S3BucketApi(api_client)
    subscription_id = 'subscription_id_example' # str | 
    id = 'id_example' # str | 
    rule_name = 'rule_name_example' # str | 
    s3_bucket_replication_request = duplocloud_sdk.S3BucketReplicationRequest() # S3BucketReplicationRequest |  (optional)

    try:
        api_instance.s3_bucket_update_s3_replication_rule(subscription_id, id, rule_name, s3_bucket_replication_request=s3_bucket_replication_request)
    except Exception as e:
        print("Exception when calling S3BucketApi->s3_bucket_update_s3_replication_rule: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **subscription_id** | **str**|  | 
 **id** | **str**|  | 
 **rule_name** | **str**|  | 
 **s3_bucket_replication_request** | [**S3BucketReplicationRequest**](S3BucketReplicationRequest.md)|  | [optional] 

### Return type

void (empty response body)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: Not defined

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**204** |  |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

