You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* <p>Creates a Lightsail load balancer. To learn more about deciding whether to load balance
32
-
* your application, see <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/configure-lightsail-instances-for-load-balancing">Configure your Lightsail instances for load balancing</a>. You can create up to 5
32
+
* your application, see <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/configure-lightsail-instances-for-load-balancing">Configure your Lightsail instances for load balancing</a>. You can create up to 10
33
33
* load balancers per AWS Region in your account.</p>
34
34
* <p>When you create a load balancer, you can specify a unique name and port settings. To
35
35
* change additional load balancer settings, use the <code>UpdateLoadBalancerAttribute</code>
* <p>Describes a cross-origin resource sharing (CORS) rule for a Lightsail bucket. CORS rules specify which origins are allowed to access the bucket, which HTTP methods are allowed, and other access control information. For more information, see <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/configure-cors.html">Configuring cross-origin resource sharing (CORS)</a>.</p>
1929
+
* @public
1930
+
*/
1931
+
exportinterfaceBucketCorsRule{
1932
+
/**
1933
+
* <p>A unique identifier for the CORS rule. The ID value can be up to 255 characters long. The IDs help you find a rule in the configuration.</p>
1934
+
* @public
1935
+
*/
1936
+
id?: string|undefined;
1937
+
1938
+
/**
1939
+
* <p>The HTTP methods that are allowed when accessing the bucket from the specified origin. Each CORS rule must identify at least one origin and one method.</p>
1940
+
* <p>You can use the following HTTP methods:</p>
1941
+
* <ul>
1942
+
* <li>
1943
+
* <p>
1944
+
* <code>GET</code> - Retrieves data from the server, such as downloading files or viewing content.</p>
1945
+
* </li>
1946
+
* <li>
1947
+
* <p>
1948
+
* <code>PUT</code> - Uploads or replaces data on the server, such as uploading new files.</p>
1949
+
* </li>
1950
+
* <li>
1951
+
* <p>
1952
+
* <code>POST</code> - Sends data to the server for processing, such as submitting forms or creating new resources.</p>
1953
+
* </li>
1954
+
* <li>
1955
+
* <p>
1956
+
* <code>DELETE</code> - Removes data from the server, such as deleting files or resources.</p>
1957
+
* </li>
1958
+
* <li>
1959
+
* <p>
1960
+
* <code>HEAD</code> - Retrieves only the headers from the server without the actual content, useful for checking if a resource exists.</p>
1961
+
* </li>
1962
+
* </ul>
1963
+
* @public
1964
+
*/
1965
+
allowedMethods: string[]|undefined;
1966
+
1967
+
/**
1968
+
* <p>One or more origins you want customers to be able to access the bucket from. Each CORS rule must identify at least one origin and one method.</p>
1969
+
* @public
1970
+
*/
1971
+
allowedOrigins: string[]|undefined;
1972
+
1973
+
/**
1974
+
* <p>Headers that are specified in the <code>Access-Control-Request-Headers</code> header. These headers are allowed in a preflight <code>OPTIONS</code> request. In response to any preflight <code>OPTIONS</code> request, Amazon S3 returns any requested headers that are allowed.</p>
1975
+
* @public
1976
+
*/
1977
+
allowedHeaders?: string[]|undefined;
1978
+
1979
+
/**
1980
+
* <p>One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript <code>XMLHttpRequest</code> object).</p>
1981
+
* @public
1982
+
*/
1983
+
exposeHeaders?: string[]|undefined;
1984
+
1985
+
/**
1986
+
* <p>The time in seconds that your browser is to cache the preflight response for the specified resource. A CORS rule can have only one <code>maxAgeSeconds</code> element.</p>
1987
+
* @public
1988
+
*/
1989
+
maxAgeSeconds?: number|undefined;
1990
+
}
1991
+
1992
+
/**
1993
+
* <p>Describes the cross-origin resource sharing (CORS) configuration for a Lightsail bucket. CORS defines a way for client web applications that are loaded in one domain to interact with resources in a different domain.
1994
+
* For more information, see <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/configure-cors.html">Configuring cross-origin resource sharing (CORS)</a>.</p>
1995
+
* @public
1996
+
*/
1997
+
exportinterfaceBucketCorsConfig{
1998
+
/**
1999
+
* <p>A set of origins and methods (cross-origin access that you want to allow). You can add up to 20 rules to the configuration. The total size is limited to 64 KB.</p>
2000
+
* @public
2001
+
*/
2002
+
rules?: BucketCorsRule[]|undefined;
2003
+
}
2004
+
1927
2005
/**
1928
2006
* <p>Describes the state of an Amazon Lightsail bucket.</p>
* <p>An array of cross-origin resource sharing (CORS) rules that identify origins and the HTTP methods that can be executed on your bucket. This field is only included in the response when CORS configuration is requested or when updating CORS configuration. For more information, see <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/configure-cors.html">Configuring cross-origin resource sharing (CORS)</a>.</p>
* <p>A Boolean value that indicates whether to include Lightsail bucket CORS configuration in the response. For more information, see <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/configure-cors.html">Configuring cross-origin resource sharing (CORS)</a>.</p>
8996
+
* <note>
8997
+
* <p>This parameter is only supported when getting a single bucket with <code>bucketName</code> specified. The default value for this parameter is <code>False</code>.</p>
0 commit comments