getDistribution() 공개 정적인 메소드

Get CloudFront distribution info
public static getDistribution ( string $distributionId ) : array | false
$distributionId string Distribution ID from listDistributions()
리턴 array | false | false
예제 #1
0
function test_deleteDistribution($distributionId)
{
    // To delete a distribution configuration you must first set enable=false with
    // the updateDistrubution() method and wait for status=Deployed:
    if (($dist = S3::getDistribution($distributionId)) !== false) {
        if ($dist['status'] == 'Deployed') {
            echo "deleteDistribution({$distributionId}): ";
            var_dump(S3::deleteDistribution($dist));
        } else {
            echo "deleteDistribution({$distributionId}): Distribution not ready for deletion (status is not 'Deployed')\n";
            var_dump($dist);
        }
    }
}